:root {
    /* BACKGROUND COLORS */
    /* Change these color */
    --bg-color-1: #ff9a9e;
    --bg-color-2: #fecfef;
}

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

body {
    font-family: "Nunito", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-color-1) 0%, var(--bg-color-2) 50%, var(--bg-color-2) 100%);
    background-size: 400% 400%;
    animation: gradientAnimation 8s ease infinite;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    touch-action: manipulation;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#emojiBackground {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-emoji {
    position: absolute;
    color: rgba(255, 255, 255, 0.3);
    font-size: 24px;
    animation: floatEmoji 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes floatEmoji {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
    50% { transform: translateY(-100px) rotate(360deg); opacity: 0.6; }
}

.container {
    text-align: center;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        0 20px 40px rgba(255, 105, 180, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(255, 192, 203, 0.3);
    z-index: 10;
    position: relative;
    transform-style: preserve-3d;
}

.content {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.emoji-decoration {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) scale(1); }
    40% { transform: translateY(-10px) scale(1.1); }
    60% { transform: translateY(-5px) scale(1.05); }
}

.title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ff1493;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(255, 20, 147, 0.3);
    letter-spacing: 1px;
    transform: translateZ(20px);
}

.question {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    font-weight: 600;
    color: #ff69b4;
    line-height: 1.5;
    transform: translateZ(15px);
}

.buttons-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    transform: translateZ(30px);
    position: relative;
    min-height: 80px;
    align-items: center;
}

.btn {
    font-family: "Nunito", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    transform-origin: center;
    will-change: transform;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    text-align: center;
}

.yes-btn {
    background: linear-gradient(135deg, #ff6b9d, #ff8fab);
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 
        0 8px 25px rgba(255, 107, 157, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    z-index: 5;
}

.yes-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 12px 35px rgba(255, 107, 157, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.no-btn {
    background: linear-gradient(135deg, #ffd6e8, #ffe0ed);
    color: #d63384 !important;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.2);
    border: 2px solid #ffb6c1;
    z-index: 4;
    transition: all 0.3s ease, opacity 0.3s ease;
}

.no-btn:hover {
    background: linear-gradient(135deg, #ffcce0, #ffd9e8);
    transform: translateY(-2px);
    color: #b02a5b !important;
}

.result {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ff1493;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateZ(5px);
    text-shadow: 1px 1px 2px rgba(255, 20, 147, 0.3);
}

.confetti {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1000;
}
        
.cute-message {
    background: linear-gradient(135deg, #ffe0ed, #fff0f8);
    border-radius: 20px;
    padding: 1rem;
    margin-top: 1rem;
    border: 2px solid #ffb6c1;
    animation: messageGlow 2s ease-in-out infinite alternate;
}

@keyframes messageGlow {
    from { box-shadow: 0 0 10px rgba(255, 105, 180, 0.3); }
    to { box-shadow: 0 0 20px rgba(255, 105, 180, 0.5); }
}

/* Mobile */
@media screen and (max-width: 768px) {
    .container { 
        padding: 1.8rem; 
    }
    .title { 
        font-size: 2.2rem;
    }
    .question { 
        font-size: 1.2rem;
    }
    .buttons-container { 
        flex-direction: column; 
        gap: 1rem; 
        min-height: 120px; 
    }
    .btn { 
        width: 100%; 
        max-width: 280px; 
        padding: 1.1rem 1.8rem;
        font-size: 1.1rem;
    }
}
