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

body {
    font-family: 'Comic Sans MS', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ffe0f0 0%, #ffc9e5 25%, #ffb3d9 50%, #ff99cc 75%, #ffadd6 100%);
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 182, 193, 0.5), transparent 55%),
                radial-gradient(circle at 80% 15%, rgba(255, 105, 180, 0.35), transparent 60%),
                radial-gradient(circle at 50% 85%, rgba(255, 192, 203, 0.4), transparent 55%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.85;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
    padding: 40px 20px;
}

.hearts-background {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.heart {
    position: absolute;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ff85c4, #ff1493);
    transform: rotate(45deg);
    animation: float 6s infinite ease-in-out, pulse 2.5s infinite;
    opacity: 0.45;
    box-shadow: 0 0 25px rgba(255, 105, 180, 0.55);
}

.heart::before,
.heart::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ff85c4, #ff1493);
    border-radius: 50%;
}

.heart::before {
    left: -35px;
}

.heart::after {
    top: -35px;
}

.heart-1 { left: 6%; top: 18%; animation-delay: 0s; animation-duration: 9s; }
.heart-2 { left: 82%; top: 22%; animation-delay: 1.2s; animation-duration: 7.5s; }
.heart-3 { left: 15%; top: 65%; animation-delay: 2s; animation-duration: 8s; }
.heart-4 { left: 74%; top: 75%; animation-delay: 2.8s; animation-duration: 10s; }
.heart-5 { left: 48%; top: 48%; animation-delay: 1.5s; animation-duration: 7s; }
.heart-6 { left: 25%; top: 30%; animation-delay: 3.2s; animation-duration: 9s; }
.heart-7 { left: 88%; top: 60%; animation-delay: 4s; animation-duration: 8.5s; }
.heart-8 { left: 40%; top: 85%; animation-delay: 5s; animation-duration: 9.5s; }
.heart-9 { left: 58%; top: 18%; animation-delay: 3.8s; animation-duration: 6.5s; }
.heart-10 { left: 10%; top: 82%; animation-delay: 4.5s; animation-duration: 11s; }

.sparkle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 192, 203, 0.2) 70%);
    border-radius: 50%;
    animation: twinkle 4s infinite ease-in-out;
    opacity: 0.6;
}

.sparkle-1 { left: 20%; top: 40%; animation-delay: 0.5s; }
.sparkle-2 { left: 75%; top: 15%; animation-delay: 1.3s; }
.sparkle-3 { left: 55%; top: 70%; animation-delay: 2.2s; }
.sparkle-4 { left: 32%; top: 10%; animation-delay: 3s; }
.sparkle-5 { left: 88%; top: 78%; animation-delay: 1.8s; }
.sparkle-6 { left: 12%; top: 50%; animation-delay: 2.7s; }

.floating-emojis {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-emojis .emoji {
    position: absolute;
    font-size: 2.8rem;
    opacity: 0.65;
    animation: drift 12s linear infinite;
    filter: drop-shadow(0 6px 12px rgba(255, 105, 180, 0.4));
}

.emoji-1 { left: 15%; top: 10%; animation-duration: 14s; }
.emoji-2 { right: 12%; top: 25%; animation-duration: 12s; }
.emoji-3 { left: 30%; bottom: 18%; animation-duration: 15s; }
.emoji-4 { right: 28%; bottom: 12%; animation-duration: 13s; }
.emoji-5 { left: 45%; top: 5%; animation-duration: 16s; }

@keyframes float {
    0%, 100% {
        transform: rotate(45deg) translateY(0);
    }
    50% {
        transform: rotate(45deg) translateY(-30px);
    }
}

.content {
    background: rgba(255, 255, 255, 0.95);
    padding: 60px 80px;
    border-radius: 40px;
    box-shadow: 0 20px 80px rgba(255, 105, 180, 0.5), 0 0 40px rgba(255, 182, 193, 0.3);
    text-align: center;
    z-index: 2;
    position: relative;
    backdrop-filter: blur(15px);
    border: 4px solid #ffb3d9;
    animation: contentGlow 3s infinite;
    /* overflow: hidden; Removed to let the Yes button grow huge! */
}

@keyframes contentGlow {
    0%, 100% {
        box-shadow: 0 20px 80px rgba(255, 105, 180, 0.5), 0 0 40px rgba(255, 182, 193, 0.3);
    }
    50% {
        box-shadow: 0 20px 80px rgba(255, 105, 180, 0.7), 0 0 60px rgba(255, 182, 193, 0.5);
    }
}

.question {
    font-size: 3.5rem;
    color: #ff1493;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(255, 105, 180, 0.4), 0 0 30px rgba(255, 20, 147, 0.3);
    animation: heartBeat 1.5s infinite;
    font-weight: bold;
    letter-spacing: 2px;
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.05);
    }
    20%, 40% {
        transform: scale(1);
    }
}

