Rooni commited on
Commit
0137a51
·
verified ·
1 Parent(s): 7eca1b6

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +29 -4
style.css CHANGED
@@ -20,7 +20,7 @@ body, html {
20
  width: 800px;
21
  height: 600px;
22
  border: 3px solid #fff;
23
- background-color: #111;
24
  }
25
 
26
  #game-area {
@@ -28,6 +28,7 @@ body, html {
28
  width: 100%;
29
  height: 100%;
30
  overflow: hidden;
 
31
  }
32
 
33
  .player {
@@ -36,9 +37,10 @@ body, html {
36
  left: 50%;
37
  width: 100px;
38
  height: 20px;
39
- background-color: #0f0;
40
  transform: translateX(-50%);
41
  border-radius: 10px;
 
42
  }
43
 
44
  .orb {
@@ -46,7 +48,8 @@ body, html {
46
  width: 30px;
47
  height: 30px;
48
  border-radius: 50%;
49
- background-color: #f00;
 
50
  }
51
 
52
  .bonus {
@@ -54,7 +57,8 @@ body, html {
54
  width: 30px;
55
  height: 30px;
56
  border-radius: 50%;
57
- background-color: #ff0;
 
58
  }
59
 
60
  #score-board {
@@ -63,6 +67,7 @@ body, html {
63
  left: 10px;
64
  color: #fff;
65
  font-size: 24px;
 
66
  }
67
 
68
  #game-over {
@@ -73,4 +78,24 @@ body, html {
73
  color: #fff;
74
  font-size: 48px;
75
  display: none;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76
  }
 
20
  width: 800px;
21
  height: 600px;
22
  border: 3px solid #fff;
23
+ background-color: #000;
24
  }
25
 
26
  #game-area {
 
28
  width: 100%;
29
  height: 100%;
30
  overflow: hidden;
31
+ background: linear-gradient(135deg, #000 0%, #111 100%);
32
  }
33
 
34
  .player {
 
37
  left: 50%;
38
  width: 100px;
39
  height: 20px;
40
+ background-color: #fff;
41
  transform: translateX(-50%);
42
  border-radius: 10px;
43
+ box-shadow: 0 0 10px 2px #fff;
44
  }
45
 
46
  .orb {
 
48
  width: 30px;
49
  height: 30px;
50
  border-radius: 50%;
51
+ background: radial-gradient(circle, #ff0000 0%, #cc0000 100%);
52
+ box-shadow: 0 0 10px 2px rgba(255, 0, 0, 0.5);
53
  }
54
 
55
  .bonus {
 
57
  width: 30px;
58
  height: 30px;
59
  border-radius: 50%;
60
+ background: radial-gradient(circle, #00ff00 0%, #00cc00 100%);
61
+ box-shadow: 0 0 10px 2px rgba(0, 255, 0, 0.5);
62
  }
63
 
64
  #score-board {
 
67
  left: 10px;
68
  color: #fff;
69
  font-size: 24px;
70
+ text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
71
  }
72
 
73
  #game-over {
 
78
  color: #fff;
79
  font-size: 48px;
80
  display: none;
81
+ text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
82
+ }
83
+
84
+ /* Trail effect for orbs and bonuses */
85
+ .trail {
86
+ position: absolute;
87
+ width: 30px;
88
+ height: 30px;
89
+ border-radius: 50%;
90
+ opacity: 0.5;
91
+ animation: fade-out 1s linear forwards;
92
+ }
93
+
94
+ @keyframes fade-out {
95
+ from {
96
+ opacity: 0.5;
97
+ }
98
+ to {
99
+ opacity: 0;
100
+ }
101
  }