#modalForm {
    width: 80%;
    margin: 0px 0px 40px 40px;
}

/* Ensure consistent typography and hierarchy */
.quiz-container-main {
    font-family: "Poppins", sans-serif;
    /* background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); */
    display: flex;
    justify-content: center;
    align-items: center;
    /* height: 100vh; */
    margin: 0;
    flex-direction: column;
}

/* Main and scoreboard containers styling */
.quiz-container,
.scoreboard-container {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    width: 90%;
    /* max-width: 600px; */
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
}

/* Header section with question number, timer, and score */
.assessment header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

/* Styling for question number, timer, and score elements */
#question-number,
#timer,
#score {
    font-size: 1.2em;
    color: #777;
}

/* Timer element with color transition */
#timer {
    color: #e74c3c;
    /* Initial color */
    transition: color 0.3s ease-in-out;
    /* Smooth transition for color change */
}

/* Progress bar container */
.progress-container {
    width: 100%;
    background: #f2f2f2;
    border-radius: 15px;
    overflow: hidden;
    margin: 30px 0;
}

/* Progress bar with width transition */
.progress-bar {
    width: 0;
    height: 10px;
    background: #0acf83;
    transition: width 0.5s ease-in-out;
}

/* Main section with question text */
.assessment main {
    margin: 30px 0;
}

/* Question text styling */
.assessment h2 {
    font-size: 2em;
    color: #333;
    margin-bottom: 20px;
}

/* Options container */
.options {
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-top: 20px;
}

/* Styling for answer options */
.assessment label {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    margin: 10px 0;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.6s, box-shadow 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Radio input styling */
.assessment input[type="radio"] {
    margin-right: 12px;
}

/* Footer section with next button */
.assessment footer {
    display: flex;
    justify-content: center;
}

/* Next and restart buttons styling */
#next-button,
#restart-button {
    background: #0acf83;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 15px 30px;
    cursor: pointer;
    font-size: 1.2em;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Hover effect for options */
.options label:hover {
    background-color: #e0e0e0;
    /* Lighter background on hover */
    transform: translateY(-3px);
    /* Move up slightly on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    /* Slightly larger shadow on hover */
}

/* Hover effect for progress bar */
.progress-bar:hover {
    background-color: #09ca73;
    /* Brighter color on hover */
}

/* Hover effect for next and restart buttons */
#next-button:hover,
#restart-button:hover {
    background-color: #09ca73;
    /* Brighter color on hover */
    transform: scale(1.05);
    /* Slightly larger scale on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    /* Slightly larger shadow on hover */
}

/* Scoreboard container and table styling */
.scoreboard-container table {
    width: 100%;
    border-collapse: collapse;
}

/* Scoreboard table header and cell styling */
.scoreboard-container th,
.scoreboard-container td {
    border: 1px solid #ddd;
    padding: 12px;
}

.scoreboard-container th {
    background-color: #f2f2f2;
    color: #333;
}

/* Question text and options animation transitions */
#question-text {
    transition: opacity 0.4s ease-in-out;
    /* Smooth opacity transition */
    font-size: 16px;
    line-height: 20px;
    text-align: left;
}

.options label:hover {
    opacity: 0.9;
    /* Slight opacity decrease on hover */
}

/* Responsive styles */
@media screen and (max-width: 768px) {

    .quiz-container,
    .scoreboard-container {
        width: 90%;
        /* Adjust width for smaller screens */
        max-width: 90%;
        /* Ensure maximum width doesn't exceed screen size */
    }

    .assessment h2 {
        font-size: 1.8em;
        /* Adjust font size */
    }

    #next-button,
    #restart-button {
        padding: 12px 24px;
        /* Adjust button padding */
        font-size: 1em;
        /* Adjust button font size */
    }

    .options label {
        padding: 12px;
        /* Smaller padding for options */
    }
}

@media screen and (max-width: 600px) {

    .quiz-container,
    .scoreboard-container {
        padding: 20px;
        /* Adjust padding for smaller screens */
    }

    .assessment h2 {
        font-size: 1.6em;
        /* Further adjust font size */
    }

    #next-button,
    #restart-button {
        padding: 10px 20px;
        /* Adjust button padding */
        font-size: 0.9em;
        /* Adjust button font size */
    }

    .options label {
        padding: 12px;
        /* Smaller padding for options */
    }
}

@media screen and (max-width: 450px) {

    .quiz-container,
    .scoreboard-container {
        padding: 15px;
        /* Adjust padding for very small screens */
    }

    .assessment h2 {
        font-size: 1.4em;
        /* Further adjust font size */
    }

    #next-button,
    #restart-button {
        padding: 8px 16px;
        /* Adjust button padding */
        font-size: 0.8em;
        /* Adjust button font size */
    }

    .options label {
        padding: 10px;
        /* Smaller padding for options */
    }
}


.assessment-main .heading {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin: 20px 0;
}

.assessment-main .heading span {
    display: block;
    font-size: 32px;
    color: #333;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 10px;
}

.assessment-main .heading span::after {
    content: "";
    display: block;
    width: 50px;
    height: 4px;
    background-color: #ff6600;
    margin: 8px auto 0;
    border-radius: 2px;
}

.assessment-main .heading span:nth-child(1) {
    color: #ff6600;
}

.assessment-main .heading span:nth-child(2) {
    color: #007bff;
}

.assessment-main .heading span:nth-child(3) {
    color: #28a745;
}

/* Ensure consistent typography and hierarchy */
    .quiz-container-main {
        font-family: "Poppins", sans-serif;
        /* background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); */
        display: flex;
        justify-content: center;
        align-items: center;
        /* height: 100vh; */
        margin: 0;
        flex-direction: column;
    }
    /* Main and scoreboard containers styling */
    .quiz-container,
    .scoreboard-container {
        background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
        border-radius: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        width: 90%;
        /* max-width: 600px; */
        padding: 30px;
        text-align: center;
        margin-bottom: 30px;
    }
    /* Scoreboard container and table styling */
    .scoreboard-container table {
        width: 100%;
        border-collapse: collapse;
    }

    /* Scoreboard table header and cell styling */
    .scoreboard-container th,
    .scoreboard-container td {
        border: 1px solid #ddd;
        padding: 12px;
    }

    .scoreboard-container th {
        background-color: #f2f2f2;
        color: #333;
    }

    /* Question text styling */
    h2 {
        font-size: 2em;
        color: #333;
        margin-bottom: 20px;
    }

    /* Responsive styles */
    @media screen and (max-width: 768px) {

        .quiz-container,
        .scoreboard-container {
            width: 90%;
            /* Adjust width for smaller screens */
            max-width: 90%;
            /* Ensure maximum width doesn't exceed screen size */
        }

        h2 {
            font-size: 1.8em;
            /* Adjust font size */
        }
    }

    @media screen and (max-width: 600px) {

        .quiz-container,
        .scoreboard-container {
            padding: 20px;
            /* Adjust padding for smaller screens */
        }

        h2 {
            font-size: 1.6em;
            /* Further adjust font size */
        }
    }

    @media screen and (max-width: 450px) {

        .quiz-container,
        .scoreboard-container {
            padding: 15px;
            /* Adjust padding for very small screens */
        }

        h2 {
            font-size: 1.4em;
            /* Further adjust font size */
        }
    }