/* === Base Layout === */
body {
  font-family: 'Segoe UI', sans-serif;
  background: #eef2f7;
  margin: 0;
  padding: 0;
  text-align: center;
  color: #333;
}

h1, h2, h3, h4 {
  margin: 10px 0;
  font-weight: 600;
}

h1 { font-size: 2em; }
h2 { font-size: 1.4em; color: #555; }
h3 { font-size: 1.2em; color: #0077cc; }
h4 { font-size: 1em; color: #888; }

/* === Quiz Container === */
.quiz-container {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 20px;
  margin: 20px auto;
  max-width: 500px;
  transition: background-color 0.4s ease;
}

/* === Inputs === */
input {
  width: 90%;
  max-width: 400px;
  padding: 10px;
  margin: 8px auto;
  font-size: 1em;
  border: 2px solid #ccc;
  border-radius: 6px;
  display: block;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

input.correct {
  background-color: #d4fdd4;
  border-color: #2ecc71;
}

input.incorrect {
  background-color: #ffd4d4;
  border-color: #e74c3c;
}

input.neutral {
  background-color: #fff;
  border-color: #ccc;
}

/* === Score & Timer === */
.timer, .score {
  font-size: 1.1em;
  margin: 10px 0;
  font-weight: bold;
}

/* === Skip Button === */
#skipButton {
  padding: 10px 20px;
  font-size: 1em;
  background: #0077cc;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.3s ease;
}

#skipButton:hover {
  background: #005fa3;
}

/* === Ad Banner === */
#adBanner {
  margin: 30px auto;
  width: 100%;
  max-width: 500px;
  padding: 10px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#adBanner img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 8px;
}

/* === Final Screen Badge === */
.badge {
  font-size: 1.3em;
  margin: 15px 0;
  color: #0077cc;
}

/* === Footer === */
footer {
  margin-top: 40px;
  font-size: 14px;
  color: #555;
}

/* === Mobile Optimization === */
@media (max-width: 480px) {
  h1 { font-size: 1.6em; }
  h2, h3, h4 { font-size: 1em; }
  .quiz-container { padding: 15px; }
  input { font-size: 0.95em; }
  #skipButton { font-size: 0.95em; padding: 8px 16px; }
  #adBanner { padding: 5px; }
}