/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: lightgrey;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-family: sans-serif;
}

.container {
  background: white;
  border-radius: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  width: 75%;
  min-width: 600px;
  overflow: hidden;
}

/* Screens */
.screen {
  display: none;
  padding: 2rem;
  text-align: center;
}

.screen.active {
  display: block;
}

/* Start Screen */
#start-screen h1,
#result-screen h1 {
  color: orange;
  margin-bottom: 20px;
  font-size: 2.5rem;
}

#start-screen p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: darkslategray;
}

/* Quiz */
.quiz-header {
  margin-bottom: 2rem;
}

#question-text {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.quiz-info {
  display: flex;
  justify-content: space-between;
  color: darkslategray;
}

.answers-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 25px;
}

.answer-btn {
  background: #f8f0e5;
  border: 2px solid orange;
  border-radius: 2rem;
  padding: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.answer-btn:hover {
  background: orange;
  color: white;
}

.answer-btn.correct {
  background: lightgreen;
  border-color: green;
  color: white;
}

.answer-btn.incorrect {
  background: lightcoral;
  border-color: darkred;
  color: white;
}

/* Progress Bar */
.progress-bar {
  height: 20px;
  background: lightgrey;
  border-radius: 10px;
  overflow: hidden;
}

.progress {
  height: 100%;
  width: 0;
  background: orange;
  transition: width 0.3s ease;
}

/* Buttons */
button {
  background: orange;
  color: white;
  border: none;
  border-radius: 2rem;
  padding: 10px 20px;
  cursor: pointer;
}

button:hover {
  background: darkorange;
}

/* Responsive */
@media (max-width: 700px) {
  .container {
    min-width: auto;
    width: 95%;
  }

  .quiz-info {
    flex-direction: column;
    gap: 5px;
  }
}
