:root {
    --primary-color: #ff8fa3;
    --secondary-color: #ffc4d6;
    --accent-color: #ff4d6d;
    --text-color: #590d22;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', sans-serif;
    /* Cute background pattern using CSS gradients */
    background-color: #fff0f3;
    background-image: url('videos/bg.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;

    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    overflow: hidden;
    /* Prevent scrolling if animations go wild */
}

.container {
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(255, 77, 109, 0.2);
    width: 90%;
    max-width: 600px;
    backdrop-filter: blur(5px);
    border: 3px solid var(--secondary-color);
}

h1 {
    font-family: 'Pacifico', cursive;
    color: var(--accent-color);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    line-height: 1.4;
    text-shadow: 2px 2px 0px var(--secondary-color);
}

.bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-20px);
    }

    60% {
        transform: translateY(-10px);
    }
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.option-btn {
    background: var(--white);
    border: 2px solid var(--primary-color);
    padding: 1rem 1.5rem;
    font-size: 1.2rem;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    color: var(--text-color);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(255, 143, 163, 0.2);
}

.option-btn:hover {
    transform: translateY(-3px) scale(1.02);
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(255, 77, 109, 0.4);
}

.option-btn:active {
    transform: translateY(1px);
}

.emoji {
    font-size: 1.5rem;
}

/* Vibrating effect for wrong answers */
.shake {
    animation: shake 0.5s;
    background-color: #fff !important;
    /* Reset background */
    color: #e63946 !important;
    border-color: #e63946 !important;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    50% {
        transform: translateX(10px);
    }

    75% {
        transform: translateX(-10px);
    }

    100% {
        transform: translateX(0);
    }
}

/* Confetti click effect logic can be added later, for now we keep it simple */

/* Video Overlay */
#video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.5s ease;
    backdrop-filter: blur(8px);
}

.hidden {
    display: none !important;
    opacity: 0 !important;
}

.video-wrapper {
    background: var(--white);
    padding: 20px;
    border-radius: 20px;
    position: relative;
    width: 90%;
    max-width: 800px;
    text-align: center;
    box-shadow: 0 0 30px rgba(255, 77, 109, 0.5);
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

#close-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    background: var(--accent-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

#close-btn:hover {
    transform: scale(1.1) rotate(90deg);
}

video {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    border-radius: 10px;
    margin-top: 15px;
    border: 2px solid var(--secondary-color);
}

h2 {
    color: var(--accent-color);
    font-family: 'Pacifico', cursive;
}

.note {
    font-size: 0.8rem;
    color: #888;
    margin-top: 10px;
}

/* Responsive */
@media (min-width: 768px) {
    .options-container {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .option-btn {
        min-width: 200px;
    }
}

.error-text {
    position: fixed;
    color: red;
    font-weight: bold;
    font-size: 1.5rem;
    pointer-events: none;
    animation: floatUp 1s ease-out forwards;
    z-index: 2000;
    text-shadow: 1px 1px 2px white;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) scale(1.5);
        opacity: 0;
    }

}

