@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&family=Press+Start+2P&display=swap');

.center-text-align {
    text-align: center;
}

.press-start-font {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
}

body {
    font-family: monospace;
    font-size: 1.2em;
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
}

.game-title {
    text-align: center;
}

h1, p {
    margin: 1em;
}

a:not(:visited) {
    color: orange;
}

a:visited {
    color: greenyellow;
}

.game-container {
    position: relative;
    width: max-content;
    margin: auto;
}

canvas {
    background-color: black;
}

.game-options {
    display: flex;
    justify-content: space-evenly;
    margin: 2em auto;
}

#game-results {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    place-items: center;
    font-size: 5em;
    color: white;
}

.game-banner {
    position: absolute;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 20px;
}

.health-container {
    position: relative;
    width: 100%;
    border-top: 4px solid white;
    border-bottom: 4px solid white;
}

.health-container.hc-1 {
    border-left: 4px solid white;
}

.health-container.hc-2 {
    border-right: 4px solid white;
}
/* .health-container:first {
    display: flex;
    justify-content: flex-end;
    border-left: 4px solid white;
} */


#player-health,
#enemy-health {
    background-color: #DC2626;
    height: 30px;
    width: 100%;
}

#player-health-bar,
#enemy-health-bar {
    background-color: #818CF8;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
}

#enemy-health-bar {
    left: 0;
}

#player-health-bar {
    width: 100%;
}

#timer {
    background-color: black;
    width: 100px;
    height: 75px;
    flex-shrink: 0;
    font-size: 1.2em;
    color: white;
    display: grid;
    justify-content: center;
    align-content: center;
    border: 2px solid white;
}

.play-again-btn {
    background-color: rgba(0, 0, 0, 0.500);
    color: white;
    width: 120px;
    height: 40px;
    font-weight: bold;
}


#mode-container {
    display: flex;
    justify-content: space-evenly;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#single-player-btn,
#two-player-btn {
    font-family: 'Press Start 2P', cursive;
    font-size: 24px;
    width: 250px;
    height: 75px;
    margin: auto 50px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: 2px solid white;
    cursor: pointer;
}

.controls-table > caption {
    color: #FFFFFF;
    font-weight: bold;
    margin-top: 1em;
    margin-bottom: 1em;
}

.controls-table {
    margin: auto;
    padding: 1em;
    text-align: center;

    background-color: #FFFFFF;
    color: #000000;
}