@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
}

.btn {
    border: none;
    outline: none;
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
    background-color: blueviolet;
    color: #f4f3f1;
    cursor: pointer;
    border: 2px solid blueviolet;
    transition: 0.5s;
}

.btn:hover {
    background-color: rgb(152, 58, 240);
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.start_box {
    width: 40%;
    box-shadow: 0px 0px 10px rgb(223, 222, 222);
    padding: 3rem 1rem;
    text-align: center;
}

.start_box>p {
    font-size: 1.8rem;
    letter-spacing: 1px;
    color: blueviolet;
}

.rule_box {
    width: 40%;
    box-shadow: 0px 0px 10px rgb(223, 222, 222);
    padding: 1rem 2rem;
    display: none;
}

.rule_heading_box {
    border-bottom: 1px solid rgb(219, 218, 218);
    padding-bottom: 0.5rem;
}

.rule_heading {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: blueviolet;
}

.rule_body_box {
    border-bottom: 1px solid rgb(219, 218, 218);
    padding: 0.5rem;
}

.rule>li {
    font-size: 1.1rem;
    letter-spacing: 1px;
    padding: 0.3rem 0;
}

.rule>li>span {
    color: blueviolet;
}

.rule_footer_box {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0 1rem;
    padding: 0.5rem;
}

#exit_btn {
    background-color: #fff;
    color: blueviolet;
    border: 2px solid blueviolet;
    margin-right: 0.5rem;
}

.question_box {
    width: 40%;
    box-shadow: 0px 0px 10px rgb(223, 222, 222);
    padding: 1rem;
    display: none;
}

