Gregniuki commited on
Commit
698ed3b
·
verified ·
1 Parent(s): a4b6ccc

Update styles.css

Browse files
Files changed (1) hide show
  1. styles.css +27 -3
styles.css CHANGED
@@ -11,16 +11,19 @@ body {
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 {
@@ -49,6 +52,27 @@ body {
49
  transform: translateY(-50%);
50
  }
51
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
52
  #ball {
53
  position: absolute;
54
  width: 15px;
 
11
  height: 100vh;
12
  background-color: #000;
13
  overflow: hidden;
14
+ font-family: Arial, sans-serif;
15
  }
16
 
17
  #scoreboard {
18
  position: absolute;
19
+ top: 20px; /* Position at the top */
20
+ left: 50%;
21
+ transform: translateX(-50%);
22
  color: #fff;
 
23
  font-size: 24px;
24
  display: flex;
25
+ gap: 40px; /* Space between player and bot scores */
26
+ z-index: 10; /* Ensure it's above the game area */
27
  }
28
 
29
  #gameArea {
 
52
  transform: translateY(-50%);
53
  }
54
 
55
+ #ball {
56
+ position: absolute;
57
+ width: 15px;
58
+ height: 15px;
59
+ background-color: #fff;
60
+ border-radius: 50%;
61
+ top: background-color: #fff;
62
+ }
63
+
64
+ #paddleLeft {
65
+ left: 10px;
66
+ top: 50%;
67
+ transform: translateY(-50%);
68
+ }
69
+
70
+ #paddleRight {
71
+ right: 10px;
72
+ top: 50%;
73
+ transform: translateY(-50%);
74
+ }
75
+
76
  #ball {
77
  position: absolute;
78
  width: 15px;