Update style.css
Browse files
style.css
CHANGED
@@ -12,10 +12,10 @@ body, html {
|
|
12 |
display: flex;
|
13 |
justify-content: center;
|
14 |
align-items: center;
|
15 |
-
background:
|
16 |
}
|
17 |
|
18 |
-
/* Futuristic Background with
|
19 |
.game-container {
|
20 |
position: relative;
|
21 |
width: 80vw;
|
@@ -37,76 +37,16 @@ body, html {
|
|
37 |
left: 0;
|
38 |
width: 100%;
|
39 |
height: 100%;
|
40 |
-
background:
|
41 |
-
|
42 |
-
opacity: 0.2;
|
43 |
z-index: -1;
|
|
|
44 |
}
|
45 |
|
46 |
-
/*
|
47 |
-
|
48 |
-
position: absolute;
|
49 |
-
width: 30px;
|
50 |
-
height: 30px;
|
51 |
-
background-color: #ff6f61;
|
52 |
-
border-radius: 50%;
|
53 |
-
animation: fall 3s linear infinite;
|
54 |
-
}
|
55 |
-
|
56 |
-
/* Platform Styling */
|
57 |
-
.platform {
|
58 |
-
position: absolute;
|
59 |
-
width: 100px;
|
60 |
-
height: 20px;
|
61 |
-
background-color: #00bcd4;
|
62 |
-
border-radius: 5px;
|
63 |
-
bottom: 0;
|
64 |
-
}
|
65 |
-
|
66 |
-
/* Score and Level Display */
|
67 |
-
#score, #level {
|
68 |
-
color: #fff;
|
69 |
-
font-size: 24px;
|
70 |
-
margin-bottom: 10px;
|
71 |
-
z-index: 2;
|
72 |
-
}
|
73 |
-
|
74 |
-
/* Lives Icons */
|
75 |
-
#lives {
|
76 |
-
position: absolute;
|
77 |
-
bottom: 30px;
|
78 |
-
display: flex;
|
79 |
-
justify-content: space-between;
|
80 |
-
width: 100%;
|
81 |
-
z-index: 2;
|
82 |
-
}
|
83 |
-
|
84 |
-
.life {
|
85 |
-
width: 40px;
|
86 |
-
height: 40px;
|
87 |
-
}
|
88 |
-
|
89 |
-
/* Animations for falling ball */
|
90 |
-
@keyframes fall {
|
91 |
0% {
|
92 |
-
|
93 |
}
|
94 |
-
|
95 |
-
|
96 |
-
}
|
97 |
-
}
|
98 |
-
|
99 |
-
/* Background particles animation */
|
100 |
-
@keyframes particlesMovement {
|
101 |
-
0% {
|
102 |
-
transform: translateY(0) translateX(0);
|
103 |
-
}
|
104 |
-
100% {
|
105 |
-
transform: translateY(100vh) translateX(100vw);
|
106 |
-
}
|
107 |
-
}
|
108 |
-
|
109 |
-
/* Add subtle movement effect */
|
110 |
-
body {
|
111 |
-
animation: particlesMovement 10s infinite linear;
|
112 |
-
}
|
|
|
12 |
display: flex;
|
13 |
justify-content: center;
|
14 |
align-items: center;
|
15 |
+
background: #1a1a1a; /* Dark background to enhance futuristic feel */
|
16 |
}
|
17 |
|
18 |
+
/* Futuristic Background with subtle movement */
|
19 |
.game-container {
|
20 |
position: relative;
|
21 |
width: 80vw;
|
|
|
37 |
left: 0;
|
38 |
width: 100%;
|
39 |
height: 100%;
|
40 |
+
background: linear-gradient(45deg, rgba(2, 0, 36, 1) 0%, rgba(9, 121, 69, 1) 100%);
|
41 |
+
opacity: 0.5;
|
|
|
42 |
z-index: -1;
|
43 |
+
animation: gradientShift 5s ease infinite;
|
44 |
}
|
45 |
|
46 |
+
/* Keyframes for shifting gradient background */
|
47 |
+
@keyframes gradientShift {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
0% {
|
49 |
+
background: linear-gradient(45deg, rgba(2, 0, 36, 1) 0%, rgba(9, 121, 69, 1) 100%);
|
50 |
}
|
51 |
+
50% {
|
52 |
+
background: linear-gradient(45deg, rgba(0, 36, 72, 1) 0%, rgba(8, 69, 121,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|