body {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    /* User provided background */
    background-image: url("bg2.jpg.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Import Poppins */
    @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&family=Quicksand:wght@400;700&display=swap');
    font-family: 'Quicksand', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Overlay for better readability if needed, or remove if bg is nice alone */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    /* Slight dim for text readability */
    pointer-events: none;
    z-index: 1;
}

.container {
    text-align: center;
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.card {
    /* Critical: Container for absolute button */
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    padding: 3rem;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.5);
    max-width: 90%;
    width: 360px;
    backdrop-filter: blur(10px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Ensure content is centered but allows absolute children */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:hover {
    transform: translateY(-5px);
}

.cat-img {
    max-width: 200px;
    margin-bottom: 1rem;
    border-radius: 10px;
}

h1 {
    font-family: 'Pacifico', cursive;
    color: #555;
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 2.5rem;
    line-height: 1.3;
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.5);
    width: 100%;
}

.highlight {
    color: #ff4081;
    font-size: 3rem;
    /* display: block; Removed to allow inline flow */
    /* margin-top: 5px; Removed */
    display: inline;
    filter: drop-shadow(0 2px 4px rgba(233, 30, 99, 0.2));
}

/* Button container */
.buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    position: relative;
    width: 100%;
    min-height: 60px;
    align-items: center;
}

button {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 14px 40px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    outline: none;
    will-change: transform, left, top;
}

#yesBtn {
    background: linear-gradient(45deg, #ff4081, #ff80ab);
    color: white;
    z-index: 20;
}

#yesBtn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(245, 0, 87, 0.4);
}

#noBtn {
    background-color: #f5f5f5;
    color: #777;
    border: 1px solid #ddd;
    min-width: 100px;
}

/* State when the button goes rogue */
#noBtn.rogue {
    /* Absolute relative to .card now */
    position: absolute;
    transition: all 0.3s ease-out;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    z-index: 100;
}

.celebration {
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.celebration img {
    max-width: 350px;
    /* Constrain to match card width approx */
    width: 100%;
    height: auto;
    border-radius: 20px;
    margin-top: 1.5rem;
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.2);
    border: 4px solid white;
}

@keyframes popIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Floating Hearts */
#hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
    overflow: hidden;
}

.heart {
    position: absolute;
    bottom: -10vh;
    animation: floatUp ease-in forwards;
    opacity: 0;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-120vh) scale(1.2);
        opacity: 0;
    }
}

@media (max-width: 400px) {
    h1 {
        font-size: 2rem;
    }

    .highlight {
        font-size: 2.5rem;
    }

    .card {
        padding: 2rem;
        width: 85%;
    }

    button {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

/* Shy Text Footer */
.shy-text {
    margin-top: 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    color: #888;
    display: flex;
    justify-content: center;
    align-items: center;
}

.shy-text p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    /* Space between text and hand */
}

.hand-icon {
    height: 1.5rem;
    /* Match text size approx */
    width: auto;
    vertical-align: middle;
}