:root {
  --bg-light: #f5f5f5;
  --bg-dark: #1e1e1e;
  --text-light: #333;
  --text-dark: #fff;
  --primary: #4e54c8;
  --secondary: #8f94fb;
  --correct: #28a745;
  --wrong: #dc3545;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-light);
  color: var(--text-light);
  transition: 0.3s ease;
}

body.dark-mode {
  background: var(--bg-dark);
  color: var(--text-dark);
}

.container {
  max-width: 600px;
  margin: 50px auto;
  padding: 30px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: white;
}

.hidden {
  display: none;
}

button {
  padding: 10px 20px;
  margin: 15px;
  border: none;
  border-radius: 5px;
  background-color: #ffffff;
  color: #4e54c8;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s ease;
}

button:hover {
  background-color: #dddddd;
}

.question-card {
  animation: fadeIn 0.5s;
}

.options button {
  display: block;
  width: 100%;
  margin: 10px auto;
}

.correct {
  background-color: var(--correct) !important;
  color: white;
}
.wrong {
  background-color: var(--wrong) !important;
  color: white;
}
#progress-bar-wrapper {
  width: 100%;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  overflow: hidden;
  height: 10px;
  margin-bottom: 15px;
}

#progress-bar {
  width: 0%;
  height: 100%;
  background-color: white;
  transition: width 0.3s ease;
}

#question-counter {
  font-weight: bold;
  margin-bottom: 10px;
}

@media (max-width: 600px) {
  .dark-toggle {
    font-size: 20px;
    top: 5px;
    right: 10px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dark-toggle {
  position: absolute;
  top: 10px;
  right: 20px;
  cursor: pointer;
  font-size: 24px;
}

@media (max-width: 600px) {
  .container {
    margin: 20px;
  }
}
.mute-toggle {
  position: absolute;
  top: 10px;
  right: 60px;
  cursor: pointer;
  font-size: 24px;
}

@media (max-width: 600px) {
  .mute-toggle {
    top: 5px;
    right: 50px;
    font-size: 20px;
  }

  .container {
    margin: 10px;
    padding: 20px;
  }

  button {
    width: 100%;
    font-size: 14px;
  }

  #question-counter {
    font-size: 16px;
  }
}
