/* Allgemeine Stile */
body {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #000; /* Schwarzer Hintergrund */
  font-family: Arial, sans-serif;
  color: white;
  text-align: center;
  overflow: hidden; /* Verhindert Scrollen */
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 600px; /* Begrenzte Breite für Desktop */
  padding: 10px;
  box-sizing: border-box;
}

h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}

/* Canvas-Stil */
canvas {
  display: block;
  width: 100%; /* Passt die Breite des Canvas an */
  max-width: 400px; /* Maximale Breite für Desktop */
  aspect-ratio: 1 / 1; /* Stellt sicher, dass das Canvas quadratisch bleibt */
  border: 2px solid white;
  background-color: #111; /* Dunkler Hintergrund */
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.3);
  margin: 0 auto; /* Zentriert das Canvas */
}

/* Button-Stil für Bewegungssensoren */
button {
  background-color: #0073e6; /* Blau */
  color: white;
  font-size: 1rem;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

button:hover {
  background-color: #005bb5; /* Dunkleres Blau */
}

/* Mobile Optimierungen */
@media (max-width: 600px) {
  h1 {
    font-size: 1.5rem;
  }

  canvas {
    width: 90%; /* Nimmt 90% der Breite ein */
  }

  button {
    font-size: 0.9rem;
    padding: 8px 16px;
  }
}

/* Tablet Optimierungen */
@media (min-width: 601px) and (max-width: 1024px) {
  h1 {
    font-size: 1.8rem;
  }

  canvas {
    max-width: 500px; /* Etwas größere Darstellung auf Tablets */
  }

  button {
    font-size: 1rem;
    padding: 10px 20px;
  }
}