@font-face {
    font-family: PressStart2P;
    src: url(PressStart2P-Regular.ttf);
}

*{
    box-sizing: border-box;
    font-family: PressStart2P;
}

body{
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.parent{
    position: relative;
    display: inline-block;
}

.child{
    position:absolute;
    display: flex;
    width: 100%;
    align-items: center;
    padding: 20px;
}

.EnemyParent{
    position: relative;
    width: 100%;
    border-top: 4px solid white;
    border-bottom: 4px solid white;
    border-right: 4px solid white;
}

.EnemyChild{
    position: absolute;
    background-color: #818CF8;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.Enemyhealth{
    background-color: red;
    height:30px;
}

.PlayerParent{
    position: relative;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    border-top: 4px solid white;
    border-bottom: 4px solid white;
    border-left: 4px solid white;
}

.PlayerChild{
    position: absolute;
    background-color: #818CF8;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
}

.Playerhealth{
    background-color: red;
    height:30px;
    width: 100%;
}

.timer{
    background-color: black;
    width: 100px;
    height:50px;
    color: white;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid white;
}

.displayText{
    position: absolute;
    color: white;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
}