/* ===============================
   Project 3: Online Quiz Website
   styles.css — Main stylesheet
   =============================== */

/* ========== 1. Reset & Base Styles ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Quicksand', sans-serif;
  background: #fff8f0;
  color: #333;
  line-height: 1.6;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ========== 2. Typography ========== */
h1,
h2,
h3 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  color: #ff6b00;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}

p,
li {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

/* ========== 3. Layout Structure ========== */
.main-header,
.main-footer {
  background: #fff0e5;
  padding: 1.5rem;
  text-align: center;
}

.main-content {
  flex: 1;
  padding: 2rem;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}



/* ========== 4. Buttons ========== */
.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: #ff6b00;
  color: white;
  margin-top: 1rem;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
  font-size: 1.1rem;
}

.btn:hover {
  background: #e65c00;
}

.btn-green {
  background: #1abc9c;
}

.btn-green:hover {
  background: #159c87;
}

.start-btn {
  margin-top: 1rem;
}

.home-btn-wrapper {
  text-align: center;
  margin-top: 2rem;
  width: 100%;
}

/* ========== 5. Quiz Content ========== */
.quiz-container,
.results-summary,
.instructions {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.quiz-progress {
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: bold;
  color: #555;
}

.quiz-category {
  font-weight: bold;
  color: #555;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-family: 'Fredoka', sans-serif;
}

.choices-container {
  margin: 1.5rem 0;
}

.choice-btn {
  display: block;
  width: 100%;
  background: #ffe6cc;
  border: 2px solid transparent;
  padding: 0.75rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s ease;
}

.choice-btn:hover {
  background: #ffddb3;
}

.choice-btn.selected {
  border-color: #ff6b00;
  background-color: #ffd1a3;
}

.quiz-controls {
  text-align: right;
}

/* ========== 6. Results ========== */
.result-card {
  background: #f9f9f9;
  border-left: 6px solid #1abc9c;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.result-card p {
  margin: 0.5rem 0;
}

/* ========== 7. Responsive Design ========== */
@media (max-width: 1024px) {
  .main-content {
    padding: 1.5rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .btn {
    padding: 0.65rem 1.2rem;
    font-size: 1rem;
  }

  .choice-btn {
    font-size: 1rem;
  }

  .quiz-container,
  .results-summary,
  .instructions {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .main-content {
    padding: 1rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  .btn {
    width: 100%;
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
  }

  .choice-btn {
    font-size: 0.95rem;
    padding: 0.6rem;
  }

  .quiz-container,
  .results-summary,
  .instructions {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .main-header,
  .main-footer {
    padding: 1rem;
  }

  h1 {
    font-size: 1.25rem;
  }

  h2 {
    font-size: 1.05rem;
  }

  .quiz-progress,
  .quiz-category {
    font-size: 0.85rem;
  }

  .btn {
    font-size: 0.85rem;
    padding: 0.6rem 0.9rem;
  }

  .choice-btn {
    font-size: 0.85rem;
    padding: 0.5rem;
  }

  .quiz-container,
  .results-summary,
  .instructions {
    padding: 0.75rem;
  }

  .home-btn-wrapper {
    margin-top: 1.5rem;
  }
}
