/* Wired Up Quiz — my styles */

* {
  box-sizing: border-box;
  margin: 0;
}

body {
  font-family: "Fredoka", system-ui, sans-serif;
  background: linear-gradient(160deg, #eef3ff, #f7ecff);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  color: #2a2540;
}

/* The quiz card. Only one screen shows at a time so it never gets too tall. */
#quiz {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 18px;
  padding: 22px 22px 20px;
  box-shadow: 0 12px 30px rgba(80, 60, 160, 0.15);
  text-align: center;
}

/* This is the trick from lesson 4.7 — .hidden hides a screen. */
.hidden {
  display: none;
}

/* ---- welcome + results ---- */

#rocket {
  width: 64px;
  height: 64px;
  margin-bottom: 6px;
}

h1 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #5b3df5;
}

.subtitle {
  color: #6b6585;
  margin: 6px 0 16px;
  font-size: 0.98rem;
}

.start {
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
  background: #5b3df5;
  border: none;
  border-radius: 12px;
  padding: 12px 26px;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}
.start:hover {
  background: #4a2fd6;
  transform: translateY(-2px);
}

.how-link {
  display: block;
  margin-top: 14px;
  color: #8a82a8;
  font-size: 0.9rem;
  text-decoration: none;
}
.how-link:hover {
  color: #5b3df5;
}

/* ---- question screens ---- */

.qtop {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.step {
  font-size: 0.82rem;
  font-weight: 500;
  color: #8a82a8;
}
.chip {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  color: #fff;
}
.chip-html { background: #ff8a5c; }
.chip-css { background: #3aa0ff; }
.chip-js { background: #f0a800; }
.chip-wild { background: #b06bff; }
.kind {
  font-size: 0.78rem;
  color: #8a82a8;
}

.question {
  font-size: 1.12rem;
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1.3;
}

/* the little code box for spot-the-bug questions */
.code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  text-align: left;
  background: #1b1830;
  color: #e8e3ff;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
  white-space: pre;
  overflow-x: auto;
  line-height: 1.5;
}

.answers {
  display: grid;
  gap: 8px;
}
.answers button {
  font-family: inherit;
  font-size: 0.98rem;
  color: #2a2540;
  background: #f2effb;
  border: 2px solid transparent;
  border-radius: 11px;
  padding: 11px 12px;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.answers button:hover {
  background: #eae4ff;
  border-color: #5b3df5;
}
.answers button.selected {
  background: #ece7ff;
  border-color: #5b3df5;
  font-weight: 500;
}

/* the Next button appears once an answer is picked */
.next {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  background: #5b3df5;
  border: none;
  border-radius: 11px;
  padding: 10px 24px;
  margin-top: 14px;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.12s ease;
}
.next:hover {
  background: #4a2fd6;
  transform: translateY(-2px);
}
