/* body {
  background: #fafafa;
  font-size: 16px;
  overflow: hidden;
  height: 100%;
} */

body {
  background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
  height: 100vh;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-align: center;
  -webkit-box-pack: center;
  font-family: arial;
  /* display: flex;
  justify-content: center;
  align-items: center; */
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game {
  display: inherit;
  flex-direction: column;
  align-items: center;
}

.background {
  position: absolute;
  bottom: 0;
  background-image: url('./img/background-tr.png');
  background-repeat: repeat-x;
  animation: slideright 600s infinite linear;
  width: 100%;
  height: 200px;
}

@keyframes slideright {
  from {
    background-position: 70000%;
  }

  to {
    background-position: 0;
  }
}

.cactus {
  background-image: url('./img/cactus.png');
  bottom: 0;
  position: absolute;
  width: 60px;
  height: 60px;
}

.dino {
  width: 60px;
  height: 60px;
  /* background-color: brown; */
  position: absolute;
  bottom: 0;
  background-image: url('./img/dino.png');
}

.game-over {
  text-align: center;
  color: #666666;
  /* margin-top: 5rem; */
  font-size: 10rem;
  margin-bottom: 0;
}

.instructions {
  text-align: center;
  color: #666666;
  font-size: 1.6rem;
}

/* stars */
.night {
  position: relative;
  width: 100%;
  height: 100%;
  -webkit-transform: rotateZ(45deg);
  transform: rotateZ(45deg);
}

.shooting_star {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 2px;
  background: linear-gradient(-45deg, #666666, rgba(0, 0, 255, 0));
  border-radius: 999px;
  -webkit-filter: drop-shadow(0 0 6px #699bff);
  filter: drop-shadow(0 0 6px #699bff);
  -webkit-animation: tail 3000ms ease-in-out infinite, shooting 3000ms ease-in-out infinite;
  animation: tail 3000ms ease-in-out infinite, shooting 3000ms ease-in-out infinite;
}

.shooting_star::before,
.shooting_star::after {
  content: '';
  position: absolute;
  top: calc(50% - 1px);
  right: 0;
  height: 2px;
  background: linear-gradient(-45deg, rgba(0, 0, 255, 0), #5f91ff, rgba(0, 0, 255, 0));
  -webkit-transform: translateX(50%) rotateZ(45deg);
  transform: translateX(50%) rotateZ(45deg);
  border-radius: 100%;
  -webkit-animation: shining 3000ms ease-in-out infinite;
  animation: shining 3000ms ease-in-out infinite;
}

.shooting_star::after {
  -webkit-transform: translateX(50%) rotateZ(-45deg);
  transform: translateX(50%) rotateZ(-45deg);
}

.shooting_star:nth-child(1) {
  top: calc(50% - -128px);
  left: calc(50% - 104px);
  -webkit-animation-delay: 3310ms;
  animation-delay: 3310ms;
}

.shooting_star:nth-child(1)::before,
.shooting_star:nth-child(1)::after,
.shooting_star:nth-child(1)::after {
  -webkit-animation-delay: 3310ms;
  animation-delay: 3310ms;
}

.shooting_star:nth-child(2) {
  top: calc(50% - -197px);
  left: calc(50% - 104px);
  -webkit-animation-delay: 1368ms;
  animation-delay: 1368ms;
}

.shooting_star:nth-child(2)::before,
.shooting_star:nth-child(2)::after,
.shooting_star:nth-child(2)::after {
  -webkit-animation-delay: 1368ms;
  animation-delay: 1368ms;
}

.shooting_star:nth-child(3) {
  top: calc(50% - 74px);
  left: calc(50% - 138px);
  -webkit-animation-delay: 8825ms;
  animation-delay: 8825ms;
}

.shooting_star:nth-child(3)::before,
.shooting_star:nth-child(3)::after,
.shooting_star:nth-child(3)::after {
  -webkit-animation-delay: 8825ms;
  animation-delay: 8825ms;
}

.shooting_star:nth-child(4) {
  top: calc(50% - -165px);
  left: calc(50% - 194px);
  -webkit-animation-delay: 5487ms;
  animation-delay: 5487ms;
}

.shooting_star:nth-child(4)::before,
.shooting_star:nth-child(4)::after,
.shooting_star:nth-child(4)::after {
  -webkit-animation-delay: 5487ms;
  animation-delay: 5487ms;
}

.shooting_star:nth-child(5) {
  top: calc(50% - -155px);
  left: calc(50% - 196px);
  -webkit-animation-delay: 8812ms;
  animation-delay: 8812ms;
}

.shooting_star:nth-child(5)::before,
.shooting_star:nth-child(5)::after,
.shooting_star:nth-child(5)::after {
  -webkit-animation-delay: 8812ms;
  animation-delay: 8812ms;
}

.shooting_star:nth-child(6) {
  top: calc(50% - 133px);
  left: calc(50% - 291px);
  -webkit-animation-delay: 4352ms;
  animation-delay: 4352ms;
}

.shooting_star:nth-child(6)::before,
.shooting_star:nth-child(6)::after,
.shooting_star:nth-child(6)::after {
  -webkit-animation-delay: 4352ms;
  animation-delay: 4352ms;
}

.shooting_star:nth-child(7) {
  top: calc(50% - -160px);
  left: calc(50% - 32px);
  -webkit-animation-delay: 6773ms;
  animation-delay: 6773ms;
}

.shooting_star:nth-child(7)::before,
.shooting_star:nth-child(7)::after,
.shooting_star:nth-child(7)::after {
  -webkit-animation-delay: 6773ms;
  animation-delay: 6773ms;
}

.shooting_star:nth-child(8) {
  top: calc(50% - -198px);
  left: calc(50% - 252px);
  -webkit-animation-delay: 6142ms;
  animation-delay: 6142ms;
}

.shooting_star:nth-child(8)::before,
.shooting_star:nth-child(8)::after,
.shooting_star:nth-child(8)::after {
  -webkit-animation-delay: 6142ms;
  animation-delay: 6142ms;
}

.shooting_star:nth-child(9) {
  top: calc(50% - 164px);
  left: calc(50% - 70px);
  -webkit-animation-delay: 1721ms;
  animation-delay: 1721ms;
}

.shooting_star:nth-child(9)::before,
.shooting_star:nth-child(9)::after,
.shooting_star:nth-child(9)::after {
  -webkit-animation-delay: 1721ms;
  animation-delay: 1721ms;
}

.shooting_star:nth-child(10) {
  top: calc(50% - -60px);
  left: calc(50% - 230px);
  -webkit-animation-delay: 6317ms;
  animation-delay: 6317ms;
}

.shooting_star:nth-child(10)::before,
.shooting_star:nth-child(10)::after,
.shooting_star:nth-child(10)::after {
  -webkit-animation-delay: 6317ms;
  animation-delay: 6317ms;
}

.shooting_star:nth-child(11) {
  top: calc(50% - 52px);
  left: calc(50% - 207px);
  -webkit-animation-delay: 7545ms;
  animation-delay: 7545ms;
}

.shooting_star:nth-child(11)::before,
.shooting_star:nth-child(11)::after,
.shooting_star:nth-child(11)::after {
  -webkit-animation-delay: 7545ms;
  animation-delay: 7545ms;
}

.shooting_star:nth-child(12) {
  top: calc(50% - 40px);
  left: calc(50% - 225px);
  -webkit-animation-delay: 3102ms;
  animation-delay: 3102ms;
}

.shooting_star:nth-child(12)::before,
.shooting_star:nth-child(12)::after,
.shooting_star:nth-child(12)::after {
  -webkit-animation-delay: 3102ms;
  animation-delay: 3102ms;
}

.shooting_star:nth-child(13) {
  top: calc(50% - 50px);
  left: calc(50% - 257px);
  -webkit-animation-delay: 442ms;
  animation-delay: 442ms;
}

.shooting_star:nth-child(13)::before,
.shooting_star:nth-child(13)::after,
.shooting_star:nth-child(13)::after {
  -webkit-animation-delay: 442ms;
  animation-delay: 442ms;
}

.shooting_star:nth-child(14) {
  top: calc(50% - -120px);
  left: calc(50% - 290px);
  -webkit-animation-delay: 117ms;
  animation-delay: 117ms;
}

.shooting_star:nth-child(14)::before,
.shooting_star:nth-child(14)::after,
.shooting_star:nth-child(14)::after {
  -webkit-animation-delay: 117ms;
  animation-delay: 117ms;
}

.shooting_star:nth-child(15) {
  top: calc(50% - 143px);
  left: calc(50% - 113px);
  -webkit-animation-delay: 8593ms;
  animation-delay: 8593ms;
}

.shooting_star:nth-child(15)::before,
.shooting_star:nth-child(15)::after,
.shooting_star:nth-child(15)::after {
  -webkit-animation-delay: 8593ms;
  animation-delay: 8593ms;
}

.shooting_star:nth-child(16) {
  top: calc(50% - 123px);
  left: calc(50% - 115px);
  -webkit-animation-delay: 6721ms;
  animation-delay: 6721ms;
}

.shooting_star:nth-child(16)::before,
.shooting_star:nth-child(16)::after,
.shooting_star:nth-child(16)::after {
  -webkit-animation-delay: 6721ms;
  animation-delay: 6721ms;
}

.shooting_star:nth-child(17) {
  top: calc(50% - -91px);
  left: calc(50% - 142px);
  -webkit-animation-delay: 3841ms;
  animation-delay: 3841ms;
}

.shooting_star:nth-child(17)::before,
.shooting_star:nth-child(17)::after,
.shooting_star:nth-child(17)::after {
  -webkit-animation-delay: 3841ms;
  animation-delay: 3841ms;
}

.shooting_star:nth-child(18) {
  top: calc(50% - -80px);
  left: calc(50% - 142px);
  -webkit-animation-delay: 7821ms;
  animation-delay: 7821ms;
}

.shooting_star:nth-child(18)::before,
.shooting_star:nth-child(18)::after,
.shooting_star:nth-child(18)::after {
  -webkit-animation-delay: 7821ms;
  animation-delay: 7821ms;
}

.shooting_star:nth-child(19) {
  top: calc(50% - 163px);
  left: calc(50% - 69px);
  -webkit-animation-delay: 9751ms;
  animation-delay: 9751ms;
}

.shooting_star:nth-child(19)::before,
.shooting_star:nth-child(19)::after,
.shooting_star:nth-child(19)::after {
  -webkit-animation-delay: 9751ms;
  animation-delay: 9751ms;
}

.shooting_star:nth-child(20) {
  top: calc(50% - -65px);
  left: calc(50% - 92px);
  -webkit-animation-delay: 3071ms;
  animation-delay: 3071ms;
}

.shooting_star:nth-child(20)::before,
.shooting_star:nth-child(20)::after,
.shooting_star:nth-child(20)::after {
  -webkit-animation-delay: 3071ms;
  animation-delay: 3071ms;
}

@-webkit-keyframes tail {
  0% {
    width: 0;
  }

  30% {
    width: 100px;
  }

  100% {
    width: 0;
  }
}

@keyframes tail {
  0% {
    width: 0;
  }

  30% {
    width: 100px;
  }

  100% {
    width: 0;
  }
}

@-webkit-keyframes shining {
  0% {
    width: 0;
  }

  50% {
    width: 30px;
  }

  100% {
    width: 0;
  }
}

@keyframes shining {
  0% {
    width: 0;
  }

  50% {
    width: 30px;
  }

  100% {
    width: 0;
  }
}

@-webkit-keyframes shooting {
  0% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }

  100% {
    -webkit-transform: translateX(300px);
    transform: translateX(300px);
  }
}

@keyframes shooting {
  0% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }

  100% {
    -webkit-transform: translateX(300px);
    transform: translateX(300px);
  }
}

@-webkit-keyframes sky {
  0% {
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
  }

  100% {
    -webkit-transform: rotate(405deg);
    transform: rotate(405deg);
  }
}

@keyframes sky {
  0% {
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
  }

  100% {
    -webkit-transform: rotate(405deg);
    transform: rotate(405deg);
  }
}