:root {
  /* Existing variables */
  --primary: #fff;
  --bg-color: #ffccd5; /* Pastel pink background */
  
  /* Add navy blue variables */
  --navy-blue: #1a3561;
  --navy-light: #2c4e8a;
  --navy-accent: #0f294d;
}

/* Additional styles using the new navy blue variables */
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: var(--bg-color);
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow-y: auto; /* Keep this as hidden */
}

/* Full-screen question styles */
.question-container {
  height: auto; /* Remove fixed height */
  min-height: 100vh; /* Ensure it fills the viewport */
  overflow-y: auto; /* Allow scrolling */
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, #ffccd5, #ffb6c1);
}

.question-container h2 {
  color: white;
  font-size: 4.5rem;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  animation: pulse 2s infinite;
  font-family: 'Dancing Script', cursive;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Optional: Add a subtle text glow effect */
@keyframes pulse {
  0% { transform: scale(1); text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); }
  50% { transform: scale(1.05); text-shadow: 2px 2px 8px rgba(255, 255, 255, 0.4); }
  100% { transform: scale(1); text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); }
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.buttons button {
  padding: 15px 50px;
  border: none;
  border-radius: 50px;
  background-color: white;
  color: var(--heart-color);
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 182, 193, 0.4);
}

.buttons button:hover {
  transform: translateY(-5px);
  box-shadow: 0 7px 20px rgba(255, 182, 193, 0.6);
}

#yes-btn {
  background-color: navy; /* Change background color to navy blue */
  color: white; /* Ensure the text is readable */
}

#yes-btn:hover {
  background-color: #001f4d; /* Slightly darker navy blue on hover */
}

#no-btn:hover {
  background-color: #f9f9f9;
}

/* Style for the "Open" and "Gusto ko ng Hug" buttons */
#yes-btn, #no-btn {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    background-color: #ff85a2;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#yes-btn:hover, #no-btn:hover {
    background-color: #ff6b8d;
    transform: scale(1.05);
}

#yes-btn:active, #no-btn:active {
    background-color: #ff4f73;
    transform: scale(0.95);
}

/* Envelope styles */
.container > .envelope-wrapper {
  background: transparent; /* Remove plain background */
  box-shadow: none;
  animation: fadeIn 1s;
  perspective: 1000px; /* Add 3D perspective */
}

.envelope-wrapper > .envelope {
  position: relative;
  width: 320px;
  height: 220px;
  background: linear-gradient(135deg, #fff0f5, #ffe6ee); /* Soft gradient background */
  border-radius: 15px; /* Rounded corners */
  box-shadow: 
    0 15px 25px rgba(255, 182, 193, 0.4),
    0 5px 10px rgba(0, 0, 0, 0.05); /* Layered shadow for depth */
  transform-style: preserve-3d;
  transition: transform 0.5s;
  overflow: visible;
  left: 45%; /* Center horizontally */
  transform: translate(-45%, 0); /* Adjust the horizontal offset slightly */
}

/* Decorative pattern on envelope */
.envelope::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(255, 182, 193, 0.1) 0, rgba(255, 182, 193, 0.1) 5px, transparent 5px),
    radial-gradient(circle at 80% 40%, rgba(255, 182, 193, 0.1) 0, rgba(255, 182, 193, 0.1) 5px, transparent 5px),
    radial-gradient(circle at 40% 60%, rgba(255, 182, 193, 0.1) 0, rgba(255, 182, 193, 0.1) 5px, transparent 5px),
    radial-gradient(circle at 70% 80%, rgba(255, 182, 193, 0.1) 0, rgba(255, 182, 193, 0.1) 5px, transparent 5px);
  background-size: 100px 100px;
  border-radius: 15px;
  z-index: 1;
}

