:root {
    --background-toeic: linear-gradient(to top, #000 0%, #444d52 45%, #444d52 55%, #0f202d 100%);
    /*--background-toeic-header: linear-gradient(to top, #000 0%, #444d52 45%, #444d52 55%, #0f202d 100%);*/
    --background-toeic-header: #db6262;
    --text-toeic-header: #fff;
    --background-toeic-content: #dbe5f5;
    --background-toeic-footer: #fff;
    --background-content: #fff;
    --background-body: #841212;
    --height-toeic-header: 60px;
    --height-toeic-footer: 45px;
    --text-learn-base: 16px;
    --text-learn-lg: 18px;
    --text-learn-xl: 20px;
    --text-font-28: 28px;
}

body *[style*=font-family] {
    font-family: unset !important;
}

body .not-select * {
    user-select: none !important; /* Ngăn chặn bôi đen văn bản */
}

body .not-select .user-select-test, body .not-select .user-select-test * {
    user-select: text !important;
}

.user-select-none {
    user-select: none;
}

@keyframes blink {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes explain-click {
    0%, 98% {
        box-shadow: 0 5px green;
    }
    100% {
        box-shadow: unset;
    }
}

input[type=checkbox]{
    scale: 1.4;
}
input[type=radio][name*=Quiz]{
    scale: 1.4;
    margin-right: 10px;
    cursor: pointer;
}

input.choose-part-input {
    display: none;
}

.explain-click {
    animation: explain-click 3s ease-in;
}

.animation-record::before,
.animation-thinking::before
{
    content: '\25CF';
}

.animation-record {
    animation: blink 1s infinite;
    margin-right: 10px;
    display: flex;
    align-items: center;
    color: red;
    font-size: 20px;
}

.animation-thinking {
    animation: blink 1s infinite;
    margin-right: 10px;
    display: flex;
    align-items: center;
    color: green;
    font-size: 20px;
}

body .content-quiz-part *:not(i)
{
    /*font-family: Arial, sans-serif !important;*/
}

body .content-quiz-part {
    font-size: var(--text-learn-base);
    position: relative;
}

.bg-learn {
    background: var(--background-toeic);
    color: #fff;
}

.bg-content {
    background-color: var(--background-content);
}

.bg-body {
    background-color: var(--background-body);
}

body {
    font-size: var(--text-learn-base);
    font-family: Arial, sans-serif;
}

.overflow-auto {
    overflow: auto;
}

.overflow-hidden {
    overflow: hidden;
}

.no-wrap-text {
    white-space: nowrap;
}

.max-with-full {
    max-width: 100%;
}

.gap-1-2 {
    gap: 5px;
}

.text-28 {
    font-size: var(--text-font-28);
}

.text-20 {
    font-size: var(--text-learn-xl);
}

.text-18 {
    font-size: var(--text-learn-lg);
}

.text-16 {
    font-size: var(--text-learn-base);
}

#learn_toeic {
    height: 100vh;
    overflow: hidden;
}

#learn_toeic-header {
    height: var(--height-toeic-header);
    background: var(--background-toeic-header);
    color: var(--text-toeic-header);
}

#learn_toeic-content {
    flex: 1;
    background-color: var(--background-toeic-content);
}

#learn_toeic-content .list-quiz{
    overflow: auto;
    height: 100%;
    border-radius: 10px;
}

#learn_toeic-footer {
    max-width: 100%;
    background-color: var(--background-toeic-footer);
    min-height: var(--height-toeic-footer);
}

#learn_toeic-footer .list-part {
    font-weight: bold;
    margin-right: 10px;
    border-radius: 10px;
}

#learn_toeic-footer .button-quiz-child {
    padding: 6px 0 0;
    border-top: 3px solid #D7D7D7;
    background-color: inherit;
}
#learn_toeic-footer .part-footer-child {
    justify-content: center;
}

