html {
  transition: background-color 0.4s ease, color 0.4s ease;
}

body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  background-color: #f4f4f4; /* Set a fixed background color */
  color: #222; /* Set a fixed text color */
  transition: background 0.3s, color 0.3s;
}

body, select, button {
  transition: background-color 0.4s ease, color 0.4s ease, transform 0.2s ease;
}

#quizSelection {
  padding: 10px;
}

#filterSection {
  position: sticky;
  top: 0;
  background-color: #fff; /* Fixed card background color */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  padding: 15px;
  border-radius: 8px;
  z-index: 100;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

h2 {
  margin: 0;
}

label {
  margin-top: 10px;
  font-weight: bold;
}

select {
  width: 100%;
  padding: 8px;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff; /* Fixed select background color */
  color: #222; /* Fixed select text color */
}

#quizList {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

#quizList button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

#quizList button:focus {
  transform: scale(1.05); /* Add focus effect */
  outline: 2px solid #007bff; /* Optional: Add a focus outline */
}