Update style.css
Browse files
style.css
CHANGED
@@ -5,16 +5,12 @@
|
|
5 |
}
|
6 |
|
7 |
body {
|
8 |
-
background: linear-gradient(to bottom, #0f0f0f, #131313);
|
9 |
font-family: 'Arial', sans-serif;
|
10 |
color: white;
|
11 |
overflow: hidden;
|
12 |
-
display: flex;
|
13 |
-
justify-content: center;
|
14 |
-
align-items: center;
|
15 |
}
|
16 |
|
17 |
-
/* Futuristic Background with animated elements */
|
18 |
.game-container {
|
19 |
position: relative;
|
20 |
width: 100vw;
|
@@ -23,36 +19,8 @@ body {
|
|
23 |
justify-content: center;
|
24 |
align-items: center;
|
25 |
flex-direction: column;
|
26 |
-
overflow: hidden;
|
27 |
-
}
|
28 |
-
|
29 |
-
/* Adding animated background */
|
30 |
-
.game-container::before {
|
31 |
-
content: "";
|
32 |
-
position: absolute;
|
33 |
-
top: 0;
|
34 |
-
left: 0;
|
35 |
-
width: 100%;
|
36 |
-
height: 100%;
|
37 |
-
background: radial-gradient(circle, rgba(0, 255, 171, 0.1), rgba(0, 0, 0, 0.7)); /* Radial gradient with transparency */
|
38 |
-
animation: glowingBackground 10s ease-in-out infinite; /* Subtle glowing background animation */
|
39 |
-
z-index: -1; /* Place behind game elements */
|
40 |
}
|
41 |
|
42 |
-
/* Animation for glowing background */
|
43 |
-
@keyframes glowingBackground {
|
44 |
-
0% {
|
45 |
-
background: radial-gradient(circle, rgba(0, 255, 171, 0.1), rgba(0, 0, 0, 0.7));
|
46 |
-
}
|
47 |
-
50% {
|
48 |
-
background: radial-gradient(circle, rgba(0, 255, 171, 0.4), rgba(0, 0, 0, 0.5));
|
49 |
-
}
|
50 |
-
100% {
|
51 |
-
background: radial-gradient(circle, rgba(0, 255, 171, 0.1), rgba(0, 0, 0, 0.7));
|
52 |
-
}
|
53 |
-
}
|
54 |
-
|
55 |
-
/* Ball Styling */
|
56 |
.ball {
|
57 |
position: absolute;
|
58 |
width: 30px;
|
@@ -60,10 +28,8 @@ body {
|
|
60 |
background: radial-gradient(circle, #00FFAB, #00B89C);
|
61 |
border-radius: 50%;
|
62 |
box-shadow: 0 0 20px rgba(0, 255, 171, 0.8);
|
63 |
-
animation: fall 3s linear infinite;
|
64 |
}
|
65 |
|
66 |
-
/* Platform Styling */
|
67 |
.platform {
|
68 |
position: absolute;
|
69 |
width: 100px;
|
@@ -74,42 +40,13 @@ body {
|
|
74 |
box-shadow: 0 0 20px rgba(255, 0, 122, 0.8);
|
75 |
}
|
76 |
|
77 |
-
|
78 |
-
#score {
|
79 |
position: absolute;
|
80 |
top: 20px;
|
81 |
font-size: 24px;
|
82 |
text-shadow: 0 0 10px rgba(0, 255, 171, 0.8);
|
83 |
}
|
84 |
|
85 |
-
#level {
|
86 |
-
position: absolute;
|
87 |
-
top: 60px;
|
88 |
-
font-size: 20px;
|
89 |
-
text-shadow: 0 0 10px rgba(0, 255, 171, 0.8);
|
90 |
-
}
|
91 |
-
|
92 |
-
/* Lives Icons */
|
93 |
#lives {
|
94 |
-
|
95 |
-
bottom: 20px;
|
96 |
-
display: flex;
|
97 |
-
justify-content: center;
|
98 |
-
align-items: center;
|
99 |
-
}
|
100 |
-
|
101 |
-
.life {
|
102 |
-
width: 30px;
|
103 |
-
height: 30px;
|
104 |
-
margin: 0 5px;
|
105 |
-
}
|
106 |
-
|
107 |
-
/* Animations for falling ball */
|
108 |
-
@keyframes fall {
|
109 |
-
0% {
|
110 |
-
top: -30px;
|
111 |
-
}
|
112 |
-
100% {
|
113 |
-
top: 100%;
|
114 |
-
}
|
115 |
}
|
|
|
5 |
}
|
6 |
|
7 |
body {
|
8 |
+
background: linear-gradient(to bottom, #0f0f0f, #131313);
|
9 |
font-family: 'Arial', sans-serif;
|
10 |
color: white;
|
11 |
overflow: hidden;
|
|
|
|
|
|
|
12 |
}
|
13 |
|
|
|
14 |
.game-container {
|
15 |
position: relative;
|
16 |
width: 100vw;
|
|
|
19 |
justify-content: center;
|
20 |
align-items: center;
|
21 |
flex-direction: column;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
}
|
23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
.ball {
|
25 |
position: absolute;
|
26 |
width: 30px;
|
|
|
28 |
background: radial-gradient(circle, #00FFAB, #00B89C);
|
29 |
border-radius: 50%;
|
30 |
box-shadow: 0 0 20px rgba(0, 255, 171, 0.8);
|
|
|
31 |
}
|
32 |
|
|
|
33 |
.platform {
|
34 |
position: absolute;
|
35 |
width: 100px;
|
|
|
40 |
box-shadow: 0 0 20px rgba(255, 0, 122, 0.8);
|
41 |
}
|
42 |
|
43 |
+
#score, #level, #lives {
|
|
|
44 |
position: absolute;
|
45 |
top: 20px;
|
46 |
font-size: 24px;
|
47 |
text-shadow: 0 0 10px rgba(0, 255, 171, 0.8);
|
48 |
}
|
49 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
#lives {
|
51 |
+
top: 60px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
}
|