/* --- Base Styles --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* Uses system fonts for a clean, modern look */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  /* A light background to frame the "phone" area if viewed on desktop */
  background-color: #e5e7eb; 
  display: flex;
  justify-content: center;
}

.app {
  background: #ffffff;
  width: 100%;
  max-width: 800px; /* Keeps it phone-sized on larger screens */
  min-height: 100vh;
  padding: 40px 24px;
}

/* --- Progress Section --- */
.progress-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 30px;
}

#progress {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 15px;
}

/* Note: Your HTML uses a continuous bar. This styles it to match 
   the thickness and color of the design. To get the distinct dashes 
   from the screenshot, you would need to change your HTML structure. */
.progress-track {
  width: 100%;
  height: 3px;
  background: #e5e7eb;
}

#progress-bar {
  height: 100%;
  width: 0%;
  background: #1f2937;
  transition: width 0.4s ease;
}

/* --- Quiz Header --- */
.quiz {
  margin-bottom: 30px;
}

/* Adds the small "QUIZ" text above the question without needing new HTML */
.quiz::before {
  content: "QUIZ";
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

#question {
  font-size: 32px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

/* --- Answer Buttons --- */
#answer-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px; /* Spaces out the buttons */
}

.btn {
  background: #f9fafb; /* Off-white/light gray */
  color: #1f2937;
  font-size: 16px;
  font-weight: 600;
  width: 100%;
  padding: 24px 20px;
  text-align: left;
  border: none;
  border-radius: 12px; /* Soft rounded corners */
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn:hover:not([disabled]) {
  background: #f3f4f6;
}

.btn:disabled {
  cursor: default;
}

/* --- Selected State --- */
.btn.selected {
  background: #d1fae5; /* Mint green */
  color: #064e3b; /* Darker green text */
}

/* Automatically adds the checkmark icon to the selected button */
.btn.selected::after {
  content: "✓";
  font-size: 20px;
  font-weight: 400;
  color: #064e3b;
}

/* --- Next / Action Buttons --- */
#next-btn {
  background: #374151; /* Dark slate */
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  border: none;
  padding: 14px 32px;
  border-radius: 30px; /* Pill shape */
  cursor: pointer;
  display: none;
  margin: 40px auto 0;
  transition: background 0.2s ease;
}

#next-btn:hover {
  background: #1f2937;
}

/* Adds the little arrow to the Next button */
#next-btn::after {
  content: " →";
}

/* Retake / Apply button formatting for the results screen */
.apply-btn {
  display: block;
  text-align: center;
  margin-top: 24px;
  padding: 16px 32px;
  background-color: #374151;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
}

.app h1 {
  margin-bottom: 20px;
}

/* * {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
}
body {
  background: #001e4d;
}
.app {
  background: #fff;
  width: 90%;
  max-width: 600px;
  margin: 100px auto 0;
  border-radius: 10px;
  padding: 30px;
}
.app h1 {
  font-size: 25px;
  color: #001e4d;
  font-weight: 600;
  border-bottom: 1px solid #333;
  padding-bottom: 30px;
}
.quiz {
  padding: 20px 0;
}
.quiz h2 {
  font-size: 18px;
  color: #001e4d;
  font-weight: 600;
}
.btn {
  background: #fff;
  color: #222;
  font-weight: 500;
  width: 100%;
  border: 1px solid #222;
  padding: 10px;
  margin: 10px 0;
  text-align: left;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}
.btn:hover:not([disabled]) {
  background: #222;
  color: #fff;
}
.btn:disabled {
  cursor: no-drop;
}
#next-btn {
  background: #001e4d;
  color: #fff;
  font-weight: 500;
  width: 150px;
  border: 0;
  padding: 10px;
  margin: 20px auto 0;
  border-radius: 4px;
  cursor: pointer;
  display: none;
}
.correct {
  background: #9aeabc;
}
.incorrect {
  background: #ff9393;
}
