/* Basic reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  background-color: #f5efe6;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 1rem;
  font-family: sans-serif;
}

.container {
  background-color: #f7f6f5;
  border-radius: 1rem;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  width: 100%;
  max-width: 600px;
  overflow: hidden;
  position: relative;
}

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

#start-screen h1 {
  color: #eb6a33;
  margin: 20px;
  font-size: 2.5rem;
}

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

.quiz-header {
  margin-bottom: 2rem;
}
#question-text {
  color: #333;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}
.quiz-info {
  display: flex;
  justify-content: space-between;
  color: #666;
  margin-bottom: 10px;
}

.answers-container {
  display: flex;
  gap: 10px;
  flex-direction: column;
  margin-bottom: 25px;
}

.answer-btn {
  background-color: #f5efe6;
  color: #333;
  border: 2px solid #eadbc8;
  border-radius: 10px;
  padding: 1rem;
  cursor: pointer;
  text-align: left;
}

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

.answer-btn.correct {
  background-color: #e6fff0;
  border-color: #ffbdbd;
  color: #28a745;
}
.answer-btn.incorrect {
  background-color: #de1a00;
  border-color: #a3f0c4;
  color: white;
}
.progress-bar {
  height: 10px;
  background-color: #f8f0e5;
  border-radius: 5px;
  overflow: hidden;
  margin: 20px;
}

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

/* Result Screen */
#result-screen h1 {
  color: #e86a33;
  margin-bottom: 30px;
}
.result-info {
  background-color: #f8f0e5;
  padding: 20px;
  border-radius: 10px;
  margin: 30px;
}

.result-info p {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 1rem;
}

#result-message {
  font-size: 1.6rem;
  font-weight: 700;
  color: #e86a33;
}
button {
  border: none;
  background-color: #e86a33;
  color: white;
  border-radius: 10px;
  padding: 15px 26px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: width 0.3s ease;
}

button:hover {
  background-color: #d56b28;
}

/* Responsive design */

@media (max-width: 500px) {
  .screen {
    padding: 1rem;
  }
  #start-screen {
    font-size: 2rem;
  }
}
