@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700&display=swap');

nav {
  text-align: left;
  margin-top: 1rem;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav li {
  margin: 1rem 0; /* space between links vertically */
}

nav a {
  color: #760b05;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.2rem;
}

nav a:hover {
  text-decoration: underline;
}

/* Styles apply ONLY to included question/solution blocks */
.challenge-item {
  background: #2a1b00;               /* your theme colors */
  border: 2px solid #ff6b00;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255,107,0,.35);
  padding: 1rem 1.25rem;
  margin: 2rem auto;
  max-width: 800px;
}

.challenge-item h2, .challenge-item h3 {
  color: #ff9d00;
  text-align: center;
  text-shadow: 0 0 8px #ff9d00, 2px 2px #110b00;
}

.challenge-item p, .challenge-item li {
  color: #ffe5b4;
}

/* Only the dropdown solution inside the wrapper */
.challenge-item details.challenge-solution {
  margin-top: 1rem;
  background: #1b0e00;
  border: 1px solid #ff6b00;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(255,107,0,.3);
}

.challenge-item details.challenge-solution > summary {
  padding: .75rem 1rem;
  cursor: pointer;
  color: #ff9d00;
  background: linear-gradient(90deg,#331a00,#1b0e00);
  border-bottom: 1px solid #ff6b00;
  list-style: none;                   /* Firefox */
  position: relative;
  text-shadow: 0 0 6px #ff6b00, 0 0 12px #ff9d00;
}

/* hide default marker + custom chevron */
.challenge-item details.challenge-solution > summary::-webkit-details-marker { display:none; }
.challenge-item details.challenge-solution > summary::after {
  content: "▼";
  position: absolute; right: 1rem; top: 50%;
  transform: translateY(-50%);
  transition: transform .2s;
  color: #ff9d00;
}
.challenge-item details[open].challenge-solution > summary::after {
  transform: translateY(-50%) rotate(180deg);
}

.challenge-item details.challenge-solution > *:not(summary) {
  padding: 1rem 1.25rem;
  border-top: 1px solid #ff6b00;
  background: #050101;
  color: #ffe5b4;
}
