GarGerry commited on
Commit
0380312
·
verified ·
1 Parent(s): 72cf320

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +28 -25
style.css CHANGED
@@ -29,6 +29,7 @@ body {
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 {
@@ -41,57 +42,59 @@ body {
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: 80%;
64
- text-align: center;
65
- font-size: 24px;
 
 
66
  }
67
 
68
  .life {
69
- margin-right: 5px;
70
- color: red; /* Red hearts */
71
  }
72
 
73
  .game-over {
74
  position: absolute;
75
- top: 40%;
76
  left: 50%;
77
- transform: translateX(-50%);
 
 
 
 
78
  text-align: center;
79
- color: #fff;
80
- font-size: 24px;
81
- display: none; /* Hide it initially */
82
  }
83
 
84
- .game-over button {
85
- background-color: #ff007a;
86
- color: white;
87
  padding: 10px 20px;
 
 
88
  border: none;
89
  border-radius: 5px;
90
- font-size: 18px;
91
  cursor: pointer;
92
- margin-top: 10px;
 
 
 
 
93
  }
94
 
95
- .game-over button:hover {
96
- background-color: #e5006d;
97
- }
 
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, #level {
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
+ top: 60px;
54
+ font-size: 20px;
 
 
 
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: 25px;
69
+ margin: 0 5px;
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%