/* #mptl-learn-app,
#mptl-exam-app{
    width: 1150px;
    max-width: 100%;
    padding: 0 !important;
    margin: 0 auto !important;
} */
#mptl-learn-app,
#mptl-exam-app{
    /* width: 1150px;
    max-width: 100%;
    padding: 0 !important;
    margin: 0 auto !important; */
    width: 1600px;
    max-width: 100%;
    padding: 0 !important;
    margin: 0 auto !important;
}

.mptl-container{
    width: 100%;
    padding: 50px 0;
    display: none;
}

.mptl-container.loaded{
    /* display: block !important; */
    display: flex !important;
    gap: 35px;
    /* flex-wrap: wrap; */
    /* flex-direction: column; */
}

.sec-left{
    width: 70%;
}
.mptl-container-learn{
    width: 30%;
    max-height: 641px;
    overflow: scroll;
}

.mptl-title{
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    padding: 15px 0;
}

.mptl-title h1{
    font-size: 34px;
    text-align: center;
    margin-bottom: 12px;
    text-transform: uppercase;
    background-color: #ffff00a1;
    font-family: Roboto;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

#mptl-video,
.mptl-progress-bar,
.mptl-flag{
    cursor: none !important;
    pointer-events: none !important;
}

.mptl-video-controller{
    display: flex;
    background: #1B1B1BF2;
    height: 80px;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px 0 5px;
}

.mptl-video-controller .btn-control > div,
.mptl-video-controller img{
    width: 60px;
    height: 60px;
    cursor: pointer;
}

.mptl-video-controller .btn-control,
.mptl-video-controller .time-control{
    display: flex;
    gap: 10px;
    color: #fff;
}

.mptl-progress-container {
    width: 100%;
    height: 5px;
    background-color: #ddd;
    position: relative;
}

.mptl-progress-bar {
    height: 100%;
    background-color: #4caf50;
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    transition: width 0.5s ease;
}

.mptl-progress-mark{
    width: 100%;
    height: 0;
    position: relative;
}

.mptl-point-line {
    position: absolute;
    height: 5px;
    top: -5px;
}

.mptl-flag {
    width: 20px;
    height: auto;
    position: absolute;
    bottom: 0;
    transform: scaleY(1.5);
}

.mptl-flag img{
    width: 20px;
    height: auto;
}

.mptl-q{
    background: #ecf2f300;
    padding: 10px 20px;
    box-shadow: rgb(0 0 0 / 40%) 0 0 10px;
    color: #0b07f3;
    border-radius: 15px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mptl-q-message{
    font-weight: 700;
    line-height: 1.2;
}

.mptl-q-warning{
    color: rgb(209, 23, 23);
}

.mptl-q-btn{
    background-color: #20a9ff;
    background-image: linear-gradient(0deg, #00000029, transparent);
    box-shadow: 0 0 0 7px #ffea0000;
    border: 1px solid #605e43;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    color: #fff;
    font-size: 14px;
    text-align: center;
}

.mptl-q-btn:hover{
    color: #fff;
    background-image: linear-gradient(#c5c5c547, transparent);
}

.mptl-nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.mptl-q-prev,
.mptl-q-next{
    flex-basis: 20%;
}

.mptl-q-space{
    flex-basis: 35%;
}

.mptl-q-detail{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    background: #8181813d;
    padding: 5px 15px;
}

.mptl-q-detail > span{
    color: #212529;
}

.mptl-q-section-title{
    /* background: #9590d05e;
    padding: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #212529;
    margin: 10px 15px; */
    background: #9590d05e;
    padding: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #212529;
    margin: 10px 0;
    border-radius: 10px;
}

.mptl-q-list{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mptl-question{
    flex: 0 0 calc(16.66% - 10px - 1px); /* -gap, -border */
    text-align: center;
    overflow: hidden;
    background: #ededed;
    padding: 8px 0;
    border-radius: 5px;
    cursor: pointer;
    border: 1px solid #1d9ceb9e;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mptl-q-active{
    background: #00cdff;
}

.mptl-question-point{
    width: 20px;
    height: 20px;
    color: #fff;
    border-radius: 50%;
    /* background: rgb(209, 23, 23); */
    font-size: 12px;
    line-height: 20px;
    font-weight: 700;
    position: absolute;
    right: 10px;
}

.mptl-suggestion{
    position: relative;
    overflow: hidden;
    z-index: 999999;
}

.mptl-suggestion-overlay{
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: #33333380;
}

.mptl-suggestion-modal{
    position: fixed;
    top: -100px;
    left: 150%;
    transform: translateX(-50%);
    background-color: #f0f0f0;
    padding: 20px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    opacity: 0;
    transition: opacity 0.7s ease, top 1s ease;
    width: 80%;
}

.mptl-suggestion-modal-header{
    text-align: center;
    font-size: 32px;
    font-weight: 700;
}

.mptl-suggestion-modal-body{
    display: flex;
    justify-content: center;
    margin: 0 auto;
    border-top: 2px solid;
    border-bottom: 2px solid;
    gap: 30px;
    padding: 20px 0;
}

.mptl-suggestion-modal-body > div{
    flex-basis: 50%;
}

.mptl-suggestion-modal-body img,
.mptl-suggestion-modal-body video{
    max-width: 100%;
    height: auto;
}

.mptl-suggestion-modal-footer{
    text-align: right;
    margin-top: 15px;
}

.jq-toast-wrap.top-right {
    top: 50px !important;
    right: 65px !important;
}






/* Exam */

.mptl-box{
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.mptl-message-box,
.mptl-result-box{
    border-spacing: 0;
    flex-basis: 50%;
    overflow-y: auto;
    border: 2px solid #076db6;
    border-radius: 10px;
    min-height: 125px;
    padding: 10px 20px;
}

.mptl-message-box{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: #ff3800;
    box-sizing: content-box;
}

.mptl-result-box{
    display: flex;
    flex-direction: column;
}

.mptl-result-box > span:not(:first-child){
    color: red;
    padding-top: 5px;
}

.mptl-result-box > span:first-child{
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,.125);
    padding-bottom: 5px;
}

.mptl-q-exam{
    border-spacing: 0;
    width: 100%;
    overflow-y: auto;
    border: 3px solid #076db6;
    border-radius: 10px;
    margin-top: 20px;
}

.mptl-q-row{
    display: flex;
}

.mptl-q-row > div{
    flex-basis: 50%;
    padding: 10px 15px;
}

.mptl-q-row > div:first-child{
    border-right: 2px solid rgba(0,0,0,.125);
}

.mptl-q-row:not(:last-child){
    border-bottom: 2px solid rgba(0,0,0,.125);
}

.mptl-q-point,
.mptl-q-replay{
    display: flex;
    justify-content: space-between;
}

.mptl-q-replay-btn{
    color: #4080FF;
    cursor: pointer;
}

.mptl-result-modal-container{
    position: relative;
    overflow: hidden;
    z-index: 999999;
}

.mptl-result-modal-overlay{
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: #33333380;
}

.mptl-result-modal{
    position: fixed;
    top: -100px;
    left: 150%;
    transform: translateX(-50%);
    background-color: #f0f0f0;
    padding: 20px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    opacity: 0;
    transition: opacity 0.7s ease, top 1s ease;
    width: 80%;
    max-width: 600px;
}

.mptl-result-modal-header{
    text-align: right;
    font-size: 24px;
    color: #216cb7fa;
    font-weight: 600;
}

.mptl-result-modal-body{
    border-top: 2px solid;
    border-bottom: 2px solid;
    padding: 20px 0;
}

.mptl-result-modal-body > div{
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mptl-result-modal-body table{
    border-spacing: 0;
}

.mptl-result-modal-body table td{
    border: 1px solid #00000040;
}

.mptl-result-modal-body table thead td{
    border-bottom: none;
}

.mptl-q-show-result{
    display: block;
    max-width: 200px;
    margin: 15px auto;
}

.mptl-result-modal-footer{
    text-align: right;
    margin-top: 15px;
}

.mptl-result-modal-body table td{
    padding-left:5px;
}

.mptl-link{
    margin: 30px auto;
    text-align: center;
}

.mptl-link .mptl-q-btn{
    padding: 15px 30px;
}


















    /* Mobile Response */
@media only screen and (max-width: 480px) {

    .mptl-title h1 {
        font-size: 24px;
    }

    .mptl-question {
        flex: 0 0 calc( 33.33% - 10px - 1px);
        font-size: 14px;
    }
    
    .mptl-question-point {
        width: 15px;
        height: 15px;
        line-height: 15px;
        right: 5px;
    }

    .mptl-q{
        flex-wrap: wrap;
        justify-content: space-evenly;
    }

    .mptl-video-controller{
        height: 50px;
    }

    .mptl-flag img {
        width: 15px;
    }

    .mptl-video-controller .btn-control > div,
    .mptl-video-controller img {
        width: 40px;
        height: 40px;
    }

    .time-control,
    .mptl-q .mptl-q-message,
    .mptl-q-btn{
        font-size: 12px;
    }

    .mptl-q-section-title{
        font-size: 15px;
    }

    .mptl-suggestion-modal-header{
        font-size: 20px;
    }

    .mptl-suggestion-modal-body {
        flex-direction: column;
    }

    .mptl-nav {
        gap: 5px;
    }

    .mptl-q-btn {
        padding: 8px;
    }

    .mptl-q .mptl-q-btn {
        flex-basis: 25%;
    }

    .mptl-q-detail{
        font-size: 14px;
    }

    .mptl-q-detail strong{
        font-size: 18px !important;
    }

    /* Exam */

    .mptl-box{
        flex-direction: column;
    }

    .mptl-message-box,
    .mptl-result-box {
        min-height: 60px;
    }

    .mptl-q-exam{
        font-size: 14px;
    }

    .mptl-result-modal-header{
        font-size: 20px;
    }

    .mptl-result-modal-body table td{
        font-size:15px;
        padding: 0;
        margin: 0;
    }
    
    /* change 22/4/2025 */
    .mptl-container.loaded{
        display: flex !important;
        gap: 0px;
        flex-wrap: wrap;
        flex-direction: column;
    }
    .sec-left{
        width: 100%;
    }
    .mptl-container-learn{
        width: 100%;
    }

}

/*Video IOS*/
.mptl-learn-app video::-webkit-media-controls,
.mptl-exam-app video::-webkit-media-controls{
    display: none !important;
}

.mptl-learn-app video::-webkit-media-controls-enclosure,
.mptl-exam-app video::-webkit-media-controls-enclosure{
    display: none !important;
}

.mptl-learn-app video::-webkit-media-controls-panel,
.mptl-exam-app video::-webkit-media-controls-enclosure{
    display: none !important;
}

.mptl-learn-app video::-webkit-media-controls-play-button,
.mptl-exam-app video::-webkit-media-controls-enclosure{
    display: none !important;
}

.mptl-learn-app video::-webkit-media-controls-volume-slider,
.mptl-exam-app video::-webkit-media-controls-enclosure{
    display: none !important;
}
