/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)),
    url('./assets/bg.jpg')
      no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 750px;
  height: auto;
  min-height: 500px;
  max-height: 600px;
  background: rgba(20, 20, 20, 0.75);
  backdrop-filter: blur(15px);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin: auto;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
  display: flex;
  flex-direction: column;
}

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

h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #d4af37, #ffd700, #cfb53b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
  font-weight: 600;
}

h2 {
  background: linear-gradient(90deg, #d4af37, #ffd700, #cfb53b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
  font-size: 1.8rem;
}

.subtitle {
  font-size: 1rem;
  opacity: 0.8;
  color: #ffd700;
}

.screen {
  display: none;
  flex-direction: column;
  height: 100%;
  animation: fadeIn 0.5s ease;
}

.active {
  display: flex;
}

.btn {
  background: linear-gradient(90deg, #d4af37, #ffd700);
  color: #1a1a1a;
  border: none;
  padding: 10px 25px;
  border-radius: 50px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 8px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  font-weight: 600;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  background: #555555;
  color: #888;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.question-container {
  margin-bottom: 15px;
}

.question-number {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-bottom: 5px;
  color: #ffd700;
}

.question-text {
  font-size: 1.2rem;
  margin-bottom: 15px;
  line-height: 1.4;
  color: #ffffff;
}

.options-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.option {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #e0e0e0;
  font-size: 0.95rem;
}

.option:hover {
  background: rgba(255, 215, 0, 0.1);
  transform: translateX(5px);
}

.option.selected {
  background: rgba(255, 215, 0, 0.2);
  border-color: #ffd700;
}

.option.correct {
  background: rgba(76, 175, 80, 0.2);
  border-color: #4caf50;
}

.option.wrong {
  background: rgba(244, 67, 54, 0.2);
  border-color: #f44336;
}

.navigation {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.progress-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin: 12px 0;
  overflow: hidden;
}

.progress {
  height: 100%;
  background: linear-gradient(90deg, #d4af37, #ffd700);
  width: 0%;
  transition: width 0.3s ease;
}

.result-screen {
  text-align: center;
  justify-content: center;
  height: 100%;
}

.score-text {
  font-size: 1.5rem;
  margin: 15px 0;
  color: #ffffff;
}

.score-value {
  font-size: 2.5rem;
  font-weight: bold;
  background: linear-gradient(90deg, #d4af37, #ffd700, #cfb53b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 15px 0;
}
.feedback {
  margin-top: 8px;
  font-size: 0.85rem;
  min-height: 18px;
  padding: 8px;
  border-radius: 5px;
  text-align: center;
}

.correct-feedback {
  color: #4caf50;
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.wrong-feedback {
  color: #f44336;
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid rgba(244, 67, 54, 0.3);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}