

/* styles.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #ff7eb3, #ff758c);
  color: #fff;
}

.quiz-container {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  text-align: center;
  width: 400px;
  max-width: 90%;
  color: #333;
  transform: scale(1);
  transition: transform 0.3s ease-in-out;
}

.quiz-container:hover {
  transform: scale(1.02);
}

h1 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #333;
}

#question {
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: 600;
}

#answers {
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

button {
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

button:hover {
  background: linear-gradient(135deg, #2575fc, #6a11cb);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

button:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

button[disabled] {
  background: #ccc;
  cursor: not-allowed;
  color: #ccc;
}

button[disabled]:hover {
  transform: none;
  box-shadow: none;
}

.score {
  font-size: 18px;
  margin-top: 20px;
  font-weight: bold;
  color: #2575fc;
}

.score span {
  font-size: 24px;
  color: #6a11cb;
}

button.correct {
  background: #28a745; /* Green for correct answers */
  color: white;
}

button.incorrect {
  background: #dc3545; /* Red for incorrect answers */
  color: white;
}

button[disabled] {
  background: #ccc;
  cursor: not-allowed;
  color: #ccc;
  opacity: 0.8;
}


