* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f0f4f8;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  color: #333;
}

/* Header and Footer styling */
header, footer {
  width: 100%;
  text-align: center;
  padding: 15px;
  background: linear-gradient(90deg, #4caf50, #81c784);
  color: white;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

header h1 {
  font-size: 1.5em;
}

footer {
  margin-top: 15px;
}

/* Main Quiz Container */
.quiz-container {
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  max-width: 90%;
  width: 600px;
  transition: transform 0.3s;
}

.quiz-container:hover {
  transform: scale(1.0001);
}

/* Question styling */
.question-container {
  margin-bottom: 25px;
  padding: 18px;
  border-radius: 10px;
  transition: background-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.question {
  font-weight: bold;
  font-size: 1.2em;
  color: #333;
  margin-bottom: 12px;
}

.options label {
  display: block;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  background-color: #f9f9f9;
  transition: background-color 0.3s, transform 0.2s;
}

.options label:hover {
  background-color: #e8f5e9;
  transform: translateX(3px);
}

/* Show Answer Button styling */
.show-answer-btn {
  background: linear-gradient(90deg, #4CAF50, #66bb6a);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 15px;
  font-weight: bold;
  margin-top: 12px;
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.show-answer-btn:hover {
  background: linear-gradient(90deg, #45a049, #4CAF50);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.show-answer-btn:active {
  transform: translateY(0px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Explanation styling */
.explanation {
  font-size: 1em;
  color: #666;
  background-color: #f1f8e9;
  padding: 10px;
  border-radius: 5px;
  margin-top: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s;
}

/* Pagination Button styling */
.pagination-button {
  padding: 12px;
  margin: 5px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background-color: #eeeeee;
  color: #333;
  font-weight: bold;
  font-size: 1em;
  transition: background-color 0.3s, color 0.3s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.pagination-button.active {
  background-color: #4CAF50;
  color: white;
  font-weight: bold;
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.pagination-button:hover:not(.active) {
  background-color: #ccc;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.pagination-button:active {
  transform: translateY(0px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
