Gregniuki commited on
Commit
b1b8fec
·
verified ·
1 Parent(s): bf2da71

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +36 -18
style.css CHANGED
@@ -1,28 +1,46 @@
1
  body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
 
 
 
 
 
4
  }
5
 
6
- h1 {
7
- font-size: 16px;
8
- margin-top: 0;
 
 
9
  }
10
 
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
16
  }
17
 
18
- .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
24
  }
25
 
26
- .card p:last-child {
27
- margin-bottom: 0;
 
 
28
  }
 
 
 
 
 
 
 
 
 
 
 
 
1
  body {
2
+ margin: 0;
3
+ overflow: hidden;
4
+ display: flex;
5
+ justify-content: center;
6
+ align-items: center;
7
+ height: 100vh;
8
+ background-color: #000;
9
  }
10
 
11
+ #gameArea {
12
+ position: relative;
13
+ width: 100%;
14
+ height: 100%;
15
+ background-color: #333;
16
  }
17
 
18
+ #paddleLeft, #paddleRight {
19
+ position: absolute;
20
+ width: 10px;
21
+ height: 80px;
22
+ background-color: #fff;
23
  }
24
 
25
+ #paddleLeft {
26
+ left: 10px;
27
+ top: 50%;
28
+ transform: translateY(-50%);
 
 
29
  }
30
 
31
+ #paddleRight {
32
+ right: 10px;
33
+ top: 50%;
34
+ transform: translateY(-50%);
35
  }
36
+
37
+ #ball {
38
+ position: absolute;
39
+ width: 15px;
40
+ height: 15px;
41
+ background-color: #fff;
42
+ border-radius: 50%;
43
+ top: 50%;
44
+ left: 50%;
45
+ transform: translate(-50%, -50%);
46
+ }