@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Poppins:wght@400;600&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f4f6f8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
}

.quiz-container {
  background-color: #fff;
  padding: 40px;
  width: 100%;
  max-width: 800px;
  border-radius: 16px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.quiz-title {
  font-family: 'Playfair Display', serif;
  color: #222;
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
}

.question {
  font-size: 22px;
  font-weight: 600;
  color: #444;
  margin-bottom: 16px;
  text-align: left;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option {
  background-color: #f6f8fa;
  border: 2px solid #e1e4e8;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 18px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.option:hover {
  background-color: #e6efff;
  border-color: #6aa8ff;
  transform: scale(1.02);
}

.option.selected {
  background-color: #d6e9ff;
  border-color: #007bff;
  font-weight: 600;
  transform: scale(1.05);
}

.result {
  font-size: 18px;
  font-weight: 600;
  margin-top: 16px;
}

.result.correct {
  color: #2e8b57;
}

.result.incorrect {
  color: #dc3545;
}

.score {
  font-size: 20px;
  font-weight: 600;
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #007bff;
}

input, button {
  font-size: 16px;
  padding: 12px;
  border-radius: 8px;
  border: 2px solid #ccc;
  margin: 8px 0;
  width: 100%;
  max-width: 400px;
}

button {
  background-color: #007bff;
  color: white;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: 0.3s;
}

button:hover {
  background-color: #0056b3;
  transform: scale(1.05);
}
