/* Google Fonts */
@import url(https://fonts.googleapis.com/css?family=Montserrat:400,500,700,800&display=swap);
@import url(https://fonts.googleapis.com/css?family=Concert+One&display=swap);

/* Main Styles */
fieldset legend {
    margin-bottom: 0!important;
}
.quiz-buttons-container {
    margin-top: 0!important; 
}

.custom-box {
    max-width: 800px;
    background-color: #c5f8ff;
    margin: 30px auto;
    padding: 30px 40px 50px;
    border-radius: 10px;
}

.quiz-home-box,
.quiz-over-box {
    text-align: center;
    display: none;
}

.quiz-box .option-box,
.quiz-home-box .category-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.quiz-home-box .category-box div {
    background-color: #0c0;
    border: 1px solid #4caf50;
    padding: 15px;
    text-transform: capitalize;
    border-radius: 10px;
    cursor: pointer;
    font-size: 24px;
    font-weight: 600;
    color: #f7f7f7;
    margin: 0 auto;
    flex-basis: calc(22% - 20px);
    max-width: calc(50% - 20px);
}

.quiz-home-box h2 {
    font-size: 50px;
    font-family: 'Concert One', cursive;
    color: #f85943;
    margin: 0 0 10px;
}

.quiz-box .answer-description.show,
.quiz-box.show,
.quiz-home-box.show,
.quiz-over-box.show {
    display: block;
    animation: 1s fadeInRight;
}

.next-question-btn,
.quiz-box,
.see-result-btn {
    display: none;
}

.quiz-home-box h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 30px;
    border-bottom: 1px dashed #c61010;
    padding-bottom: 12px;
}

.btn {
    background-color: #0c0;
    border: 2px solid #4caf50;
    color: #fff;
    font-size: 20px;
    border-radius: 5px;
    font-family: Montserrat, sans-serif;
    cursor: pointer;
    white-space: nowrap;
    margin: 0 10px;
    font-weight: 600;
}

.btn:focus {
    outline: 0;
}

.quiz-box {
    background-color: #d3faff;
}

.quiz-box h1 {
    margin: 0 0 15px;
    text-align: center;
    font-size: 31px;
    color: #341b9a;
    font-weight: 800;
}

.quiz-box .stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    font-size: 30px;
    text-transform: uppercase;
    color: #000;
}

.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: #d23723;
    font-weight: 500;
    display: none;
}

.quiz-box .stats .time-up-text.show {
    display: inline-block;
    animation: 1s linear infinite fadeInOut;
}

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

.quiz-box .stats .quiz-time .remaining-time {
    height: 60px;
    width: 60px;
    color: #059e4c;
    border: 2px solid #059e4c;
    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: #d23723;
    border-color: #d23723;
}

.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: #fff;
    padding: 40px 30px;
    margin-top: 40px;
    border-radius: 10px;
    font-size: 28px;
    border: 2px solid #56380a;
    text-align: center;
    position: relative;
}

.quiz-box .question-box .current-question-num {
    height: 70px;
    width: 70px;
    background-color: #fff;
    border: 2px solid #56380a;
    font-size: 20px;
    font-weight: 800;
    color: #ac0d0d;
    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: 22px;
    font-family: sans-serif;
    color: #6d0bd8;
    font-weight: 600;
}

.quiz-box .option-box .option {
    background-color: #f5f1f1;
    flex-basis: calc(50% - 20px);
    max-width: calc(50% - 20px);
    margin-top: 30px;
    padding: 7px;
    text-align: center;
    font-size: 20px;
    text-transform: uppercase;
    font-weight: 500;
    color: #231802;
    border: 1px solid #605e5b;
    border-radius: 30px;
    cursor: pointer;
    position: relative;
    animation: .3s linear forwards zoomIn;
    opacity: 0;
}

