/* === Reset === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* === Layout utama === */
body {
  background: #f5f5dc;
  color: #2f4f4f;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

/* === Bekas kuiz === */
.quiz-container {
  width: 100%;
  max-width: 700px;
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  text-align: center;
}

/* === Tajuk & Timer === */
h1 {
  color: #2e5e4e;
  margin-bottom: 15px;
}

#timer {
  font-size: 18px;
  font-weight: 600;
  color: #3a6b57;
  margin-bottom: 25px;
}

/* === Soalan === */
.question {
  display: none;
}

.question.active {
  display: block;
  animation: fadeZoomIn 0.8s ease forwards;
}

.q-img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin: 10px 0;
}

/* === Pilihan === */
.options label {
  display: block;
  background: #e7f0e7;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.options label:hover {
  background: #d0e3d0;
}

/* === Butang === */
.btn {
  background: #2e5e4e;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 12px;
  cursor: pointer;
  margin-top: 20px;
  font-size: 16px;
  transition: 0.3s;
}

.btn:hover {
  background: #3a6b57;
  transform: scale(1.05);
}

/* === Butang mula === */
#startBtn {
  background: #2e5e4e;
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 15px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  display: block;
  margin: 30px auto;
  transition: 0.3s;
}

#startBtn:hover {
  background: #3a6b57;
  transform: scale(1.05);
}

/* === Keputusan === */
#score {
  margin-top: 20px;
  font-size: 20px;
  font-weight: bold;
  color: #2e5e4e;
  animation: fadeZoomIn 0.8s ease forwards;
}

#score img {
  width: 130px;
  margin-top: 15px;
  border-radius: 15px;
}

/* === Animasi === */
@keyframes fadeZoomIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}