Update style.css
Browse files
style.css
CHANGED
@@ -1,52 +1,59 @@
|
|
1 |
body {
|
2 |
font-family: Arial, sans-serif;
|
3 |
-
|
|
|
|
|
|
|
4 |
display: flex;
|
5 |
justify-content: center;
|
6 |
align-items: center;
|
7 |
-
height: 100vh;
|
8 |
-
margin: 0;
|
9 |
}
|
10 |
|
11 |
.game-container {
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
border
|
16 |
-
|
|
|
|
|
17 |
}
|
18 |
|
19 |
-
|
20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
}
|
22 |
|
23 |
-
.
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
cursor: pointer;
|
33 |
-
border-radius: 5px;
|
34 |
-
}
|
35 |
-
|
36 |
-
button {
|
37 |
-
padding: 10px 20px;
|
38 |
-
font-size: 16px;
|
39 |
-
background-color: #4caf50;
|
40 |
-
color: white;
|
41 |
-
border: none;
|
42 |
-
border-radius: 5px;
|
43 |
-
cursor: pointer;
|
44 |
}
|
45 |
|
46 |
-
|
47 |
-
|
|
|
|
|
|
|
|
|
|
|
48 |
}
|
49 |
|
50 |
-
|
51 |
-
|
|
|
|
|
|
|
|
|
|
|
52 |
}
|
|
|
1 |
body {
|
2 |
font-family: Arial, sans-serif;
|
3 |
+
margin: 0;
|
4 |
+
padding: 0;
|
5 |
+
height: 100vh;
|
6 |
+
background: #1a1a1a;
|
7 |
display: flex;
|
8 |
justify-content: center;
|
9 |
align-items: center;
|
|
|
|
|
10 |
}
|
11 |
|
12 |
.game-container {
|
13 |
+
position: relative;
|
14 |
+
width: 80%;
|
15 |
+
height: 80%;
|
16 |
+
border: 2px solid #00ffcc;
|
17 |
+
background-color: #0f0f0f;
|
18 |
+
overflow: hidden;
|
19 |
+
border-radius: 15px;
|
20 |
}
|
21 |
|
22 |
+
.falling-ball {
|
23 |
+
position: absolute;
|
24 |
+
width: 50px;
|
25 |
+
height: 50px;
|
26 |
+
background: linear-gradient(45deg, #00ffcc, #00bfff);
|
27 |
+
border-radius: 50%;
|
28 |
+
box-shadow: 0 0 15px 5px rgba(0, 255, 204, 0.7);
|
29 |
+
animation: glow 1.5s ease-in-out infinite alternate;
|
30 |
}
|
31 |
|
32 |
+
.catcher {
|
33 |
+
position: absolute;
|
34 |
+
bottom: 0;
|
35 |
+
width: 120px;
|
36 |
+
height: 20px;
|
37 |
+
background: linear-gradient(45deg, #00ffcc, #00bfff);
|
38 |
+
border-radius: 10px;
|
39 |
+
box-shadow: 0 0 20px rgba(0, 255, 204, 0.8);
|
40 |
+
transition: all 0.2s ease-in-out;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
}
|
42 |
|
43 |
+
#score {
|
44 |
+
position: absolute;
|
45 |
+
top: 10px;
|
46 |
+
left: 10px;
|
47 |
+
font-size: 24px;
|
48 |
+
color: #00ffcc;
|
49 |
+
text-shadow: 0 0 10px rgba(0, 255, 204, 0.7);
|
50 |
}
|
51 |
|
52 |
+
@keyframes glow {
|
53 |
+
0% {
|
54 |
+
box-shadow: 0 0 10px 5px rgba(0, 255, 204, 0.5);
|
55 |
+
}
|
56 |
+
100% {
|
57 |
+
box-shadow: 0 0 20px 10px rgba(0, 255, 204, 1);
|
58 |
+
}
|
59 |
}
|