/* basic reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background-color: #f5f5f5;
  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 rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 500px; /* FIXED: Keeps interface frame narrow and mobile layout styled */
  overflow: hidden;
  position: relative;
}
/* screen*/
.screen {
  display: none;
  padding: 2rem;
  text-align: center;
}
.screen.active {
  display: block;
}
/*start screen*/
#start_screen h1 {
  color: #e86a33;
  margin-bottom: 20px;
  font-size: 2.5rem;
}
#start_screen p {
  color: #666;
  margin-bottom: 30px;
}
.quiz_header {
  margin-bottom: 2rem;
}
#question_text {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  line-height: 1.4;
}
.quiz_info {
  display: flex;
  justify-content: space-between;
  color: #666;
  margin-bottom: 10px;
}

/* FIXED: Class string spelling to force block components into structured lists */
.answers_container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 25px;
  width: 100%;
}
.answer-btn {
  background-color: #f8f0e5;
  color: #333;
  border: 2px solid #eadbc8;
  border-radius: 10px;
  padding: 1rem;
  cursor: pointer;
  text-align: left;
  font-size: 1.05rem;
  width: 100%;
  transition: all 0.2s ease;
}
.answer-btn:hover {
  background-color: #eadbc8;
  border-color: #dac0ae;
}
.answer-btn.correct {
  background-color: #e6fff0;
  border-color: #a3f0c4;
  color: #28a745;
  font-weight: bold;
}
.answer-btn.incorrect {
  background-color: #ffeaea;
  border-color: #ffdbdb;
  color: #dc3545;
}
.progress_bar {
  height: 10px;
  background-color: #f8f0e5;
  border-radius: 5px;
  overflow: hidden;
  margin-top: 30px;
}
.progress {
  height: 100%;
  background-color: #e86a33;
  width: 0%;
  transition: width 0.3s ease;
}
/*result screen*/
#reult_screen h1 {
  color: #e86a33;
  margin-bottom: 30px;
}
.result_info {
  background-color: #f8f0e5;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
}
.result_info p {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 1rem;
}
#result_message {
  font-size: 1.5rem;
  font-weight: 600;
  color: #e86a33;
}

/* Base button defaults */
button {
  background-color: #e86a33;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 15px 30px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
button:hover {
  background-color: #cf5622;
}
