body, html {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #000;
    font-family: 'Courier New', Courier, monospace;
    color: #00ffcc;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

#game-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
    position: relative;
    box-sizing: border-box;
}

#gameCanvas {
    background-color: black;
    /* This scales the canvas down while maintaining its aspect ratio */
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Ensures the entire canvas is visible without cropping */
}

#ui-container {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    pointer-events: none;
}

.ui-element {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border: 2px solid #00ffcc;
    border-radius: 5px;
}

#game-over-ui {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ff3333;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border: 3px solid #ff3333;
    border-radius: 10px;
}

#game-over-ui h1 {
    font-size: 40px;
    margin: 0;
}

#game-over-ui p {
    font-size: 20px;
    margin: 10px 0;
}

#restart-button {
    font-size: 18px;
    padding: 10px 20px;
    background-color: #ff3333;
    color: black;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s;
}

#restart-button:hover {
    background-color: #ff6666;
}

.hidden {
    display: none;
}
