/* reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f5efe6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: sans-serif;
}

.container {
    background-color: rgb(248, 248, 248);
    box-shadow: 1px 1px 4px 4px rgba(0, 0, 0, 0.068);
    border-radius: 1rem;
    padding: 1.6rem;
    width: 100%;
    max-width: 400px;
    /* overflow: hidden;
    position: relative; */
}

/* general style for all the screens */
.screen {
    display: none;
    text-align: center;
    padding: 4px;
}

.active {
    display: block;
}

/* individual styling for each screen */
/* starting screen */
#strt_scrn h1 {
    color: #e86a33;
    margin-bottom: 20px;
    font-size: 2rem;
}

#strt_scrn p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

#strt_btn {
    padding: .8rem 1rem;
    border: none;
    /* background-color: #fff; */
    border-radius: 10px;
}

/* PLAYING SCREEN */
.quiz_header {
    margin-bottom: 18px;
}

.question_space {
    font-size: .9rem;
    margin-bottom: 20px;
    /* line height is also a thing to be considered because if question goes multiliner then the design might get disrupted */
    /* normal isnt a thing necessary to be written because it is by default set by the browser. */
    line-height: normal;
    color: #333;

}

.counters {
    display: flex;
    font-size: .8rem;
    color: #666;
    margin-bottom: 10px;
    /* text-align: left; ----> you know why it seemed to work. lul */
    justify-content: space-between;
}

/* the answer choices are the options. each one has a unique box inside of a space. */
.opt_container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /* margin-bottom: 12px; */
}

.option {
    background-color: #f8f0e5;
    color: #333;
    border: 2px solid #eadbc8;
    padding: 8px;
    border-radius: 10px;
    font-size: 0.85rem;
    text-align: left;
    transition: all 0.4s ease;
    cursor: pointer;
}

.option:hover {
    background-color: #eadbc8;
    border-color: #dac0ae;
}

.option.correct {
    background: #e6fff0;
    border-color: #a3f0c4;
    color: #28a745;
    transform: scale(1.06);
}

.option.incorrect {
    background: #fff0f0;
    border-color: #ffbdbd;
    color: #dc3545;
    /* transform: scale(1.06); */
}

.progress_bar {
    border-radius: 20px;
    height: 22px;
    /* height: 10px; */
    margin-top: 14px;
    border: 2px solid black;
    overflow: hidden;
}

#progress {
    height: 100%;
    width: 4%;
    background-color: #e86a33;
    transition: width 0.3s ease;
}

/* RESULT SCREEN */
#result h1{
color: #e86a33;
margin-bottom: 20px;
}

.score_info{
background-color: #f8f0e5;
border-radius: 10px;
padding: 10px;
margin-bottom: 10px;
}
.score_info p {
    font-size: 1rem;
    color: #333;
    margin-bottom: 12px;
}
#result_message {
font-size: 1.8rem;
font-weight: 600;
color: #e86a33;
/* margin: 140px; */
}
button {
    background-color: #e86a33;
    color: white;
    border-radius: 9px;
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
button:hover{
    background-color: #d45b28;
}

/* RESPONSIVENESS */
@media (max-width:500px) {
    .screen{
        padding: 1rem;
    }
    #strt_scrn h1{
        font-size: 2rem;
    }
    .question_space{
        font-size: 1.8rem;
    }
    /* other also to be done..... */
}