#quiz-form h2 {
    text-align: center; /* Center headings */
    color: #007BFF; /* Blue color for headings */
}

#quiz-form, #quiz-answers {
    background-color: white; /* White background for forms */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Shadow for depth */
    padding: 20px; /* Padding inside the form */
    /*max-width: 600px;*/ /* Max width for forms */
    margin: auto; /* Center forms */
}


#quiz-form label {
    font-weight: bold; /* Bold labels */
    //display: block; /* Block display for labels */
    //margin: 10px 0 5px; /* Spacing around labels */
}

#quiz-form select, #quiz-form input[type="number"], #quiz-answers button {
    width: 100%; /* Full width for inputs */
    padding: 10px; /* Padding inside inputs */
    border: 1px solid #ccc; /* Light gray border */
    border-radius: 5px; /* Rounded corners for inputs */
    box-sizing: border-box; /* Include padding in width */
}

#quiz-form button, #quiz-answers button {
    background-color: #007BFF; /* Blue button */
    color: white; /* White text for button */
    border: none; /* No border */
    cursor: pointer; /* Pointer cursor */
    margin-top: 20px; /* Spacing above button */
    transition: background-color 0.3s ease; /* Smooth transition */
}

#quiz-form button:hover, #quiz-answers button:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

#quiz-answers h4 {
    margin: 15px 0 5px; /* Spacing around question titles */
    color: #333; /* Dark text color */
	font-size:20px;
	font-weight:bold;
}

.quiz-question {
    border-bottom: 1px solid #eee; /* Light separator for questions */
    padding-bottom: 15px; /* Padding below each question */
    margin-bottom: 15px; /* Spacing below each question */
}

#quiz-result {
    display: none; /* Initially hidden */
    padding: 20px;
    background-color: #e7f3fe; /* Light blue background for result */
    border: 1px solid #007BFF; /* Blue border */
    border-radius: 5px; /* Rounded corners */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Shadow for depth */
    margin-top: 20px; /* Spacing above result box */
    text-align: center; /* Center text in result box */
    color: #333; /* Dark text color */
}

   /* Loader CSS */
    #preloader {
        display: flex;
        justify-content: center;
        align-items: center;
        position: fixed; /* Change to fixed for full-page loader */
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.8);
        z-index: 1000;
        text-align: center;
    }

    .loader {
        font-size: 20px;
        font-weight: bold;
        color: #333;
    }

    /* Spinner Animation */
    .spinner {
        border: 8px solid #f3f3f3; /* Light grey */
        border-top: 8px solid #3498db; /* Blue */
        border-radius: 50%;
        width: 40px; /* Adjust size */
        height: 40px; /* Adjust size */
        animation: spin 1s linear infinite;
        margin-top: 10px; /* Space between text and spinner */
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }