/* Cubic Bezier Transition */
/***
LEANER Page
***/
/* BEGIN HEADER */
@import url(https://fonts.googleapis.com/css?family=Sigmar+One);

@font-face {
    font-family: 'Digital-Numbers';
    src: url('../assets/fonts/Digital-Numbers.ttf.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

::selection {
}

#leaner-page .mt-element-ribbon .ribbon-content {
    padding: 15px 10px;
}

    #leaner-page .mt-element-ribbon .ribbon-content .title {
        height: 60px;
        overflow: hidden;
        font-size: 16px;
        font-weight: 600;
    }

    #leaner-page .mt-element-ribbon .ribbon-content .tool {
        margin-top: 10px;
        font-size: 14px;
        line-height: 2;
    }

    #leaner-page .mt-element-ribbon .ribbon-content .price-button {
        margin: 20px auto 0;
        display: block;
        box-shadow: 1px 1px 1px rgba(0,0,0,0.3) !important;
        color: #039be6;
    }

#leaner-page .content {
    margin: 5px 0;
}

#test_content {
    position: relative;
    zoom: 1;
}

    #test_content.test_file {
        position: relative;
        zoom: 1;
    }

#test_content {
    /*background: url(../../global/img/bg/test-bg.png) no-repeat;*/
}

    #test_content .media .cauhoi {
        color: #004577;
        font-size: 15px;
        font-weight: 600;
    }

    #test_content .input-group {
        margin: 5px 0;
    }

    #test_content .mt-0 {
        margin-bottom: 10px;
    }

#clock_test {
    background: #f13434;
    padding: 4px 0;
    text-align: center;
    display: inline-block;
    color: #FFF;
    border-radius: 5px;
    /*margin-bottom: 10px;*/
    width: 210px;
    box-shadow: 0px 1px 1px 0px rgba(0,0,0,0.3) !important;
    background: linear-gradient(270deg, #fd0000, #a10000);
    background-size: 400% 400%;
    -webkit-animation: ClockBackroundAnimation 3s ease infinite;
    -moz-animation: ClockBackroundAnimation 3s ease infinite;
    animation: ClockBackroundAnimation 3s ease infinite;
    transition: all 0.3s ease-in-out;
}

    #clock_test.blink span:last-child {
        animation: blinkAnimation 1s step-start 0s infinite;
        -webkit-animation: blinkAnimation 1s step-start 0s infinite;
    }

@keyframes blinkAnimation {
    50% {
        opacity: 0.5;
    }
}

@-webkit-keyframes blinkAnimation {
    50% {
        opacity: 0.5;
    }
}

@-webkit-keyframes ClockBackroundAnimation {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

@-moz-keyframes ClockBackroundAnimation {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

@keyframes ClockBackroundAnimation {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

#clock_test span {
    font-size: 30px;
    font-weight: 400;
    font-family: 'Digital-Numbers', serif;
}

.cuoc-thi-box .media {
    border-bottom: 1px dotted #ccc;
    padding-bottom: 10px;
}

#test_content .media {
    border-bottom: 1px solid #e0ebf9;
    margin-bottom: 10px;
    padding-bottom: 10px;
}

#test_content .embedded-test .media {
    display: inline-block;
    width: 130px;
    /*min-height: 200px;*/
}

#test_content .embedded-test .answer-content {
    display: none;
}

#test_content .embedded-test.list-test .media:nth-last-child(-n+4),
#test_content .embedded-test.list-test .media:nth-last-child(-n+3),
#test_content .embedded-test.list-test .media:nth-last-child(-n+2),
#test_content .embedded-test.list-test .media:nth-last-child(-n+1) {
    border-bottom: none;
}
/* END RESPONSIVE */

.explain {
    margin-top: 10px;
    color: green;
}

#submitOuter .btn, #submitOuter .btn {
    font-size: 20px;
    font-weight: 500;
    width: 210px;
    max-width: 100%;
    box-shadow: 0px 1px 1px 0px rgba(0,0,0,0.3) !important;
}

/*Hoan*/
span.stt {
    width: 20px;
    display: inline-block;
    text-transform: uppercase;
    color: #666;
}

#info-fixed-learner {
    background: #f9f9f9;
    box-shadow: 0px 1px 1px 0px rgba(0,0,0,0.2) !important;
    border: 1px solid #dfdfdf !important;
}

    #info-fixed-learner.fixed {
        position: fixed;
        width: 25%;
    }

    #info-fixed-learner .portlet-title {
        border-bottom: 1px solid #dfdfdf;
    }

    #info-fixed-learner .portlet-footer {
        padding: 10px 20px;
        border-top: 1px solid #dfdfdf;
    }

    #info-fixed-learner .questions-navigation {
        padding-top: 10px;
        border-top: 1px solid #dfdfdf;
    }

@media(max-width:991px) {
    #test_content {
        position: relative;
        zoom: 1;
    }
}

@media(max-width:767px) {
    .caption-subject .pull-right {
        float: none !important;
    }

        .caption-subject .pull-right .alert,
        .caption-subject .pull-right .btn {
            margin: 5px 0px;
        }

    .doingQuiz #testTitle {
        margin-top: 40px;
    }

    .doingQuiz #info-fixed-learner {
        position: fixed;
        width: 100% !important;
        top: 0 !important;
        left: 0 !important;
        z-index: 3;
    }

        .doingQuiz #info-fixed-learner .portlet-title {
            padding: 5px !important;
            display: inline-block;
            margin-bottom: 0 !important;
            min-height: 30px;
        }

        .doingQuiz #info-fixed-learner #submitOuter {
            padding: 5px !important;
            display: inline-block;
            float: right;
        }

        .doingQuiz #info-fixed-learner .portlet-notice {
            display: none;
        }

        .doingQuiz #info-fixed-learner .questions-navigation {
            display: none;
        }

    .doingQuiz #clock_test {
        padding: 2px 5px;
        width: auto;
        margin-bottom: 0;
    }

        .doingQuiz #clock_test span {
            font-size: 24px;
        }

    .doingQuiz #submitOuter .btn {
        font-size: 17px;
        font-weight: bold;
        width: auto;
    }

    .viewResult #info-fixed-learner {
        position: relative !important;
        width: 100% !important;
        top: 0 !important;
        left: 0 !important;
    }

    .questions-navigation.mobile-version {
        margin: 0px;
        display: block;
        background: #e0ebf9;
        position: fixed;
        right: 0px;
        top: 50px;
        bottom: 0px;
        width: 40px;
        z-index: 99999;
        padding: 4px 4px;
        margin-bottom: 0px;
        overflow: auto;
        padding-right: 6px;
    }

        .questions-navigation.mobile-version .ques-nav-link {
            width: 100%;
            margin: 0px;
            margin-bottom: 4px;
        }

    .questions-navigation.results-nav.mobile-version {
        top: 0px;
        margin: 0px;
        display: block;
        flex-wrap: wrap;
        /*justify-content: center;*/
        align-items: center;
        flex-direction: column;
    }
    /*NamNT comment*/
    .portlet.light.portlet-fit > .portlet-body #deThiContentOuter,
    .portlet.light.portlet-fit > .portlet-body.viewResult #infoDeThiOuter {
        padding-right: 45px;
    }

    .portlet.light.portlet-fit > .portlet-body.viewResult .row-view-result {
        display: flex;
        flex-wrap: wrap;
    }

        .portlet.light.portlet-fit > .portlet-body.viewResult .row-view-result #infoDeThiOuter {
            order: 1;
        }

        .portlet.light.portlet-fit > .portlet-body.viewResult .row-view-result #deThiContentOuter {
            order: 2;
        }

    .btn-bookmark-question {
        visibility: visible !important;
        opacity: 1 !important;
    }

    .btn-bookmark-question {
        right: 7px;
    }
}

@media(min-width: 768px) {
    .questions-navigation.mobile-version {
        display: none;
    }
}

.dapan {
    float: left;
    margin-top: -2px;
}

    .dapan .fa-check-circle {
        color: #20ce00;
        font-size: 24px;
        line-height: 24px;
        margin-right: 5px;
    }

#test_content .media p {
    margin-bottom: 5px;
}

#test_content .media .question-option {
    margin-bottom: 0;
    display: table;
}

#test_content .icheck-list > label {
    display: block;
    margin-bottom: 5px;
}

#test_content.test_file .media {
    margin-bottom: 0;
    padding-bottom: 0;
    clear: both;
}

    #test_content.test_file .media .cauhoi {
        float: left;
        color: #004577;
        font-weight: bold;
        font-size: 14px;
        margin-bottom: 0;
        margin-top: 0;
        width: 25px;
    }

#test_content.test_file .input-group {
    margin: 0;
    width: auto;
}

#test_content.test_file .icheck-item {
    display: inline-block;
    overflow: hidden;
    padding-top: 0;
    margin-bottom: 0;
}

#test_content.test_file .icheck-list > label {
    display: inline-block;
    margin-bottom: 8px;
}

