@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Poppins:wght@300;400;600&display=swap');

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #fff5f8;
  overflow-x: hidden;
}


#hearts-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.hero {
  position: relative;
  height: 100vh;
  background: url('photo5.jpg') center/cover no-repeat;
  background-size: 100% auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 182, 193, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero-content h1 {
  font-family: 'Great Vibes', cursive;
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
}

.hero-content button {
  background: #ffb6c1;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 25px;
  cursor: pointer;
  margin-top: 20px;
  color: white;
  transition: transform 0.3s ease;
}

.hero-content button:hover {
  transform: scale(1.1);
}

/* Timeline */
.timeline {
  padding: 60px 20px;
  background: #ffe4ec;
  text-align: center;
}

.timeline h2 {
  font-family: 'Great Vibes', cursive;
  font-size: 2.5rem;
  color: #d63384;
  margin-bottom: 40px;
}

.timeline-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.timeline-item {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 20px;
  width: 250px;
  transition: transform 0.3s ease;
}

.timeline-item:hover {
  transform: translateY(-5px);
}

.timeline-item span {
  font-size: 2rem;
}

/* Gallery */
.gallery {
  padding: 60px 20px;
  background: #fff5f8;
  text-align: center;
}

.gallery h2 {
  font-family: 'Great Vibes', cursive;
  color: #e91e63;
  margin-bottom: 40px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.gallery-grid img {
  width: 100%;
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Love Messages */
.love-messages {
  background: #ffe0eb;
  padding: 60px 20px;
  text-align: center;
}

.message-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.heart {
  font-size: 2rem;
  cursor: pointer;
  position: relative;
}

.heart .message {
  display: none;
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffb6c1;
  padding: 10px;
  border-radius: 15px;
  color: white;
  font-size: 0.9rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.heart .message.show {
  display: block;
  opacity: 1;
}


/* Mini Game */
.game {
  background: #fff0f5;
  padding: 60px 20px;
  text-align: center;
}

.game h2 {
  font-family: 'Great Vibes', cursive;
  color: #c2185b;
  margin-bottom: 20px;
}

.quiz button {
  margin: 10px;
  padding: 10px 15px;
  border-radius: 20px;
  border: none;
  background: #ffb6c1;
  color: white;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.quiz button:hover {
  transform: scale(1.1);
}

.love-note {
  background: linear-gradient(145deg, #ffc2d1, #ffe6eb);
  padding: 60px 20px;
  text-align: center;
}

.love-note h2 {
  font-family: 'Great Vibes', cursive;
  font-size: 2.5rem;
  color: #c2185b;
  margin-bottom: 20px;
}

.love-note p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
  color: #5e2a2a;
}

footer {
  background: #d63384;
  color: white;
  display: flex;              /* enable flex layout */
  justify-content: space-between;  /* space items apart */
  padding: 15px 30px;         /* top/bottom 15px, left/right 30px */
  font-size: 1rem;
  align-items: center;        /* vertically center text */
}

.footer-left {
  /* optional: add a tiny left offset */
  margin-left: 5px;
}

.footer-right {
  /* optional: add a tiny right offset */
  margin-right: 5px;
}


/* Falling Hearts Animation */
@keyframes fall {
  0% {
    transform: translateY(-10%) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) rotate(360deg);
    opacity: 0;
  }
}

/* Apply pulse when active */
#playPauseButton.playing {
  animation: pulse 0.8s infinite;
}

#playPauseButton {
  position: fixed;
  top: 15px;
  right: 15px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  font-size: 1.5em;
  color: #fff;
  box-shadow: 0 0 10px rgba(255,182,193,0.5);
  z-index: 1000;
}

#volumeSlider {
  display: none;               /* hidden initially */
  position: fixed;             /* fixed to viewport */
  top: 80px;                   /* distance below button */
  right: 38px;                 /* same as button’s right edge */
  transform: translateX(50%);  /* move left by half of its width to center */
  -webkit-appearance: slider-vertical;
  writing-mode: bt-lr;
  width: 8px;
  height: 120px;
  accent-color: #ff69b4;
  cursor: pointer;
  z-index: 999;
}

.gallery img {
  width: 100%;
  height: 500px;       /* adjust this value if you want them taller/shorter */
  object-fit: cover;   /* makes all images fill the box evenly */
  border-radius: 12px; /* optional: keeps the cute rounded style */
}

/* Lightbox background */
.lightbox {
  display: none;                 /* hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Lightbox image */
.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255,255,255,0.4);
  animation: fadeIn 0.3s ease;
}

/* Close (X) button */
.lightbox .close {
  position: absolute;
  top: 25px;
  right: 40px;
  font-size: 48px;
  color: white;
  cursor: pointer;
  font-weight: bold;
  z-index: 10000;
  transition: 0.3s ease;
}

.lightbox .close:hover {
  transform: scale(1.2);
  color: #ff758f;
}

/* Fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Make clicking image feel like a button */
.gallery img {
  cursor: pointer;
}

.back-link-container {
    position: fixed; bottom: 30px; left: 50%;
    transform: translateX(-50%); z-index: 1000;
}
.back-link {
    display: inline-block; padding: 12px 25px;
    background: linear-gradient(135deg, #fcb6c7, #f88da6);
    color: white; text-decoration: none; font-weight: bold;
    font-family: 'Segoe UI', sans-serif; border-radius: 50px;
    transition: transform 0.2s, background 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.back-link:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #f88da6, #fcb6c7);
}