/* Overall form container styling */
.answering-form {
    font-family: Arial, sans-serif;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Question title styling */
.answering-form h2 {
    font-size: 2.2em;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

/* Question text styling */
.answering-form .field__item p {
    font-size: 1.5em;
    color: #555;
}

/* Table styling for the answer options */
.answering-form table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

/* Table rows and cells */
.answering-form table tbody tr {
    border-bottom: 1px solid #ddd;
}

.answering-form table tbody tr:last-child {
    border-bottom: none;
}

.answering-form table tbody td {
    padding: 20px;
}

/* Styling the radio buttons */
.answering-form .form-radio {
    width: 25px;
    height: 25px;
    margin-right: 15px;
    cursor: pointer;
}

/* Styling the labels for answer options */
.answering-form td p {
    font-size: 2em;
    color: #333;
}

/* Styling the submit button */
.answering-form .form-actions .btn {
    background-color: #8b1919;
    color: #fff;
    font-size: 1.5em;
    padding: 15px 25px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.answering-form .form-actions .btn:hover {
    background-color: #a32222;
}

/* Making the form's checkboxes or radio buttons larger */
.answering-form .form-check-input {
    transform: scale(1.);
    margin-right: 5px;
}

/* Styling the legend in the quiz form */
#quiz-question-answering-form fieldset.fieldgroup.form-composite legend .fieldset-legend {
    font-size: 1.8em;
    font-weight: bold;
    color: #333;
    padding: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
}

/* Aligning the radio buttons and labels horizontally */
#quiz-question-answering-form fieldset.fieldgroup.form-composite .form-check {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

/* Styling the labels for the radio buttons */
#quiz-question-answering-form fieldset.fieldgroup.form-composite .form-check-label {
    font-size: 1.5em;
    color: #333;
    cursor: default;
}

/* Styling for the quiz intro */
.quiz-config-overview {
    font-family: Arial, sans-serif;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

/* Table styling for the quiz overview */
.quiz-config-overview .quiz-config-overview-table {
    width: 100%;
    margin-top: 15px;
    border-collapse: collapse;
}

/* Table header styling */
.quiz-config-overview th {
    text-align: left;
    font-size: 1.3em;
    font-weight: bold;
    padding: 15px;
    background-color: #f1f1f1;
    color: #333;
}

/* Table row styling */
.quiz-config-overview td {
    padding: 15px;
    font-size: 1.2em;
    color: #555;
}

/* Alternate row colors */
.quiz-config-overview tr:nth-child(even) {
    background-color: #f7f7f7;
}

.quiz-config-overview tr:nth-child(odd) {
    background-color: #fff;
}

/* Styling the start quiz button */
.quiz-config-overview .quiz-config-overview-take .quiz-start-link {
    display: inline-block;
    background-color: #8b1919;
    color: #fff;
    font-size: 1.5em;
    font-weight: bold;
    padding: 15px 30px;
    margin-top: 20px;
    border-radius: 10px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.quiz-config-overview .quiz-config-overview-take .quiz-start-link:hover {
    background-color: #a32222;
    transform: scale(1.5);
}

.answering-form .form-check-input {
    transform: scale(1.5);
    margin-right: 5px;
}

/* Styling the quiz feedback form */
#quiz-take-question-feedback-form fieldset.js-form-wrapper {
    border: 2px solid #007bff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Styling for feedback containers */
.quiz-report-score-container {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.5em;
}

/* Correct answer feedback */
.quiz-report-score-container.q-correct {
    background-color: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

/* Incorrect answer feedback */
.quiz-report-score-container.q-wrong {
    background-color: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

/* Add "Feedback" label before feedback text */
.quiz-report-score-container::before {
    content: "Feedback: ";
    font-weight: bold;
    font-size: 1.2em;
    display: block;
    margin-bottom: 10px;
}

/* Feedback paragraph styling */
.quiz-report-score-container + p {
    background-color: #d4edda63;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.5em;
    color: #333;
    border: 1px solid #ccc;
    margin-top: 15px;
}

/* Styling the table to be responsive */
.table-responsive {
    overflow-x: auto;
}

/* Fieldset styling for quiz questions */
#quiz-question-answering-form fieldset.fieldgroup.form-composite {
    border: 2px solid #8b1919;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}



.path-quiz .clearfix.text-formatted.field.field--name-body.field--type-text-long.field--label-above {
    font-size: 20px;
}


.path-quiz a.btn.btn-primary.btn-lg {
    margin-bottom: 40px;
}

.path-quiz .btn-primary {
    background-color: #8b1919;
    border-color: #8b1919;
}



.path-quiz .quiz-report-score-container.q-correct {
    display: none;
}


/* Styling for the quiz not available message */
.quiz-not-available {
    background-color: #ffe6e6; /* Light red background */
    color: #8b1919; /* Dark red text */
    border: 2px solid #8b1919; /* Dark red border */
    padding: 15px;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
    margin: 20px 0; /* Spacing around the message */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Slight shadow for depth */
}
