body {
  text-align: center;
}
.game {
  max-width: 600px;
  height: 200px;
  border: 1px solid black;
  margin: auto;
  z-index: 1;
}

#score {
  font-size: 30px;
}

#dino {
  position: relative;
  left: 50px;
}

.dinoClass {
  width: 50px;
  height: 50px;
  top: 150px;
  background-size: 50px 50px;
  animation: Run 0.2s infinite;
}
.down {
  width: 50px;
  height: 50px;
  top: 170px;
  background-size: 50px 30px;
  background-position: top;
  background-repeat: no-repeat;
  background-image: url(img/2-originalSmal.png);
  animation: RunDown 0.2s infinite;
}

.collision {
  width: 50px;
  height: 50px;
  top: 150px;
  background-size: 50px 50px;
  background-position: top;
  background-repeat: no-repeat;
  background-image: url(img/runWOW.png);
}

.jump {
  animation: jump 0.6s linear, Run 0.2s infinite;
}

@keyframes Run {
  0% {
    background-image: url(img/run1.png);
  }
  50% {
    background-image: url(img/run2.png);
  }
  100% {
    background-image: url(img/run1.png);
  }
}

@keyframes RunDown {
  0% {
    background-image: url(img/runDown1.png);
  }
  50% {
    background-image: url(img/2-originalSmal.png);
  }
  100% {
    background-image: url(img/runDown1.png);
  }
}

@keyframes jump {
  0% {
    top: 150px;
  }

  30% {
    top: 70px;
  }
  45% {
    top: 60px;
  }
  60% {
    top: 70px;
  }
  100% {
    top: 150px;
  }
}

#cactus {
  width: 60px;
  height: 40px;
  position: relative;
  top: 110px;
  left: 580px;
}

.cactuses {
  background-image: url(img/cactus.png);
  background-size: 60px 40px;
  animation: block 2s infinite linear;
}

@keyframes block {
  0% {
    left: 580px;
  }
  100% {
    left: -20px;
  }
}

#bird {
  width: 40px;
  height: 25px;
  position: relative;
  top: 40px;
  left: 600px;
  z-index: 0;
}

.birdClass {
  display: none;
}

.birdFly {
  background-size: 40px 25px;
  background-image: url(img/3-pter_or.png);
  animation: BirdAnim 3s infinite linear;
  display: block;
}

@keyframes BirdAnim {
  0% {
    left: 580px;
  }
  100% {
    left: -20px;
  }
}

/* Buttons */

#mobile {
  display: none;
  /* display: flex; */
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  margin: 0;
  margin-top: 30px;
  border: 2px solid peru;
}

.buttonsDiv {
  width: 150px;
  height: 150px;
  display: grid;
  grid-template-columns: 50px 50px 50px;
  grid-template-rows: 50px 50px 50px;
  border: 2px solid peru;
}

.butDisp {
  justify-self: center;
  align-self: center;
  width: 50px;
  height: 50px;
  background-color: rgb(241, 241, 241);
  border-radius: 10px;
  border: 1px solid rgb(0, 0, 0);
}

.butDisp:active {
  background-color: rgb(255, 177, 177);
}

.but1 {
  grid-column: 2 / 2;
  grid-row: 1 / 1;
}

.but2 {
  grid-column: 1 / 1;
  grid-row: 2 / 2;
}

.but3 {
  grid-column: 3 / 3;
  grid-row: 2 / 2;
}

.but4 {
  grid-column: 2 / 2;
  grid-row: 3 / 3;
}

@media screen and (max-width: 600px) {
  #mobile {
    display: flex;
  }
}
