#pauseContainer {
  position: fixed;
  left: 40%;
  width: 20%;
  overflow: visible;
  bottom: 2vmin;
  text-align: center;
  z-index: 9999;
  opacity: 0.5;
}

#dpad {
  position: fixed;
  background-color: #808080;
  left: 2vmin;
  bottom: 2vmin;
  width: 31vmin;
  height: 31vmin;
  border: 1px solid black;
  border-radius: 7vmin;
  z-index: 9999;
  opacity: 0.5;
}

.dpad div {
  width: 33.5%;
  height: 33.5%;
  line-height: initial;
  text-align: center;
  border: 1px solid black;
  background-color: white;
  color: black;
  margin: -1px;
  box-sizing: content-box;
  border-radius: 5px;
}

.dpad span {
  position: absolute;
  top: calc(50% - 0.5em);
  left: calc(50% - 0.5em);
  height: 1em;
  width: 1em;
  text-align: center;
  display: inline-block;
}

.dpad div.active {
  background-color: black;
  color: white;
}

.dpad .up {
  position: absolute;
  top: 0;
  left: 33.25%;
}

.dpad .left {
  position: absolute;
  left: 0;
  top: 33.25%;
}

.dpad .right {
  position: absolute;
  right: 0;
  top: 33.25%;
}

.dpad .down {
  position: absolute;
  bottom: 0;
  left: 33.25%;
}

#buttons {
  position: fixed;
  right: 0;
  bottom: 0;
  padding: 2vmin;
  width: 100%;
  text-align: right;
  z-index: 9999;
  opacity: 0.5;
  display: flex;
  justify-content: space-between;
}

.button img {
  vertical-align: middle;
}

.buttons .button, .pause .button {
  display: inline-block;
  text-align: center;
  border: 1px solid black;
  border-radius: 2vmin;
  margin: -1px;
  background-color: white;
  color: black;
}

.buttons .button {
  width: 20vw;
  height: 20vw;
  line-height: 20vw;
  border-radius: 10vw;
}

.pause .button {
  height: 7vmin;
  line-height: 7vmin;
  padding: 0 2vmin;
}

.buttons .button.active, .pause .button.active {
  background-color: black;
  color: white;
}
