/* Mock Test System CSS */
/* Hosted at: https://storage.googleapis.com/cdn.bongsrnews.com/mocktest-style.css */

body {
    margin: 0;
    background-image: url(img/bg.jpg);
    background-attachment: fixed;
    font-family: 'Bree Serif', Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

.custom-box {
    max-width: 800px;
    background-color: #C5E6F5;
    margin: 30px auto;
    padding: 50px 40px;
    border-radius: 10px;
    border-style: solid;
    border-color: #FFFFFF;
}

.quiz-home-box {
    text-align: center;
    display: none;
}

.quiz-home-box.show {
    display: block;
    animation: fadeInRight 1s ease;
}

.quiz-home-box h3 {
    font-size: 24px;
    font-weight: 500;
    color: #444444;
    margin: 0 0 15px;
}

.quiz-home-box h4 {
    font-size: 30px;
    font-weight: 500;
    color: #444444;
    margin: 0 0 30px;
}

.btn {
    background-color: #FB0606;
    border: 2px solid #FFFFFF;
    padding: 14px 40px;
    color: #ffffff;
    font-size: 20px;
    border-radius: 30px;
    font-family: 'Bree Serif', Arial, sans-serif;
    cursor: pointer;
    white-space: nowrap;
    margin: 0 10px;
    text-decoration: none;
    display: inline-block;
}

.btn:focus {
    outline: none;
}

.btn:hover {
    background-color: #D80606;
}

.quiz-box {
    background-color: #C5E6F5;
    display: none;
}

.quiz-box.show {
    display: block;
    animation: fadeInRight 1s ease;
}

.quiz-box .stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    font-size: 30px;
    text-transform: lowercase;
    color: #000000;
}

.quiz-box .stats .quiz-time {
    flex-basis: calc(50% - 20px);
    max-width: calc(50% - 20px);
    text-align: left;
}

.quiz-box .stats .time-up-text {
    color: #f40404;
    font-weight: 500;
    display: none;
}

.quiz-box .stats .time-up-text.show {
    display: inline-block;
    animation: fadeInOut 1s linear infinite;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 2;
    }
    100% {
        opacity: 0;
    }
}

.quiz-box .stats .quiz-time .remaining-time {
    height: 60px;
    width: 60px;
    color: #096b36;
    border: 2px solid #096b36;
    font-weight: 800;
    line-height: 56px;
    text-align: center;
    border-radius: 50%;
    display: inline-block;
}

.quiz-box .stats .quiz-time .remaining-time.less-time {
    color: #b5200d;
    border-color: #F72206;
}

.quiz-box .stats .score-board {
    flex-basis: calc(50% - 20px);
    max-width: calc(50% - 20px);
    text-align: right;
}

.quiz-box .stats .score-board .correct-answer {
    font-weight: 800;
}

.quiz-box .question-box {
    background-color: #ffffff;
    padding: 20px 15px;
    margin-top: 40px;
    border-radius: 10px;
    font-size: 28px;
    border: 2px solid #400A02;
    text-align: center;
    position: relative;
}

.quiz-box .question-box .current-question-num {
    height: 70px;
    width: 70px;
    background-color: #ffffff;
    border: 2px solid #FF1403;
    font-size: 20px;
    font-weight: 800;
    color: #F90F0B;
    border-radius: 50%;
    line-height: 68px;
    text-align: center;
    position: absolute;
    top: -35px;
    left: 50%;
    margin-left: -35px;
    z-index: 1;
}

.quiz-box .question-box .question-text {
    font-size: 26px;
    font-family: 'Bree Serif', Arial, sans-serif;
    color: #ac1313;
    line-height: 1.4;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz-box .option-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 30px;
}

.quiz-box .option-box .option {
    background-color: #C1F8D4;
    flex-basis: calc(50% - 20px);
    max-width: calc(50% - 20px);
    margin-top: 15px;
    padding: 15px 10px;
    text-align: center;
    font-size: 20px;
    text-transform: lowercase;
    font-weight: 500;
    color: #231803;
    border: 2px solid #19522D;
    border-radius: 30px;
    cursor: pointer;
    position: relative;
    animation: zoomIn .3s linear forwards;
    opacity: 0;
    transition: all 0.3s ease;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes zoomIn {
    0% {
        transform: scale(0.8);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.quiz-box .option-box .option.already-answered {
    pointer-events: none;
}

.quiz-box .option-box .option.show-correct {
    background-color: #004ee5;
    border-color: #090789;
    color: #ffffff;
    transition: all .3s ease;
}

.quiz-box .option-box .option.correct {
    background-color: #004ee5;
    border-color: #090789;
    color: #ffffff;
    opacity: 1;
    animation: pulse 1s linear;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.quiz-box .option-box .option.correct::before {
    content: '';
    position: absolute;
    height: 30px;
    width: 30px;
    right: 15px;
    top: 15px;
    background-image: url("img/correct.png");
    background-size: 20px;
    background-position: center;
    background-repeat: no-repeat;
    animation: fadeInRight .5s ease;
}

.quiz-box .option-box .option.wrong {
    background-color: #CF0707;
    border-color: #CF0707;
    color: #ffffff;
    opacity: 1;
    animation: shake 1s linear;
}

.quiz-box .option-box .option.wrong::before {
    content: '';
    position: absolute;
    height: 30px;
    width: 30px;
    right: 15px;
    top: 15px;
    background-image: url("img/wrong.png");
    background-size: 20px;
    background-position: center;
    background-repeat: no-repeat;
    animation: fadeInRight .5s ease;
}

@keyframes shake {
    0%, 30%, 50% {
        transform: translateX(10px);
    }
    20%, 40% {
        transform: translateX(-10px);
    }
    60% {
        transform: translateX(-7px);
    }
    70% {
        transform: translateX(7px);
    }
    80% {
        transform: translateX(-4px);
    }
    90% {
        transform: translateX(4px);
    }
    100% {
        transform: translateX(0px);
    }
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(40px);
    }
    100% {
        opacity: 1;
        transform: translateX(0px);
    }
}

.quiz-box .answer-description {
    background-color: #ffffff;
    border: 2px solid #c2af91;
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    color: #555555;
    display: none;
    font-size: 18px;
    line-height: 1.5;
}

.quiz-box .answer-description.show {
    display: block;
    animation: fadeInRight 1s ease;
}

.quiz-box .next-question {
    margin-top: 20px;
    text-align: center;
}

.see-result-btn,
.next-question-btn {
    display: none;
}

.see-result-btn.show,
.next-question-btn.show {
    display: inline-block;
    animation: fadeInRight 1s ease;
}

.quiz-over-box {
    text-align: center;
    display: none;
}

.quiz-over-box.show {
    display: block;
    animation: fadeInRight 1s ease;
}

.quiz-over-box h1 {
    font-size: 50px;
    font-family: 'Concert One', cursive;
    color: #f85943;
    margin: 0px 0 20px;
}

.quiz-over-box h4 {
    font-size: 25px;
    font-weight: normal;
    color: #444444;
    margin: 15px 0 20px;
}

.quiz-over-box h4 span {
    font-weight: 800;
    color: #111111;
}

.start-again-quiz-btn,
.go-home-btn {
    margin-top: 15px;
}

/* Quiz Info Table */
#simple_table {
    font-family: arial, sans-serif;
    border-collapse: collapse;
    width: 100%;
    background-color: #ffffff;
    color: black;
    margin-bottom: 20px;
}

#simple_table td,
#simple_table th {
    text-align: center;
    padding: 12px 8px;
    border: 1px solid #f0f1f4;
    font-size: 16px;
}

#simple_table tr:nth-child(even) {
    background-color: #dddddd;
}

#simple_table tr:hover {
    background-color: #87fff5;
}

#simple_table tr>th {
    background: #EC0909;
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
}

