/* Bestehendes CSS */
canvas {
    border: 5px solid gainsboro;
    border-radius: 5px;
    display: block;
    margin: 20px auto;
    background-color: black;
}

body {
    background-color: black;
    text-align: center;
    font-family: Helvetica, Arial, sans-serif;
    color: whitesmoke;
}

/* Steuerungsbereich */
#controls {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#arrow-buttons {
    display: grid;
    grid-template-columns: 120px 120px 120px;
    grid-template-rows: 120px 120px;
    gap: 15px;
}

/* Allgemeine Steuerungs-Buttons */
.control-button {
    width: 120px;
    height: 120px;
    border: 2px solid gainsboro;
    border-radius: 10px;
    background-color: #1a1a1a;
    color: whitesmoke;
    font-size: 48px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s;
}

.control-button:hover,
.control-button:active {
    background-color: #333;
}

/* Spezieller Space-Button */
#space-button {
    width: 400px;
    height: 100px;
    margin-top: 10px;
    font-size: 40px;
}

.touch-controls button {
  width: 60px;      /* Breite der Buttons */
  height: 60px;     /* Höhe der Buttons */
  font-size: 24px;  /* Größe der Symbole/Text */
  margin: 5px;      /* Abstand zwischen den Buttons */
  border-radius: 10px; /* Abgerundete Ecken */
  user-select: none; /* Verhindert markieren beim Tippen */
  touch-action: manipulation; /* Verbessert Touch-Erlebnis */
}