/* Create the envelope flap */
.envelope::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ffebf3, #ffd6e5);
  border-radius: 15px;
  clip-path: polygon(0 0, 50% 70%, 100% 0, 100% 50%, 50% 70%, 0 50%);
  transform-origin: top;
  transition: all 0.5s ease-in-out;
  box-shadow: 0 -3px 6px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

/* Decorative edge on the envelope flap */
.envelope::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: 20px; /* Height of the decorative edge */
  background: linear-gradient(to right, 
    transparent 0%, transparent 5%, 
    #ffc1d5 5%, #ffc1d5 10%,
    transparent 10%, transparent 15%, 
    #ffc1d5 15%, #ffc1d5 20%,
    transparent 20%, transparent 25%, 
    #ffc1d5 25%, #ffc1d5 30%,
    transparent 30%, transparent 35%, 
    #ffc1d5 35%, #ffc1d5 40%,
    transparent 40%, transparent 45%, 
    #ffc1d5 45%, #ffc1d5 50%,
    transparent 50%, transparent 55%, 
    #ffc1d5 55%, #ffc1d5 60%,
    transparent 60%, transparent 65%, 
    #ffc1d5 65%, #ffc1d5 70%,
    transparent 70%, transparent 75%, 
    #ffc1d5 75%, #ffc1d5 80%,
    transparent 80%, transparent 85%, 
    #ffc1d5 85%, #ffc1d5 90%,
    transparent 90%, transparent 95%, 
    #ffc1d5 95%, #ffc1d5 100%
  );
  border-radius: 15px 15px 0 0;
  z-index: 3;
}

/* Add a decorative wax seal */
.heart {
  position: absolute;
  top: 35%;
  left: 50%;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #ff85a2, #e75480); /* Rich pink gradient */
  z-index: 4;
  transform: translate(-50%, -20%) rotate(45deg);
  transition: transform 0.5s ease-in-out 1s;
  box-shadow: 
    0 3px 10px rgba(231, 84, 128, 0.5),
    0 1px 5px rgba(0, 0, 0, 0.2); /* Enhanced shadow for 3D effect */
  cursor: pointer;
  border-radius: 2px;
}

.heart:before, 
.heart:after {
  content: "";
  position: absolute;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #ff85a2, #e75480); /* Match heart color */
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.heart:before {
  top: -16px;
}

.heart:after {
  right: 16px;
}

/* Add shine effect to heart/seal */
.heart::before, 
.heart::after,
.heart {
  background: linear-gradient(
    135deg, 
    #ff85a2 0%, 
    #ff85a2 40%, 
    #ff9db7 50%, 
    #ff85a2 60%, 
    #e75480 100%
  );
}

/* Animation when envelope is opened */
.flap > .envelope::after {
  transform: rotateX(180deg); /* Flip the envelope flap */
  z-index: 0;
}

.flap > .heart {
  transform: translate(-50%, -50%) scale(1.2) rotate(45deg);
  box-shadow: 
    0 5px 15px rgba(231, 84, 128, 0.6),
    0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Add to your style.css file */
#hugs-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  animation: fadeIn 1s;
}

#hugs-container img {
  max-width: 300px;
  border-radius: 10px;
  box-shadow: 0 10px 30px var(--shadow-color);
  transition: transform 0.3s ease;
}

#hugs-container img:hover {
  transform: scale(1.05);
}

#hugs-container h3 {
  margin-top: 30px;
  font-family: 'Dancing Script', cursive;
  font-size: 2.5rem;
  color: var(--txt-color);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

