body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  text-align: center;
}

header {
  background-color: #4caf50;
  color: white;
  padding: 20px;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
}

header h2 {
  margin-top: 10px;
  font-size: 1.2rem;
}

header ul {
  list-style-type: disc;
  text-align: left;
  max-width: 600px;
  margin: 10px auto 0 auto;
  padding-left: 20px;
}

main {
  margin: 30px auto;
  max-width: 600px;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
}

main h1 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

#scrambledWord {
  font-size: 1.5rem;
  margin: 15px 0;
  color: #4caf50;
  font-weight: bold;
}

#userInput {
  padding: 8px;
  font-size: 1rem;
  border: 2px solid #ccc;
  border-radius: 5px;
  margin-bottom: 10px;
  width: 200px;
}

button {
  margin: 5px;
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s ease;
}

#submit {
  background-color: #4caf50;
  color: white;
}

#nextWord {
  background-color: #2196f3;
  color: white;
}

#reset {
  background-color: #f44336;
  color: white;
}

button:hover:not(:disabled) {
  opacity: 0.9;
}

button:disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
  opacity: 0.7;
}

#highScoreDisplay,
#userPoints,
#attempts,
#answer {
  margin-top: 15px;
  font-size: 1.2rem;
}

#answer {
  font-weight: bold;
  color: #d32f2f;
}

.button-group {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 10px auto;
}

.reset-group {
  margin-top: 15px;
  display: flex;
  justify-content: center;
}

.button-group button,
.reset-group button {
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 6px;
}
