body {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: sans-serif;
    background: #f0f0f0;
}
#game-container {
    position: relative;
    width: 500px; /* Explicit width */
    height: 800px; /* Explicit height */
    margin-bottom: 20px; /* Add margin at the bottom */
    overflow: hidden; /* Ensure particles don't overflow */
}
canvas {
    background: #000; /* Black background for space theme */
    border: 1px solid #000;
    display: block; /* Remove extra space below canvas */
}
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 20; /* Ensure overlays are above everything */
}
.overlay.hidden {
    display: none;
}
.overlay h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}
.overlay button {
    font-size: 1.5rem;
    padding: 15px 30px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    background: #4CAF50;
    color: white;
    margin: 10px;
}
.overlay button:hover {
    background: #45a049;
}
.overlay .small-text {
    margin-top: 15px;
    font-size: 0.9rem;
}
#info {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 5px;
    z-index: 10; /* Ensure info is above canvas */
    text-align: left;
    font-size: 0.9em;
}
#info p {
    margin: 0;
}
#new-high-score-text {
    color: gold;
    font-size: 1.2em;
    font-weight: bold;
}