/* Update the letter styles to look like a paper note */
.letter {
  display: none;
  position: relative;
  width: 80%;
  max-width: 500px;
  margin: 50px auto;
  padding: 30px;
  background: #fff9fa;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background-image: 
    linear-gradient(#f9ecef 1px, transparent 1px),
    linear-gradient(90deg, #f9ecef 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: -1px -1px;
  border: 1px solid #ffe0eb;
  animation: float 4s ease-in-out infinite;
  z-index: 100;
  max-height: 90vh; /* Prevent overflow */
  overflow-y: auto; /* Enable scrolling for long content */
}

.letter:before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 30px;
  background: #ffd6e5;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: -1;
}

.letter .text {
  color: #8b5d77;
  line-height: 1.6;
  position: relative;
}

.letter .text strong {
  display: block;
  font-family: 'Dancing Script', cursive;
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #e75480;
}

.letter .text p {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

/* Add some decorative elements */
.letter:after {
  content: '❤';
  position: absolute;
  bottom: 15px;
  right: 20px;
  font-size: 1.5rem;
  color: #ffd6e5;
  opacity: 0.6;
}

/* Floating animation */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* Additional decorative corners */
.letter .text:before,
.letter .text:after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  border: 3px solid #ffd6e5;
  opacity: 0.3;
}

.letter .text:before {
  top: -5px;
  left: -5px;
  border-right: none;
  border-bottom: none;
  border-radius: 10px 0 0 0;
}

.letter .text:after {
  bottom: -5px;
  right: -5px;
  border-left: none;
  border-top: none;
  border-radius: 0 0 10px 0;
}

/* Button to view photos */
.view-memories {
  text-align: center;
  margin-top: 30px;
}

.view-memories button {
  background: linear-gradient(135deg, #ffa6c9, #ff85a2);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 50px;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(255, 166, 201, 0.4);
  transition: all 0.3s ease;
  font-family: 'Dancing Script', cursive;
}

.view-memories button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(255, 166, 201, 0.6);
}

/* Photo Gallery Styles */
#photo-gallery {
  position: relative;
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.85);
  background-image: url('mariebg.png');
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(255, 133, 162, 0.3);
  text-align: center;
  animation: fadeIn 1s;
}

/* Photo Gallery Styles - Fixed image size */
.gallery-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 400px;
}

.photo-container {
  position: relative;
  width: 400px; /* Fixed width */
  height: 300px; /* Fixed height */
  margin: 0 auto;
  overflow: hidden;
  border-radius: 10px;
}

.photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo.active {
  opacity: 1;
}

.photo img {
  width: 400px; /* Fixed width */
  height: 300px; /* Fixed height */
  object-fit: cover; /* Makes image fill the fixed dimensions */
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.arrow {
  color: var(--navy-blue);
  background: rgba(255, 255, 255, 0.9);
}

.arrow {
  font-size: 2rem;
  color: #ff85a2;
  cursor: pointer;
  margin: 0 15px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(255, 133, 162, 0.2);
  transition: all 0.3s ease;
  z-index: 10;
}

.arrow:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 5px 15px rgba(255, 133, 162, 0.4);
}

.gallery-caption {
  margin-top: 20px;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 10px;
  border-radius: 8px;
}

.gallery-caption h3 {
  font-family: 'Dancing Script', cursive;
  color: var(--navy-blue);
  margin-bottom: 5px;
}

.gallery-caption p {
  color: #8b5d77;
  font-size: 1.1rem;
}

.back-button {
  margin-top: 25px;
}

.back-button button {
  background: #ffd6e5;
  color: #e75480;
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Dancing Script', cursive; /* Romantic font */
  font-weight: 600; /* Make it slightly bolder */
  letter-spacing: 0.5px; /* Slightly increase letter spacing */
}

.back-button button:hover {
  background: #ffb6c1;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 182, 193, 0.4); /* Add subtle shadow on hover */
}