.question_heading_box {
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.question_heading {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: blueviolet;
}

.range_box {
    width: 100%;
    height: 6px;
    border: 1px solid rgb(251, 252, 249);
    border-radius: 5px;
}

.ranger {
    height: 100%;
    border-radius: 5px;
    background-color: rgb(132, 0, 255);
    width: 0%;
    transition: width 1s;
}

.timer_box {
    display: flex;
    align-items: center;
    gap: 0 0.5rem;
    border: 2px solid blueviolet;
    color: #000;
    padding: 0.3rem;
    border-radius: 3px;
    font-weight: 600;
}

.timer_box>span {
    color: blueviolet;
    font-size: 1.5rem;
}

.question_section {
    padding: 0.8rem 0;
}

.question {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.option_section {
    padding: 0.5rem;
    border-bottom: 1px solid rgb(219, 218, 218);
}

.option {
    font-size: 1.2rem;
    padding: 0.4rem;
    margin: 0.5rem 0;
    border: 1px solid blueviolet;
    cursor: pointer;
}

.question_footer_box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.correct {
    background-color: green;
    color: #fff;
    border-radius: 3px;
}

.incorrect {
    background-color: red;
    color: #fff;
    border-radius: 3px;
}

.disabled {
    pointer-events: none;
}

.score_box {
    width: 40%;
    box-shadow: 0px 0px 10px rgb(223, 222, 222);
    padding: 1.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 1rem 0;
    display: none;
}

#trophy_img {
    width: 80px;
}

.score_heading {
    color: blueviolet;
}

.score_body_heading {
    color: blueviolet;
}

.score_footer {
    width: 90%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.left_footer {
    border: 2px solid green;
    color: green;
    width: 30%;
    padding: 0.3rem;
    border-radius: 3px;
}

.middle_footer {
    border: 2px solid gold;
    color: gold;
    width: 30%;
    padding: 0.3rem;
    border-radius: 3px;
}

.right_footer {
    border: 2px solid red;
    border-radius: 3px;
    padding: 0.3rem;
    color: red;
    width: 30%;
}

.correctVal,
.incorrectVal,
.notAttempVal {
    padding-top: 0.3rem;
}

/* desktop  */

@media (min-width:1025px) and (max-width:1200px) {
    .start_box,
    .rule_box {
        width: 50%;
    }
    .question_box {
        width: 60%;
    }
    .score_box {
        width: 55%;
    }
}

/* laptop  */

@media (min-width:769px) and (max-width:1024px) {
    .start_box {
        width: 60%;
        padding: 2rem 1rem;
    }
    .rule_box {
        width: 60%;
        padding: 0.8rem 1.8rem;
    }
    .question_box {
        width: 75%;
    }
    .score_box {
        width: 70%;
    }
}

/* tablet  */

@media (min-width:481px) and (max-width:768px) {
    .start_box {
        width: 80%;
        padding: 1rem;
    }
    .rule_box {
        width: 85%;
        padding: 0.8rem 1.8rem;
    }
    .question_box {
        width: 95%;
        padding: 0.5rem;
    }
    .question_heading {
        font-size: 1.2rem;
    }
    .timer_box {
        font-size: 1rem;
    }
    .timer_box>span {
        font-size: 1.2rem;
    }
    .question {
        font-size: 1.5rem;
    }
    .score_box {
        width: 90%;
        padding: 0.8rem;
    }
    .score_footer {
        width: 100%;
    }
    .left_footer,
    .middle_footer,
    .right_footer {
        width: 32%;
        font-size: 1rem;
    }
}

/* phone  */

@media (min-width:320px) and (max-width:480px) {
    .start_box {
        width: 90%;
        padding: 0.5rem;
    }
    .start_box>p {
        font-size: 1.3rem;
    }
    .btn {
        font-size: 0.9rem;
        padding: 0.4rem 0.9rem;
    }
    .rule_box {
        width: 90%;
        padding: 0.3rem 1.4rem;
    }
    .rule_heading {
        font-size: 1.3rem;
    }
    .rule {
        padding: 0;
    }
    .rule>li {
        font-size: 0.9rem;
    }
    .question_box {
        width: 95%;
        padding: 0.5rem;
    }
    .question_heading_box {
        flex-direction: column;
    }
    .question_heading {
        font-size: 1.2rem;
    }
    .timer_box {
        font-size: 1rem;
        margin: 0.8rem 0;
    }
    .timer_box>span {
        font-size: 1.2rem;
    }
    .question_section {
        padding: 0.5rem 0;
    }
    .question {
        font-size: 1.3rem;
    }
    .option {
        font-size: 1rem;
    }
    .score_box {
        width: 95%;
        padding: 0.8rem;
        gap: 0.4rem 0;
    }
    .score_heading {
        font-size: 1.3rem;
    }
    .score_footer {
        width: 100%;
        margin: 0.5rem 0;
    }
    .left_footer,
    .middle_footer,
    .right_footer {
        width: 100%;
        margin-bottom: 0.5rem;
        font-size: 1rem;
    }
}

/* mini-device  */

@media (min-width:0px) and (max-width:319px) {
    .start_box {
        width: 90%;
        padding: 0.5rem;
    }
    .start_box>p {
        font-size: 1.1rem;
    }
    .btn {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }
    .rule_box {
        width: 95%;
        padding: 0.3rem 1rem;
    }
    .rule_heading {
        font-size: 1.1rem;
    }
    .rule {
        padding: 0;
    }
    .rule>li {
        font-size: 0.8rem;
    }
    .rule_footer_box {
        padding: 0;
    }
    .question_box {
        width: 100%;
        padding: 0.5rem 0.2rem;
    }
    .question_heading_box {
        flex-direction: column;
    }
    .question_heading {
        font-size: 1rem;
    }
    .timer_box {
        font-size: 1rem;
        padding: 0.2rem;
        margin: 0.8rem 0;
    }
    .timer_box>span {
        font-size: 1.1rem;
    }
    .question_section {
        padding: 0.5rem 0;
    }
    .option_section {
        padding: 0.5rem 0;
    }
    .question {
        font-size: 1.2rem;
    }
    .option {
        font-size: 0.9rem;
    }
    .score_box {
        width: 100%;
        padding: 0.8rem;
        gap: 0.4rem 0;
    }
    .score_heading {
        font-size: 1.3rem;
    }
    .score_body_heading {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    .score_footer {
        width: 100%;
        margin: 0.5rem 0;
    }
    .left_footer,
    .middle_footer,
    .right_footer {
        width: 100%;
        margin-bottom: 0.5rem;
        font-size: 1rem;
    }
}