Update style.css
Browse files
style.css
CHANGED
@@ -1,28 +1,34 @@
|
|
1 |
-
|
2 |
-
|
3 |
margin: 0;
|
4 |
padding: 0;
|
5 |
-
|
6 |
-
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
8 |
}
|
9 |
|
10 |
.game-container {
|
11 |
position: relative;
|
12 |
-
width:
|
13 |
height: 100vh;
|
14 |
-
|
|
|
|
|
|
|
15 |
}
|
16 |
|
17 |
.ball {
|
18 |
position: absolute;
|
19 |
width: 30px;
|
20 |
height: 30px;
|
21 |
-
background
|
22 |
border-radius: 50%;
|
23 |
-
|
24 |
-
left: 50%;
|
25 |
-
transform: translateX(-50%);
|
26 |
animation: fall 3s linear infinite;
|
27 |
}
|
28 |
|
@@ -30,27 +36,45 @@ body {
|
|
30 |
position: absolute;
|
31 |
width: 100px;
|
32 |
height: 20px;
|
33 |
-
background
|
34 |
bottom: 0;
|
35 |
-
|
36 |
-
|
37 |
}
|
38 |
|
39 |
-
#score
|
40 |
position: absolute;
|
41 |
-
top:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
font-size: 20px;
|
43 |
-
|
44 |
}
|
45 |
|
46 |
#lives {
|
47 |
position: absolute;
|
48 |
-
bottom:
|
49 |
-
|
50 |
-
|
|
|
51 |
}
|
52 |
|
53 |
.life {
|
54 |
font-size: 30px;
|
55 |
-
margin:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
}
|
|
|
1 |
+
/* Global styling */
|
2 |
+
* {
|
3 |
margin: 0;
|
4 |
padding: 0;
|
5 |
+
box-sizing: border-box;
|
6 |
+
}
|
7 |
+
|
8 |
+
body {
|
9 |
+
background: linear-gradient(to bottom, #0f0f0f, #131313);
|
10 |
+
font-family: 'Arial', sans-serif;
|
11 |
+
color: white;
|
12 |
+
overflow: hidden;
|
13 |
}
|
14 |
|
15 |
.game-container {
|
16 |
position: relative;
|
17 |
+
width: 100vw;
|
18 |
height: 100vh;
|
19 |
+
display: flex;
|
20 |
+
justify-content: center;
|
21 |
+
align-items: center;
|
22 |
+
flex-direction: column;
|
23 |
}
|
24 |
|
25 |
.ball {
|
26 |
position: absolute;
|
27 |
width: 30px;
|
28 |
height: 30px;
|
29 |
+
background: radial-gradient(circle, #00FFAB, #00B89C);
|
30 |
border-radius: 50%;
|
31 |
+
box-shadow: 0 0 20px rgba(0, 255, 171, 0.8);
|
|
|
|
|
32 |
animation: fall 3s linear infinite;
|
33 |
}
|
34 |
|
|
|
36 |
position: absolute;
|
37 |
width: 100px;
|
38 |
height: 20px;
|
39 |
+
background: linear-gradient(to left, #FF007A, #E5006D);
|
40 |
bottom: 0;
|
41 |
+
border-radius: 10px;
|
42 |
+
box-shadow: 0 0 20px rgba(255, 0, 122, 0.8);
|
43 |
}
|
44 |
|
45 |
+
#score {
|
46 |
position: absolute;
|
47 |
+
top: 20px;
|
48 |
+
font-size: 24px;
|
49 |
+
text-shadow: 0 0 10px rgba(0, 255, 171, 0.8);
|
50 |
+
}
|
51 |
+
|
52 |
+
#level {
|
53 |
+
position: absolute;
|
54 |
+
top: 60px;
|
55 |
font-size: 20px;
|
56 |
+
text-shadow: 0 0 10px rgba(0, 255, 171, 0.8);
|
57 |
}
|
58 |
|
59 |
#lives {
|
60 |
position: absolute;
|
61 |
+
bottom: 20px;
|
62 |
+
display: flex;
|
63 |
+
justify-content: center;
|
64 |
+
align-items: center;
|
65 |
}
|
66 |
|
67 |
.life {
|
68 |
font-size: 30px;
|
69 |
+
margin-right: 10px;
|
70 |
+
color: red; /* Red hearts */
|
71 |
+
}
|
72 |
+
|
73 |
+
@keyframes fall {
|
74 |
+
0% {
|
75 |
+
top: -30px;
|
76 |
+
}
|
77 |
+
100% {
|
78 |
+
top: 100%;
|
79 |
+
}
|
80 |
}
|