#learn_toeic-footer .part-footer-child:not(.part-active):hover {
    outline: #0E98F0 solid 2px;
    outline-offset: 0;
    background: #efefef;
    color: #262626;
    border-radius: 10px;
}
#learn_toeic-footer .part-footer-child.part-active {
    justify-content: start;
}
#learn_toeic-footer .part-footer-child .part-title {
    padding: 6px 8px 0;
    width: 100%;
}
#learn_toeic-footer .part-footer-child .part-info-question {
    color: #757575;
}
#learn_toeic-footer .part-footer-child.part-active .part-info-question {
    display: none
}
#learn_toeic-footer .part-footer-child.part-active .part-question {
    display: unset !important;;
}
#learn_toeic-footer .part-footer-child.part-active .part-title {
    border-top: 3px solid #D7D7D7;
    width: unset;
}
#learn_toeic-footer .button-quiz-child:focus {
    box-shadow: unset;
}

#learn_toeic-footer .button-quiz-child span {
    width: 30px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#learn_toeic-footer .button-quiz-child.active span {
    border: 1px solid #9999FF;
    border-radius: 5px;
}

#learn_toeic-footer .button-quiz-child.checked {
    border-top-color: #ee6565 !important;
}
#learn_toeic-footer .button-quiz-child.button-success {
    border-top-color: green !important;
}
#learn_toeic-footer .button-quiz-child.button-error {
    border-top-color: red !important;
}

input.input_answer_quiz_fill_words {
    border: 1px solid #2dace3 !important;
    text-align: center;
    border-radius: 5px;
}

.input_answer_quiz_fill_words::placeholder {
    opacity: 0;
    transition: opacity 0.1s ease-in-out;
}

.quiz_drag_drop_word input.input_answer_quiz_fill_words {
    pointer-events: none;
}

.input_answer_quiz_fill_words.placeholder-visible::placeholder {
    opacity: 0.4;
}

i.btn-back,
i.btn-next {
    font-size: 40px;
    cursor: pointer;
}

i.btn-back:hover,
i.btn-next:hover {
    color: #748a74;
}

