/*
This file contains styles specific to the Pixel Pong game.
General styles are inherited from the main style.css file.
*/

body {
    overflow: hidden; /* Prevent scrollbars during gameplay */
}

#game-container {
    flex-grow: 1; /* Make it fill vertical space */
    width: 100%;
    display: flex; /* Use flex to manage children */
    flex-direction: column;
    align-items: center;
    padding-bottom: 1rem; /* Add some padding at the bottom */
}

.game-board {
    border: 8px solid #21262d;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    background-color: #000;
}

#game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 17, 23, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

canvas {
    /* width: 100%; */ /* Controlled by container */
    height: 100%; /* Fill the parent's height */
    /* max-width: 1000px; */ /* REMOVED */
    aspect-ratio: 5 / 3;
    object-fit: contain; /* Scale while maintaining aspect ratio */
}