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

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

.quiz-container {
  background: white;
  border-radius: 0;
  box-shadow: none;
  width: 90%;
  height: 90vh;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quiz-header {
  margin-bottom: 30px;
}

#quiz-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quiz-innercontainer {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.progress-bar {
  height: 6px;
  background-color: #e0e0e0;
  border-radius: 3px;
  margin-bottom: 20px;
  overflow: hidden;
  display: none;
}

.progress {
  height: 100%;
  background-color: #667eea;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.question-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.question-info {
  color: #999;
  font-size: 24px;
}

.timer-display {
  font-size: 24px;
  font-weight: bold;
  color: #667eea;
  min-width: 3ch;
  text-align: right;
}

.timer-bar-container {
  height: 6px;
  background-color: #e0e0e0;
  border-radius: 3px;
  margin-bottom: 10px;
  overflow: hidden;
}

.timer-bar-fill {
  height: 100%;
  background-color: #667eea;
  border-radius: 3px;
  transition: width 1s linear;
}

.timer-bar-fill.timer-warning {
  background-color: #f44336;
}

.timer-warning {
  color: #f44336;
}

.question {
  font-size: 56px;
  font-weight: bold;
  color: #333;
  margin-bottom: 5vh;
  line-height: 1.4;
}

.answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 50px;
}

.answer-option {
  padding: 30px 25px;
  border: 3px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 32px;
  background-color: #f9f9f9;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.answer-option img {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
  margin-bottom: 15px;
  border-radius: 4px;
}

.answer-text {
  text-align: center;
}

.answer-option:hover {
  border-color: #667eea;
  background-color: #f0f0ff;
}

.answer-option.selected {
  border-color: #667eea;
  background-color: #e8ebff;
}

.answer-option.correct {
  border-color: #4caf50;
  background-color: #e8f5e9;
  color: #2e7d32;
}

.answer-option.incorrect {
  border-color: #f44336;
  background-color: #ffebee;
  color: #c62828;
}

.answer-option:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

button {
  padding: 20px 50px;
  font-size: 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
}

button.answer-with-image {
  padding: 0;
  border: 0;
  background-color: transparent;
}

.btn-next {
  background-color: #667eea;
  color: white;
  flex: 1;
  max-width: 400px;
  max-height: 100px;
}

.btn-next:hover:not(:disabled) {
  background-color: #5568d3;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-next:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.results {
  text-align: center;
}

.results h2 {
  font-size: 56px;
  color: #333;
  margin-bottom: 20px;
}

.results-score {
  font-size: 96px;
  color: #667eea;
  font-weight: bold;
  margin: 20px 0;
}

.results-message {
  font-size: 32px;
  color: #666;
  margin-bottom: 30px;
}

.btn-restart {
  background-color: #667eea;
  color: white;
  padding: 25px 60px;
  font-size: 28px;
}

.btn-restart:hover {
  background-color: #5568d3;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.loading {
  text-align: center;
  font-size: 18px;
  color: #667eea;
}

.error {
  background-color: #ffebee;
  color: #c62828;
  padding: 20px;
  border-radius: 6px;
  text-align: center;
}

.welcome-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
}

.welcome-headline {
  font-size: 130px;
  font-weight: bold;
  color: #333;
  margin-bottom: 16px;
  line-height: 1.2;
}

.welcome-subheadline {
  font-size: 36px;
  color: #667eea;
  font-weight: 600;
  margin-bottom: 60px;
  letter-spacing: 2px;
}

.welcome-image{
  font-size: 36px;
  color: #E3007D;
  font-weight: 600;
}

.btn-start {
  background-color: #667eea;
  color: white;
  padding: 25px 80px;
  font-size: 32px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-start:hover {
  background-color: #5568d3;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.category-splash {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  position: relative;
}

.category-icon {
  position: absolute;
  font-size: 120px;
  line-height: 1;
  user-select: none;
}

.category-icon img {
  width: 25vh;
}

.category-icon--tl {
  top: 0;
  left: 0;
}
.category-icon--tr {
  top: 0;
  right: 0;
}
.category-icon--bl {
  bottom: 0;
  left: 0;
}
.category-icon--br {
  bottom: 0;
  right: 0;
}

.category-label {
  font-size: 28px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 6px;
  margin-bottom: 24px;
}

.category-name {
  font-size: 88px;
  font-weight: bold;
  color: #667eea;
  margin-bottom: 60px;
  line-height: 1.2;
}

.category-next-btn {
  margin-top: 20px;
}

.confetti {
  position: fixed;
  top: -10px;
  pointer-events: none;
  animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
  to {
    transform: translateY(100vh) rotateZ(360deg);
    opacity: 0;
  }
}
