body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f0f0; /* Light background */
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.game-container {
    position: relative; /* Needed for overlay positioning */
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background-color: #e0f7fa; /* Light blue background for canvas area */
    width: 400px; /* Canvas width */
    height: 600px; /* Canvas height */
    overflow: hidden; /* Hide anything drawn outside */
}

canvas {
    display: block; /* Remove extra space below canvas */
    background-color: transparent; /* Make canvas see-through to container background */
    width: 100%;
    height: 100%;
}

.score-display {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 1.5em;
    color: #333;
    z-index: 10; /* Ensure score is above canvas drawings */
    background-color: rgba(255, 255, 255, 0.7);
    padding: 5px 10px;
    border-radius: 5px;
}

.high-score-display {
    left: auto; /* Override left */
    right: 10px; /* Position on the right */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent black */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    z-index: 20; /* Above score and canvas */
}

.overlay h1 {
    margin-bottom: 10px;
    font-size: 2.5em;
}

.overlay p {
    font-size: 1.2em;
}