
html {
  font-size: 20px;
  -webkit-text-size-adjust: none;
}
@media (max-width: 768px) {
  html {
    font-size: 22px;
  }
  body {
    -webkit-text-size-adjust: none;
  }
  .q-text,
  .option-btn,
  .text-pill {
    font-size: 1.1rem !important;
  }
  .q-num {
    font-size: 1.5rem !important;
  }
}

body {
  background: #0d1428;
  color: #fff;
  font-family: "Cairo", sans-serif;
  margin: 0;
  padding-bottom: 80px;
}

.top-bar {
  text-align: center;
  padding: 20px 10px;
  background: linear-gradient(135deg, #162447, #1f4068);
}

.top-bar h1 {
  margin: 0;
  font-size: 1.6rem;
  color: #6ec7ff;
  text-shadow: 0 0 6px rgba(110,199,255,0.65);
}

.top-bar p {
  margin: 5px 0 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: #6ec7ff;
  text-shadow: 0 0 6px rgba(110,199,255,0.45);
}

.phone {
  font-size: 1.4rem;
  color: #6ec7ff;
}

.quiz-container {
  max-width: 1100px;
  margin: 20px auto;
  display: grid;
  gap: 14px;
  padding: 0 10px;
}

.question-card {
  background: #111a30;
  border-radius: 16px;
  padding: 14px 16px 18px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
}

.q-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  border-bottom: 1.5px solid rgba(255,255,255,0.12);
  padding-bottom: 8px;
}

.q-num {
  background: #6ec7ff;
  color: #0d1428;
  min-width: 74px;
  height: 42px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
}

.q-text {
  font-size: 1.05rem;
  flex: 1;
  text-align: left;
  line-height: 1.4;
}

.options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.option-btn {
  background: #171f35;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 14px;
  width: calc(50% - 8px);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: 0.2s;
  color: #fff;
  min-height: 44px;
  font-weight: 400;
}

.option-btn span.letter {
  font-weight: 700;
  color: #6ec7ff;
  font-size: 1rem;
}

.option-btn.selected {
  background: #ffefad;
  color: #000;
  font-weight: 700;
}
.option-btn.selected span.letter {color:#000;}

.option-btn.correct {
  background: #1b9aaa;
  border-color: #157b86;
  color: #fff;
  font-weight: 700;
}
.option-btn.correct span.letter {color:#fff;}

.option-btn.wrong {
  background: #d34444;
  border-color: #b83636;
  color: #fff;
  font-weight: 700;
}
.option-btn.wrong span.letter {color:#fff;}

/* text answers */
.text-row {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.text-pill {
  flex: 1;
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.95rem;
  outline: none;
}

.text-pill.student {
  background: #ffefad;
  color: #000;
}

.text-pill.student.filled,
.text-pill.student.correct,
.text-pill.student.wrong {
  font-weight: 700;
  font-size: 1.05rem;
}

.text-pill.student.correct {
  background: #1b9aaa;
  color: #fff;
}

.text-pill.student.wrong {
  background: #d34444;
  color: #fff;
}

.text-pill.correct-answer {
  background: #1b9aaa;
  color: #fff;
  display: none;
}

.text-pill.correct-answer.show {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
}

.actions {
  text-align: center;
  margin-top: 25px;
}
.actions button {
  background: #1b9aaa;
  border: none;
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  margin: 0 5px;
}
.actions button:hover { background:#157b86; }

.inline-score {
  display: inline-block !important;
  background: #ffffff !important;
  color: #ff0000 !important;
  padding: 10px 30px !important;
  border-radius: 12px !important;
  font-weight: 900 !important;
  font-size: 3.2rem !important;
  line-height: 1 !important;
  margin: 0 20px !important;
  text-align: center !important;
}

.result {
  max-width: 1100px;
  margin: 25px auto;
  background: rgba(255,255,255,0.04);
  padding: 14px 12px;
  border-radius: 14px;
}

.explain-box {
  margin-top: 8px;
  background: rgba(17, 26, 48, 0.35);
  border: 1px solid rgba(255,255,255,0.05);
  border-left: 4px solid #6ec7ff;
  border-radius: 10px;
  padding: 6px 10px 8px;
  font-size: 0.78rem;
  line-height: 1.35;
  display: none;
}

.analysis-line {
  color: #6ec7ff;
  margin-top: 4px;
  font-size: 0.78rem;
}

@media (max-width: 720px) {
  .option-btn { width: 100%; }
  .q-header { flex-wrap: wrap; }
  .text-row { flex-direction: column; }
  .inline-score { margin-top: 10px; }
}
