#game-container {
  width: 100%;
  height: 100%;
}

#game-body {
  width: 100%;
  height: 100%;
}

#game-body .header, .footer {
  position: absolute;
  width: 100%;
  padding: 5px;
  height: 38px;
  line-height: 38px;
  font-family: Helvetica, Verdana, Arial, sans-serif;
  font-size: 18px;
}

#game-body .header {
  top: 0;
}

#game-body .footer {
  bottom: 0;
}

#game-body .header .webgl-logo, .title, .fullscreen {
  height: 100%;
  display: inline-block;
  background: transparent center no-repeat;
}

#game-body .header .webgl-logo {
  height: 35px;
  width: 130px;
  float: left;
  background-size: contain;
}

.webp #game-body .header .webgl-logo {
  background-image: url('webgl-logo.webp');
}

.no-webp #game-body .header .webgl-logo {
  background-image: url('webgl-logo.gif');
}

#game-body .header .fullscreen {
  height: 35px;
  width: 35px;
  float: right;
  background-size: contain;
}

.webp #game-body .header .fullscreen {
  background-image: url('fullscreen.webp');
}

.no-webp #game-body .header .fullscreen {
  background-image: url('fullscreen.gif');
}

#game-body .header .fullscreen:hover {
  cursor: pointer;
}

#game-body .expander {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

#game-body .sizer {
  position: relative;
}

@media (max-aspect-ratio: 16/9) {
  .sizer {
    width: calc(100vw - 100px);
    height: calc((100vw / 16 * 9) - 100px);
  }
}

@media (min-aspect-ratio: 16/9) {
  .sizer {
    width: calc((100vh * 16 / 9) - 100px);
    height: calc(100vh - 100px);
  }
}
