/* ---- QUIZ CONTAINER ---- */
#quiz-box {
  text-align: center;
  border-top: 5px solid #5f5c5c;
  border-radius: 1rem;
  padding: 1.5rem;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  max-width: 600px;
  margin: auto;
}

#quiz-content {
    display: none;
    transition: all 0.3s ease;
    min-height: 180px; /* prevents jumping when feedback text changes */
}

/* ---- HEADER ---- */
.quiz-header {
  display: flex;
  flex-direction: column;  /* stack vertically */
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.6rem;  /* space between lines */
}

.quiz-header h3 {
  margin: 0;
  font-size: 1.5rem;
}

.quiz-subtitle {
  font-size: 1rem;
  color: #666;
}

#start-btn {
  margin-top: 0.5rem;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 0.5rem;
  background-color: #5f5c5c;
  color: #fff;
  cursor: pointer;
}

#start-btn:hover {
  background-color: #444;
}


/* ---- QUESTION ---- */
#question {
    font-weight: 600;
    color: #333;
    margin: 0.8rem 0 1rem 0;
}

/* ---- OPTIONS (3-column grid) ---- */
.options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    justify-items: center;
    margin-bottom: 0.5rem;
}

.options-grid button {
    width: 100%;
    border: 1px solid #e7dcd2;
    background: #fff;
    color: #333;
    border-radius: 0.5rem;
    padding: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.options-grid button:hover {
    background-color: #5f5c5c;
    color: white;
    transform: translateY(-2px);
}

/* ---- FEEDBACK ---- */
#feedback {
    margin-top: 0.6rem;
    font-weight: 600;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
    .options-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    #quiz-box {
        padding: 1.2rem;
    }

    #question {
        font-size: 0.9em;
    }
}