/* Center the quiz with a vibrant gradient background */
body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, #6b48ff, #00ddeb); /* Blue to cyan gradient */
}

/* Style the quiz container with a card-like appearance */
.quiz-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    max-width: 550px;
    width: 90%;
    text-align: center;
    animation: fadeIn 0.5s ease-in;
}

/* Fade-in animation for the container */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Style the quiz title */
.quiz-container h1 {
    font-size: 2em;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Style the question text */
.question {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 25px;
    font-weight: 600;
}

/* Arrange options in a column */
.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Style individual option buttons */
.option {
    padding: 12px;
    background: #f1f3f5; /* Soft gray background */
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1em;
    color: #333;
    touch-action: manipulation; /* Improve touch responsiveness */
}

/* Hover and active effects for options */
.option:hover, .option:active {
    background: #e0e0e0; /* Slightly darker gray */
    transform: translateY(-2px);
}

/* Selected option styling */
.option.selected {
    background: #007bff; /* Vibrant blue */
    color: white;
    transform: translateY(-2px);
}

/* Style the button container */
#button-container {
    margin-top: 25px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on small screens */
}

/* Style the next/finish and reset buttons */
button {
    padding: 12px 25px;
    background: #007bff; /* Blue background */
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    touch-action: manipulation; /* Improve touch responsiveness */
}

/* Button hover and active effects */
button:hover, button:active {
    background: #0056b3; /* Darker blue */
    transform: translateY(-2px);
}

/* Disabled button styling */
button:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
}

/* Style the result text */
#result {
    margin-top: 25px;
    font-size: 1.2em;
    color: #333;
    font-weight: 600;
}

/* Media queries for mobile responsiveness */
@media (max-width: 600px) {
    .quiz-container {
        padding: 20px;
        width: 95%; /* Slightly wider on small screens */
    }

    .quiz-container h1 {
        font-size: 1.5em; /* Smaller title */
    }

    .question {
        font-size: 1.1em; /* Smaller question text */
    }

    .option {
        padding: 10px;
        font-size: 0.9em; /* Smaller option text */
    }

    button {
        padding: 10px 20px;
        font-size: 0.9em; /* Smaller button text */
    }

    #button-container {
        gap: 10px;
    }
}