body {
  font-family: Arial, sans-serif;
  margin: 20px;
  font-size: 22px;
  background-color: #f0f0f0;
  color: #333;
  transition: background-color 0.3s ease;
}

.dark-mode {
  background-color: #333;
  color: #f0f0f0;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
}
.serial {
  width: 70px;
}
.no-bullets {
  list-style-type: none;
}

.container {
  width: 80%; /* Adjust width as needed */
  margin: 0 auto; /* Center the container horizontally */
  padding: 20px; /* Add padding inside the container */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Box shadow for a subtle lift effect */
}

.mode-toggle {
  position: fixed;
  top: 10px;
  right: 20px;
  display: flex;
  align-items: center;
  font-size: 14px;
  cursor: pointer;
}

.checkbox {
  display: none;
}

.label {
  display: inline-block;
  width: 40px;
  height: 20px;
  background-color: #ccc;
  border-radius: 20px;
  position: relative;
}

.ball {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

#toggle:checked + .label {
  background-color: #4caf50;
}

#toggle:checked + .label .ball {
  transform: translateX(20px);
}

.mode-text {
  margin-left: 10px;
}

.questions-table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
}

.questions-table th,
.questions-table td {
  padding: 10px;
  border: 1px solid #ccc;
  text-align: center;
}

.questions-table th {
  font-weight: bold;
}

.result {
  margin-top: 20px;
  font-weight: bold;
}

a {
  color: #007bff; /* Blue color for links */
  text-decoration: none; /* Remove underline by default */
  transition: color 0.3s ease; /* Smooth transition for color change */
}

/* Hover effect */
a:hover {
  color: #0056b3; /* Darker blue on hover */
}

.dark-mode a {
  color: #c8d6e5; /* Light gray color for links */
}

/* Hover effect for dark mode */
.dark-mode a:hover {
  color: #a7b6c2; /* Darker gray on hover */
}

button {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  background-color: #007bff;
  border: 2px solid #007bff;
  border-radius: 5px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease;
}

/* Button hover effect */
button:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

/* Button focus effect */
button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3);
}