/* Mock Test Question Format Styling */
.mocktest-question {
    background: #f8f9fa;
    border-left: 4px solid #EC0909;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}

.question-text-before {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.option-list {
    margin: 15px 0;
}

.option-item {
    background: #e9ecef;
    padding: 10px 15px;
    margin: 8px 0;
    border-radius: 5px;
    border-left: 3px solid #6c757d;
}

.option-item.correct-answer {
    background: #d4edda;
    border-left-color: #28a745;
    font-weight: bold;
}

.answer-indicator {
    background: #17a2b8;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 14px;
    margin-top: 10px;
    display: inline-block;
}

.explanation-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 10px 15px;
    margin-top: 10px;
    border-radius: 5px;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 767px) {
    .custom-box {
        background-color: #cbe1e0;
        padding: 30px 10px 50px 10px;
        margin: 15px auto;
    }
    
    .quiz-home-box h3 {
        font-size: 18px;
    }
    
    .quiz-home-box h4 {
        font-size: 16px;
    }
    
    .btn {
        padding: 7px 20px;
        font-size: 15px;
        margin: 5px;
    }
    
    .quiz-box .question-box {
        padding: 5px 0px;
    }
    
    .quiz-box .question-box .question-text {
        font-size: 17px;
        font-family: 'Bree Serif', Arial, sans-serif;
        color: #1d1b19;
    }
    
    .quiz-box .stats {
        font-size: 20px;
    }
    
    .quiz-box .stats .quiz-time {
        flex-basis: calc(60% - 10px);
        max-width: calc(60% - 10px);
        font-size: 18px;
    }
    
    .quiz-box .stats .score-board {
        flex-basis: calc(40% - 10px);
        max-width: calc(40% - 10px);
        font-size: 16px;
    }
    
    .quiz-box .stats .quiz-time .remaining-time {
        height: 50px;
        width: 50px;
        line-height: 46px;
        color: #045e2e;
        border: 2px solid #045e2e;
    }
    
    .quiz-box .question-box .current-question-num {
        height: 60px;
        width: 60px;
        line-height: 58px;
        top: -30px;
        margin-left: -30px;
        font-size: 16px;
    }
    
    .quiz-box .option-box .option {
        flex-basis: 100%;
        max-width: 100%;
        font-size: 16px;
        margin-top: 15px;
        min-height: 50px;
    }
    
    .quiz-over-box h1 {
        font-size: 30px;
    }
    
    .quiz-over-box h4 {
        font-size: 20px;
        margin: 10px 0 15px;
    }
    
    #simple_table td,
    #simple_table th {
        padding: 8px 5px;
        font-size: 14px;
    }
    
    #simple_table tr>th {
        font-size: 16px;
    }
    
    .quiz-box .option-box .option.correct::before,
    .quiz-box .option-box .option.wrong::before {
        height: 25px;
        width: 25px;
        right: 10px;
        top: 12px;
        background-size: 15px;
    }
}

@media (max-width: 480px) {
    .custom-box {
        padding: 20px 5px 40px 5px;
    }
    
    .btn {
        padding: 5px 15px;
        font-size: 14px;
        margin: 3px;
    }
    
    .quiz-box .question-box .question-text {
        font-size: 15px;
    }
    
    .quiz-box .option-box .option {
        font-size: 14px;
        padding: 10px 5px;
    }
    
    .quiz-box .stats .quiz-time {
        flex-basis: calc(60% - 10px);
        max-width: calc(60% - 10px);
        font-size: 18px;
    }
    .quiz-box .stats .score-board {
        flex-basis: calc(40% - 10px);
        max-width: calc(40% - 10px);
        font-size: 16px;
    }
}

/* Loading Animation */
.loading-questions {
    text-align: center;
    padding: 30px;
    font-size: 18px;
    color: #666;
}

.loading-questions::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% {
        color: rgba(0,0,0,0);
        text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0);
    }
    40% {
        color: #666;
        text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0);
    }
    60% {
        text-shadow: .25em 0 0 #666, .5em 0 0 rgba(0,0,0,0);
    }
    80%, 100% {
        text-shadow: .25em 0 0 #666, .5em 0 0 #666;
    }
}

/* Print Styles */
@media print {
    .quiz-home-box,
    .quiz-box,
    .quiz-over-box,
    .btn,
    .next-question,
    .stats {
        display: none !important;
    }
    
    .custom-box {
        border: none;
        background: none;
        padding: 0;
        margin: 0;
    }
    
    #simple_table {
        page-break-inside: avoid;
    }
}