.subtext {
    font-size: 2rem;
    color: #ff69b4;
    margin-bottom: 40px;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(255, 105, 180, 0.2);
    animation: sway 2s infinite ease-in-out;
}

.love-note {
    font-size: 1.15rem;
    color: #ff5fa5;
    margin-bottom: 25px;
    line-height: 1.6;
    background: rgba(255, 240, 246, 0.7);
    padding: 16px 24px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.15);
}

.sweet-pledges {
    list-style: none;
    display: grid;
    gap: 12px;
    margin-bottom: 28px;
    padding: 0;
}

.sweet-pledges li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 211, 232, 0.65);
    color: #ff3f9f;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 22px;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(255, 105, 180, 0.25);
    letter-spacing: 0.5px;
}

.sweet-pledges li::before {
    content: '❤';
    font-size: 1.2rem;
    color: #ff1493;
}

.tagline {
    font-size: 1.1rem;
    color: #ff4fa1;
    font-weight: 700;
    margin-bottom: 32px;
    text-shadow: 0 2px 8px rgba(255, 105, 180, 0.4);
}

@keyframes sway {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-2deg);
    }
    75% {
        transform: rotate(2deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    position: relative;
    min-height: 80px;
    flex-wrap: wrap;
}

.btn {
    padding: 18px 50px;
    font-size: 1.5rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.yes-btn {
    background: linear-gradient(135deg, #ff1493, #ff69b4, #ff1493);
    color: white;
    animation: yesGlow 2s infinite;
    position: relative;
    z-index: 10;
}

@keyframes yesGlow {
    0%, 100% {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2), 0 0 20px rgba(255, 20, 147, 0.3);
    }
    50% {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2), 0 0 30px rgba(255, 20, 147, 0.6);
    }
}

.yes-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(255, 20, 147, 0.6), 0 0 40px rgba(255, 20, 147, 0.5);
}

.no-btn {
    background: linear-gradient(135deg, #ffc0cb, #ffb6c1);
    color: #ff1493;
    position: relative;
    transition: all 0.15s ease;
    min-width: 170px;
    z-index: 3;
}

.no-btn:hover {
    background: linear-gradient(135deg, #ffb6c1, #ffc0cb);
    filter: brightness(1.08);
}

.celebration {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #ff1493 0%, #ff69b4 50%, #ffb6c1 100%);
    z-index: 1000;
    overflow-y: auto;
}

.celebration.active {
    display: block;
    animation: fadeIn 0.5s;
}

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

.celebration-text {
    text-align: center;
    padding: 40px 20px;
    color: white;
}

.celebration-text h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 1s infinite;
}

.celebration-text h2 {
    font-size: 2rem;
}

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

.gif-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.gif-tile {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: popIn 0.5s ease-out;
}

.gif-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes popIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes twinkle {
    0%, 100% {
        transform: scale(0.6);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

@keyframes drift {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    50% {
        transform: translate3d(10px, -30px, 0) rotate(6deg);
    }
    100% {
        transform: translate3d(-15px, -60px, 0) rotate(-6deg);
    }
}

@media (max-width: 768px) {
    .content {
        padding: 30px 20px;
        width: 90%;
        margin: 0 auto;
    }
    
    .question {
        font-size: 2.2rem;
    }
    
    .subtext {
        font-size: 1.3rem;
        margin-bottom: 25px;
    }

    .floating-emojis .emoji {
        font-size: 1.5rem;
    }

    .love-note {
        font-size: 0.9rem;
        padding: 12px 15px;
        margin-bottom: 20px;
    }

    .sweet-pledges {
        gap: 8px;
    }

    .sweet-pledges li {
        font-size: 0.85rem;
        padding: 8px 15px;
        width: 100%;
        text-align: center;
    }

    .tagline {
        font-size: 0.9rem;
        margin-bottom: 24px;
    }
    
    .buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        min-height: auto;
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 1.1rem;
        width: 100%;
        max-width: 250px;
    }
    
    .no-btn {
        position: relative;
        min-width: 100%;
        max-width: 250px;
    }

    .gif-container {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
    }
}
