body {
    font-family: 'Arial', sans-serif;
    background-color: #000;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding-top: 20px;
}

.game-container {
    text-align: center;
    border: 2px solid #0f0; /* Classic green border */
    padding: 20px;
    background-color: #111;
    box-shadow: 0 0 20px #0f0;
    position: relative; /* Needed for absolute positioning of overlays */
}

h1 {
    color: #0f0; /* Green text for title */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

#gameCanvas {
    background-color: #000; /* Black background for the game area */
    border: 1px solid #0f0; /* Green border for canvas */
    display: block; /* Remove extra space below canvas */
    margin: 0 auto 10px auto; /* Center the canvas */
}

.game-info {
    display: flex;
    justify-content: space-between;
    width: 600px; /* Same as canvas width */
    margin: 0 auto 10px auto;
    font-size: 1.2em;
    color: #0f0;
}

.message-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.9); /* Slightly more opaque */
    color: #0f0;
    padding: 20px 30px;
    border: 2px solid #0f0;
    border-radius: 10px;
    text-align: center;
    z-index: 10; /* Ensure it's above the canvas */
    box-shadow: 0 0 20px #0f0;
    width: 80%;
    max-width: 450px;
}

.message-overlay h2 {
    font-size: 1.8em; /* Adjusted for more content */
    margin-bottom: 10px;
}
.message-overlay h3 {
    font-size: 1.2em;
    margin-top: 15px;
    margin-bottom: 5px;
    color: #fff;
}

.message-overlay p {
    font-size: 1.1em;
    margin-bottom: 15px;
}

.message-overlay ol { /* ADDED for high score lists */
    list-style-position: inside;
    padding-left: 0;
    text-align: left;
    margin: 0 auto 15px auto;
    max-width: 250px;
    font-size: 1em;
}
.message-overlay ol li { /* ADDED */
    margin-bottom: 3px;
    color: #ccc;
}
.message-overlay ol li strong { /* ADDED */
    color: #0f0;
}


.message-overlay button {
    background-color: #0f0;
    color: #000;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 5px;
    text-transform: uppercase;
    margin-top: 10px;
}

.message-overlay button:hover {
    background-color: #fff;
    color: #000;
}

.hidden {
    display: none;
}

