* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@keyframes gradientMove {
  0% { background-position: 0 0; }
  100% { background-position: 200% 0; }
}

.score-box {
  display: flex;
  justify-content: space-between;
  margin: 20px auto 0;
  padding-top: 30px;
  width: 600px;
  height: 150px;
  text-align: center;
}

b {
  font-size: 32px;
}

li {
  list-style-position: inside;
  text-align: left;
}

.game {
  width: 600px;
  height: 200px;
  border-bottom: 1px solid #000;
  margin: auto;
  position: relative;
  margin-bottom: 20px;
}

#dino {
  width: 50px;
  height: 50px;
  background-image: url(img/dino.png);
  background-size: 50px 50px;
  position: relative;
  top: 150px;
}

#cactus,
#krab {
  position: absolute;
  left: 580px;
}

#cactus {
  width: 20px;
  height: 40px;
  background-image: url(img/cactus.png);
  background-size: 20px 40px;
  top: 160px;
}

#krab {
  width: 30px;
  height: 30px;
  background-image: url(img/krab.png);
  background-size: 30px 30px;
  top: 176px;
}

.moveKrab {
  animation: moveObstacle 1.97s infinite linear;
}

.moveCactus {
  animation: moveObstacle 2.68s infinite linear;
}

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

.jump {
  animation: jump 0.5s linear;
}

@keyframes jump {
  0% { top: 150px; }
  25% { top: 120px; }
  50% { top: 90px; }
  75% { top: 120px; }
  100% { top: 150px; }
}

.note {
  margin: 10px auto 25px;
  /* padding-top: 30px; */
  width: 600px;
  height: 50px;
  text-align: center;
  font-size: 20px;
}

.space {
  border: 1px solid black;
}

.container {
  display: flex;
  justify-content: center;
}

#btn {
  display: inline-block;
  width: 200px;
  height: 40px;
  padding: 0.375rem 0.75rem;
  font-family: 'FreeMono', monospace;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  color: #fff;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  border-radius: 7px;
  background-color: #0d6efd; /* синий Bootstrap */
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
              border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#btn:hover {
  background-color: #0b5ed7; /* чуть темнее при наведении */
}

#btn:active {
  background-color: #0a58ca; /* ещё темнее при нажатии */
  box-shadow: inset 0 3px 5px rgba(0,0,0,0.125);
}

.jump-block {
  display: flex;
  justify-content: center;
  margin: 20px 0; /* отступ сверху и снизу */
}

#jumpBtn {
  width: 200px;
  height: 50px;
  border-radius: 7px;
  font-family: 'FreeMono', monospace;
  font-weight: 500;
  font-size: 1rem;
  color: #fff;
  background-color: #6c757d; /* серый Bootstrap */
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#jumpBtn:hover {
  background-color: #5a6268; /* чуть темнее при наведении */
}

#jumpBtn:active {
  background-color: #545b62; /* при нажатии */
  box-shadow: inset 0 3px 5px rgba(0,0,0,0.125);
}

/* Адаптив */
@media (max-width: 650px) {
  .score-box,
  .game,
  .note {
    width: 90%;
  }

  #dino { top: 159px; width: 40px; height: 40px; background-size: 40px 40px; }
  #cactus { top: 167px; width: 16px; height: 32px; background-size: 16px 32px; }
  #krab { top: 182px; width: 24px; height: 24px; background-size: 24px 24px; }
  .note { font-size: 18px; height: auto; padding-top: 20px; }
}
