       .modal {
        display: none; 
        position: fixed; 
        z-index: 1; 
        left: 17.4%;
        top: 0;
        width: 100%; 
        height: 100%; 
        overflow: auto; 
        background-color: rgb(0 0 0 / 73%);  
    }
    .modal-backdrop {
        --bs-backdrop-zindex: 1050;
        --bs-backdrop-bg: #000;
        --bs-backdrop-opacity: 0.5;
        position: fixed;
        top: 0;
        left: 0;
        z-index: var(--bs-backdrop-zindex);
        height: 100vh;
    }
    .modal-content {
    background-color: #fbfdfd;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #fffefe;
    width: 40%;
    text-align: center;
    font-family: emoji;
    color: #120383;
    border-radius: 43px;
    }
    .block-header {
    margin-bottom: 0px;
    border-right: none;
    border-left: none;
    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
    border-radius: 1px;
    background: #ebebeb63;
    }
    .close {
        color: #ffffff;
    float: right;
    font-size: 38px;
    font-weight: bold;
    background: #00b0f0;
    }

    .close:hover,
    .close:focus {
        color: black;
        text-decoration: none;
        cursor: pointer;
    }

    /* Existing styles for navigation and questions */
.question-navigation {
    background-color: #ebebeb;
    position: fixed;
    top: 282px;
    left: 1%;
    max-width: 21.5%;
    box-shadow: 1px 3px 6px 0px rgb(105 130 139);
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    border-radius: 10px;
}
    .question-button:hover {
    transform: scale(1.1);
    background-color: #17a2b8; /* A subtle blue color on hover */
    transition: background-color 0.3s ease, transform 0.3s ease;
}
    .question-button {
    margin: 3px;
    padding: 9px;
    width: 40px;
    text-align: center;
    font-size: 15px;
    transition: background-color 0.3s, transform 0.3s;
}
@media (max-width: 768px) {
    .question-navigation {
        left: 10px;
        width: auto; /* Allow buttons to scale based on container width */
    }

    .question-button {
        width: 35px; /* Smaller buttons for smaller screens */
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .question-button {
        width: 30px; /* Even smaller buttons on very small screens */
        font-size: 10px;
    }
}
    .question-button.answered {
        background-color: #28a745; /* Green for answered */
        color: white;
    }
    .question-button.unanswered {
        background-color: #dc3545; /* Red for unanswered */
        color: white;
    }
    #timer {
        font-size: 29px;
        line-height: 35px;
        position: absolute;
        top: 106px;
        text-align: center;
        box-shadow: -1px 6px 8px 0 rgba(1, 1, 102, 0.75);
        margin-left: 59.5%;
        width: 11.6%;
    }
    .review-container {
        display: none; /* Initially hide the review section */
    }
    /* Table and question styling */
table.questions-table {
    width: 100%; /* Ensure the table takes full width */
    margin: 20px 0;
}

table.questions-table td, table.questions-table th {
    padding: 10px;
    text-align: left;
}
/* Image styling for questions */
.question-image {
    text-align: center;
    margin-top: 10px;
}

.question-image img {
    max-width: 100%; /* Ensure the image is responsive */
    height: auto;
}

/* Responsive Question Table */
@media (max-width: 480px) {
    table.questions-table td, table.questions-table th {
        padding: 8px;
        font-size: 14px; /* Smaller font size for smaller screens */
    }
}
/* Submit button styling */
#submit-test {
    position: absolute;
    right: 6%;
}

/* Responsive Submit Button */
@media (max-width: 768px) {
    #submit-test {
        bottom: 20%; /* Adjust position */
    }
}
.chatbot-container {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 1000;
}
.chatbox {
    width: 300px;
    height: 400px;
    background-color: white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    border-radius: 10px;
}
.chat-header {
    background-color: #00b0f0;
    color: white;
    padding: 10px;
    text-align: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}
.chat-footer {
    padding: 10px;
    display: flex;
    align-items: center;
}
.chat-footer input {
    flex: 1;
    margin-right: 10px;
}
.chat-button {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: #ff6600;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.message {
margin: 10px;
padding: 8px;
border-radius: 10px;
max-width: 80%;
clear: both;
}

.user {
background-color: #ff6600;
float: right;
}

.ai {
background-color: #007bff;
color: white;
float: left;
}