/* Enhanced Floating Hearts/Icons Animation */
.floating-icons {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

/* Create individual floating elements with ascending animation */
.floating-icon {
  position: absolute;
  bottom: -50px; /* Start below the screen */
  opacity: 1;
  animation-name: float-ascending;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* Position icons horizontally with different timings */
.floating-icon:nth-child(1) { left: 5%; animation-duration: 8s; }
.floating-icon:nth-child(2) { left: 15%; animation-duration: 10s; animation-delay: 1s; }
.floating-icon:nth-child(3) { left: 25%; animation-duration: 7s; animation-delay: 2.5s; }
.floating-icon:nth-child(4) { left: 35%; animation-duration: 9s; animation-delay: 3s; }
.floating-icon:nth-child(5) { left: 45%; animation-duration: 11s; animation-delay: 4s; }
.floating-icon:nth-child(6) { left: 55%; animation-duration: 6s; animation-delay: 5s; }
.floating-icon:nth-child(7) { left: 65%; animation-duration: 9s; animation-delay: 2s; }
.floating-icon:nth-child(8) { left: 75%; animation-duration: 7.5s; animation-delay: 3.5s; }
.floating-icon:nth-child(9) { left: 10%; animation-duration: 8.5s; animation-delay: 0.5s; }
.floating-icon:nth-child(10) { left: 20%; animation-duration: 6.5s; animation-delay: 1.5s; }
.floating-icon:nth-child(11) { left: 30%; animation-duration: 9.5s; animation-delay: 0.7s; }
.floating-icon:nth-child(12) { left: 40%; animation-duration: 7.8s; animation-delay: 2.2s; }
.floating-icon:nth-child(13) { left: 50%; animation-duration: 5.5s; animation-delay: 3.3s; }
.floating-icon:nth-child(14) { left: 60%; animation-duration: 8.2s; animation-delay: 1.8s; }
.floating-icon:nth-child(15) { left: 70%; animation-duration: 6.8s; animation-delay: 4.2s; }
.floating-icon:nth-child(16) { left: 80%; animation-duration: 7.2s; animation-delay: 0s; }
.floating-icon:nth-child(17) { left: 85%; animation-duration: 8.8s; animation-delay: 3s; }
.floating-icon:nth-child(18) { left: 90%; animation-duration: 7s; animation-delay: 2s; }
.floating-icon:nth-child(19) { left: 95%; animation-duration: 9s; animation-delay: 1s; }
.floating-icon:nth-child(20) { left: 2%; animation-duration: 10s; animation-delay: 3.5s; }

/* Ascending animation */
@keyframes float-ascending {
  0% {
    bottom: -50px;
    transform: translateX(0) rotate(0);
  }
  25% {
    transform: translateX(15px) rotate(10deg);
  }
  50% {
    transform: translateX(-15px) rotate(-10deg);
  }
  75% {
    transform: translateX(10px) rotate(5deg);
  }
  100% {
    bottom: 105%;
    transform: translateX(-10px) rotate(-5deg);
  }
}

/* Style the images inside floating icons */
.floating-icon img {
  width: auto;
  height: 50px;
  filter: drop-shadow(0 0 3px rgba(255, 182, 193, 0.5));
  opacity: 1;
}

/* Create special horizontal animation for cina.png */
@keyframes float-horizontal {
  0% {
    right: -50px; /* Start off-screen to the right */
    left: auto;
    bottom: 20%; /* Position at 20% from the bottom */
    transform: translateY(0) rotate(0);
  }
  25% {
    transform: translateY(15px) rotate(10deg);
  }
  50% {
    transform: translateY(-15px) rotate(-10deg);
    bottom: 30%; /* Slight upward movement */
  }
  75% {
    transform: translateY(10px) rotate(5deg);
  }
  100% {
    right: 105%; /* Move all the way past the left edge */
    left: auto;
    bottom: 40%; /* End higher than started */
    transform: translateY(-10px) rotate(-5deg);
  }
}

/* Make cina.png larger than other floating icons */
.floating-icon img[src*="cina.png"] {
  height: 50px; /* Increased from the standard 30px */
  transform: scale(1.2); /* Additional scaling for emphasis */
  filter: drop-shadow(0 0 5px rgba(255, 182, 193, 0.7)); /* Enhanced glow effect */
  opacity: 1;
}

/* Position cina.png elements for horizontal movement at different heights */
.floating-icon:nth-child(4) {
  left: auto !important;
  right: -50px;
  bottom: 20% !important; /* First one at 20% from bottom */
  animation-name: float-horizontal !important;
  animation-duration: 19s !important;
}

.floating-icon:nth-child(8) {
  left: auto !important;
  right: -50px;
  bottom: 40% !important; /* Second one at 40% from bottom */
  animation-name: float-horizontal !important;
  animation-duration: 12s !important; /* Slightly faster */
}

.floating-icon:nth-child(12) {
  left: auto !important;
  right: -50px;
  bottom: 60% !important; /* Third one at 60% from bottom */
  animation-name: float-horizontal !important;
  animation-duration: 18s !important; /* Slower */
}

.floating-icon:nth-child(16) {
  left: auto !important;
  right: -50px;
  bottom: 80% !important; /* Fourth one at 80% from bottom */
  animation-name: float-horizontal !important;
  animation-duration: 11s !important; /* Fastest */
}

/* Music Player Styles */
/* Initially hide the music player completely */
.music-player {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 240, 245, 0.8); /* Light pink transparent background */
    padding: 10px 20px;
    display: none; /* Initially hidden */
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 15px rgba(255, 182, 193, 0.3);
    z-index: 1000;
    backdrop-filter: blur(5px); /* Creates a frosted glass effect */
    border-bottom: 1px solid rgba(255, 182, 193, 0.5);
    animation: fadeIn 0.5s ease-in-out;
}

.music-player.visible {
    display: flex;
}

.music-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

#play-pause-btn {
    background: transparent;
    border: 1px solid rgba(219, 112, 147, 0.7);
    color: #db7093;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

#play-pause-btn:hover {
    background: rgba(219, 112, 147, 0.1);
    transform: scale(1.05);
}

