GarGerry commited on
Commit
ac01c02
·
verified ·
1 Parent(s): 38e2aa1

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +30 -2
style.css CHANGED
@@ -1,3 +1,4 @@
 
1
  * {
2
  margin: 0;
3
  padding: 0;
@@ -28,6 +29,7 @@ body {
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 {
@@ -40,13 +42,39 @@ body {
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
  }
 
1
+ /* Global styling */
2
  * {
3
  margin: 0;
4
  padding: 0;
 
29
  background: radial-gradient(circle, #00FFAB, #00B89C);
30
  border-radius: 50%;
31
  box-shadow: 0 0 20px rgba(0, 255, 171, 0.8);
32
+ animation: fall 3s linear infinite;
33
  }
34
 
35
  .platform {
 
42
  box-shadow: 0 0 20px rgba(255, 0, 122, 0.8);
43
  }
44
 
45
+ #score {
46
  position: absolute;
47
  top: 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: 60px;
55
+ font-size: 20px;
56
+ text-shadow: 0 0 10px rgba(0, 255, 171, 0.8);
57
+ }
58
+
59
+ #lives {
60
+ position: absolute;
61
+ bottom: 20px;
62
+ display: flex;
63
+ justify-content: center;
64
+ align-items: center;
65
+ }
66
+
67
+ .life {
68
+ font-size: 30px;
69
+ margin-right: 10px;
70
+ color: red; /* Red hearts */
71
+ }
72
+
73
+ @keyframes fall {
74
+ 0% {
75
+ top: -30px;
76
+ }
77
+ 100% {
78
+ top: 100%;
79
+ }
80
  }