@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap");

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #040806;
  background-image: url("./assets/background/background.gif");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  font-family: "Bebas Neue", sans-serif;
}

.app-shell {
  width: 100vw;
  height: 100dvh;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#gameCanvas {
  width: 100vw;
  height: 100dvh;
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  touch-action: manipulation;
}

@media (max-width: 900px) {
  .app-shell {
    width: 100vw;
    height: 100dvh;
    padding:
      max(0px, env(safe-area-inset-top))
      max(0px, env(safe-area-inset-right))
      max(0px, env(safe-area-inset-bottom))
      max(0px, env(safe-area-inset-left));
  }

  #gameCanvas {
    width: calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right));
    height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }
}