#testTitle {
    background-color: #f9f9f9;
    border-color: #dfdfdf;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-bottom: 0;
}

    #testTitle .caption-subject {
        display: block;
        margin-bottom: 10px;
    }

    #testTitle h1 {
        font-size: 20px;
        color: #0066b1 !important;
        margin-bottom: 0;
        margin-top: 0;
    }

    #testTitle .vongThiInfo span {
        margin-right: 15px;
    }

    #testTitle .content p {
        margin: 5px 0;
    }

#startQuizBtn {
    margin-bottom: 10px;
    border-radius: 4px;
}

.carousel-inner > .item > a > img, .carousel-inner > .item > img {
    width: 100%;
    height: auto;
    max-height: 400px;
    min-height: 330px;
    object-fit: cover;
}

.page-header .page-header-menu .hor-menu .navbar-nav > li .dropdown-menu li > a {
    color: #FFF;
}

.page-header .page-header-menu .hor-menu .navbar-nav > li .dropdown-menu li:hover > a {
    color: #EEE !important;
    background: inherit !important;
    border-radius: 0 !important;
}

.icheck-list label.title {
    padding-left: 20px;
    margin-bottom: 5px;
}

    .icheck-list label.title .fa {
        width: 22px;
        height: 22px;
        text-align: center;
        line-height: 22px;
        font-size: 18px;
        vertical-align: middle;
        color: #2489c5;
    }

    .icheck-list label.title .fa-check-circle {
        color: #3c9d34;
        font-size: 20px;
    }

        .icheck-list label.title .fa-check-circle.answers-user {
            color: #045aaa;
        }

.icheck-list .icheckbox_square-blue {
    width: 22px;
    height: 22px;
}

.portlet-footer {
    padding: 10px 20px;
    border-top: 1px solid #eef1f5;
}

    .portlet-footer label.title {
        padding-left: 0;
    }

    .portlet-footer p {
        margin-bottom: 5px;
    }

#pResult p:last-child {
    margin-bottom: 0;
}

#test_content .icheck-list .stt,
#test_content .icheck-list .icheckbox_square-blue,
#test_content .icheck-list .iradio_square-blue,
#test_content .icheck-list .icheckbox_square-green,
#test_content .icheck-list .iradio_square-green,
#test_content .icheck-list .answer-content {
    float: left;
}

#test_content .icheck-list .iradio_square-blue {
    position: relative;
    border-radius: 50%;
}

#test_content.test_file div[class*=icheckbox_],
#test_content.test_file div[class*=iradio_] {
    top: 0px !important;
}

#test_content .icheck-item {
    clear: both;
    display: block;
    overflow: hidden;
    padding-top: 1px;
    margin-bottom: 5px;
}

#test_content .list-test .media:last-child {
    border-bottom: none;
}

#test_content .wrong_media .cauhoi {
    color: #fc0707 !important;
    background: url(../assets/global/img/icon-cross.png) no-repeat center left;
    background-size: 20px auto;
    padding-left: 25px;
}

#test_content .correct_media .cauhoi {
    color: #59d30b !important;
    background: url(../assets/global/img/icon-check.png) no-repeat top left;
    background-size: 24px auto;
    padding-left: 28px;
}

#test_content.test_file {
    height: 310px;
    overflow: scroll;
    background: #FFF;
    padding: 7px;
}

#pagingPortlet {
    border-top: 1px solid #eef1f5;
}

#deThiIframe {
    border: none;
    width: 100%;
    height: 820px;
}

@-webkit-keyframes blinker {
    from {
        opacity: 1.0;
    }

    to {
        opacity: 0.5;
    }
}

.blink {
    text-decoration: blink;
    -webkit-animation-name: blinker;
    -webkit-animation-duration: 0.5s;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-timing-function: ease-in-out;
    -webkit-animation-direction: alternate;
}

#test_content .media img {
    max-width: 100% !important;
    height: auto !important;
    zoom: 0.6;
}

#test_content .input-group {
    margin: 5px 0;
    width: 100%;
}

#infoDeThiOuter .portlet-notice {
    padding-top: 0;
    padding-bottom: 10px;
}

#infoDeThiOuter, #deThiContentOuter {
    transition: all 0.3s ease-in-out;
}

    #deThiContentOuter.waiting {
        width: 0;
    }

.icheck-list .correct_option {
    background: #e8ffe4;
    padding: 5px !important;
    border-radius: 5px;
}

