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

/* MODE 1 */
#canvas1.bg-game2 {
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    url("2206.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* MODE 2 */
#canvas1.bg-game1 {
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    url("1881.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#canvas1 {
  position: absolute;
  /* top: 50%;
  left: 50%;
  translate: -50% -50%; */
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    url("1881.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  width: 100vw;
  height: 100vh;
  display: block;
}
.controls {
  position: absolute;
  border: 0px solid white;
  left: 5px;
  bottom: 5px;
  display: flex;
  flex-direction: column;
}
.controls > button {
  width: 180px;
  height: 50px;
  opacity: 0.6;

  background: transparent;
  color: white;
  font: 30px Bangers;
  border: 1px solid white;
  margin: 5px;
  box-shadow: 1px 1px 1px black;
  text-shadow: 1px 1px 1px black;
  transition: 0.3s;
}
.controls > button:hover,
.controls > button:active,
.controls > button:focus {
  background: #7a2c8a;
  opacity: 1;
  box-shadow: 4px 4px 4px black;
  text-shadow: 2px 2px 2px black;
}
.controls > button:active {
  transform: translateY(1px);
}
.assets {
  display: none;
}
@media screen and (max-width: 900px) {
  #canvas1 {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
      url("1881.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
}
