:root {
    --primary-pink: #ffb3c1;
    --secondary-pink: #ffdae0;
    --heart-red: #ff4d6d;
    --text-color: #594a4e;
    --bg-color: #fff0f3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Varela Round', sans-serif;
}

body {
    background-color: #ffcad4;
    background-image: radial-gradient(#ff8fa3 1px, transparent 1px);
    background-size: 20px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

.container {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 450px;
    width: 90%;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.header h1 {
    font-family: 'Pacifico', cursive;
    color: var(--heart-red);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.gif-container {
    margin: 1.5rem 0;
}

.gif-container video, .gif-container img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.hidden {
    display: none !important;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 1.5rem;
    position: relative;
    height: 50px;
}

button {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#yes-btn {
    background-color: var(--heart-red);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 77, 109, 0.3);
}

#yes-btn:hover {
    transform: scale(1.1);
    background-color: #ff758f;
}

#no-btn {
    background-color: #f1f1f1;
    color: #888;
    z-index: 9999;
    white-space: nowrap;
    transition: transform 0.1s ease;
}

/* Success Screen */
#success-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.success-msg {
    font-family: 'Pacifico', cursive;
    color: var(--heart-red);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    animation: bounce 0.6s infinite alternate;
    text-align: center;
    padding: 0 20px;
}

@keyframes bounce {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

#success-screen img {
    max-width: 300px;
    width: 80%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(255, 77, 109, 0.2);
}

/* Falling Hearts */
@keyframes fallDown {
    0% {
        transform: translateY(-10vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}

.heart-falling {
    position: fixed;
    top: -50px;
    user-select: none;
    pointer-events: none;
    z-index: 999; /* Higher than success-screen */
    animation: fallDown linear forwards;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .container {
        padding: 1.5rem;
    }
    .header h1 {
        font-size: 1.5rem;
    }
}
