/* Allgemeines Layout */
body {
  font-family: 'Inter', sans-serif;
  background-color: #f4f4f4;
  color: #333;
  text-align: center;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  padding-top: 50px;
}

h1 {
  font-size: 2.5rem;
  color: #4e89ae;
  margin-bottom: 30px;
}

/* Mode-Auswahl */
#mode-select {
  margin-bottom: 40px;
}

#mode-select button {
  background-color: #c1d3df;
  color: #333;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 1rem;
  cursor: pointer;
  margin: 10px;
  transition: background-color 0.3s ease;
}

#mode-select button:hover {
  background-color: #aabecb;
}

/* Spielbereich */
#game {
  background-color: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 400px;
}

input[type="number"] {
  padding: 10px;
  width: 60%;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  transition: box-shadow 0.3s ease;
  margin-bottom: 15px;
}

input.correct {
  animation: glow 0.5s ease-out;
  box-shadow: 0 0 12px #4caf50;
}

input.wrong {
  animation: shake 0.3s ease;
  box-shadow: 0 0 8px #e57373;
}

button {
  background-color: #4e89ae;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #3b6d91;
}

/* Feedback & Versuche */
#feedback {
  margin-top: 20px;
  font-size: 1.2rem;
  font-weight: bold;
}

#attempts {
  margin-top: 10px;
  color: #666;
}

/* Animationen */
@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-6px); }
  100% { transform: translateX(0); }
}

@keyframes glow {
  0% { box-shadow: 0 0 0px #4caf50; }
  100% { box-shadow: 0 0 12px #4caf50; }
}
