@import url('https://fonts.googleapis.com/css2?family=Luckiest+Guy&family=Roboto:wght@400;700&display=swap');
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #f9d423 0%, #ff4e50 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Roboto', Arial, sans-serif;
}

.quiz-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
    padding: 40px 32px 32px 32px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    position: relative;
    border: 4px solid #f9a602;
    animation: fadeIn 1.2s;
}

.quiz-container:before {
    content: '';
    background: url('https://img.icons8.com/color/96/000000/lion.png') no-repeat center top/80px;
    position: absolute;
    left: 50%;
    top: -60px;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
}

h1 {
    font-family: 'Luckiest Guy', cursive;
    color: #d35400;
    margin-bottom: 24px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0 #fff7b2, 0 4px 12px #b9770e;
}

#question {
    font-size: 1.3rem;
    color: #b9770e;
    margin-bottom: 20px;
    font-weight: bold;
}

#options {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.option-btn {
    background: linear-gradient(90deg, #f9d423 60%, #ff4e50 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 12px 0;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    outline: none;
}

.option-btn:hover:not(:disabled) {
    background: linear-gradient(90deg, #ffb347 60%, #ff4e50 100%);
    transform: scale(1.04);
    box-shadow: 0 4px 16px rgba(255, 78, 80, 0.15);
}

.option-btn:disabled {
    opacity: 0.7;
    cursor: default;
}

.option-btn.correct {
    background: linear-gradient(90deg, #43e97b 60%, #38f9d7 100%);
    color: #2d572c;
    box-shadow: 0 0 12px #43e97b99;
}

.option-btn.wrong {
    background: linear-gradient(90deg, #ff4e50 60%, #f9d423 100%);
    color: #fff;
    box-shadow: 0 0 12px #ff4e5099;
}

#next-btn {
    background: #d35400;
    color: #fff7b2;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 10px 32px;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}

#next-btn:disabled {
    background: #f7ca6c;
    color: #fff;
    cursor: not-allowed;
}

#next-btn:hover:not(:disabled) {
    background: #e67e22;
    transform: scale(1.03);
}

#result {
    margin-top: 24px;
    font-size: 1.2rem;
    color: #b9770e;
    font-family: 'Luckiest Guy', cursive;
    animation: fadeIn 1.2s;
}

#result h2 {
    color: #d35400;
    margin-bottom: 8px;
}

#result button {
    background: #43e97b;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    padding: 10px 28px;
    margin-top: 18px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

#result button:hover {
    background: #38f9d7;
    color: #2d572c;
    transform: scale(1.04);
}

.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 700px) {
    html,
    body {
        height: 100%;
        min-height: 100vh;
        width: 100vw;
        overflow-x: hidden;
    }
    body {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        padding: 0;
        margin: 0;
    }
    .quiz-container {
        margin: 24px auto 0 auto;
        padding: 18px 3vw 18px 3vw;
        max-width: 99vw;
        border-width: 2px;
        box-sizing: border-box;
    }
    h1 {
        font-size: 1.2rem;
        margin-bottom: 18px;
    }
    #question {
        font-size: 1.05rem;
        margin-bottom: 16px;
    }
    #options {
        gap: 12px;
        margin-bottom: 18px;
    }
    .option-btn {
        font-size: 1.05rem;
        padding: 14px 0;
        border-radius: 10px;
        min-width: 90%;
        margin: 0 auto;
        display: block;
    }
    #next-btn {
        font-size: 1.05rem;
        padding: 10px 24px;
        border-radius: 10px;
        min-width: 60%;
        margin: 12px auto 0 auto;
        display: block;
    }
    #result {
        font-size: 1.05rem;
    }
    .quiz-container:before {
        width: 54px;
        height: 54px;
        top: -38px;
        background-size: 54px 54px;
    }
}

@media (max-width: 400px) {
    .quiz-container {
        padding: 4px 1vw 4px 1vw;
    }
    h1 {
        font-size: 0.95rem;
    }
    #question {
        font-size: 0.8rem;
    }
    .option-btn,
    #next-btn {
        font-size: 0.8rem;
        padding: 8px 0;
    }
}

footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100vw;
    text-align: center;
    font-size: 10px;
    color: #888;
    background: transparent;
    z-index: 100;
    pointer-events: none;
    user-select: none;
    padding-bottom: 6px;
}