/* Common stylings */
* {
    font-family: Arial, sans-serif;
}

/* Header styling */
#header_menu {
    background: #f8f9fa;
    padding: 10px 0;
}

#header_menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#header_menu li {
    float: left;
}

#header_menu li a {
    display: block;
    color: black;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

#header_menu li a:hover {
    color: white;
    background-color: #343a40;
}

/* Containers */
#multichoice_question {
    width: 300px;
    background-color: #f3f3f3;
    color: #333;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 10px;
}

/* Inputs */
.styled-input, input[type="checkbox"], select {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

input[type="checkbox"] {
    width: auto;
    vertical-align: middle;
}

/* Answer button styling */
.answer-button {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: none;
    color: #fff;
    background-color: #007BFF;
    cursor: pointer;
    border-radius: 5px;
    display: block;
    margin-bottom: 10px;
}

.answer-button:hover {
    background-color: #0056b3;
}

/* Verdict */
#verdict {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

/* Hints */
#hint, #full_hint {
    background-color: #ffea00;
    color: #333333;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.hint_word {
    font-weight: bold;
    color: red;
}

/* Explanation */
#explanation, .incorrect_answer_question {
    font-size: 0.75rem;
    background-color: transparent;
    color: #333;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

#question {
    text-align: center;
    margin-bottom: 10px;
}

/* Show button */
.show_button {
    background-color: #28a745;
    color: #fff;
    padding: 10px;
    margin-top: 10px;
    width: 100%;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.show_button:hover {
    background-color: #1c7430;
}

#nextQuestion {
    background-color: #dc3545;
    color: #fff;
    padding: 10px;
    margin-top: 10px;
    width: 100%;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

#nextQuestion:hover {
    background-color: #b02a37;
}

#checkbox-container {
    display: inline-block;
    margin-top: 10px;
    margin-left: 1%;
    width: 48%;
}

#checkbox-container input[type="checkbox"], #checkbox-container label {
    margin: 0;
}

.highlight {
    background-color: #ffea00;
    color: #333333;
}

.correct {
    background-color: green;
    color: white;
}

.incorrect {
    background-color: red;
    color: white;
}

label {
    font-size: 0.95rem;
}

/* Checkbox specific styles */
input[type="checkbox"] {
    display: none;
}

input[type="checkbox"] + label {
    padding-left: 25px;
    min-height: 25px;
    line-height: 25px;
    display: inline-block;
    position: relative;
}

input[type="checkbox"] + label::before, input[type="checkbox"] + label::after {
    content: '';
    position: absolute;
}

input[type="checkbox"] + label::before {
    left: 0;
    width: 16px;
    height: 16px;
    border: 1px solid #ccc;
    background-color: #fff;
    border-radius: 3px;
}

input[type="checkbox"]:checked + label::before {
    border-color: #3a5fcd;
    background-color: #3a5fcd;
}

input[type="checkbox"] + label::after {
    top: 5px;
    left: 4px;
    width: 8px;
    height: 3px;
    border-left: 2px solid;
    border-bottom: 2px solid;
    transform: rotate(-45deg);
    display: none;
}

input[type="checkbox"]:checked + label::after {
    display: block;
    border-color: #fff;
}

select {
    height: 35px;
    background-color: #f6f6f6;
}

input[type="checkbox"]:focus, select:focus {
    border-color: #85b7d9;
}

input[type="checkbox"]:disabled, select:disabled {
    background-color: #eee;
    cursor: not-allowed;
}
