*,
*::before,
*::after {
  box-sizing: border-box;
  user-select: none;
}
body {
  background-color: #000500;
}

.world {
  overflow: hidden;
  position: relative;
  background-color: #000500;
  margin-bottom: 100px;
  width: 100vw;
}
.lvl {
  position: absolute;
  font-size: 5vmin;

  color: #f32735;
  font-family: "VT323", monospace;
  top: 1vmin;
  left: 2%;
  z-index: 1;
}

.score {
  position: absolute;
  font-size: 8vmin;

  color: #f32735;
  font-family: "VT323", monospace;
  top: 1vmin;
  left: 48%;
  z-index: 1;
}
.highscore {
  position: absolute;
  font-size: 8vmin;

  color: #f32735;
  font-family: "VT323", monospace;
  top: 1vmin;
  right: 2%;
  z-index: 1;
}

.start-screen {
  position: absolute;
  font-size: 4.5vmin;
  font-weight: 400;
  color: #f32735;
  font-family: "VT323", monospace;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}
.game-over {
  position: absolute;
  font-size: 12vmin;
  font-weight: 400;
  color: #f32735;
  font-family: "VT323", monospace;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.hide {
  display: none;
}

.ground {
  --left: 0;
  position: absolute;
  width: 300%;
  bottom: 0;
  left: calc(var(--left) * 1%);
}

.dino {
  --bottom: 0;
  position: absolute;
  left: 1%;
  height: 30%;
  bottom: calc(var(--bottom) * 1%);
}

.cactus {
  position: absolute;
  left: calc(var(--left) * 1%);
  width: 8%;
  bottom: calc(var(--bottom) * 5%);
}
.cloud {
  position: absolute;
  left: calc(var(--left) * 1%);
  height: 12%;
  top: calc(var(--top) * 2%);
  z-index: 0;
}