.song-info {
    display: flex;
    flex-direction: column;
}

.song-title {
    color: #db7093;
    font-family: 'Dancing Script', cursive;
    font-size: 1.1rem;
    margin: 0;
}

.song-artist {
    color: #8b5d77;
    font-size: 0.8rem;
    font-style: italic;
}

/* Music visualizer effect */
.music-player::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, #ff69b4, #ffb6c1, #ff69b4);
    animation: musicPulse 2s ease-in-out infinite;
}

@keyframes musicPulse {
    0%, 100% { transform: scaleX(0.3); opacity: 0.5; }
    50% { transform: scaleX(1); opacity: 0.8; }
}

/* Countdown styles */
.countdown-container {
  margin: 30px auto;
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 240, 245, 0.8));
  border-left: 4px solid var(--navy-blue);
  box-shadow: 0 5px 15px rgba(26, 53, 97, 0.2), 0 3px 8px var(--shadow-color);
  padding: 15px;
  border-radius: 10px;
}

.countdown-container h3 {
  font-family: 'Dancing Script', cursive;
  color: var(--txt-color);
  margin-bottom: 10px;
}

#countdown {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.time-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 2px solid var(--navy-blue);
}

.time-section span:first-child {
  font-size: 2rem;
  font-weight: bold;
  color: var(--txt-color);
}

.time-label {
  font-size: 0.8rem;
  color: #8b5d77;
}

/* Countdown toggle styles */
.countdown-toggle {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
  gap: 10px;
}

