body {
    margin: 0;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

#gameBoard {
    position: relative;
    width: 600px;
    height: 400px;
    background-color: #333; /* Darker background */
    border: 2px solid black; /* Specified border */
}

#playerPaddle, #computerPaddle {
    position: absolute;
    width: 10px;
    height: 80px; /* Updated height */
    background-color: #fff;
}

#playerPaddle {
    left: 10px;
    top: 160px; /* Updated position */
}

#computerPaddle {
    right: 10px;
    top: 160px; /* Updated position */
}

#ball {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #fff;
    border-radius: 50%; /* Make it round */
    left: 295px; /* Centered horizontally */
    top: 195px;  /* Centered vertically */
}

#playerScore, #computerScore {
    position: absolute;
    color: #fff;
    font-size: 24px;
    font-family: Arial, sans-serif; /* Added a default font */
}

#playerScore {
    left: 150px; /* Updated position */
    top: 20px;
}

#computerScore {
    right: 150px; /* Updated position */
    top: 20px;
}

#startScreen, #gameOverScreen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    text-align: center;
    z-index: 10;
    border-radius: 10px; /* Optional: for rounded corners */
}

#gameOverScreen {
    display: none; /* Initially hidden */
}

#startScreen h1, #gameOverScreen h2 {
    margin-top: 0;
}

#startScreen button, #gameOverScreen button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #4CAF50; /* Green */
    color: white;
    border: none;
    border-radius: 5px;
}

#startScreen button:hover, #gameOverScreen button:hover {
    background-color: #45a049;
}
