@font-face {
  font-family: "Original Surfer";
  src: url(OriginalSurfer-Regular.ttf);
}

body {
  font-family: Original Surfer;
  text-align: center;
  background-image: url('../game/sprites/zand.jpeg');
  padding: 20px;
}
.counter{
  position: absolute;
  top: 0;
  background-color: white;
  border: 2px solid black;
  border-radius: 5px;
  padding: 10px;
  margin-top: 10px;
}
#game-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

#game-canvas {
  border: 3px solid black;
  background-image: url('../game/sprites/superbackground.jpeg');
  background-size: cover;
  background-repeat: no-repeat;
}

#game-elements {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; 
}

.highscore, .character, #character-select, #combat-log {
  pointer-events: auto; 
}

#game-explanation > a {
  text-decoration: none;
  color: black;
}

#combat-log {
  background-color: #ececec;
  border: 2px solid #1c1c1c;
  border-radius: 5px;
  padding: 10px;
  height: 60px;
  overflow-y: scroll;
  margin-top: 10px;
  position: absolute;
  text-align: left;
  bottom: 20px;
  left: 500px;
  padding: 15px;
  width: 480px;
  font-size: 16px;
}

h2 {
  font-size: 18px;
}

button {
  font-size: 12px;
  font-family: Original Surfer;
}

button {
  margin: 3px;
}

.hidden {
  display: none !important;
}

#character-select {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #f0f0f0;
  border: 2px solid #ccc;
  border-radius: 10px;
  padding: 10px;
}

#enemy-select {
  margin: 10px;
}

p {
  margin: 0;
}

.highscore > p {
  color: white;
}
.highscore{
  margin-top: 10px;
  background-color: rgb(183, 140, 34);
  border: 2px solid black;
  border-radius: 5px;
  width: 30%;
  margin-left: 35%;
  padding: 10px;
}

#player-buttons {
  position: absolute;
  bottom: 0px;
  left: 80px;
  display: flex;
  flex-direction: row;
  
}

#player1{
  background-color: rgb(93, 158, 255);
  border: 2px solid black;
  border-radius: 5px;
  width: 200px;
  height: auto;
}
#player2{
  background-color: rgb(255, 93, 93);
  border: 2px solid black;
  border-radius: 5px;
  width: 200px;
  height: auto;
}

#enemy-healthbar {
  position: absolute;
  bottom: 0;
  right: 80px;
  background-color: rgb(192, 91, 255);
  border: 2px solid black;
  border-radius: 5px;
  width: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px;
}
