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

body{
    background-color: #f5efe6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
    font-family: monospace;
}


.container{
    background-color: burlywood;
    border-color: aliceblue;
    border-radius: 1rem;
    box-shadow: 2px 2px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    position: relative;
}

/* screens */
.screen{
    display: none;
    padding:2rem;
    text-align: center;
    color: darkslategray;
}
.screen.active{
    display: block;
}


/* start screeen */
#start-screen h1 {
    margin-bottom: 1.25rem;
    font-size: 2.5rem;
}
#start-screen p {
    margin-bottom: 2rem;
    color: darkslategrey;
}


/* question screen */
#quiz-screen{
    color:darkslategrey;
}
#question-text{
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.quiz-info{
    display: flex;
    justify-content: space-between;
    /* color: darkslategray; */
    margin-bottom: 1rem;
}
.answer-container{
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    gap:0.625rem;
    margin-bottom: 1.4rem;

}
.answer-btn{
    background-color: bisque;
    color: darkslategrey;
    border: 2px solid darkslategray;
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    text-align: left;
}
.answer-btn:hover{
    background-color: rgb(187, 202, 202);
    transition: all 0.3s ease;
}
.answer-btn.correct{
    background-color: rgb(122, 224, 122);
    color: rgb(166, 192, 215);
    border-color: green;
}
.answer-btn.incorrect{
    background-color: #f5efe6;
    border-color: red;
    color: rgb(204, 173, 173);
}

.progress-bar {
    height: 0.8rem;
    background-color: bisque;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 1.2rem;
}
.progress{
    height: 100%;
    background-color: darkslategray;
    width: 4%;
    max-width: 100%;
    transition: width 0.3s ease-in-out;
}

/* result screen */
#result-screen h1{
    margin-bottom: 2rem;
}
.result-info{
    background-color: bisque;
    border-radius: 10px;
    padding: 1.2rem;
    margin-bottom: 2rem;
}

.result-info p{
    margin-bottom: 1rem;
    font-size: 1rem;
}
#result-message{
    font-size: 1.5rem;
    font-weight: 600;
}
#restart-btn, #start-btn{
    background-color: darkslategray;
    color: bisque;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.15s ease-out;
}
#restart-btn:hover, #start-btn:hover{
    transform: scale(0.90);
}


/* Respoinsive Design */
@media(max-width:500px){
/* when wet hit 5oopx and below ,implement the styles below */
.screen{
    padding:1rem;
}

#start-screen h1{
    font-size: 2rem;
}

#question-text {
    font-size: 1rem;
}
.answer-btn{
    padding: 12px;
}

button {
    padding: 12px 25px;
    font-size: 1rem;
}
}