body {
  font-family: sans-serif;
  padding: 1rem;
  background-color: #1a1a1a;
  color: #f4f4f4;
  max-width: 900px;
  margin: auto;
}

#site-map {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  max-width: 900px;
  margin: auto;
  padding-bottom: 1rem;
}

.site-map-link {
  font-weight: bold;
  color: #00ffae;
  cursor: pointer;
  text-decoration: underline;
}

h1 {
  text-align: center;
  margin-bottom: 2rem;
  color: #00ffae;
}

.question-card {
  background: #2a2a2a;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 255, 174, 0.2);
}

button {
  display: block;
  margin: 0.25rem 0;
  padding: 0.5rem;
  border: 1px solid #444;
  background-color: #3a3a3a;
  color: #f4f4f4;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.2s ease-in-out;
}

button:hover {
  background-color: #555;
}

button.correct {
  background-color: #296d29;
}

button.incorrect {
  background-color: #802020;
}

.explanation {
  margin-top: 0.5rem;
  background: #333;
  padding: 0.5rem;
  border-left: 4px solid #00ffae;
  border-radius: 5px;
}

#layout {
  display: flex;
}

#sidebar {
  background: #111;
  padding: 0.5rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  flex-shrink: 0;
  width: fit-content; /* only as wide as needed for the buttons */
  max-width: 100%;
}



#toggle-map {
  width: 100%;
  margin-bottom: 0.5rem;
  background: #222;
  color: #00ffae;
  border: none;
  padding: 0.5rem;
  border-radius: 5px;
  cursor: pointer;
}

#site-map {
  display: grid;
  grid-template-columns: repeat(5, minmax(45px, 1fr));
  gap: 0.5rem;
  padding-bottom: 1rem;
  justify-items: center;
}



@media (max-width: 600px) {
  #site-map {
    grid-template-columns: repeat(3, 1fr);
  }
}

#site-map.hidden {
  display: none;
}

.site-map-link {
  font-weight: bold;
  color: #00ffae;
  cursor: pointer;
  text-decoration: underline;
  text-align: center;
}

#main-content {
  flex-grow: 1;
  padding: 1rem;
  max-width: 900px;
  margin: auto;
}
