/* styles.css */
body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

.hidden {
    display: none;
}

h1 {
    position: absolute;
    top: 20px; /* Adjust this value as needed to change the distance from the top */
    width: 100%;
    text-align: center;
}

.wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.container {
    text-align: center;
    width: 90%;
    max-width: 500px;
    padding: 20px;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.btn-container {
    display: block;
    margin: 10px auto;
    padding: 10px 20px;
    width: 80%;
    max-width: 300px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-container:hover {
    background-color: #0056b3;
}

#questionContainer {
    margin-top: 20px;
    font-size: 1.2em; /* Font size for questions */
    max-width: 100%; /* Ensures it stays within bounds */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the question and answers */
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Added shadow for better presentation */
}

#question {
    text-align: center; /* Center the question text */
    margin-bottom: 15px; /* Adjusted space between question and answers */
}

#answerButtons {
    display: flex; /* Use flex layout */
    flex-direction: column; /* Single column */
    gap: 8px; /* Reduced gap between answer buttons */
    font-size: 1em; /* Font size for answers */
    width: 100%; /* Ensures it stays within bounds */
}

#answerButtons button {
    background-color: #007BFF; /* Blue color for answers */
    color: white;
}

.correct {
    background-color: green;
    animation: revealCorrect 1s forwards;
}

.incorrect {
    background-color: red;
    animation: revealIncorrect 1s forwards;
}

@keyframes revealCorrect {
    0% { background-color: #007BFF; }
    100% { background-color: green; }
}

@keyframes revealIncorrect {
    0% { background-color: #007BFF; }
    100% { background-color: red; }
}

.timer {
    font-size: 1.3em; /* Font size for timer */
    margin-bottom: 15px;
}
