body, html {
  height: 100%;
  margin: 0;
  font-family: 'Arial', sans-serif;
  background: linear-gradient(135deg, #f0f3f5, #a0c1d1);
  color: #333;
}

.home, .quiz {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.quiz-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 80%;
  margin: auto;
}

.card {
  padding: 20px;
  background-color: #ffffff;
  border: 2px solid #007BFF;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transform: perspective(1500px) rotateY(0deg);
  text-decoration: none;
}

.card:hover {
  transform: scale(1.05) rotateY(5deg);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

button {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
  background-color: #0056b3;
  transform: translateY(-3px);
}

.question {
  background: #fff;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  text-align: left;
  width: 80%;
  margin: auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Ensure smooth transformations */
}

.question:hover {
  transform: scale(1.05); /* Enlarge the question and options */
  box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Deepen the shadow for better emphasis */
}

label {
  cursor: pointer;
  display: block;
  padding: 10px;
  margin: 5px;
  border-radius: 5px;
  background: #ecf0f1;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

label:hover {
  background-color: #dfe6e9; /* Slight color change to emphasize hover on individual options */
  transform: translateY(-2px); /* Subtle lift to indicate active selection */
}



input[type="radio"] {
  margin-right: 10px;
}

#results {
  width: 80%;
  margin-top: 20px;
  margin: auto;
}

#results div {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: center;
  color: #333;
}

.correct-answer {
  color: green;
}

.wrong-answer {
  color: red;
}

.explanation {
  font-style: italic;
  margin-top: 10px;
}

#timer {
  margin-bottom: 20px;
  font-size: 18px;
}
