html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  text-align: center;
  background-color: black;
  color: white;
  font-family: Arial, Helvetica, sans-serif;
}

#game-container {
  position: relative;
  width: 100%;
  height: 100%;  
  overflow: hidden;
}

#background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; 
  z-index: 1;
}

#player {
  position: absolute;
  bottom: 5px;
  left: 80px;
  width: 80px;
  height: auto;
  z-index: 2
}

.trash {
  width: 75px;
  position: absolute;
  bottom: 0px;
  z-index: 5;
}

.obstacle {
  width: 75px;
  height: 150px;
  position: absolute;
  bottom: 0px;
  z-index: 5;
}

#timer {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
}

#score {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 24px;
}

#timer, #score {
  z-index: 20;
}

.compostCount {
  position: absolute;
  bottom: 75px;
  left: 100px;
  color: white;
}

.recyclingCount {
  position: absolute;
  bottom: 75px;
  left: 200px;
  color: white;
}

.trashCount {
  position: absolute;
  bottom: 75px;
  left: 300px;
  color: white;
}

#game-end {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  color: red;
  font-size: 40px;

  display: none;

  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.hit {
  transform: rotate(-15deg);
  filter: brightness(0.5);
}

.moving {
  will-change: transform;
}
