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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f5af19 0%, #f12711 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  background: white;
  border-radius: 20px;
  padding: 40px;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

header {
  text-align: center;
  margin-bottom: 30px;
}

header h1 {
  font-size: 2em;
  color: #333;
}

.subtitle {
  color: #666;
  margin-top: 5px;
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

/* Category buttons */
.category-select {
  text-align: center;
}

.category-select h2 {
  margin-bottom: 20px;
  color: #333;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  margin: 8px;
  border: none;
  border-radius: 10px;
  font-size: 1.1em;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  background: linear-gradient(135deg, #f5af19 0%, #f12711 100%);
  color: white;
  font-weight: bold;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.category-btn {
  display: block;
  width: 80%;
  margin: 10px auto;
  font-size: 1.2em;
  padding: 15px;
}

/* Quiz header */
.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-weight: bold;
  color: #555;
}

.progress-bar {
  background: #eee;
  border-radius: 10px;
  height: 10px;
  margin-bottom: 25px;
  overflow: hidden;
}

.progress-fill {
  background: linear-gradient(90deg, #f5af19, #f12711);
  height: 100%;
  border-radius: 10px;
  transition: width 0.4s ease;
}

/* Question */
#question-text {
  font-size: 1.3em;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.4;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-btn {
  padding: 15px 20px;
  border: 2px solid #ddd;
  border-radius: 10px;
  background: white;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.option-btn:hover {
  border-color: #f5af19;
  background: #fff8f0;
}

.option-btn.correct {
  border-color: #27ae60;
  background: #d4edda;
  color: #155724;
}

.option-btn.wrong {
  border-color: #e74c3c;
  background: #f8d7da;
  color: #721c24;
}

.option-btn.disabled {
  pointer-events: none;
  opacity: 0.7;
}

/* Next button */
#next-btn {
  display: block;
  margin: 20px auto 0;
}

.hidden {
  display: none !important;
}

/* Results */
#result-screen {
  text-align: center;
}

#result-title {
  font-size: 2em;
  margin-bottom: 10px;
}

#result-score {
  font-size: 3em;
  font-weight: bold;
  color: #f12711;
  margin: 15px 0;
}

#result-message {
  color: #666;
  font-size: 1.1em;
  margin-bottom: 20px;
}

#result-details {
  text-align: left;
  margin: 20px 0;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 10px;
  max-height: 200px;
  overflow-y: auto;
}

.detail-item {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-correct {
  color: #27ae60;
}

.detail-wrong {
  color: #e74c3c;
}
