Update styles.css
Browse files- styles.css +26 -2
styles.css
CHANGED
|
@@ -9,10 +9,20 @@ body {
|
|
| 9 |
justify-content: center;
|
| 10 |
align-items: center;
|
| 11 |
height: 100vh;
|
| 12 |
-
background-color: #
|
| 13 |
overflow: hidden;
|
| 14 |
}
|
| 15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
#gameArea {
|
| 17 |
position: relative;
|
| 18 |
width: 100vw;
|
|
@@ -24,7 +34,7 @@ body {
|
|
| 24 |
position: absolute;
|
| 25 |
width: 10px;
|
| 26 |
height: 80px;
|
| 27 |
-
background-color: #
|
| 28 |
}
|
| 29 |
|
| 30 |
#paddleLeft {
|
|
@@ -39,6 +49,20 @@ body {
|
|
| 39 |
transform: translateY(-50%);
|
| 40 |
}
|
| 41 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
#ball {
|
| 43 |
position: absolute;
|
| 44 |
width: 15px;
|
|
|
|
| 9 |
justify-content: center;
|
| 10 |
align-items: center;
|
| 11 |
height: 100vh;
|
| 12 |
+
background-color: #000;
|
| 13 |
overflow: hidden;
|
| 14 |
}
|
| 15 |
|
| 16 |
+
#scoreboard {
|
| 17 |
+
position: absolute;
|
| 18 |
+
top: 10px;
|
| 19 |
+
color: #fff;
|
| 20 |
+
font-family: Arial, sans-serif;
|
| 21 |
+
font-size: 24px;
|
| 22 |
+
display: flex;
|
| 23 |
+
gap: 20px;
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
#gameArea {
|
| 27 |
position: relative;
|
| 28 |
width: 100vw;
|
|
|
|
| 34 |
position: absolute;
|
| 35 |
width: 10px;
|
| 36 |
height: 80px;
|
| 37 |
+
background-color: #fff;
|
| 38 |
}
|
| 39 |
|
| 40 |
#paddleLeft {
|
|
|
|
| 49 |
transform: translateY(-50%);
|
| 50 |
}
|
| 51 |
|
| 52 |
+
#ball {
|
| 53 |
+
position: absolute;
|
| 54 |
+
width: 15px;
|
| 55 |
+
height: 15px;
|
| 56 |
+
background-color: #fff;
|
| 57 |
+
border-radius: 50%;
|
| 58 |
+
top: 50%;
|
| 59 |
+
left: 50%;
|
| 60 |
+
transform: translate(-50%, -50%);
|
| 61 |
+
} right: 10px;
|
| 62 |
+
top: 50%;
|
| 63 |
+
transform: translateY(-50%);
|
| 64 |
+
}
|
| 65 |
+
|
| 66 |
#ball {
|
| 67 |
position: absolute;
|
| 68 |
width: 15px;
|