.toggle-btn {
  padding: 8px 15px;
  background: #ffd6e5;
  border: 2px solid #ff85a2;
  border-radius: 20px;
  color: #e75480;
  font-family: 'Dancing Script', cursive;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.toggle-btn.active {
  background: #ff85a2;
  color: white;
  transform: scale(1.05);
  box-shadow: 0 3px 10px rgba(255, 133, 162, 0.4);
}

.toggle-btn:hover:not(.active) {
  background: #ffc1d5;
  transform: translateY(-2px);
}

@media screen and (max-width: 768px) {
  .toggle-btn {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
}

/* Fade-out animation */
.fade-out {
  animation: fadeOut 0.5s forwards;
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUpFade {
  0% {
    opacity: 1;
    top: 20%;
  }
  100% {
    opacity: 0;
    top: 0%;
  }
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
  /* General adjustments */
  body {
    overflow-x: hidden;
  }
  
  .container {
    padding: 10px;
  }
  
  /* Question container adjustments */
  .question-container h2 {
    font-size: 2.5rem;
    padding: 0 15px;
  }
  
  .buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .buttons button {
    padding: 12px 40px;
    font-size: 1.2rem;
  }
  
  /* Envelope adjustments */
  .envelope-wrapper > .envelope {
    width: 280px;
    height: 190px;
  }
  
  /* Letter adjustments */
  .letter {
    width: 90%;
    padding: 20px;
    margin: 30px auto;
  }
  
  .letter .text strong {
    font-size: 1.5rem;
  }
  
  .letter .text p {
    font-size: 1rem;
  }
  
  /* Photo gallery adjustments */
  #photo-gallery {
    width: 95%;
    padding: 15px;
  }
  
  .gallery-container {
    height: 320px;
  }
  
  .photo-container {
    width: 280px;
    height: 210px;
  }
  
  .photo img {
    width: 280px;
    height: 210px;
  }
  
  .arrow {
    font-size: 1.5rem;
    padding: 8px;
    margin: 0 5px;
  }
  
  /* Countdown adjustments */
  .countdown-container {
    padding: 10px;
    width: 95%;
  }
  
  .countdown-container h3 {
    font-size: 1.2rem;
  }
  
  #countdown {
    gap: 10px;
  }
  
  .time-section span:first-child {
    font-size: 1.5rem;
  }
  
  .time-label {
    font-size: 0.7rem;
  }
  
  /* Music player adjustments */
  .music-player {
    padding: 8px 10px;
  }
  
  .song-title {
    font-size: 0.9rem;
  }
  
  .song-artist {
    font-size: 0.7rem;
  }
}

/* For very small screens */
@media screen and (max-width: 360px) {
  .question-container h2 {
    font-size: 2rem;
  }
  
  .envelope-wrapper > .envelope {
    width: 240px;
    height: 160px;
  }
  
  .photo-container {
    width: 240px;
    height: 180px;
  }
  
  .photo img {
    width: 240px;
    height: 180px;
  }
}

/* Confetti styles */
.confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  top: -10px;
  border-radius: 0;
  animation: confetti-fall 6s linear forwards;
  z-index: 9999;
  pointer-events: none;
}

@keyframes confetti-fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}
.coupon {
  width: 90%;
  max-width: 400px;
  margin: 30px auto;
  text-align: center;
  animation: fadeIn 1s;
}

.coupon-inner {
  background: #fff;
  padding: 30px;
  border: 2px dashed var(--navy-blue);
  border-radius: 15px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(26, 53, 97, 0.2);
  margin-bottom: 20px;
}

.coupon h2 {
  font-family: 'Dancing Script', cursive;
  color: #e75480;
  font-size: 2rem;
  margin-bottom: 15px;
}

.coupon h3 {
  font-family: 'Dancing Script', cursive;
  color: #ff85a2;
  font-size: 1.8rem;
  margin: 20px 0;
}

.coupon-text {
  color: #8b5d77;
  margin-bottom: 10px;
}

.coupon-note {
  font-style: italic;
  font-size: 0.9rem;
  color: #8b5d77;
  margin-top: 20px;
}

.coupon-signature {
  font-family: 'Dancing Script', cursive;
  font-size: 1.3rem;
  color: #e75480;
  margin-top: 25px;
}

