*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

html,
body,
.world {
  overflow: hidden;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.world {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  width: 100%;
}

.text-wrap {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.score {
  position: absolute;
  right: 1vmin;
  top: 50%;
  transform: translateY(-50%);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 4vmin;
}

.title {
  max-width: 90%;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 5vmin;
}

.hide {
  display: none;
}

.ground {
  --left: 0;
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 24px;
  background-image: url(./img/ground.png);
  background-position-x: calc(var(--left) * 1px);
}

.dino {
  --bottom: 0;
  position: absolute;
  left: 2%;
  bottom: -2px;
  width: 84px;
  height: 90px;
  transform: translateY(calc(var(--bottom) * -1px));
}

.cactus {
  position: absolute;
  right: -34px;
  width: 34px;
  height: 70px;
  bottom: 0;
  transform: translateX(calc(var(--left) * 1px));
}