/* Body and Global Styles */
body {
    font-family: arial, georgia;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #fe5347, #213cb4);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

/* Game Container */
.game-container {
    width: 90%;
    max-width: 600px;
    background: #f4f3f3;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    margin: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Header Styling */
header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
    animation: fadeIn 1s ease;
}

/* Controls Section */
.controls {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
}

.controls label {
    font-size: 1.2rem;
    color: #555;
}

.controls select {
    padding: 8px;
    font-size: 1rem;
    border-radius: 5px;
    border: 2px solid #74ebd5;
    background-color: #fff;
    color: #0b0b0b;
    transition: border 0.3s ease;
    margin-top: 10px;
}

.controls select:hover {
    border-color: #5fc2a0;
}

button {
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 10px;
}

#submit-btn {
    background: #74ebd5;
    color: #0a0a0a;
}

#submit-btn:hover {
    background: #5fc2a0;
    transform: scale(1.1);
}

#hint-btn, #skip-btn {
    background: #ACB6E5;
    color: #080808;
}

#hint-btn:hover, #skip-btn:hover {
    background: #849eb8;
    transform: scale(1.1);
}

#reset-btn {
    background: #FF6347;
    color: #0c0c0c;
}

#reset-btn:hover {
    background: #e55342;
    transform: scale(1.1);
}

/* Main Quiz Box */
.quiz-box {
    margin: 20px 0;
}

#question {
    font-size: 1.8rem;
    font-weight: bold;
    color: #555;
    margin-bottom: 10px;
    animation: slideIn 1s ease;
}

#timer {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 10px;
}

#streak {
    font-size: 1.2rem;
    font-weight: bold;
    color: orange;
    margin-bottom: 10px;
    animation: flashStreak 0.8s ease infinite;
}

/* Answer Input Field */
#answer {
    width: 80%;
    padding: 10px;
    font-size: 1rem;
    margin-bottom: 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    outline: none;
    transition: border 0.3s ease;
}

#answer:focus {
    border-color: #74ebd5;
}

/* Feedback Section */
#feedback {
    font-size: 1rem;
    margin-bottom: 10px;
    animation: fadeIn 1s ease;
}

/* Score and Streak */
#score {
    font-weight: bold;
    color: #333;
    margin-top: 20px;
}

.hidden {
    display: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes flashStreak {
    0% {
        color: orange;
    }
    50% {
        color: #ff6347;
    }
    100% {
        color: orange;
    }
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .game-container {
        padding: 15px;
        max-width: 100%;
    }

    header h1 {
        font-size: 2rem;
    }

    .controls {
        flex-direction: column;
        width: 100%;
    }

    .controls select, button {
        width: 100%;
        margin-bottom: 10px;
    }

    #question {
        font-size: 1.5rem;
    }

    #answer {
        width: 90%;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }

    .controls label {
        font-size: 1rem;
    }

    #question {
        font-size: 1.3rem;
    }

    #answer {
        width: 80%;
        font-size: 1rem;
    }

    button {
        font-size: 0.9rem;
    }

    #timer, #streak, #feedback {
        font-size: 1rem;
    }

    #score {
        font-size: 1.1rem;
    }
}
