/* Basic reset */

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="48" viewBox="0 0 24 24"><path fill="%23FFF" stroke="%23000" stroke-width="2" d="M5.5 3.21V20.8c0 .45.54.67.85.35l4.86-4.86a.5.5 0 0 1 .35-.15h6.87a.5.5 0 0 0 .35-.85L6.35 2.85a.5.5 0 0 0-.85.35Z"></path></svg>'), auto;
  user-select: none;
}

body{
  background-color: #B2B0E8;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 1rem;
  font-family: Arial, Helvetica, sans-serif;
}

.container{
  background-color: #3B38A0;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 600px;
  overflow: hidden;
  position: relative;
}

/* Screens */ 

.screen{
  display: none;
  padding: 2rem;
  text-align: center;
}

.screen.active{
  display: block;
}

/* Start Screen */ 

#start-screen h1{
  color: white;
  margin-bottom: 20px;
  font-size: 2.5rem;
}

#start-screen p{
  font-size: 1.2rem;
  color: white;
  margin-bottom: 1rem;
}



.quiz-header{
  margin-bottom: 2rem;
}

#question-text{
  color: whitesmoke;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.quiz-info{
  display: flex;
  justify-content: space-between;
  color: whitesmoke;
  margin-bottom: 10px;
}

.answers-container{
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 25px;
}

.answer-btn{
  background-color: #7A85C1;
  color: white;
  border: 2px solid #7A85C1;
  border-radius: 10px;
  padding: 1rem;
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%23FFF" stroke="%23000" stroke-width="2" stroke-linejoin="round" d="M10 11V8.99c0-.88.59-1.64 1.44-1.86h.05A1.99 1.99 0 0 1 14 9.05V12v-2c0-.88.6-1.65 1.46-1.87h.05A1.98 1.98 0 0 1 18 10.06V13v-1.94a2 2 0 0 1 1.51-1.94h0A2 2 0 0 1 22 11.06V14c0 .6-.08 1.27-.21 1.97a7.96 7.96 0 0 1-7.55 6.48 54.98 54.98 0 0 1-4.48 0 7.96 7.96 0 0 1-7.55-6.48C2.08 15.27 2 14.59 2 14v-1.49c0-1.11.9-2.01 2.01-2.01h0a2 2 0 0 1 2.01 2.03l-.01.97v-10c0-1.1.9-2 2-2h0a2 2 0 0 1 2 2V11Z"></path></svg>'), auto;
  text-align: left;
  transition: all 0.3s ease;
}

.answer-btn:hover{
  color: #7A85C1;
  border-color: #7A85C1;
  background-color: white;
}

.answer-btn.correct{
  background-color: #e6fff0;
  border-color: #a3f0c4;
  color: #28a745;
}

.answer-btn.incorrect{
  background-color: #fff0f0;
  border-color: #ffbdbd;
  color: #dc3545;
}

.progress-bar{
  height: 10px;
  background-color: #f8f0e5;
  border-radius: 5px;
  overflow: hidden;
  margin-top: 20px;
}

.progress{
  height: 100%;
  background-color: #B2B0E8;
  width: 0%;
  transition: width 0.3s ease;
}

/* Result Screen */ 

#result-screen h1{
  color: white;
  margin-bottom: 30px;
}

.result-info{
  background-color: #3B38A0;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
}

.result-info p{
  font-size: 1.2rem;
  color: white;
  margin-bottom: 1rem;
}

#result-message{
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
}

button{
  background-color: white;
  color: #3B38A0;
  border: 1px solid #3B38A0;
  border-radius: 10px;
  padding: 15px 30px;
  font-size: 1.1rem;
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%23FFF" stroke="%23000" stroke-width="2" stroke-linejoin="round" d="M10 11V8.99c0-.88.59-1.64 1.44-1.86h.05A1.99 1.99 0 0 1 14 9.05V12v-2c0-.88.6-1.65 1.46-1.87h.05A1.98 1.98 0 0 1 18 10.06V13v-1.94a2 2 0 0 1 1.51-1.94h0A2 2 0 0 1 22 11.06V14c0 .6-.08 1.27-.21 1.97a7.96 7.96 0 0 1-7.55 6.48 54.98 54.98 0 0 1-4.48 0 7.96 7.96 0 0 1-7.55-6.48C2.08 15.27 2 14.59 2 14v-1.49c0-1.11.9-2.01 2.01-2.01h0a2 2 0 0 1 2.01 2.03l-.01.97v-10c0-1.1.9-2 2-2h0a2 2 0 0 1 2 2V11Z"></path></svg>'), auto;
  transition: 0.3s ease;
  margin-bottom: 1.5rem;
}

button:hover{
  background-color: #3B38A0;
  color: white;
  border: 1px solid white;
}

.select-mode{
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  align-content: center;
}


.select-mode button{
  background-color: white;
  color: #3B38A0;
  border: 1px solid #3B38A0;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 1.1rem;
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%23FFF" stroke="%23000" stroke-width="2" stroke-linejoin="round" d="M10 11V8.99c0-.88.59-1.64 1.44-1.86h.05A1.99 1.99 0 0 1 14 9.05V12v-2c0-.88.6-1.65 1.46-1.87h.05A1.98 1.98 0 0 1 18 10.06V13v-1.94a2 2 0 0 1 1.51-1.94h0A2 2 0 0 1 22 11.06V14c0 .6-.08 1.27-.21 1.97a7.96 7.96 0 0 1-7.55 6.48 54.98 54.98 0 0 1-4.48 0 7.96 7.96 0 0 1-7.55-6.48C2.08 15.27 2 14.59 2 14v-1.49c0-1.11.9-2.01 2.01-2.01h0a2 2 0 0 1 2.01 2.03l-.01.97v-10c0-1.1.9-2 2-2h0a2 2 0 0 1 2 2V11Z"></path></svg>'), auto;
  transition: 0.3s ease;
  margin-bottom: 1.5rem;
}

.select-mode button:hover{
  background-color: #3B38A0;
  color: white;
  border: 1px solid white;
}

/* Responsive Design */
@media (max-width: 500px){
  /* when we hit 500px and below */

  .screen{
    padding: 1rem;
  }

  #start-screen h1{
    font-size: 2rem;
  }

  #question-text{
    font-size: 1.3rem;
  }

  .answer-btn{
    padding: 12px;
  }

  button{
    padding: 12px 25px;
    font-size: 1rem;
  }
}
