body {
  font-family: "Georgia", serif;
  text-align: center;
  margin: 0;
  padding-top: 60px;

  background-image: url("background.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;

  color: #2d2d2d;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(255, 245, 250, 0.75);
  z-index: -1;
}


.garden {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 420px;
  margin: 40px auto;
  transition: opacity 1s ease;
}

/* 🌷 Wrapper handles hover */
.tulip-wrapper {
  position: absolute;
  transition: transform 0.3s ease;
}

.tulip-wrapper:hover {
  transform: scale(1.15);
}

/* 🌷 Tulip itself (JS controls this) */
.tulip {
  width: 140px;
  pointer-events: auto;

  animation: sway 4s ease-in-out infinite;
  transform-origin: bottom center;
}

.tulip-wrapper:nth-child(odd) .tulip {
  animation-duration: 5s;
}

.tulip-wrapper:nth-child(even) .tulip {
  animation-duration: 3.5s;
}

.tulip-wrapper:nth-child(3n) .tulip {
  animation-delay: -1.5s;
}

.tulip-wrapper:nth-child(4n) .tulip {
  animation-delay: -3s;
}

.tulip-wrapper:nth-child(3n) .tulip {
  animation-delay: -1.5s;
}

.tulip-wrapper:nth-child(4n) .tulip {
  animation-delay: -0.8s;
}




.hidden {
  display: none;
}

#memories {
  opacity: 0;
  transition: opacity 1s ease;
}
.slideshow {
  width: 300px;
  margin: 20px auto;
}

.slideshow img {
  width: 100%;
  border-radius: 16px;
  opacity: 1;
  transition: opacity 1s ease;
}
/* Immersive photo reveal */
.photo-container {
  width: 100vw;
  height: 100vh;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}



#caption {
  margin-top: 24px;
  font-size: 20px;
  color: #333;
  max-width: 800px;
}
#title {
  font-size: 64px;
  margin-bottom: 10px;
  font-weight: normal;
}

#subtitle {
  font-size: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 40px;
}
/* ===== Polaroid-style photo ===== */

#photo {
  display: block;
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 12px;
}

.photo-wrapper {
  position: relative;

  background: white;
  padding: 20px 20px 60px 20px;
  border-radius: 20px;

  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.25),
    inset 0 0 0 1px #e6e6e6;

  opacity: 0;
  transform: rotate(-2.5deg);

  transition:
    opacity 1.2s ease,
    transform 0.6s ease;
}




/* ===== Film grain / paper texture ===== */




/* ===== Film grain / paper texture ===== */


.photo-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;

  background-image: url("grain.png");
  background-size: cover;

  opacity: 0.15;
  mix-blend-mode: multiply;

  pointer-events: none;
  border-radius: 20px;
}

.photo-caption {
  margin-top: 14px;

  font-family: "Caveat", cursive;
  font-size: 26px;
  font-weight: 600;

  color: #3a3a3a;
  text-align: center;

  letter-spacing: 0.4px;
}


#password-screen {
  position: fixed;
  inset: 0;
  background: #f7f5f2;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.password-box {
  background: white;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  font-family: "Caveat", cursive;
}

.password-box h1 {
  font-size: 48px;
  margin-bottom: 10px;
}

.password-box input {
  padding: 12px 16px;
  font-size: 18px;
  border-radius: 12px;
  border: 1px solid #ddd;
  margin-top: 10px;
  width: 100%;
}

.password-box button {
  margin-top: 16px;
  padding: 10px 20px;
  border-radius: 12px;
  border: none;
  background: #e6c7c2;
  font-size: 18px;
  cursor: pointer;
}

#password-error {
  margin-top: 10px;
  color: #c44;
}

.hidden {
  display: none;
}


#back-btn {
  margin-top: 20px;
  padding: 10px 18px;
  font-size: 14px;
  border: 1px solid #ccc;
  background: white;
  cursor: pointer;
  border-radius: 20px;
}

#back-btn:hover {
  background: #f5f5f5;
}

@keyframes sway {
  0% {
    transform: rotate(-2deg);
  }
  50% {
    transform: rotate(2deg);
  }
  100% {
    transform: rotate(-2deg);
  }
}




