:root {
    --primary: #ff4757;
    --secondary: #ff6b81;
    --bg-start: #ffe2e2;
    --bg-end: #ffcdd2;
    --white: #ffffff;
    --text: #2f3542;
    --shadow: rgba(0, 0, 0, 0.1);
}

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600&family=Pacifico&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, #fff0f3, #ffcdd2);
    overflow: hidden;
    position: relative;
}

/* Floating background hearts */
.bg-heart {
    position: absolute;
    color: rgba(255, 255, 255, 0.6);
    font-size: 2rem;
    animation: float 6s linear infinite;
    z-index: 1;
    /* Behind container */
    pointer-events: none;
    text-shadow: 0 0 5px rgba(255, 182, 193, 0.5);
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

.container {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 10px 30px var(--shadow);
    max-width: 90%;
    width: 450px;
    z-index: 10;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.container:hover {
    transform: translateY(-5px);
}

.image-container img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 16px rgba(255, 71, 87, 0.2);
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 8px 16px rgba(255, 71, 87, 0.2);
    }

    to {
        box-shadow: 0 8px 24px rgba(255, 71, 87, 0.5);
    }
}

h1 {
    font-family: 'Pacifico', cursive;
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    position: relative;
    /* Context for absolute positioning if needed inside */
}

button {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 12px 32px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#yes-btn {
    background: var(--primary);
    color: var(--white);
    min-width: 150px;
    /* Match the No button */
}

#yes-btn:hover {
    background: var(--secondary);
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(255, 71, 87, 0.4);
}

#no-btn {
    background: var(--white);
    color: var(--text);
    min-width: 150px;
    /* Prevent shrinking/jitter with text changes */
    white-space: nowrap;
    z-index: 1000;
    /* Ensure it stays on top */
}

#no-btn:hover {
    background: #f1f2f6;
}

/* Success Message State */
.success-message {
    display: none;
}

.success-message h2 {
    font-family: 'Pacifico', cursive;
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.success-message p {
    color: var(--text);
    font-size: 1.1rem;
}