body {
    background-color: #ffe6e6;
    font-family: 'Nunito', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    overflow: hidden; /* Important to hide scrollbars */
}

/* Make container full width/height for the success screen logic */
.container {
    text-align: center;
    position: relative;
    width: 100%;
    height: 100vh; /* Full screen height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Hide the overlay elements initially (intro/quiz/proposal are centered by flex) */
#intro-container, #quiz-container, #proposal-container {
    background: rgba(255, 255, 255, 0.8); /* Optional: slight box for readability */
    padding: 30px;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    z-index: 10;
}

/* --- SCROLLING BACKGROUND STYLES --- */
#success-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.sliding-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Puts it behind text */
}

.slide-track {
    display: flex;
    width: calc(100vw * 4); /* Width of 8 images approx, but flex handles it */
    height: 100%;
    animation: scroll 60s linear infinite; /* Adjust '20s' to make it faster/slower */
}

.slide {
    height: 100%;
    width: 50vw; /* Shows 2 photos at a time on screen. Change to 100vw for 1 photo. */
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures photos cover the area without stretching */
    filter: brightness(0.7); /* Darkens photos slightly so white text is readable */
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50vw * 4)); } /* Moves left by width of 4 images */
}

/* --- SUCCESS TEXT OVERLAY --- */
.overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10;
    background: rgba(0, 0, 0, 0.4); /* Dark glass box */
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(5px); /* Blurs the background photos slightly behind text */
    border: 1px solid rgba(255,255,255,0.3);
}

.overlay-content h1 {
    color: #fff; /* White text for contrast */
    text-shadow: 0 0 10px rgba(231, 76, 60, 0.8);
}
.overlay-content p {
    color: #eee;
}

/* --- EXISTING STYLES (Keep these) --- */
h1 {
    color: #ff4d6d;
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    margin-bottom: 20px;
}
p {
    color: #590d22;
    font-size: 1.2rem;
    margin-bottom: 20px;
}
.gif { max-width: 250px; border-radius: 15px; margin-bottom: 20px; }
.heart-meter { margin-bottom: 20px; filter: drop-shadow(0 0 10px rgba(231, 76, 60, 0.4)); }

button {
    padding: 15px 30px;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s;
    font-family: 'Nunito', sans-serif;
    font-weight: bold;
}
#start-btn { background-color: #ff4d6d; color: white; box-shadow: 0 5px 15px rgba(255, 77, 109, 0.4); }
#start-btn:hover { transform: scale(1.1); background-color: #d63354; }

.buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; margin-top: 20px; }
.quiz-option { background-color: #ff8fa3; color: white; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.quiz-option:hover { background-color: #ff4d6d; transform: scale(1.05); }

#yes-btn { background-color: #2ecc71; color: white; box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4); }
#no-btn { background-color: #e74c3c; color: white; box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4); position: absolute; }
#feedback-msg { margin-top: 15px; font-weight: bold; color: #e74c3c; min-height: 20px; }
.signature { margin-top: 30px; font-family: 'Dancing Script', cursive; font-size: 2rem; }
/* --- NEW ADDITIONS --- */

/* 1. Floating Hearts Animation */
.floating-hearts {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden;
    z-index: 0; 
    pointer-events: none;
}

.floating-hearts span {
    position: absolute;
    bottom: -50px;
    font-size: 30px;
    animation: floatUp 15s linear infinite;
    opacity: 0;
}

/* Update these to spread out the 20 hearts */
.floating-hearts span:nth-child(1) { left: 5%; animation-duration: 12s; }
.floating-hearts span:nth-child(2) { left: 15%; animation-duration: 15s; animation-delay: 2s; }
.floating-hearts span:nth-child(3) { left: 25%; animation-duration: 10s; animation-delay: 4s; }
.floating-hearts span:nth-child(4) { left: 35%; animation-duration: 18s; animation-delay: 1s; }
.floating-hearts span:nth-child(5) { left: 45%; animation-duration: 14s; animation-delay: 3s; }
.floating-hearts span:nth-child(6) { left: 55%; animation-duration: 11s; animation-delay: 5s; }
.floating-hearts span:nth-child(7) { left: 65%; animation-duration: 16s; }
.floating-hearts span:nth-child(8) { left: 75%; animation-duration: 13s; animation-delay: 2s; }
.floating-hearts span:nth-child(9) { left: 85%; animation-duration: 17s; animation-delay: 4s; }
.floating-hearts span:nth-child(10) { left: 95%; animation-duration: 12s; animation-delay: 1s; }

/* Second set of hearts with different delays for continuous flow */
.floating-hearts span:nth-child(11) { left: 10%; animation-duration: 14s; animation-delay: 6s; }
.floating-hearts span:nth-child(12) { left: 30%; animation-duration: 16s; animation-delay: 8s; }
.floating-hearts span:nth-child(13) { left: 50%; animation-duration: 12s; animation-delay: 7s; }
.floating-hearts span:nth-child(14) { left: 70%; animation-duration: 15s; animation-delay: 9s; }
.floating-hearts span:nth-child(15) { left: 90%; animation-duration: 18s; animation-delay: 5s; }
.floating-hearts span:nth-child(16) { left: 20%; animation-duration: 13s; animation-delay: 10s; }
.floating-hearts span:nth-child(17) { left: 40%; animation-duration: 11s; animation-delay: 11s; }
.floating-hearts span:nth-child(18) { left: 60%; animation-duration: 17s; animation-delay: 12s; }
.floating-hearts span:nth-child(19) { left: 80%; animation-duration: 14s; animation-delay: 13s; }
.floating-hearts span:nth-child(20) { left: 98%; animation-duration: 15s; animation-delay: 14s; }

@keyframes floatUp {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.8; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

/* 2. Timer Styles */
#time-together {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    color: #ffeb3b; /* Gold/Yellow color */
    margin: 10px 0 20px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* 3. Typewriter Text Styles */
#typewriter-text {
    font-size: 1.3rem;
    font-style: italic;
    min-height: 60px;
    color: #fff;
}

/* =========================================
   MOBILE ADJUSTMENTS (Paste at bottom of style.css)
   ========================================= */

@media screen and (max-width: 768px) {
    
    /* 1. Make text slightly smaller so it doesn't overflow */
    h1 {
        font-size: 2rem; /* Smaller title */
    }
    p {
        font-size: 1rem;
    }

    /* 2. Make the background photos Full Width on mobile */
    .slide {
        width: 100vw; /* 1 Photo takes full screen width */
    }

    /* 3. Adjust the track width for 8 images (since 1 image is now 100vw) */
    .slide-track {
        width: calc(100vw * 8); 
        animation: scrollMobile 40s linear infinite;
    }
    
    /* 4. Adjust the glass box size for mobile */
    .overlay-content {
        width: 85%; /* Make it a bit wider on mobile */
        padding: 20px; /* Less padding to save space */
    }
    
    /* 5. Adjust the hearts to be smaller on mobile */
    .floating-hearts span {
        font-size: 20px;
    }
}

/* Define a special scroll animation just for mobile */
@keyframes scrollMobile {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-100vw * 4)); } /* Move exactly 4 full images */

}

.whatsapp-btn {
    display: inline-block;
    background-color: #25D366; /* WhatsApp Green */
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s;
}

.whatsapp-btn:hover {
    transform: scale(1.05);
    background-color: #1ebe57;
}



