Create newcss
Browse files
newcss
ADDED
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
}
|
33 |
+
|
34 |
+
.platform {
|
35 |
+
position: absolute;
|
36 |
+
width: 100px;
|
37 |
+
height: 20px;
|
38 |
+
background: linear-gradient(to left, #FF007A, #E5006D);
|
39 |
+
bottom: 0;
|
40 |
+
border-radius: 10px;
|
41 |
+
box-shadow: 0 0 20px rgba(255, 0, 122, 0.8);
|
42 |
+
}
|
43 |
+
|
44 |
+
#score {
|
45 |
+
position: absolute;
|
46 |
+
top: 20px;
|
47 |
+
left: 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: 20px;
|
55 |
+
right: 20px;
|
56 |
+
font-size: 24px;
|
57 |
+
text-shadow: 0 0 10px rgba(0, 255, 171, 0.8);
|
58 |
+
}
|
59 |
+
|
60 |
+
#lives {
|
61 |
+
position: absolute;
|
62 |
+
top: 20px;
|
63 |
+
width: 100%;
|
64 |
+
text-align: center;
|
65 |
+
font-size: 24px; /* Sama dengan ukuran skor dan level */
|
66 |
+
}
|
67 |
+
|
68 |
+
.life {
|
69 |
+
margin-right: 10px;
|
70 |
+
color: red; /* Red hearts */
|
71 |
+
font-size: 24px; /* Sama dengan ukuran skor dan level */
|
72 |
+
}
|