* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

@font-face {
  font-family: 'Press Start 2P';
  src: url('../../assets/bd_game/fonts/press-start-k.ttf');
  font-weight: normal;
  font-style: normal;
}

body {
  overflow-x: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
  position: relative;
  z-index: 0;
  max-width: 2100px;
  margin: 0 auto;
  font-family: 'Press Start 2P', cursive;
}

h1 {
  font-size: 22px;
}

h1#title {
  color: #d40404;
}

#gameOver {
  color: white;
  text-decoration: none;
}

.win {
  color: white !important;
}

.win#gameOver > h1 {
  color: white;
  animation: scale 2s infinite alternate;
}

a {
  color: white;
}

.win#gameOver > h1 > a {
  color: white;
}

@keyframes scale {
  0% {
      transform: scale(1);
  }
  100% {
      transform: scale(1.02);
  }
}

#startButton, #restartButton {
  width: 200px;
  height: 70px;
  font-family: 'Press Start 2P', cursive;
  font-size: 15px;
  text-transform: uppercase;
  background-color: black;
  color: #d40404;
  border-radius: 5px;
  cursor: pointer;
  border: none;
}

::-webkit-scrollbar {
  width: 7px;
}

::-webkit-scrollbar-track {
  -webkit-border-radius: 10px;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  -webkit-border-radius: 10px;
  border-radius: 100px;
  background: #453838;
  -webkit-box-shadow: inset 0 0 6px #00000080;
}

#score {
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 15px;
  font-weight: bold;
}

#lives {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
}

.life {
  width: 45px;
  height: 45px;
  background-image: url('../../assets/bd_game/img/heart.png');
  background-size: cover;
  margin-left: 5px;
}

.life.active {
  display: block;
}

.life.inactive {
  display: none;
}

#gameOver, #gameStart {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  text-align: center;
  z-index: 10;
}

.dino {
  width: 50px;
  height: 70px;
  position: absolute;
  bottom: 0;
  left: 55px;
  border-radius: 10px 10px 0 0;
  background-size: cover;
  background-image: url('../../assets/bd_game/img/player.png');
}

.container {
  width: 60%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  background-color: white;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-image: url('../../assets/bd_game/img/background.png');
  background-repeat: repeat;
  border-radius: 5px;
}

.obstacle {
  background-image: url('../../assets/bd_game/img/monster.png');
  background-size: cover;
  width: 65px;
  height: 70px;
  position: absolute;
  bottom: 0;
}

.item {
  position: absolute;
  bottom: 0;
  background-image: url('../../assets/bd_game/img/waffle.png');
  background-size: cover;
  width: 30px;
  height: 30px;
}