.coupon-hearts {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Email form styles */
.email-form {
  margin: 20px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  box-shadow: 0 3px 10px rgba(255, 133, 162, 0.2);
}

.email-form h4 {
  font-family: 'Dancing Script', cursive;
  color: #e75480;
  margin-bottom: 15px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 2px solid #ffb6c1;
  border-radius: 25px;
  font-size: 1rem;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.3s;
}

.form-group input:focus {
  border-color: #ff85a2;
}

.send-btn {
  background: linear-gradient(135deg, var(--navy-light), var(--navy-blue));
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.send-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 166, 201, 0.4);
}

.email-status {
  margin-top: 15px;
  font-weight: bold;
}

.email-status.success {
  color: #4caf50; /* Green for success */
}

.email-status.error {
  color: #f44336; /* Red for error */
}
/* Love Messages Styles */
.love-messages {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 50;
}

.love-spot {
  position: absolute;
  width: 30px;
  height: 30px;
  background: radial-gradient(circle, rgba(255,182,193,0.7) 0%, rgba(255,182,193,0) 70%);
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  animation: pulse-soft 2s infinite;
}

.love-message {
  position: absolute;
  background: white;
  padding: 10px 15px;
  border-radius: 15px;
  box-shadow: 0 3px 10px rgba(255, 133, 162, 0.3);
  font-family: 'Dancing Script', cursive;
  color: var(--txt-color);
  font-size: 1.2rem;
  z-index: 100;
  pointer-events: none;
  animation: float-up 2s forwards;
}

@keyframes pulse-soft {
  0% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 0.8; }
  100% { transform: scale(1); opacity: 0.5; }
}

@keyframes float-up {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(-40px); opacity: 0; }
}

.floating-icon:nth-child(even) img {
  filter: hue-rotate(240deg) saturate(50%) brightness(0.7);
}

@media screen and (max-width: 390px) {
  .container {
    padding: 10px;
  }

  .question-container h2 {
    font-size: 2.5rem;
    padding: 0 15px;
  }

  .letter {
    padding: 15px;
    font-size: 1rem;
  }

  #photo-gallery {
    padding: 10px;
  }
}

#falling-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.heart-animation {
    position: absolute;
    color: red;
    animation: fall 6s linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100vh);
    }
}
/* Girlfriends Day Banner */
#girlfriends-day-banner {
  display: none;
  position: fixed;
  top: 20%;
  left: 0;
  right: 0;
  width: 100%;
  background: linear-gradient(to right, #ff85a2, #ff9db7, #ff85a2);
  padding: 15px 20px;
  text-align: center;
  z-index: 1000;
  animation: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

#girlfriends-day-banner .banner-content {
    max-width: 800px;
    margin: 0 auto;
}

#girlfriends-day-banner h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: #fff;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

#girlfriends-day-banner p {
    font-family: 'Poppins', sans-serif;
    color: #fff;
    margin: 5px 0 0;
}

@keyframes slideDown {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(0); }
}

/* Update the Floating Polaroids styles */
.floating-polaroids {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    display: none; /* Initially hidden, changed by JS */
}

.polaroid {
    position: absolute;
    background-color: #fff;
    padding: 10px 10px 35px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    width: 180px;
    transform: rotate(var(--rotation));
    animation: floatAcrossScreen 20s linear infinite;
}

.polaroid:nth-child(1) {
    top: 20%;
    animation-delay: 0s;
    --rotation: 5deg;
}

.polaroid:nth-child(2) {
    top: 40%;
    animation-delay: 7s;
    --rotation: -3deg;
}

.polaroid:nth-child(3) {
    top: 65%;
    animation-delay: 14s;
    --rotation: 7deg;
}

.polaroid img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border: 1px solid #f0f0f0;
}

.caption {
    text-align: center;
    font-family: 'Dancing Script', cursive;
    margin-top: 8px;
    font-size: 1rem;
    color: #ff85a2;
}

@keyframes floatAcrossScreen {
    0% { left: -200px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

@keyframes fadeInBanner {
  0% {
    opacity: 0;
    top: 20%;
  }
  100% {
    opacity: 1;
    top: 20%;
  }
}