|
body { |
|
margin: 0; |
|
overflow: hidden; |
|
display: flex; |
|
justify-content: center; |
|
align-items: center; |
|
height: 100vh; |
|
background-color: #000; |
|
} |
|
|
|
#gameArea { |
|
position: relative; |
|
width: 100%; |
|
height: 100%; |
|
background-color: #333; |
|
} |
|
|
|
#paddleLeft, #paddleRight { |
|
position: absolute; |
|
width: 10px; |
|
height: 80px; |
|
background-color: #fff; |
|
} |
|
|
|
#paddleLeft { |
|
left: 10px; |
|
top: 50%; |
|
transform: translateY(-50%); |
|
} |
|
|
|
#paddleRight { |
|
right: 10px; |
|
top: 50%; |
|
transform: translateY(-50%); |
|
} |
|
|
|
#ball { |
|
position: absolute; |
|
width: 15px; |
|
height: 15px; |
|
background-color: #fff; |
|
border-radius: 50%; |
|
top: 50%; |
|
left: 50%; |
|
transform: translate(-50%, -50%); |
|
} |