:root {
    --primary-color: #ff4d6d;
    --secondary-color: #ff8fa3;
    --bg-gradient-1: #ff9a9e;
    --bg-gradient-2: #fad0c4;
    --text-color: #590d22;
    --highlight-color: #d90429;
    /* Deep Red/Pink to stand out */
}

body {
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-gradient-1) 0%, var(--bg-gradient-2) 100%);
    font-family: "Nunito", sans-serif;
    overflow: hidden;
    position: relative;
}

/* Floating Hearts Background */
.floating-hearts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.floating-item {
    position: absolute;
    bottom: -10vh;
    /* Start slightly below viewport */
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.8);
    animation: floatUp linear forwards;
    /* 'forwards' ensures it stays removed/hidden if we want, but JS will remove it */
    pointer-events: none;
    z-index: 0;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(0.8) rotate(0deg);
        opacity: 0.8;
    }

    100% {
        transform: translateY(-110vh) scale(1.2) rotate(360deg);
        opacity: 0;
    }
}

.container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
}

.card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    text-align: center;
    transition: transform 0.3s ease;
    max-width: 90%;
    width: 400px;
}

.card:hover {
    transform: translateY(-5px);
}

h1 {
    font-family: "Pacifico", cursive;
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.highlight-text {
    color: var(--highlight-color);
}

.gif-container img {
    width: 100%;
    max-width: 200px;
    border-radius: 12px;
    /* mix-blend-mode: multiply; /* Optional: if gif has white bg, this helps blend it */
    margin-bottom: 20px;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

button {
    padding: 12px 32px;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: "Nunito", sans-serif;
    font-weight: 800;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#yes-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
}

#yes-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 77, 109, 0.4);
}

#no-btn {
    background-color: white;
    color: var(--primary-color);
    position: relative;
    /* JS handles this */
}

#no-btn:hover {
    background-color: #fff0f3;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Celebration State */
#celebration.hidden {
    display: none;
}

#celebration {
    text-align: center;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

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

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

@media (max-width: 600px) {
    .card {
        padding: 2rem;
        width: 100%;
        margin: 20px;
    }

    h1 {
        font-size: 1.8rem;
    }
}