.icheck-list .wrong_option {
    background: #fff6f6;
    padding: 5px !important;
    border-radius: 5px;
}

.icheck-list.options_matching .matching_item {
    border-bottom: 1px dashed #ebf0f7;
    padding: 10px !important;
    overflow: auto;
}

    .icheck-list.options_matching .matching_item.correct_option {
        border-bottom: 1px dashed #bbbbbb;
    }

    .icheck-list.options_matching .matching_item.wrong_option {
        border-bottom: 1px dashed #bbbbbb;
    }

.icheck-list.options_matching .row:last-child .matching_item {
    border-bottom: none;
}

#test_content .question-correct.input-group {
    padding: 10px;
    border: 1px solid #87ef5d;
    margin-top: 15px;
    background: #d0ffbd;
    border-radius: 10px;
}

    #test_content .question-correct.input-group .icheck-list.options_matching .matching_item {
        border-bottom: 1px dashed #87ef5d;
        padding-bottom: 10px;
        margin-bottom: 10px;
        overflow: auto;
    }

#test_content .input-group .question-title {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #045aaa;
}

#test_content .input-group.question-correct .question-title {
    color: #1ba901;
}

#test_content .input-group .question-label {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #045aaa;
}

#test_content .input-group .green.question-label {
    color: #20ce00;
}

/***** Hiá»ƒn thá»‹ chĂºc má»«ng thi thĂ nh cĂ´ng *****/
#congratsOuter {
    background: #007cb7;
    color: #fff;
    overflow: hidden;
    min-height: 400px;
}

    #congratsOuter .congratsSection {
        position: absolute;
        top: 20%;
        width: 70%;
        height: auto;
        max-width: 90%;
        text-align: center;
        margin: 0 auto;
        left: 0;
        right: 0;
    }

    #congratsOuter h1 {
        transform-origin: 50% 50%;
        font-size: 34px;
        font-family: 'Sigmar One', cursive;
        cursor: pointer;
        z-index: 2;
        position: absolute;
        top: 0;
        text-align: center;
        width: 100%;
        line-height: 1.5;
    }

    #congratsOuter .particle {
        height: 50px;
        width: 50px;
        position: absolute;
        top: 45%;
        left: 45%;
        z-index: 1;
        font-size: 30px;
    }

.congratsResult {
    font-size: 18px;
    padding: 5px 10px;
    background: #ff9900;
    border-radius: 30px;
    color: #fff;
    font-weight: normal;
}

    .congratsResult:hover {
        text-transform: none;
        text-decoration: none;
        color: #f9f9f9;
    }

#congratsOuter .star {
    color: #ffcc00;
}

#congratsOuter .blob {
    background: #d5f2ff;
    background: rgba(red(#ffcc00), green(#ffcc00), blue(#ffcc00), 0.25);
    border-radius: 50%;
    display: block;
}

@media(max-width:767px) {
    #congratsOuter {
        min-height: 300px;
    }

        #congratsOuter .congratsSection {
            top: 50px;
            width: 90%;
        }

        #congratsOuter h1 {
            transform-origin: 50% 50%;
            font-size: 30px;
        }
}

.questions-navigation {
    margin: 10px 20px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
}

@media(min-width: 992px) {
    .questions-navigation {
        max-height: 300px;
        overflow-y: auto;
    }
}

.questions-navigation.results-nav {
    margin: 10px 0px;
}

.ques-nav-link {
    display: inline-block;
    width: 10%;
    text-align: center;
    background: white;
    margin-bottom: 6px;
    margin: 5px 1%;
    border-radius: 3px;
    border: 1px solid #666;
    cursor: pointer
}

    .ques-nav-link:hover {
        /*border-color:#868686;*/
    }

    .ques-nav-link.checked {
        border-color: #0066b1;
        background: #0066b1;
        color: white;
    }

    .ques-nav-link.marked {
        border-color: #f4d03f;
    }

    .ques-nav-link.checked.marked {
        border-color: #f4d03f;
        background: #0066b1;
        color: white;
    }

    .ques-nav-link.correct_media {
        background: #62d63b;
        border-color: #62d63b;
        color: white;
    }

    .ques-nav-link.wrong_media {
        background: #ed6b75;
        border-color: #ed6b75;
        color: white;
    }


.list-test .media.question {
    position: relative;
}

.btn-bookmark-question {
    position: absolute;
    top: 0;
    right: 10px;
    color: #0066b1;
    visibility: hidden;
    opacity: 0;
    transition: all 0.2s;
    cursor: pointer;
}

    .btn-bookmark-question.marked {
        color: #f4d03f;
    }

