/* Global Styles */
:root {
    --primary-color: #ff99ac;
    /* Brighter Pink for text/headers */
    --secondary-color: #ff5c8a;
    /* More vivid pink */
    --accent-color: #ff0a54;
    /* Strong Pop Red/Pink */
    --text-color: #ffffff;
    /* Pure white for max contrast */
    --glass-bg: rgba(0, 0, 0, 0.2);
    /* Darker glass to make text pop */
    --glass-border: rgba(255, 255, 255, 0.3);
    /* Stronger border */
    --shadow-color: rgba(0, 0, 0, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lora', serif;
    /* Richer, Animated Gradient */
    background: linear-gradient(-45deg, #240046, #7b2cbf, #ff0054, #3a0ca3);
    background-size: 400% 400%;
    animation: gradientBG 10s ease infinite;

    color: var(--text-color);
    overflow: hidden;
    /* Prevents body scroll, content scrolls in card */
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Canvas for Falling Flowers */
#flower-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Screen Containers */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease-in-out;
    z-index: 10;
}

.hidden {
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

/* Glassmorphism Card */
/* Glassmorphism Card (Modern) */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    /* Stronger blur for premium feel */
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    /* Top highlight */
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    /* Left highlight */
    border-radius: 30px;
    /* Smoother corners */
    padding: 3rem;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    max-width: 90%;
    width: 650px;
    max-height: 85vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

/* Scrollbar Styling for Webkit */
.glass-card::-webkit-scrollbar {
    width: 6px;
}

.glass-card::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 20px;
}

/* Typography */
h1,
h2 {
    font-family: 'Dancing Script', cursive;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    /* Stronger shadow for readability */
}

p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.signature {
    font-style: italic;
    margin-top: 2rem;
    font-weight: bold;
    color: #ffc2d1;
    /* Lighter/Brighter pink signature */
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Button Styling */
/* Button Styling (Modern Glow - High Vis) */
button {
    background: linear-gradient(135deg, #ff477e, #f72585);
    /* Highly visible vibrant gradient */
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    /* Add border for contrast */
    padding: 14px 32px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Lora', serif;
    font-weight: 700;
    /* Bolder text */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 20px rgba(247, 37, 133, 0.5);
    /* Stronger Glow */
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 30px rgba(255, 71, 126, 0.8);
    background: linear-gradient(135deg, #f72585, #ff477e);
    border-color: white;
}

#no-btn {
    background: white;
    color: var(--secondary-color);
    border: 2px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    /* Keep other button props */
    z-index: 1000;
    /* Ensure it stays on top */
    position: relative;
}

#no-btn:hover {
    background: #f0f0f0;
    transform: none;
    /* JS will handle movement */
    box-shadow: none;
}

button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(255, 77, 109, 0.5);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

button:active {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(201, 24, 74, 0.4);
}

/* Valentine Question Section */
.valentine-question {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.buttons-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.yes-btn {
    background: linear-gradient(135deg, #ff758c, #ff7eb3);
    font-size: 1rem;
    padding: 10px 20px;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Photo Frame */
.photo-frame {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.5);
}

.photo-placeholder {
    font-size: 3rem;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    h1 {
        font-size: 2.5rem;
    }

    .glass-card {
        padding: 1.5rem;
        width: 95%;
    }

    .buttons-container {
        flex-direction: column;
    }
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

.lightbox.hidden {
    opacity: 0;
    pointer-events: none;
    display: none;
    /* Hide completely when logic adds hidden class */
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    animation: zoom 0.6s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}