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

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #CBE6EF;
    padding: 20px;
    font-family: 'Nunito', sans-serif;
    position: relative;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1000px;
    position: relative;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
}

/* Position the "No" button: keep it in flow by default so it doesn't overlap
   The script will switch to `position: absolute` when animating on desktop. */
#noButton {
    position: relative;
    transition: transform 0.45s ease, left 0.45s ease, top 0.45s ease;
    border: 2px solid #ffffff;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

#yesButton {
    position: relative;
    border: 2px solid #ffffff;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}



.header_text {
    font-family: 'Nunito';
    font-size: clamp(28px, 8vw, 50px);
    font-weight: bold;
    color: white;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 0px;
    line-height: 1.2;
}

.buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
    position: relative;
    width: 100%;
    min-height: 60px;
}

.btn {
    background-color: #80c3d8;
    color: white;
    padding: clamp(10px, 2vw, 15px) clamp(20px, 4vw, 32px);
    text-align: center;
    display: inline-block;
    font-size: clamp(14px, 2.5vw, 16px);
    cursor: pointer;
    border: none;
    border-radius: 12px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.btn:hover {
    background-color: #FAF9F6;
}

.gif_container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin: 20px 0;
    z-index: 5;
    position: relative;
}

.gif_container img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
}

/* Simplified floating texts + hearts to avoid overlap with gif and each other */
            .floating-texts {
                position: relative;
                bottom: auto;
                left: auto;
                transform: none;
                display: flex;
                flex-wrap: wrap;
                gap: clamp(8px, 2vw, 12px);
                justify-content: center;
                align-items: flex-end;
                pointer-events: none;
                z-index: 40;
                max-width: 100%;
                padding: clamp(6px, 1vw, 8px) clamp(10px, 2vw, 12px);
                margin-top: 40px;
            }

            /* Individual text pills */
            .floating-text {
                background: rgba(255, 255, 255, 0.96);
                color: #b03a3a;
                padding: clamp(4px, 1vw, 6px) clamp(8px, 2vw, 12px);
                border-radius: 999px;
                font-weight: 700;
                font-size: clamp(10px, 1.6vw, 16px);
                box-shadow: 0 6px 14px rgba(0,0,0,0.08);
                white-space: nowrap;
                margin: 2px 1px;
                pointer-events: none;
            }

            /* hearts container placed behind the text pills */
            .floating-hearts {
                position: relative;
                bottom: auto;
                left: auto;
                transform: none;
                display: flex;
                gap: clamp(4px, 1.5vw, 8px);
                justify-content: center;
                pointer-events: none;
                z-index: 20;
                opacity: 0.95;
                flex-wrap: wrap;
                max-width: 100%;
                margin-bottom: 20px;
            }

            .floating-hearts .heart {
                font-size: clamp(12px, 3vw, 24px);
                color: #e74c3c;
                filter: drop-shadow(0 6px 10px rgba(0,0,0,0.08));
                animation: floatHearts 3s ease-in-out infinite;
                display: inline-block;
            }

            @keyframes floatHearts {
                0% { transform: translateY(0); }
                50% { transform: translateY(-8px); }
                100% { transform: translateY(0); }
            }

            /* Responsive adjustments */
            @media (max-width: 768px) {
                body {
                    padding: 10px;
                    min-height: auto;
                }

                .content-wrapper {
                    width: 100%;
                    padding: 0;
                }

                .container {
                    width: 100%;
                    padding: 10px;
                }

                .buttons {
                    gap: 16px;
                    margin-top: 30px;
                    min-height: 50px;
                    /* stack buttons on narrower screens to avoid overlap */
                    flex-direction: column;
                    align-items: center;
                }

                .btn {
                    width: min(260px, 80%);
                }

                .floating-texts {
                    margin-top: 30px;
                    margin-bottom: 20px;
                }

                .floating-hearts {
                    margin-bottom: 15px;
                }

                .gif_container img {
                    max-height: 300px;
                }
                
                /* keep relative on mobile so transform movement works reliably */
                #noButton {
                    position: relative;
                    z-index: 6;
                }
            }

            @media (max-width: 520px) {
                body {
                    padding: 10px;
                }

                .container {
                    padding: 5px;
                }

                .buttons {
                    gap: 12px;
                    margin-top: 18px;
                    min-height: auto;
                    flex-direction: column;
                    align-items: center;
                }

                .btn {
                    padding: 8px 20px;
                    font-size: 14px;
                    width: min(220px, 85%);
                }

                .floating-text {
                    font-size: 11px;
                    padding: 3px 6px;
                }

                .gif_container img {
                    max-height: 250px;
                }
                
                #noButton {
                    position: relative;
                    z-index: 6;
                }
            }

            .made-with-love {
                    font-size: 12px;
                    bottom: 80px !important;
                }
            }