Update style.css
Browse files
style.css
CHANGED
@@ -37,64 +37,46 @@ body {
|
|
37 |
width: 100px;
|
38 |
height: 20px;
|
39 |
background: linear-gradient(to left, #FF007A, #E5006D);
|
40 |
-
bottom:
|
41 |
border-radius: 10px;
|
42 |
box-shadow: 0 0 20px rgba(255, 0, 122, 0.8);
|
43 |
}
|
44 |
|
45 |
#score, #level {
|
46 |
position: absolute;
|
47 |
-
|
48 |
-
font-size: 24px;
|
49 |
text-shadow: 0 0 10px rgba(0, 255, 171, 0.8);
|
50 |
}
|
51 |
|
|
|
|
|
|
|
|
|
|
|
52 |
#level {
|
53 |
-
top:
|
54 |
-
|
55 |
}
|
56 |
|
57 |
#lives {
|
58 |
position: absolute;
|
59 |
-
top: 20px;
|
60 |
-
left: 50%;
|
61 |
-
transform: translateX(-50%);
|
62 |
display: flex;
|
63 |
justify-content: center;
|
64 |
align-items: center;
|
|
|
65 |
}
|
66 |
|
67 |
.life {
|
68 |
-
font-size:
|
69 |
-
|
70 |
-
}
|
71 |
-
|
72 |
-
.game-over {
|
73 |
-
position: absolute;
|
74 |
-
top: 50%;
|
75 |
-
left: 50%;
|
76 |
-
transform: translate(-50%, -50%);
|
77 |
-
background-color: rgba(0, 0, 0, 0.7);
|
78 |
-
color: white;
|
79 |
-
padding: 20px;
|
80 |
-
border-radius: 10px;
|
81 |
-
text-align: center;
|
82 |
-
display: none; /* Initially hidden */
|
83 |
-
}
|
84 |
-
|
85 |
-
#restart-btn {
|
86 |
-
padding: 10px 20px;
|
87 |
-
background-color: #FF007A;
|
88 |
-
color: white;
|
89 |
-
border: none;
|
90 |
-
border-radius: 5px;
|
91 |
-
cursor: pointer;
|
92 |
-
font-size: 16px;
|
93 |
-
}
|
94 |
-
|
95 |
-
#restart-btn:hover {
|
96 |
-
background-color: #E5006D;
|
97 |
}
|
98 |
|
99 |
@keyframes fall {
|
100 |
-
0%
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
width: 100px;
|
38 |
height: 20px;
|
39 |
background: linear-gradient(to left, #FF007A, #E5006D);
|
40 |
+
bottom: 20px; /* Platform sedikit lebih tinggi dari bawah */
|
41 |
border-radius: 10px;
|
42 |
box-shadow: 0 0 20px rgba(255, 0, 122, 0.8);
|
43 |
}
|
44 |
|
45 |
#score, #level {
|
46 |
position: absolute;
|
47 |
+
font-size: 24px; /* Ukuran font untuk skor dan level */
|
|
|
48 |
text-shadow: 0 0 10px rgba(0, 255, 171, 0.8);
|
49 |
}
|
50 |
|
51 |
+
#score {
|
52 |
+
top: 20px;
|
53 |
+
left: 20px; /* Posisi kiri atas */
|
54 |
+
}
|
55 |
+
|
56 |
#level {
|
57 |
+
top: 20px;
|
58 |
+
right: 20px; /* Posisi kanan atas */
|
59 |
}
|
60 |
|
61 |
#lives {
|
62 |
position: absolute;
|
63 |
+
top: 20px; /* Posisikan di bagian atas */
|
|
|
|
|
64 |
display: flex;
|
65 |
justify-content: center;
|
66 |
align-items: center;
|
67 |
+
gap: 10px; /* Ruang antar ikon ♥️ */
|
68 |
}
|
69 |
|
70 |
.life {
|
71 |
+
font-size: 24px; /* Ukuran font untuk ikon ♥️ */
|
72 |
+
color: red; /* Red hearts */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
}
|
74 |
|
75 |
@keyframes fall {
|
76 |
+
0% {
|
77 |
+
top: -30px;
|
78 |
+
}
|
79 |
+
100% {
|
80 |
+
top: 100%;
|
81 |
+
}
|
82 |
+
}
|