/* Basic reset */

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    background: #f5efe6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
    font-family: sans-serif;
}

.container{
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 10px 30px black;
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    position: relative;
}

/* START SCREEN */
.screen{
    display: none;
    padding: 2rem;
    text-align: center;
}

.screen.active{
    display: block;
}

#start-screen h1 {
    color: orange;
    margin-bottom: 20px;
    font-size: 2.5rem;
}

#start-screen p{
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #333;
}

.quiz-header{
    margin-bottom: 2rem;
}

#question-text {
    color: black;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.quiz-info{
    display: flex;
    justify-content: space-between;
    color: black;
    margin-bottom: 10px;
}

.answers-container{
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
}

.answer-btn{
    background-color: #f5efe6;
    color: #333;
    border: 2px solid #eadbc8;
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    text-align: left;
    transition: all 0.4s ease;
}

.answer-btn:hover{
    background-color: #eadbc8;
    border-color: #dac0ae;
}

.answer-btn.correct{
    background-color: #e6fff0;
    border-color: aquamarine;
    color: #dc3545;
}

.progress-bar{
    height: 10px;
    background-color: cornsilk;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 20px;
}

.progress{
    height: 100%;
    background-color: #e86a33;
    width: 0%;
    transition: width 0.3s ease;
}

/* RESULT SCREEN */
#rseult-screen h1{
    color: #e86a33;
    margin-bottom: 30px;
}

.result-info{
    background-color: #f5efe6;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.result-info p{
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 1rem;
}

#result-message{
    font-weight: 600;
    font-size: 1.5rem;
    color: #e86a33;
}

button{
    background-color: #e86a33;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 15px 30px;
    font-size: 1.13rem;
    cursor: pointer;
}

button:hover{
    background-color: #dc3545;
    transition: 1.3s ease-in-out;
}

/* RESPONSIVE DESIGN */
@media (max-width:500px){
    /* when we hit 500px or below, implement styles below */

    .screen{
        padding: 1rem;
    }

    #start-screen h1{
        font: 2rem;
    }

    #question-text{
        font-size: 1.3rem;
    }

    .answer-btn{
        padding: 12px;
    }

    .button{
        padding: 12px 25px;
        font-size: 1rem;
    }
}