body {
  margin: 0;
  overflow-x: hidden;
  font-family: Arial, sans-serif;
}

/* turquoise background for message section */
.turquoiseBg {
  background: linear-gradient(to bottom right, #66d1c7, #87e7df);
  position: relative;
  height: 100vh;
}

/* animations */
@keyframes fadeIn {from{opacity:0;} to{opacity:1;}}
@keyframes slideLeft {from{transform:translateX(200px); opacity:0;} to{transform:translateX(0); opacity:1;}}
@keyframes slideRight {from{transform:translateX(-200px); opacity:0;} to{transform:translateX(0); opacity:1;}}
@keyframes slideUp {from{transform:translateY(200px); opacity:0;} to{transform:translateY(0); opacity:1;}}
@keyframes slideDown {from{transform:translateY(-200px); opacity:0;} to{transform:translateY(0); opacity:1;}}
@keyframes rollIn {from{transform:rotate(-180deg) scale(0.2); opacity:0;} to{transform:rotate(0) scale(1); opacity:1;}}
@keyframes zoomIn {from{transform:scale(0.4); opacity:0;} to{transform:scale(1); opacity:1;}}

/* message page */
.messagePage {
  min-height: 100vh;
  background: linear-gradient(to bottom, #e8ffff, #c9f3f7, #e8ffff);
  position: relative;
}

.messagePage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("https://i.imgur.com/o6xZ0sN.png");
  opacity: 0.06;
  pointer-events: none;
}

.messageBox {
  max-width: 600px;
  margin: 140px auto;
  padding: 35px;
  background: white;
  border-radius: 18px;
  border: 2px solid gold;
  box-shadow: 0 8px 26px rgba(0,0,0,0.18);
}

.messageBox h2 {
  position: relative;
  margin-bottom: 18px;
}

.messageBox h2::after {
  content: "";
  width: 60px;
  height: 3px;
  background: gold;
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
}

/* slides */
#slides {
  scroll-snap-type: y mandatory;
}

.slide {
  height: 100vh;
  scroll-snap-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* polaroid card */
.polaroid {
  background: #fafafa;
  padding: 16px;
  border: 1px solid #ccc;
  border-bottom: 50px solid #fafafa;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  max-width: 380px;
  opacity: 0;
  transform: scale(0.8);
}

.polaroid img {
  width: 100%;
  border-radius: 6px;
}

.caption {
  margin-top: 12px;
  font-size: 14px;
  text-align: center;
  color: #444;
}

/* final message section */
#finalMessage {
  min-height: 80vh;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 2s ease;
  position: relative;
  z-index: 3;
}

#finalMessage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.45), rgba(255,255,255,0));
  z-index: 1;
}

#finalMessage h2 {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 48px 50px;
  border-radius: 22px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.95), rgba(255,255,255,0.88));
  border: 2px solid gold;
  color: #333;
  text-align: center;
  font-family: "Georgia", serif;
  font-size: 20px;
  line-height: 1.75;
  box-shadow: 0 12px 40px rgba(0,0,0,0.22), 0 0 40px rgba(255,215,120,0.4);
  animation: finalFloat 2s ease forwards;
}

@keyframes finalFloat {
  from { opacity: 0; transform: translateY(40px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* signature line */
#finalMessage h2 br:last-of-type + br + * {
  font-family: "Brush Script MT", "Dancing Script", cursive;
  font-size: 28px;
  display: block;
  margin-top: 16px;
  color: #222;
}

/* collage background */
#collageBackground {
  position: fixed;
  inset: 0;
  background-image: url("photos/collage_fixed.jpg");
  background-size: cover;
  background-position: center;
  filter: blur(18px) brightness(0.55);
  z-index: -2;
}

/* Fixed overlay that shows hearts */
.globalHearts {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

/* The actual heart elements will attach to #heartLayer */
#heartLayer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Heart style */
.heart {
  position: absolute;
  width: 28px;
  height: 28px;
  background-image: url("photos/heart.png");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0;
  animation-name: floatUp;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.8);
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translateY(-120vh) scale(1.2);
    opacity: 0;
  }
}

/* Intro mixed style */
.introMixed {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 88vh;
  position: relative;
  padding: 30px;
}

/* Cinematic white card with gold accent */
.introCard {
  background: rgba(255,255,255,0.88);
  padding: 50px 55px;
  max-width: 680px;
  border-radius: 22px;
  border-top: 6px solid gold;
  box-shadow:
    0 10px 40px rgba(0,0,0,0.28),
    0 0 35px rgba(255,215,120,0.35);
  text-align: center;
  animation: fadeIn 1.8s ease;
}

/* Title with romantic glow */
.introTitle {
  font-family: "Georgia", serif;
  font-size: 60px;
  color: #4a3b00;
  text-shadow:
    0 0 14px rgba(255,215,120,0.75),
    0 0 6px rgba(255,225,150,0.6);
  margin: 0 0 10px 0;
  animation: fadeIn 2s ease;
}

/* Thin gold divider */
.introDivider {
  width: 110px;
  height: 4px;
  background: gold;
  border-radius: 3px;
  margin: 18px auto 26px auto;
  animation: fadeIn 2.3s ease;
}

/* Intro description text */
.introText {
  font-size: 22px;
  line-height: 1.65;
  color: #333;
  margin-bottom: 20px;
  font-family: "Georgia", serif;
  animation: fadeIn 2.5s ease;
}

/* Small cute but subtle floating heart */
.introHeart {
  font-size: 34px;
  animation: heartFloat 3s ease-in-out infinite;
  opacity: 0.85;
  margin-bottom: 12px;
}

@keyframes heartFloat {
  0%   { transform: translateY(0); opacity: 0.85; }
  50%  { transform: translateY(-10px); opacity: 1; }
  100% { transform: translateY(0); opacity: 0.85; }
}

/* Scroll cue */
.scrollCue {
  margin-top: 10px;
  font-size: 18px;
  color: #333;
  opacity: 0.75;
  text-shadow: 0 0 5px rgba(255,255,255,0.8);
  animation: fadeIn 3s ease;
}


.polaroid {
  overflow: hidden;
}

.slide {
  transition: opacity 0.8s ease;
  opacity: 0;
}

.slide.active {
  opacity: 1;
}
