*{
    box-sizing: border-box;
}


.thegame{
    display: inline-block;
    position: relative;
    width: inherit;
    height: 100%;
}

.topbar{
    position: absolute;
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    align-items: center;
    padding: 15px;
}

.player-health{
    position: relative;
    height: 40px; 
    width: 100%;
    display: flex;
    justify-content: flex-end;
}
.enemy-health{
    position: relative;
    height: 40px; 
    width: 100%;

}
.healthbar{
    background-color: grey;
    height: 40px;
}


.timer{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: red;
    width: 300px;
    height: 100px;
}

.dehealthbar-player{
    background-color: blue;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
}


.dehealthbar-enemy{
    background-color: blue;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}
.result{
    position: absolute;
    color: white;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    display: none;
}


/*Score en Highscore */
#playerScore{
    color: white;
    position: relative;
    top: 120%;
    right: 2%;
    font-size: larger;
}
#enemyScore{
    color: white;
    position: relative;
    top: 20%;
    left: 2%;
    font-size: larger;
    
}

body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #f0f0f0;
    margin: 0;
    padding: 20px;
  }
  h1 {
    color: #333;
  }
  #highScores {
    margin-top: 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }
  table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
  }
  th, td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-align: left;
  }































body{
    background-color: grey;
}