/* Styles for the quiz page */

.mcq-container {
    margin-bottom: 20px;
    padding: 15px;
    /* Removed border */
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative; /* For separator positioning */
}

/* Ensure no border-bottom for the last MCQ */
.mcq-container:last-child::after {
    border-bottom: none;
}

.mcq-container p {
    font-size: 1em;
    margin-bottom: 15px;
    font-weight: bold;
}

.mcq-container ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.mcq-container li {
    margin-bottom: 10px;
}

.mcq-container input[type="radio"] {
    /* Hide the default radio button */
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.mcq-container label {
    display: block;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 8px; /* Space between options */
}

.mcq-container label:hover {
    background-color: #f0f0f0; /* Lighter shade of gray */
    border-color: #ccc; /* Slightly darker gray for border */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.mcq-container input[type="radio"]:checked + label {
    background-color: #d0e0ff; /* Light blue for selected */
    border-color: #1865f2; /* Blue border for selected */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.image-hint-container {
    margin-top: 20px;
    height: 60px; /* Fixed height for the image hint area */
    overflow: hidden; /* Hide overflowing content */
    border-left: 0.2em solid maroon; /* Maroon left border */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fdfafa;
    padding: 10px;
}

.image-hint-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Ensure image fits within the container */
}

.submit-button {
    display: block;
    width: 100%;
    padding: 15px 30px;
    background-color: #1865f2;
    color: white;
    font-size: 1.5em;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 30px;
}

.submit-button:hover {
    background-color: #1453cc;
    transform: translateY(-2px);
}

.correct-answer {
    /* Styles for correct option after submission */
    background-color: #f0fff0 !important; /* Lighter green background */
    border-color: #28a745 !important; /* Softer green border */
    position: relative; /* Needed for the checkmark pseudo-element */
}

.correct-answer::after {
    content: '\f00c'; /* Font Awesome checkmark icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #28a745; /* Vibrant green */
    opacity: 0.7; /* Bolder semi-transparent */
    font-size: 1.5em; /* Larger icon */
}

.incorrect-answer {
    /* Styles for incorrect selected option after submission */
    background-color: #ffe6e6 !important; /* Light maroon background */
    border-color: #a00000 !important; /* Maroon border */
    color: #a00000 !important; /* Maroon text */
}

.mcq-feedback {
    margin-top: 10px;
    font-size: 0.9em;
}

.mcq-feedback .correct-option {
    color: green;
    font-weight: bold;
}

.mcq-feedback .wrong-option {
    color: maroon;
    font-weight: bold;
}

.mcq-feedback .hint-text {
    margin-top: 10px;
    font-style: italic;
    color: #555;
}
