@font-face {
  font-family: "Nunito";
  src: url(Nunito-VariableFont_wght.ttf);
  font-style: normal;
  font-weight: 200 1000;
}

@font-face {
  font-family: "Nunito";
  src: url(Nunito-Italic-VariableFont_wght.ttf);
  font-style: italic;
  font-weight: 200 1000;
}

html {
  box-sizing: border-box;
  height: 100%;
  width: 100%;
}

*, *:before, *:after {
  box-sizing: inherit;
}

* {
  margin: 0;
  padding: 0;
  font-family: 'Nunito', sans-serif;
}

body {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  background-color: #888;
}

@media (max-aspect-ratio: 16/9) {
  body {
    flex-direction: column;
  }
}

#menuButton {
  width: 25vh;
  height: 10vh;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  position: absolute;
  top: 1vh;
  right: 1vh;
}

#menuButton img {
  width: 20%;
  height: 50%;
}

#menuButton div {
  font-size: 3vh;
  font-weight: 900;
}

#menu {
  display: none;
  position: absolute;
  top: 1vh;
  right: 1vh;
  bottom: 1vh;
  left: 1vh;
  overflow: auto;
  padding: 5px;
  background-color: #ccc;
}

#closeMenuButton {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 50px;
  height: 50px;
  font-size: 30px;
  font-weight: 900;
}

#visuals, #gameplay, #controls, #handling {
  margin-bottom: 20px;
}

#controls>div, #handling>div {
  padding: 10px;
  padding-top: 0;
}

#gameplay div, #controls div div, #handling div div {
  display: flex;
}

#gameplay div>span, #controls div>span, #handling div>span {
  flex-grow: 1;
  flex-basis: 0;
  padding: 5px;
  border: 2px solid #777;
}

#gameplay span:first-child, #controls span:first-child, #handling span:first-child {
  text-align: right;
}

#controls span:last-child {
  text-align: left;
}

#keyboardControls span:last-child {
  background-color: #999;
}

#gameplay span:last-child, #handling span:last-child {
  display: flex;
  align-items: center;
}

#gameplay span:last-child span, #handling span:last-child span {
  border: 0;
  text-align: left;
}

#gameplay span:last-child input, #handling span:last-child input {
  border: 0;
  flex-grow: 1;
  flex-basis: 0;
}