:root {
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --safe-area-left:   env(safe-area-inset-left, 0px);
  --safe-area-right:  env(safe-area-inset-right, 0px);
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  background-color: #000000;
}

canvas {
  display: block;
  margin: 0 auto;
  touch-action: none;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
}

        /* Zentriere den Canvas im Hauptbereich */
        main {
            display: flex;
            align-items: center;
            width: 100%;
            height: 100%;
            touch-action: none;
          }

          #world-menu {
            display: flex;
            justify-content: center;
            margin-bottom: 20px;
          }
          .world {
            width: 120px;
            height: 50px;
            background-color: #ccc;
            border: 2px solid #000;
            text-align: center;
            line-height: 50px;
            cursor: pointer;
            margin: 0 10px;
            transition: background-color 0.3s;
          }
          .world:hover {
            background-color: #aaa;
          }
          #game-menu {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center;
          }
          .level {
            width: 100px;
            height: 100px;
            background-size: cover;
            border: 2px solid #000;
            cursor: pointer;
            transition: transform 0.2s;
          }
          .level:hover {
            transform: scale(1.1);
          }
      