@import url('https://fonts.googleapis.com/css2?family=Black+Ops+One&family=Exo+2:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: 'Black Ops One', sans-serif;
    color: white;
}

html {
    background-color:black;
}


img {
    max-width: 250px;
}

.logo-container {
    display: flex;
    /* Use flexbox to layout children elements */
    align-items: center;
    /* Center align items vertically */
    justify-content: center;
    /* Center align items horizontally */
    padding-right: 6em;
}

h1 {
    font-size: 3em;
    display: inline;
}


main {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    text-align: center;
    margin: 0;
    font-family: sans-serif;
}

canvas {
    width: 100%;
    height: 100%;
    border: solid 5px white;
}

.button-container {
    display: flex; /* Use flexbox to layout children elements */
    flex-direction: column; /* Align children in a column */
    align-items: center; /* Center align items horizontally in the column */
    justify-content: center; /* Center align items vertically */
    width: 100%; /* Set to 100% of its parent, or adjust as necessary */
    height: auto; /* Adjust the height as needed */
    margin-top: 1em; /* Add some space at the top, adjust as necessary */
}

button {
    background-color: blue;
    border: none;
    border-radius: 4px;
    color: white;
    padding: 16px 32px;
    text-align: center;
    font-size: 24px;
    margin: 16px 2px; /* Spacing between buttons, adjust as necessary */
    opacity: 0.75;
    transition: 0.3s;
    cursor: pointer;
    width: 35%; /* Adjust if you want to set a specific width for the buttons */
    /* Removed duplicate display property */
    text-decoration: none;
    transition: background-color 0.4s ease;
}

button:hover {
    opacity: 1;
}

.active-game-mode {
    background-color: red;
}

.game-area {
    margin-top: 10px;
    margin-right: 6%;
    zoom: 75%;
    position: relative;
}

#score {
    position: absolute;
    top: 50%;
    left: 50%;
    text-align: center;
    transform: translate(-50%, -50%);
}

#red-score {
    color: red;
}

#blue-score {
    color: blue;
}

.health-bar-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    width: 100%; /* Adjust if necessary to fit the design */
}

.health-bar {
    width: 50%; /* Adjust if necessary to fit the design */
    height: 20px; /* Adjust if necessary to fit the design */
    border-radius: 4px;
}

.hidden {
    display: none;
}

h2 {
    font-size: 2em;
}

#red-health {
    background-color: red;
}

#blue-health {
    background-color: blue;
    color: white;
}