/* ===== RESET ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===== GLOBAL ===== */
body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f3f6fb;
  color: #1f2937;
  min-height: 100vh;
}

a {
  text-decoration: none;
}

button {
  cursor: pointer;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 480px;
  margin: 60px auto;
  background: #ffffff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* ===== HEADINGS ===== */
h1 {
  font-size: 28px;
  text-align: center;
  margin-bottom: 10px;
  color: #2563eb;
}

h2 {
  font-size: 22px;
  text-align: center;
  margin-bottom: 20px;
}

/* ===== TEXT ===== */
p {
  text-align: center;
  margin-bottom: 20px;
  color: #4b5563;
}

/* ===== INPUTS ===== */
input {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  font-size: 14px;
}

input:focus {
  outline: none;
  border-color: #2563eb;
}

/* ===== BUTTONS ===== */
button {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  border: none;
  font-size: 15px;
  font-weight: bold;
  background: #2563eb;
  color: #ffffff;
  margin-top: 10px;
  transition: background 0.2s ease;
}

button:hover {
  background: #1d4ed8;
}

/* ===== SUBJECT LIST ===== */
#subjects button {
  background: #f1f5f9;
  color: #1f2937;
  margin-bottom: 10px;
  border: 1px solid #e5e7eb;
}

#subjects button:hover {
  background: #e0e7ff;
}

/* ===== QUESTIONS ===== */
.question {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 15px;
}

.question p {
  text-align: left;
  font-weight: bold;
  margin-bottom: 10px;
}

/* ===== OPTIONS ===== */
.question label {
  display: block;
  margin-bottom: 6px;
  cursor: pointer;
  font-size: 14px;
}

.question input[type="radio"] {
  margin-right: 8px;
}

/* ===== RESULT ===== */
#output,
#res {
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  color: #16a34a;
  margin-top: 20px;
}

/* ===== MOBILE ===== */
@media (max-width: 520px) {
  .container {
    margin: 20px;
    padding: 20px;
  }
}
