/* CSS Variables - Will be updated by JavaScript */
:root {
    /* Colors */
    --background-color-1: #ffafbd;
    --background-color-2: #ffc3a0;
    --button-color: #ff6b6b;
    --button-hover: #ff8787;
    --text-color: #ff4757;

    /* Animations */
    --float-duration: 15s;
    --float-distance: 50px;
    --bounce-speed: 0.5s;
    --heart-explosion-size: 1.5;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--background-color-1), var(--background-color-2));
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 175, 189, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 195, 160, 0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(255, 107, 107, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.5);
    text-align: center;
    max-width: 600px;
    margin: 20px;
    overflow: visible !important;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 175, 189, 0.3);
    position: relative;
    z-index: 10;
}

.question-section {
    transition: all 0.5s ease;
    padding: 20px;
    border-radius: 15px;
}

.question-section:not(.hidden) {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.floating-elements {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.heart, .bear {
    position: absolute;
    font-size: 2rem;
    animation: float var(--float-duration) linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(var(--float-distance)) rotate(360deg);
        opacity: 0;
    }
}

.cute-btn {
    background: linear-gradient(135deg, var(--button-color), var(--button-hover));
    border: none;
    padding: 12px 28px;
    margin: 10px;
    border-radius: 25px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cute-btn:hover {
    transform: scale(1.15) translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 107, 107, 0.5);
    background: linear-gradient(135deg, var(--button-hover), var(--button-color));
}

.cute-btn:active {
    transform: scale(1.05) translateY(-1px);
}

.hidden {
    display: none;
}

.disabled-btn {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.secret-answer {
    margin-top: 30px;
    opacity: 0;
    transition: all 0.5s ease;
    text-align: center;
    padding: 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 135, 135, 0.1));
    border: 2px solid rgba(255, 107, 107, 0.3);
}

.secret-answer:not(.hidden) {
    opacity: 1;
}

.secret-answer p {
    font-size: 1.4rem;
    color: #ff4757;
    font-weight: 600;
    margin-bottom: 20px;
    font-family: 'Dancing Script', cursive;
    animation: gentle-bounce 2s ease-in-out infinite;
}

.secret-answer .cute-btn {
    margin-top: 10px;
}

.love-meter {
    position: relative;
    width: 100%;
    margin: 20px auto;
    overflow: visible;
    padding: 10px 0;
}

.love-meter p {
    font-size: 1.2em;
    margin: 15px 0;
    color: var(--text-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.slider {
    width: 100%;
    height: 25px;
    background: linear-gradient(to right, #ff6b6b, #ff8787, #ffb8b8);
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    position: relative;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.2);
    transition: all 0.3s ease;
}

.slider:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
}

/* Ensure track is visible */
.slider::-webkit-slider-runnable-track,
.slider::-moz-range-track {
    width: 100%;
    height: 25px;
    background: linear-gradient(to right, #ff6b6b, #ff8787, #ffb8b8);
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

/* Ensure thumb is properly styled */
.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #ff4757, #ff6b6b);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(255, 71, 87, 0.3);
    position: relative;
    z-index: 10;
    margin-top: -5px;
    border: 3px solid white;
    transition: all 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

.slider::-moz-range-thumb {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #ff4757, #ff6b6b);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(255, 71, 87, 0.3);
    position: relative;
    z-index: 10;
    border: 3px solid white;
    transition: all 0.2s ease;
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

#extraLove {
    color: #ff6b6b;
    font-weight: bold;
    animation: bounce 0.5s infinite alternate;
    display: block;
    padding: 5px 10px;
    border-radius: 10px;
    background: rgba(255, 107, 107, 0.1);
    text-shadow: 0 2px 4px rgba(255, 71, 87, 0.2);
    transition: all 0.3s ease;
    margin-top: 5px;
}

#extraLove.super-love {
    background: rgba(255, 107, 107, 0.2);
    font-size: 1.2em;
    padding: 8px 15px;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.2);
}

#loveValue {
    font-weight: bold;
    color: #ff4757;
    font-size: 1.3em;
    transition: all 0.3s ease;
}

.love-value-container {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

@keyframes bounce {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.2);
    }
}

.hearts-explosion {
    font-size: 2rem;
    animation: explode 1s ease-out forwards;
    margin-top: 30px;
}

@keyframes explode {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(var(--heart-explosion-size));
    }
    100% {
        transform: scale(1);
    }
}

h1, h2 {
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
}

h1 {
    color: #ff6b6b;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(255, 107, 107, 0.3);
    animation: gentle-bounce 2s ease-in-out infinite;
}

h2 {
    color: #ff8787;
    font-size: 2rem;
}

@keyframes gentle-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.super-love {
    font-size: 1.5em;
    color: #ff4757;
    font-weight: bold;
    transform: scale(1.2);
    display: inline-block;
    text-shadow: 2px 2px 4px rgba(255, 71, 87, 0.3);
}


.celebration-text {
    font-size: 3em;
    color: #ff4757;
    font-weight: bold;
    margin: 30px 0;
    animation: bounce var(--bounce-speed) infinite alternate;
    text-shadow: 2px 2px 4px rgba(255, 71, 87, 0.3);
}

@keyframes subtle-hint {
    0% { opacity: 0.2; }
    100% { opacity: 0.3; }
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(0.9);
        opacity: 0.85;
    }
    50% { 
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
    }
}

/* First buttons container */
#firstButtons {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.music-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.music-btn {
    background: linear-gradient(135deg, #ff6b6b, #ff8787);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.music-btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
    background: linear-gradient(135deg, #ff8787, #ff6b6b);
}

/* Celebration GIF Styles */
.celebration-gif {
    margin: 20px auto;
    max-width: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
    animation: fadeInScale 0.8s ease-out;
}

.celebration-gif img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Confetti Styles */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #f0f;
    top: -10px;
    opacity: 0;
}

@keyframes confetti-fall {
    0% {
        opacity: 1;
        transform: translateY(0) rotateZ(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(100vh) rotateZ(720deg);
    }
}

/* Sparkle Effect */
.sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    animation: sparkle-animation 1s ease-out;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

@keyframes sparkle-animation {
    0% {
        opacity: 1;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0);
    }
}

/* Improved heart animations with parallax */
.heart {
    filter: drop-shadow(0 2px 4px rgba(255, 107, 107, 0.3));
    will-change: transform;
}

.bear {
    filter: drop-shadow(0 2px 4px rgba(139, 69, 19, 0.3));
    animation-duration: calc(var(--float-duration) * 1.2) !important;
}

/* Celebration improvements */
.celebration {
    animation: celebration-appear 0.6s ease-out;
}

@keyframes celebration-appear {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
} 