/* General Styles */
body {
  font-family: 'Arial', sans-serif;
  background-color: #f4f4f9;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Reusable Button Styles */
.btn-primary {
  display: inline-block;
  padding: 12px 24px;
  margin-bottom: 20px;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

.btn-primary:focus-visible {
  font-weight: bold;
}

.container {
  max-width: 900px;
  width: 90%;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  padding: 25px;
  text-align: center;
}

/* Chapter List Styles */
.level-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.level-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 12px;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  cursor: pointer;
  background: #fff;
  will-change: transform;
}

.level-item:nth-child(even) {
  background: #e9f0f7;
}

.level-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.level-link {
  font-size: 1.5rem;
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s ease;
  word-wrap: break-word;
}

.level-link:hover,
.level-link:focus-visible {
  font-weight: bold;
}

.score-display {
  font-size: 1.3rem;
  color: #222;
}

/* Responsive Design */
@media (max-width: 600px) {
  .container {
    width: 95%;
    padding: 20px;
  }

  .level-item {
    flex-direction: column;
    text-align: center;
  }
}