html {
  box-sizing: border-box;
  background: black;
  font-family: "VT323", monospace;
}

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

* {
  margin: 0;
  padding: 0;
}

div {
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10+ and Edge */
  user-select: none; /* Standard syntax */
}

.info-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 64px;
  display: flex;
  justify-content: space-evenly;
  align-items: flex-end;
  font-size: 28px;
  font-weight: bolder;
  color: white;
}

.info {
  display: flex;
  flex-direction: column;
}

.tiles {
  position: absolute;
  z-index: -1;
}

.ceiling {
  width: calc(100vw - 256px);
  background: url(img/tile_2.png);
  height: 64px;
  top: 64px;
  left: 256px;
}

.floor {
  background: url(img/tile_1.png);
  width: 100vw;
  height: 128px;
  bottom: 0;
}

.mario {
  position: absolute;
  height: 128px;
  width: 128px;
  background: url(img/mario.png);
  bottom: 128px;
}

.mario.shoot {
  background-position-x: 128px;
}

.pipes-container {
  position: absolute;
  width: calc(100vw - 256px);
  right: 0;
  display: flex;
  justify-content: space-evenly;
}

.upper-pipes {
  top: 128px;
}

.lower-pipes {
  bottom: 128px;
}

.pipe {
  height: 128px;
  width: 128px;
}

.upper-pipes .pipe {
  background: url(img/pipe_upper.png);
}

.lower-pipes .pipe {
  background: url(img/pipe.png);
}

.plant {
  position: absolute;
  height: 128px;
  width: 128px;
  background-position-x: 0;
  animation: plant-animation 0.2s linear infinite;
  z-index: -1;
  transition: all 0.2s linear;
}
@keyframes plant-animation {
  0%,
  49.9999% {
    background-position-x: 0;
  }
  50%,
  99.9999% {
    background-position-x: 128px;
  }
}

.upper-pipes .pipe .plant {
  background: url(img/plant_upper.png);
  top: 0;
}

.upper-pipes .pipe .plant.out {
  top: 128px;
}

.lower-pipes .pipe .plant {
  background: url(img/plant.png);
  bottom: 0;
}

.lower-pipes .pipe .plant.out {
  bottom: 128px;
}

.fireball {
  pointer-events: none;
  position: absolute;
  width: 128px;
  height: 128px;
  background-position-x: 0;
  background: url(img/fireball.png);
  animation: fireball-animation 0.4s linear infinite;
  transform: translate(0, -50%);
  transition: all 0.5s linear;
}
@keyframes fireball-animation {
  0%,
  24.9999% {
    background-position-x: 512px;
  }
  25%,
  49.9999% {
    background-position-x: 384px;
  }
  50%,
  74.9999% {
    background-position-x: 256px;
  }
  75%,
  99.9999% {
    background-position-x: 128px;
  }
}

.points {
  pointer-events: none;
  position: absolute;
  color: white;
  font-size: 2rem;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.5s linear;
}

.start-click {
  position: absolute;
  cursor: pointer;
  color: white;
  font-size: 3rem;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.start-click:hover {
  color: gainsboro;
}
