body {
    margin: 0;
    overflow: hidden; /* Prevent scrollbars */
    background-color: #000;
}

#game-container {
    width: 100%;
    height: 100vh; /* vh stands for viewport height */
    display: block;
}

#game-over-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#game-over-screen h1 {
    font-size: 5em;
    color: red;
    margin-bottom: 20px;
}

#restart-button {
    font-size: 2em;
    padding: 15px 30px;
    border: none;
    background-color: green;
    color: white;
    cursor: pointer;
    border-radius: 10px;
}

#base-health-container {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    max-width: 400px;
    height: 30px;
    border: 2px solid #fff;
    background-color: rgba(0,0,0,0.5);
    border-radius: 15px;
    overflow: hidden; /* Ensures the health bar stays within the rounded corners */
}

#base-health-bar {
    width: 100%; /* Full health */
    height: 100%;
    background-color: #4caf50; /* Green for health */
    transition: width 0.5s ease-in-out;
}

#base-health-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 1px 1px 2px #000;
}

#atat-health-container {
    position: absolute;
    top: 60px; /* Position below the base health bar */
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    max-width: 400px;
    height: 30px;
    border: 2px solid #fff;
    background-color: rgba(0,0,0,0.5);
    border-radius: 15px;
    overflow: hidden;
}

#atat-health-bar {
    width: 100%;
    height: 100%;
    background-color: #f44336; /* Red for enemy health */
    transition: width 0.5s ease-in-out;
}

#atat-health-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 1px 1px 2px #000;
}
