/* Wedding Theme with Animations */

@import url('https://fonts.googleapis.com/css2?family=Tangerine&family=Roboto:wght@400;500&display=swap');

body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background: #fff8f5;
  color: #333;
  line-height: 1.6;
  transition: background 0.5s ease;
}
/* Content box style for index page sections */
.content-box {
  background: #fff0f0;
  padding: 1.5rem;
  margin: 2rem auto;
  max-width: 700px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transform: translateY(20px);
  opacity: 0;
  animation: slideUp 0.8s forwards;
}

/* Stagger animation delays */
.content-box:nth-of-type(1) { animation-delay: 0.2s; }
.content-box:nth-of-type(2) { animation-delay: 0.4s; }

header {
  background: #ffe6e0;
  text-align: center;
  padding: 2rem 1rem;
  animation: fadeIn 1s ease forwards;
}

header h1 {
  font-family: 'Tangerine', serif;
  font-size: 3rem;
  margin: 0;
  color: #d77a61;
  transition: transform 0.3s ease;
}

header h1:hover {
  transform: scale(1.00) rotate(-1deg);
}

header p {
  font-size: 1.2rem;
  color: #b65c44;
  animation: fadeInText 2s ease forwards;
}

main {
  max-width: 700px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Guest block styling */
.guest-field {
  border: 1px solid #ddd;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: #fff0f0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  animation: slideUp 0.8s forwards;
}

.guest-field h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: #d77a61;
  font-family: 'Tangerine', serif;
}

.guest-field p {
  margin: 8px 0;
}

input, select, textarea {
  width: 100%;
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-top: 0.25rem;
  box-sizing: border-box;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: #d77a61;
  box-shadow: 0 0 6px rgba(215, 122, 97, 0.4);
  outline: none;
}

button {
  background: #d77a61;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

button:hover {
  background: #b65c44;
  transform: scale(1.05);
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  color: #b65c44;
  animation: fadeIn 1.2s ease forwards;
}

.polaroid {
  position: absolute;
  width: 180px;
  padding: 10px;
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 8px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
  z-index: 0;
}

.polaroid img {
  display: block;
  width: 100%;
  height: auto;
}

.polaroid:hover {
  transform: scale(1.05) rotate(0deg) !important;
}

/* Mobile: stack them neatly */
@media (max-width: 768px) {
  .polaroid {
    position: relative;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    display: inline-block;
    width: 120px;
    margin: 10px;
  }

  .polaroid-container {
    text-align: center;
    margin: 1rem 0;
  }
}



/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInText {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  to { transform: translateY(0); opacity: 1; }
}
