html, body {
  overflow: hidden;
}

body {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -webkit-text-size-adjust: none;
  user-select: none;
  position: relative;
  width: 100%;
}

h1 {
  font-size: 24px;
  text-align: center;
  padding: 20px;
}

h2 {
  font-size: 24px;
  padding-bottom: 10px;
}

.portrait-msg {
  display: none;
  align-items: center;
  width: 100vw;
  height: 100vh;
  background-color: #FFFFFF;
}

.main-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

canvas {
  max-height: 100vh;
  max-height: calc(var(--vh, 1vh) * 100);
}

.softkey-container-1, .softkey-container-2 {
  display: none;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  width: 64px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
}

.softkey-a, .softkey-s, .softkey-d {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid black;
  text-align: center;
  margin: 20px 0;
  width: 60px;
  height: 60px;
  font-size: 30px;
  color: white;
}

.softkey-a {
  background-color: crimson;
}

.softkey-s {
  background-color: dodgerblue;
}

.softkey-d {
  background-color: #FFAF00;
}

.controls {
  display: none;
}

@media all and (max-device-width: 1475px) and (orientation: portrait) {
  body {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .portrait-msg {
    display: flex;
  }

  .main-container {
    display: none;
  }
}

@media all and (max-device-width: 1475px) and (orientation: landscape) {
  .softkey-container-1, .softkey-container-2 {
    display: flex;
  }

  .canvas-div {
    padding: 0 20px;
  }

  .canvas-div, canvas {
    max-width: calc(100vw - 168px);
  }
}

@media all and (min-width: 1475px) {
  .controls {
    display: flex;
    flex-direction: column;
    width: max-content;
    align-items: center;
    margin: 0 auto;
    border: 2px solid black;
    padding: 10px 20px;
    background-color: grey;
    color: white;
    position: absolute;
    top: 5px;
    left: 5px;
  }

  .controls > ul {
    font-size: 18px;
    font-weight: 300;
  }
}