* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 100vw;
  height: 100vh;
  background-color: #333;
  max-width: 100vw;
  max-height: 100vh;
}

button {
  border: 0;
}

#game-wrapper {
  height: 100%;
  width: 100%;
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#canvas-wrapper {
  width: 100%;
  position: relative;
  margin: auto;
  touch-action: none;
}

@media (orientation: landscape) {
  #canvas-wrapper {
    max-width: 100vh;
  }
}

@media (orientation: portrait) {
  #canvas-wrapper {
    max-width: 100vw;
  }
}

#canvas1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid #222;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  margin: 0;
  transition: 0.3s ease-in-out 0s;
}

.assets {
  display: none;
}

/* You can also use CSS to style the page when it is in fullscreen mode:
Example */
/* Safari */
:-webkit-full-screen #full-screen{
  /* background-color: yellow; */
  display: none;
}

/* IE11 */
:-ms-fullscreen #full-screen{
  /* background-color: yellow; */
  display: none;
}

/* Standard syntax */
:fullscreen #full-screen{
  /* background-color: yellow; */
  display: none;
}

#full-screen {
  position: absolute;
  font-size: 2em;
  padding: 0.25em;
  width: 6em;
  left: 50%;
  bottom: 10%;
  transform: translateX(-50%);
}