.title-quiz-choice {
    display: flex;
    column-gap: 5px;
    border: 1px solid #aaaaaa;
    border-top: none;
    background: -webkit-linear-gradient(top, #fff, #abe5fd);
    /*cursor: pointer;*/
    padding: 5px;
    margin-bottom: 10px;
}

.block-quiz-test p {
    margin-bottom: 0;
    /*padding-top: 3px;*/
    padding-bottom: 3px;
}

@media (min-width: 768px){
    .not_config_question {
        min-width: 500px;
        max-width: 100%;
        margin-inline: auto;
    }
    .block-quiz-test {
        height: 100%;
        overflow: hidden;
    }
    .block-quiz-test .content-quiz {
        overflow: hidden;
        height: 100%;
        font-size: 18px;
    }
    .js-scroll {
        overflow: auto;
    }
    .h-md-100 {
        height: 100%;
    }
    .h-md-100:not(.overflow-auto) {
        overflow: hidden;
    }
    .block-quiz-test .note-quiz {
        max-height: 100px;
        overflow: auto;
    }
}

/*.block-quiz-test {
    max-height: 100%;
    overflow: hidden;
}*/

.text-correct,
.text-error {
    position: relative;
}
label.text-correct::before {
    content: "\2713";
    position: absolute;
    left: 8px;
    top: -4px;
    font-weight: 700;
    color: green;
}

label.text-error::before {
    content: "\2717";
    position: absolute;
    left: 8px;
    top: -4px;
    font-weight: 700;
    color: red;
}

.explain {
    background-color: #f9a95a;
    border-radius: 2px;
}

.explain > b{
    background-color: #d27922;
}

.list-answer-word-child {
    cursor: grab;
    border: 1px solid;
    border-radius: 5px;
    padding: 4px 8px;
    background: linear-gradient(to bottom, #fff, #abe5fd);
    width: fit-content;
}

.draggable {
    cursor: grab;
}
/* Highlight */
.color-picker > div {
    height: 20px;
    min-width: 20px;
    cursor: pointer;
}
.color-picker .selected {
    border: 2px solid #c5c5c5;
}
.highlight_child-content {
    background: rgba(0,0,0,.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 10px;
}
span.highlighted {
    cursor: pointer;
}
/* END Highlight */

.table_choice-child tbody td:not(.not-pointer) {
    cursor: pointer;
}

.table_choice-child table th {
    padding: 0.35rem 0.5rem;
}

.table_choice-child .table-bordered td,
.table_choice-child .table-bordered th{
    border-color: #333;
}

.read_and_answer-child .title-quiz-choice > div:first-child:after
{
    content: '. ';
}
.list-quiz .number-quiz {
    border-radius: 100%;
    color: #fff;
    background-color: #9bbed1;
    font-weight: 600;
    padding: 2px 10px;
    text-align: center;
}

.block-quiz-test, .btn-back, .btn-next {
    display: none;
}

p label {
    margin-bottom: 0 !important;
}

input[type="radio"],
input[type="checkbox"]{
    width: 16px;
}

#learn_toeic .input_answer_quiz_fill_words{
    min-width: 150px;
}

span[style*="background:white"] {
    background: unset !important;
}

#save_test_toeic table {
    max-width: 100% !important;
    width: auto !important;
}

.ui-resizable.flex-1 {
    flex: unset !important;
    width: 50%;
}

.ui-resizable.flex-1 .ui-resizable-handle {
    /*background-color: #444;*/
    width: 27px;
    height: 25px;
    top: 0;
    right: 1px;
    border: 1px solid #ccc;
    padding: 2px 4px;
    display: flex;
    border-radius: 3px;
}

.ui-resizable.flex-1 .ui-resizable-handle:before {
    content: "<>";
    font-size: 14px;
    margin: auto;
}

input.input-correct, input.input-error {
    position: relative;
}
input.input-correct::before {
    position: absolute;
    right: 100%;
    content: "\2713";
    font-weight: 700;
    color: green;
}
input.input-error::before {
    position: absolute;
    right: 100%;
    content: "\2717";
    font-weight: 700;
    color: red;
}

.list-button-part .button-quiz-child.btn-flag {
    border-color: green !important;
    background-color: green !important;
    color: #fff !important;
}
.list-question-reading {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(114px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}
.list-question-reading .div-review-question {
    position: relative;
    display: inline-block;
    cursor: pointer;
}
.list-question-reading .div-review-question:hover::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background-color: green;
    animation: underlineAnimation 0.5s ease-in-out;
}
@keyframes underlineAnimation {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.div-review-question .fa-check {
    color: green;
}
.div-review-question .fa-times {
    color: red;
}

.js-text-speaking {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    display: none;
    position: absolute;
    z-index: 100;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
    border: 1px solid;
    border-radius: 0 0 15px 15px;
    overflow: hidden;
    opacity: 0.9;
}

.js-text-speaking .text {
    text-transform: uppercase;
    color: #fff;
    background-color: #435d6c;
    padding: 5px 15px;
    white-space: nowrap;
}

.js-text-speaking .js-timer-count-down {
    padding-block: 10px;
    color: #435d6c;
}

.js-stop-speaking {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    background-color: #435d6c;
    text-align: center;
    z-index: 100;
    width: 500px;
    max-width: 95%;
    border: 1px solid;
    border-radius: 0 0 15px 15px;
    overflow: hidden;
    opacity: 0.9;
}

.js-stop-speaking .head-stop{
    color: #fff;
    padding: 15px 10px 0;
    font-weight: bold;
    font-size: 30px;
}

.js-stop-speaking .body-stop{
    background-color: #fff;
    margin: 15px;
    padding: 15px;
}