body {
    margin: 0;
    background-color: #000; /* Black background for better contrast */
    color: #fff;
    font-family: Arial, sans-serif;
}

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto;
    width: 100%;
    max-width: 600px; /* Set max width for larger screens */
}

.hud {
    text-align: center;
    margin-bottom: 10px;
    font-size: 1.2rem; /* Adjust font size for better visibility */
    color: black; /* Dark text for visibility against lighter backgrounds */
}

#gameCanvas {
    display: block; /* Ensure the canvas is treated as a block element */
    width: 100%; /* Allow scaling */
    height: auto; /* Maintain aspect ratio */
    max-width: 600px; /* Ensure canvas doesn't exceed container width */
    aspect-ratio: 1; /* Maintain square aspect ratio */
    border: 4px solid black; /* Add a border to make the canvas stand out */
    background-color: #505050; /* Darker gray background for better visibility */
}
