 /* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Exam Container */
.exam-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 600px;
}

/* Full-Screen Button */
#fullscreen-btn {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    margin-bottom: 15px;
    transition: background 0.3s;
}

#fullscreen-btn:hover {
    background-color: #0056b3;
}

/* Question Box */
.question {
    background: #ffffff;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.question p {
    font-size: 18px;
    font-weight: bold;
}

/* Radio Button Styling */
.question label {
    display: block;
    padding: 8px;
    border: 1px solid transparent;
    border-radius: 5px;
    transition: background 0.2s, border 0.2s;
    cursor: pointer;
    font-size: 16px;
}

.question input[type="radio"] {
    margin-right: 10px;
}

.question label:hover {
    background: #f0f0f0;
}

/* Selected Answer Icons */
.question label.correct {
    color: green;
    font-weight: bold;
}

.question label.incorrect {
    color: red;
    font-weight: bold;
}

/* Explanation */
.explanation {
    display: none;
    font-size: 14px;
    color: #555;
    background: #f8f8f8;
    padding: 10px;
    border-left: 4px solid #007bff;
    margin-top: 10px;
}
/* Image inside question */
.question img {
    max-width: 100%;  /* Ensures the image doesn't overflow */
    height: auto;  /* Maintains aspect ratio */
    display: block;
    margin: 10px auto; /* Centers the image */
    border-radius: 5px;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}


/* Style for the Submit Button */
#submit-btn {
    background: #28a745; /* Green color */
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 20px auto;
    text-align: center;
    transition: background 0.3s ease-in-out, transform 0.2s;
}

#submit-btn:hover {
    background: #218838; /* Darker green */
    transform: scale(1.05);
}

#submit-btn:disabled {
    background: grey;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Remaining Questions Tracker */
#remaining-questions {
    background: #f8f9fa;
    border: 2px solid #007bff; /* Blue border */
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 20px auto;
    width: 80%;
    max-width: 500px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

/* Style for the Unanswered Question Numbers */
#question-tracker {
    display: block;
    font-size: 16px;
    color: red;
    font-weight: bold;
    margin-top: 8px;
    word-wrap: break-word; /* Ensures long lists wrap properly */
}


/* Result Section */
#result {
    font-size: 20px;
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

/* Instruction Page Styling */
.instructions-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 50%;
    text-align: center;
    margin: auto;
}

.instructions-container h2 {
    font-size: 24px;
    color: #333;
}

.instructions-container p {
    font-size: 16px;
    margin: 10px 0;
}

#start-exam-btn {
    background: #28a745;
    color: white;
    font-size: 18px;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
}

#start-exam-btn:hover {
    background: #218838;
}





/* Mobile Responsive */
@media (max-width: 600px) {
    .exam-container {
        padding: 15px;
        width: 90%;
    }

    .question p {
        font-size: 16px;
    }

    .question label {
        font-size: 14px;
    }

    #fullscreen-btn, #submit-btn {
        font-size: 16px;
        padding: 12px;
    }
}
