:root {
    --primary-color: #ff4d6d;
    --primary-gradient: linear-gradient(135deg, #ff4d6d 0%, #c9184a 100%);
    --bg-color: #fff0f3;
    --text-color: #590d22;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Better for scrolling */
    position: relative;
    overflow-x: hidden;
    /* Prevent horizontal scroll only */
}

/* Background Blobs */
.background-blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.8;
    animation: float 20s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: #ffccd5;
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: #ffb3c1;
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 300px;
    height: 300px;
    background: #ff8fa3;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 50px) scale(1.1);
    }
}

.container {
    text-align: center;
    position: relative;
    width: 90%;
    max-width: 500px;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin: auto;
    /* Center in flex column */
    z-index: 10;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

.question,
.success-message {
    font-family: 'Pacifico', cursive;
    color: var(--text-color);
    font-size: 3.5rem;
    margin-bottom: 2.5rem;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
    animation: bounceIn 1s;
    line-height: 1.2;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    position: relative;
    min-height: 70px;
}

.btn {
    font-family: 'Nunito', sans-serif;
    font-size: 1.5rem;
    padding: 12px 40px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 800;
    letter-spacing: 0.5px;
    min-width: 140px;
    /* Prevent resizing */
    text-align: center;
}

.yes-btn {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 77, 109, 0.4);
}

.yes-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 77, 109, 0.6);
}

.yes-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.no-btn {
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-color);
    border: 2px solid var(--primary-color);
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 100;
}

.no-btn:hover {
    background: var(--white);
}

/* Logic for "No" button movement */
.no-btn.moving {
    position: absolute;
}

.hidden {
    display: none;
}

.image-wrapper {
    margin: 20px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    transform: rotate(-3deg);
    border: 5px solid white;
    transition: transform 0.5s ease;
}

.image-wrapper:hover {
    transform: rotate(0deg) scale(1.05);
}

#valentine-img {
    width: 100%;
    height: auto;
    display: block;
}

.love-note {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-top: 1.5rem;
    font-weight: 700;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 600px) {

    .question,
    .success-message {
        font-size: 2.2rem;
    }

    .btn {
        font-size: 1.1rem;
        padding: 10px 25px;
    }

    .container {
        padding: 1.5rem;
        width: 85%;
        margin-top: 50px;
        /* Add some top margin for scrolling content */
        margin-bottom: 50px;
    }

    .blob {
        opacity: 0.6;
    }

    .photo-gallery {
        column-count: 2 !important;
        column-gap: 15px !important;
    }

    .gallery-item {
        margin-bottom: 10px !important;
    }
}

/* Photo Gallery Styles */
/* Photo Gallery Styles */
.photo-gallery {
    column-count: 3;
    column-gap: 15px;
    margin-top: 2rem;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.gallery-item {
    width: 100%;
    margin-bottom: 15px;
    break-inside: avoid;
    display: inline-block;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background: white;
    padding: 5px;
}

.gallery-item:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.gallery-item.loaded {
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    /* Stay in place */
    z-index: 1000;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.9);
    /* Black w/ opacity */
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.lightbox.hidden {
    display: none;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    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;
    z-index: 1001;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}