.list-test .media.question:hover .btn-bookmark-question,
.list-test .media.question .btn-bookmark-question.marked {
    visibility: visible;
    opacity: 1;
}

.portlet.bordered > .portlet-title.has-actions {
    display: flex;
    justify-content: space-between;
}

    .portlet.bordered > .portlet-title.has-actions .flex-grow {
        flex-grow: 1;
    }

    .portlet.bordered > .portlet-title.has-actions .flex-shrink {
        flex-shrink: 0;
        margin-top: 7px;
    }

.question-error {
    color: red;
    font-style: italic;
}

.note-vong-thi-no-mark {
    color: red;
}

.question-show-explain {
    background: #e0ebf9;
    padding: 10px;
    color: #2a5bcc;
    border-radius: 5px;
}

.question-show-explain-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.question-show-explain div {
    color: #2a5bcc;
}

.nhom-cau-hoi-title {
    border-bottom: 1px solid #e0ebf9;
    padding-bottom: 5px;
    color: #0060aa;
    text-align: center;
}

.row-vong-thi-center {
    display: flex;
    justify-content: center;
    margin-top: 31px;
    margin-bottom: 35px;
}


/*do Quiz new CSS*/
.portlet-body.cuoc-thi-content {
    background-color: #dcdfe8;
}

#test_content .media {
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border-radius: 3px;
    -webkit-box-shadow: 0 0 0 1px rgba(63,63,68,.05), 0 1px 3px 0 rgba(63,63,68,.15);
    box-shadow: 0 0 0 1px rgba(63,63,68,.05), 0 1px 3px 0 rgba(63,63,68,.15);
}

    #test_content .media .cauhoi {
        margin-bottom: 10px;
    }

#info-fixed-learner {
    background: #ffffff;
}

#test_content .media .media-body pre {
    padding: 0px;
    border: 0px;
    background: none;
    font-weight: 600;
    /*margin-bottom: 20px;*/
}

.btn-bookmark-question {
    top: 13px;
    right: 20px;
}

.icheck-list .wrong_option {
    padding: 8px !important;
    border: 1px solid #ffdadd;
}

.media.question .ui-checkbox {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    /*font-size: 22px;*/
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    .media.question .ui-checkbox input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }

    .media.question .ui-checkbox .checkmark {
        position: absolute;
        top: 0;
        left: 0;
        height: 22px;
        width: 22px;
        background-color: #eee;
        border: 1px solid #d8d8d8;
    }

    .media.question .ui-checkbox:hover input ~ .checkmark {
        background-color: #ccc;
        border-color: #ccc;
    }

    /* When the checkbox is checked, add a blue background */
    .media.question .ui-checkbox input:checked ~ .checkmark {
        background-color: #2196F3;
        border-color: #2196F3;
    }

    /* Create the checkmark/indicator (hidden when not checked) */
    .media.question .ui-checkbox .checkmark:after {
        content: "";
        position: absolute;
        display: none;
    }

    /* Show the checkmark when checked */
    .media.question .ui-checkbox input:checked ~ .checkmark:after {
        display: block;
    }

    /* Style the checkmark/indicator */
    .media.question .ui-checkbox .checkmark:after {
        left: 8px;
        top: 3px;
        width: 6px;
        height: 12px;
        border: solid white;
        border-width: 0 3px 3px 0;
        -webkit-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
        transform: rotate(45deg);
    }

/* Customize the label (the container) */
.media.question .ui-radio {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    /*font-size: 22px;*/
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    /* Hide the browser's default radio button */
    .media.question .ui-radio input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }

    /* Create a custom radio button */
    .media.question .ui-radio .checkmark {
        position: absolute;
        top: 0;
        left: 0;
        height: 22px;
        width: 22px;
        background-color: #eee;
        border-radius: 50%;
        border: 1px solid #d8d8d8;
    }

    /* On mouse-over, add a grey background color */
    .media.question .ui-radio:hover input ~ .checkmark {
        background-color: #ccc;
        border-color: #ccc;
    }

    /* When the radio button is checked, add a blue background */
    .media.question .ui-radio input:checked ~ .checkmark {
        background-color: #2196F3;
        border-color: #2196F3;
    }

/* Create the indicator (the dot/circle - hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the indicator (dot/circle) when checked */
.media.question .ui-radio input:checked ~ .checkmark:after {
    display: block;
}

/* Style the indicator (dot/circle) */
.media.question .ui-radio .checkmark:after {
    top: 6px;
    left: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}
