#game-hud {
  position: absolute;
  display: none;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: 10;
}

.hud-element {
  position: absolute;
  padding: 20px;
}

.player-position {
  top: 2px;
  left: 0px;
}

.boss-position {
  top: 2px;
  right: 0px;
  text-align: right;
}

#bar-player-container {
  width: 200px;
  height: 18px;
  background: rgb(0, 0, 0);
  border: 1px solid #656565;
  border-radius: 4px;
  overflow: hidden;
}

#bar-boss-container {
  width: 200px;
  height: 18px;
  background: rgb(0, 0, 0);
  border: 1px solid #656565;
  border-radius: 4px;
  overflow: hidden;
}

.fill {
  width: 100%;
  height: 100%;
  transition: width 0.9s ease-in-out;
}

.green {
  background: #2ecc71;
  box-shadow: 0 0 2px #2ecc71;
}
.red {
  background: #fa6dd9;
  box-shadow: 0 0 2px #fafafa;
}

.label {
  color: white;
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000;
  margin-bottom: 5px;
}

@media (max-width: 600px) {
  .player-position {
    top: 55vh;
    left: 10px;
  }

  .boss-position {
    top: 2px;
    right: 10px;
    text-align: right;
  }
}

@media (max-height: 500px) {
  #bar-player-container {
    height: 10px;
  }
  #bar-boss-container {
    height: 10px;
  }
}
