body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #8b89b6, #3a384a);
  min-height: 100vh;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Header */
.header {
  background: linear-gradient(135deg, #2c2a38, #434051);
  margin-top: 50px;
  padding: 30px 50px;
  border-radius: 20px;
  text-align: center;
  width: 80%;
  max-width: 800px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #fff;
}

.header p {
  font-size: 1.2rem;
  color: #dcdcdc;
}

/* Quiz Container */
.quiz-box {
  margin-top: 50px;
  padding: 40px 30px;
  border-radius: 20px;
  width: 90%;
  max-width: 800px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.quiz-box input[type="text"] {
  width: 70%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 1rem;
  margin-bottom: 20px;
  background-color: #fff;
  color: #333;
}

/* Radio Group */
.radio-group {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 20px;
  font-size: 1rem;
  font-weight: bold;
  color: #fff;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.radio-group input[type="radio"] {
  transform: scale(1.2);
  cursor: pointer;
}

/* Start Button */
.start-button {
  margin-top: 10px;
  padding: 14px 28px;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  background: linear-gradient(to right, #f9aa33, #ffc107);
  color: #000;
  transition: all 0.3s ease;
}

.start-button:hover {
  transform: scale(1.03);
  background: linear-gradient(to right, #fbc02d, #ffa000);
}

/* Timer */
.timer {
  margin-top: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
}

/* Question Block */
.question-block {
  text-align: left;
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  color: #222;
  margin-bottom: 30px;
}

.question-block p {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Options */
.option {
  display: flex;
  align-items: center;
  background-color: #f7f7f7;
  padding: 12px 16px;
  margin: 12px 0;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 90%;
}

.option:hover {
  border-color: #ffc107;
  background-color: #fff8e1;
}

.option input[type="radio"] {
  margin-right: 12px;
  transform: scale(1.3);
  cursor: pointer;
}

.option-text {
  font-weight: 600;
  font-size: 1rem;
  color: #333;
  text-align: left;
  width: 100%;
}

/* Navigation Buttons */
.nav-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

.nav-buttons button {
  padding: 12px 24px;
  font-size: 1rem;
  background: #3f51b5;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.nav-buttons button:hover {
  background: #303f9f;
}

.quiz-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.quiz-display-area {
  width: 100%;
  min-height: 380px; /* 🔐 Fixes layout bounce */
  transition: all 0.3s ease;
}
@media (max-width: 600px) {
  .quiz-display-area {
    min-height: 300px;
    max-height: 450px;
  }
}
