@font-face {
  font-family: 'Silkscreen';
  src: url('../fonts/Silkscreen.ttf') format('truetype');
}


body {
  overflow: hidden;
  user-select: none;
  font-family: 'Silkscreen',sans-serif;
  /* font-stretch: condensed; */
}

#game-canvas {
  background-color: transparent;
  position: absolute;
  z-index: 1;
  background-color: antiquewhite;
}

#hud {
  display: flex;
  position: absolute;
  justify-content: center;
  align-items: left;
  flex-direction: column;
  z-index: 99;
  top: 5vh;
  left: 8vh;
  /* background-color: #000; */
  color: #4a3e1f;
  font-size: 3vh;
  
  background-image: url('img/sources/Beer');
}

#hud h3 {
  margin: 0;
  padding: 0;
  flex-direction: row;
  background-image: url('img/sources/Beer');
}

.sprites {
  display: none
}

.score-board {
  display: none;
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: #000;
  color: #fff;
  font-size: 20px;
  
  text-align: center;
  line-height: 60px;
}

#box {
  display: flex;
  position: absolute;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 4;
  /* top: 64px; */
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}

#box h2 {
  margin: 12px;
  padding: 0;
  font-size: 32px;
}

#box button {
  margin: 10px;
  padding: 10px;
  border: none;
  border-radius: 5px;
  background-color: #fff;
  color: #000;
  cursor: pointer;
  font-size: 22px;
}

#menu {
  display: block;
  position: absolute;
  justify-content: center;
  padding: 12px;
  padding-bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 16px;
  
  text-align: center;
  line-height: 60px;
  border-radius: 12px;
  white-space: nowrap;
}

#menu p a {
  white-space: nowrap;
  text-decoration: underline;
  color: #fff;
}

#buttons {
  display: flex;
  justify-content: center;
  width: 100%;
  flex-direction: column;
}

#highscore {
  /* display: block; */
  display: none;
  position: absolute;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 16px;
  
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

#highscore-list {
  display: flex;
  justify-content: center;
  width: 100%;
  flex-direction: column;
  padding: 0;
  margin: 40px 0 40px 0;
}

#highscore-list li {
  display: inline-flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 16px;
  
  text-align: left;
  flex-direction: row;
  line-height: 60px;
  border-radius: 12px;
  list-style: none;
  margin-left: 20px;
}

#highscore-list .first::before,
.second:before,
.third:before {
  position: absolute;
  left: 12px;
  /* Position des Symbols links vom Text */
}

#highscore-list .first::before {
  content: "🏆";
}

#highscore-list .second::before {
  content: "🥈";
}

#highscore-list .third::before {
  content: "🥉";
}

#newHighscore {
  display: block;
  position: absolute;
  justify-content: center;
  padding: 12px;
  padding-bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 16px;
  
  text-align: center;
  line-height: 60px;
  border-radius: 12px;
  white-space: nowrap;
}

#newHighscore form {
  display: flex;
  justify-content: center;
  width: 100%;
  flex-direction: column;
  padding: 0;
  margin: 40px 0 40px 0;
}

#newHighscore input {
  margin: 10px;
  padding: 10px;
  border: none;
  border-radius: 5px;
  background-color: #fff;
  color: #000;
  cursor: text;
  font-size: 22px;
}

#newHighscore h2 {
  font-size: 36px;
}

#newHighscore h3 {
  font-size: 26px;
}