/* --- Color Theme --- */
:root {
  --bg: #0f172a;
  --card-bg: #1e293b;
  --text: #f8fafc;
  --accent: #38bdf8;
  --accent-hover: #0ea5e9;
  --font: 'Inter', sans-serif;
  --foot: #9ca3af;
  --link:  #6c63ff;
}

/* --- Base Layout --- */
*,
*::before, 
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
  margin: 0 5vw;

  text-align: center;

  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}


/* --- Quiz Container --- */
.container {
  width: 100%;
  max-width: 650px;
}

/* --- Header --- */
.header {
  margin-bottom: 1.5rem;
}

.quiz-title {
  font-size: 1.9rem;
  font-weight: 600;
  margin: 0;
}

/* --- Progress Bar --- */
.quiz-progress {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.35s ease;
}

/* --- Card Style --- */
.quiz-screen,
.result-screen {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

/* --- Question Text --- */
.question-text {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

/* --- Options --- */
.option {
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0.6rem;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.2s ease;
}

.option:hover {
  background-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* --- Buttons --- */
.btn {
  padding: 0.9rem;
  border-radius: 0.5rem;
  border: none;
  width: 100%;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn:disabled {
  background: #ccc;
  color: #777;
  cursor: not-allowed;
  opacity: 0.7;
}

/* --- Result Screen --- */
.result-screen h2 {
  font-size: 1.6rem;
  margin-top: 0;
}

.result-screen p {
  margin: 1rem 0;
  line-height: 1.6;
}

/* --- Footer --- */
footer a {
  color: var(--link);
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

footer {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--foot);
}

/* --- Responsive Adjustments --- */
@media (max-width: 480px) {
  body {
    font-size: 0.9rem;
  }
  .quiz-screen,
  .result-screen {
    padding: 1.5rem;
    
  }

  .quiz-title {
    font-size: 1.6rem;
  }
}
