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

body {
    font-family: 'Outfit', sans-serif;
    background-color: #ffe6e9;
    /* Soft pink background */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    /* Prevent scrolling when button moves out */
}

.container {
    text-align: center;
    position: relative;
    z-index: 10;
}

.gif-container img {
    max-width: 300px;
    height: auto;
    border-radius: 15px;
    /* Softer edges */
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

h1 {
    font-family: 'Pacifico', cursive;
    /* Romantic font */
    color: #ff4d6d;
    font-size: 3rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.5);
}

.btn-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    position: relative;
    /* Context for absolute positioning of No button if needed */
    height: 60px;
    /* Reserve space */
}

button {
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#yes-btn {
    background-color: #ff4d6d;
    color: white;
}

#yes-btn:hover {
    background-color: #d63352;
    transform: scale(1.1);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

#no-btn {
    background-color: white;
    color: #ff4d6d;
    border: 2px solid #ff4d6d;
}

/* Ensure canvas is on top for confetti but doesn't block clicks initially */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }

    .gif-container img {
        max-width: 80%;
    }

    button {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

#hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Make sure they don't block clicks */
    z-index: 1;
    /* Behind the main container but visible */
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    font-size: 2rem;
    pointer-events: none;
    z-index: -1;
    /* Behind everything */
    /* opacity: 0.6; Remove static opacity */
    opacity: 0;
    user-select: none;
    /* Start invisible */
    animation: floatUpFade 6s ease-in-out infinite;
}

/* Success Animation */
.celebrate-anim {
    animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(50px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Background Hearts Animation */
@keyframes floatUpFade {
    0% {
        opacity: 0;
        transform: translateY(0)
            /* rotate(-15deg) */
            scale(0.5);
    }

    20% {
        opacity: 0.6;
        transform: translateY(-20px)
            /* rotate(-15deg) */
            scale(1);
    }

    80% {
        opacity: 0.6;
        transform: translateY(-80px)
            /* rotate(-15deg) */
            scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-100px)
            /* rotate(-15deg) */
            scale(1);
    }
}