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

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

.container{
  background-color: rgb(157, 157, 157);
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 600px;
  overflow: hidden;
  position: relative;
}

.screen{
    display: none;
    padding: 2rem;
    text-align: center;
}
.screen.active{
    display: block;
}
#start-screen h1{
    color: #003049;
    margin-bottom: 20px;
    font-size: 2.5rem;
}
#start-screen p{
    color: #003049;
    margin-bottom: 30px;
    font-size: 1.1rem;
}
.quiz-header{
    margin-bottom: 2rem;
}

#question-text{
    color: #0f1010;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.quiz-info{
    display: flex;
    justify-content: space-between;
    color: #252729;
    margin-bottom:10px;
}
.answers-container{
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
}
.answer-btn{
    background-color: #f0f3f4;
    color: #284b63;
    border: 2px solid #003049;
    border-radius:10px;
    padding:1rem;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.answer-btn:hover{
    background-color: #494c4d;
    border-color: #3c6e71;
}
.answer-btn.incorrect{
    background-color: #3c6e71;
    border-color: orangered;
    color: red;
}

.progress-bar{
    height: 10px;
    background-color: #ffffff;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 10px;
}

.progress{
    height: 100%;
    background-color: #1c1c1c;
    width: 0%;
    transition: width 0.3s ease;
}
#result-screen h1{
    margin-bottom: 30px;
    color: rgb(10, 10, 10);
}
.result-info{
    background-color: #c6c6c6;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}
.result-info p{
    font-size:1.2rem;
    color: rgb(29, 28, 28);
    margin-bottom: 1rem;
}
#result-message{
    font-size: 1.5rem;
    font-weight: 600;
    color: #003049;
}

button{
    background-color: #003049;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 15px 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3 ease;
}
button:hover{
    background-color:#284b63;
    color: black;
}

@media (max-width: 600px) {
  .container {
    width: 100%;
    border-radius: 0.5rem;
  }

  .screen {
    padding: 1.2rem;
  }

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

  #question-text {
    font-size: 1.2rem;
  }

  .quiz-info {
    flex-direction: column;
    gap: 5px;
    font-size: 0.9rem;
  }

  .answer-btn {
    padding: 0.8rem;
    font-size: 0.9rem;
  }

  button {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .container {
    max-width: 90%;
  }

  .screen {
    padding: 1.5rem;
  }

  #question-text {
    font-size: 1.3rem;
  }

  .answer-btn {
    font-size: 1rem;
    padding: 0.9rem;
  }

  button {
    font-size: 1rem;
    padding: 14px 20px;
  }
}