:root {
  --bg-light: #f0f4f8;
  --bg-dark: #121212;
  --card-light: rgba(255, 255, 255, 0.8);
  --card-dark: rgba(255, 255, 255, 0.05);
  --text-light: #1a1a1a;
  --text-dark: #f5f5f5;
  --accent: #00c6ff;
  --correct: #4caf50;
  --wrong: #f44336;
  --glass-blur: blur(12px);
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-light);
  transition: background 0.4s, color 0.4s;
}

body.dark {
  background-color: var(--bg-dark);
  color: var(--text-dark);
}

.app {
  max-width: 700px;
  margin: auto;
  padding: 2rem;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

header h1 {
  font-size: 1.8rem;
  margin: 0;
}

#themeToggle {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.quiz-box {
  background: var(--card-light);
  backdrop-filter: var(--glass-blur);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: background 0.4s;
}

body.dark .quiz-box {
  background: var(--card-dark);
}

#question {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.options-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.options-list li {
  background: rgba(0, 0, 0, 0.05);
  padding: 0.8rem 1rem;
  margin-bottom: 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;

}

body.dark .options-list li {
  background: rgba(255, 255, 255, 0.05);
    transition: background 0.3s, transform 0.2s;

  
  
}
body.dark .options-list li:hover{
  background-color: #00c6ff;
  font-weight: bold;

}


body.dark p{
    color:white;
}
.options-list li:hover {
  background: var(--accent);
  color: #fff;
  transform: scale(1.02);
  font-weight: bold;
}

.options-list li.correct {
  background: var(--correct);
  color: #fff;
}

.options-list li.wrong {
  background: var(--wrong);
  color: #fff;
}

#nextBtn {
  margin-top: 1.5rem;
  padding: 0.8rem 1.5rem;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

#nextBtn:hover {
  background: #0099cc;
}

.score-box {
  margin-top: 2rem;
  font-size: 1.2rem;
  text-align: center;
}

.hidden {
  display: none;
}

@media (max-width: 600px) {
  .quiz-box {
    padding: 1rem;
  }

  header {
    flex-direction: column;
    gap: 1rem;
  }

  #themeToggle {
    width: 100%;
  }
}
.error {
  color: #f44336;
  background: rgba(255, 0, 0, 0.1);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  text-align: center;
  font-weight: bold;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}
.btn-group {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}


#prevBtn, #homeBtn{
 margin-top: 1.5rem;
  padding: 0.8rem 1.5rem;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

#prevbtn,#homebtn:hover {
  background: #0099cc;
}

 .credit {
  font-size: 0.9rem;
  color: #888;
  text-align: center;
  margin-top: 2rem;
  color:black;
  font-weight: bold;

}
.creadit a{
  text-decoration: none;
}
.credit #name{
    text-decoration: none;
    color:orange;
}
.credit #link{
  color:#0099cc;
}
#quiz{
    margin-left: 8rem;
}
#msg{
  color: #f59e0b;
  font-size: 0.9rem;
  text-align: center;
  margin-top: 1.5rem;
  font-weight: bold;
}

#disc{
  color:red;
  font-weight: bold;
}