@keyframes zoomIn {
    0% { transform: scale(.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: #0c0;
    border-color: #8bc34a;
    color: #fff;
    transition: .3s;
}

.quiz-box .option-box .option.correct::before,
.quiz-box .option-box .option.show-correct::before {
    content: '';
    position: absolute;
    height: 30px;
    width: 30px;
    right: 8px;
    top: 5px;
    background-image: url(https://www.w3templates.com/wp-content/uploads/2024/01/Right.png);
    background-size: 33px;
    background-position: center;
    background-repeat: no-repeat;
}

.quiz-box .option-box .option.wrong::before {
    content: '';
    position: absolute;
    height: 30px;
    width: 30px;
    right: 6px;
    top: 4px;
    background-image: url(https://www.w3templates.com/wp-content/uploads/2024/01/Wrong.png);
    background-size: 30px;
    background-position: center;
    background-repeat: no-repeat;
    animation: .5s fadeInRight;
}

.quiz-box .option-box .option.correct {
    background-color: #0c0;
    border-color: #8bc34a;
    color: #fff;
    opacity: 1;
    animation: 1s linear pulse;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.quiz-box .option-box .option.wrong {
    background-color: #f44336;
    border-color: #c6220c;
    color: #fff;
    opacity: 1;
    animation: 1s linear shake;
}

@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(0); }
}

@keyframes fadeInRight {
    0% { opacity: 0; transform: translateX(40px); }
    100% { opacity: 1; transform: translateX(0); }
}

.quiz-box .answer-description {
    background-color: #fff;
    border: 2px solid #c2af91;
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    display: none;
}

.quiz-box .next-question {
    margin-top: 20px;
    text-align: center;
}

.next-question-btn.show,
.see-result-btn.show {
    display: inline-block;
    animation: 1s fadeInRight;
}

.quiz-over-box h1 {
    font-size: 50px;
    font-family: 'Concert One', cursive;
    color: #f85943;
    margin: 0 0 20px;
}

.quiz-over-box h4 {
    font-size: 25px;
    font-weight: 400;
    color: #444;
    margin: 15px 0 20px;
}

.quiz-over-box h4 span {
    font-weight: 800;
    color: #111;
}

.go-home-btn,
.start-again-quiz-btn {
    margin-top: 15px;
}

#user_suggestion {
    padding: 5px;
    font-weight: 400;
    margin: 5px;
    color: #222;
    border-bottom: 2px solid #0c0;
    border-top: 2px solid #0c0;
    font-size: 15px;
    text-align: justify;
}

.quiz-list ul li {
    background: #4caf50;
}

/* Responsive Styles */
@media (max-width: 767px) {
    .quiz-home-btn h4 {
        font-size: 20px;
        padding: 25px 10px;
    }
    
    .quiz-home-box h1 {
        font-size: 30px;
        margin: 0;
        color: #180eaa;
        font-family: sans-serif;
        padding: 25px 10px;
    }
    
    .quiz-home-box h4 {
        font-size: 15px;
        border-bottom: 1.5px solid #ad0c0c;
        color: #000;
        font-weight: 700;
    }
    
    .quiz-home-box .category-box div {
        margin-top: 20px;
        font-size: 16px;
        background-color: #7a2e1f;
        border: 2px solid #2c335c;
        color: #fff;
        padding: 25px 10px;
    }
    
    .quiz-box .question-box {
        padding: 40px 0;
    }
    
    .quiz-box .question-box .question-text {
        font-size: 17px;
        font-family: sans-serif;
        color: #3811f0;
        padding: 5px;
        font-weight: bolder;
    }
    
    .custom-box {
        padding: 30px 10px 50px;
        background-color: #d3faff;
    }
    
    .quiz-box .stat {
        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;
    }
    
    .btn {
        font-size: 16px;
        padding: 10px 12px;
    }
    
    .quiz-over-box h1 {
        font-size: 30px;
    }
    
    .quiz-over-box h4 {
        font-size: 20px;
        margin: 10px 0 15px;
    }
}
.qstion{
    font-size: 17px;
    background: antiquewhite;
    padding: 5px;
    margin: 5px;
    border-radius: 10px;
    border: 1px solid #000;
	display:flex;
}