-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
376 lines (325 loc) · 7.37 KB
/
style.css
File metadata and controls
376 lines (325 loc) · 7.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
/* General Styles */
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #667eea, #764ba2);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
margin: 0;
color: #fff;
animation: gradientShift 15s ease infinite;
}
@keyframes gradientShift {
0% { background: linear-gradient(135deg, #667eea, #764ba2); }
50% { background: linear-gradient(135deg, #764ba2, #667eea); }
100% { background: linear-gradient(135deg, #667eea, #764ba2); }
}
.container {
background: rgba(0, 0, 0, 0.8);
padding: 30px;
border-radius: 15px;
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
text-align: center;
max-width: 900px;
width: 100%;
animation: fadeIn 2s ease;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
/* Heading Styles */
h1 {
font-size: 2.5em;
margin-bottom: 20px;
color: #FFD700;
font-weight: 700;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
animation: textGlow 2s ease-in-out infinite alternate;
}
@keyframes textGlow {
from { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); }
to { text-shadow: 2px 2px 20px rgba(255, 215, 0, 1); }
}
/* Game Area Styles */
.game-area {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 20px;
}
canvas {
border: 2px solid #FFD700;
border-radius: 10px;
background-color: #2b2b2b;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
animation: canvasPulse 1.5s ease-in-out infinite;
}
@keyframes canvasPulse {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.02); }
}
/* Side Panel Styles */
.side-panel {
width: 250px;
margin-left: 20px;
text-align: left;
}
.game-info {
display: flex;
flex-direction: column;
gap: 10px;
font-size: 1.2em;
font-weight: bold;
margin-bottom: 20px;
animation: slideIn 1s ease-out;
}
@keyframes slideIn {
from { transform: translateX(-50px); opacity: 0; }
to { transform: translateX(0); opacity: 1; }
}
.score-container, .high-score-container, .level-container, .time-container {
color: #FFD700;
}
/* Power-ups and Achievements Styles */
.power-ups, .achievements {
background: rgba(255, 255, 255, 0.1);
border-radius: 10px;
padding: 10px;
margin-bottom: 15px;
animation: fadeIn 2s ease;
}
.power-ups h3, .achievements h3 {
margin-top: 0;
color: #FFD700;
animation: growShrink 2s ease infinite;
}
@keyframes growShrink {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.05); }
}
#powerUpList, #achievementList {
font-size: 0.9em;
list-style: none;
padding: 0;
margin: 0;
}
/* Controls Styles */
.controls {
margin-top: 15px;
display: flex;
justify-content: center;
gap: 10px;
}
button {
background-color: #FFD700;
color: #333;
border: none;
padding: 12px 24px;
cursor: pointer;
font-weight: 600;
transition: background-color 0.3s, transform 0.3s;
border-radius: 30px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
font-size: 1.1em;
animation: buttonHover 3s ease infinite alternate;
}
@keyframes buttonHover {
from { box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); }
to { box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6); }
}
button:hover {
background-color: #FFBF00;
transform: scale(1.05);
}
button:active {
transform: scale(0.95);
}
/* Settings Styles */
.settings {
margin-top: 20px;
display: flex;
justify-content: center;
align-items: center;
gap: 15px;
animation: fadeIn 2s ease;
}
select, input[type="checkbox"] {
margin-left: 5px;
padding: 5px;
border-radius: 5px;
border: 1px solid #FFD700;
background-color: #333;
color: #FFD700;
animation: inputFocus 2s infinite alternate;
}
@keyframes inputFocus {
from { border-color: #FFD700; }
to { border-color: #FFBF00; }
}
/* Modal Styles */
.modal {
display: none;
position: fixed;
z-index: 1;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.8);
animation: fadeIn 0.5s ease;
}
.modal-content {
background-color: #2b2b2b;
margin: 15% auto;
padding: 20px;
border: 2px solid #FFD700;
width: 80%;
max-width: 500px;
text-align: center;
border-radius: 10px;
animation: modalSlideIn 0.7s ease-out;
}
@keyframes modalSlideIn {
from { transform: translateY(-50px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
#playAgainButton {
margin-top: 20px;
animation: buttonHover 3s ease infinite alternate;
}
/* Additional Particle Effect Styles */
#particleCanvas {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
}
/* Additional Styles for Enhanced Aesthetics */
.tooltip {
position: relative;
display: inline-block;
cursor: pointer;
border-bottom: 1px dotted #fff;
color: #FFD700;
animation: tooltipPulse 1.5s infinite alternate;
}
@keyframes tooltipPulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.8; }
}
.tooltip .tooltiptext {
visibility: hidden;
width: 120px;
background-color: #333;
color: #fff;
text-align: center;
border-radius: 6px;
padding: 5px 0;
position: absolute;
z-index: 1;
bottom: 125%;
left: 50%;
margin-left: -60px;
opacity: 0;
transition: opacity 0.3s;
}
.tooltip:hover .tooltiptext {
visibility: visible;
opacity: 1;
}
footer {
margin-top: 20px;
text-align: center;
color: #FFD700;
font-size: 0.9em;
animation: fadeIn 2s ease;
}
footer a {
color: #FFD700;
text-decoration: none;
transition: color 0.3s;
}
footer a:hover {
color: #FFBF00;
}
/* Additional Game Over Modal Enhancements */
#gameOverMessage {
font-size: 1.5em;
color: #FFD700;
margin-bottom: 15px;
animation: textGlow 2s ease-in-out infinite alternate;
}
#gameOverDetails {
font-size: 1.1em;
color: #fff;
margin-bottom: 20px;
}
#gameOverStats {
display: flex;
justify-content: space-around;
margin-bottom: 15px;
}
#gameOverStats div {
text-align: center;
}
#gameOverStats div span {
display: block;
font-size: 1.2em;
color: #FFD700;
}
/* Additions for Detailed Interaction Feedback */
button:focus {
outline: none;
box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.6);
}
input:focus, select:focus {
outline: none;
box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.6);
}
.button-secondary {
background-color: #333;
color: #FFD700;
border: 1px solid #FFD700;
padding: 12px 24px;
cursor: pointer;
font-weight: 600;
transition: background-color 0.3s, transform 0.3s;
border-radius: 30px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
font-size: 1.1em;
}
.button-secondary:hover {
background-color: #444;
transform: scale(1.05);
}
.button-secondary:active {
transform: scale(0.95);
}
/* Enhancements for Mobile Responsiveness */
@media (max-width: 600px) {
.container {
padding: 20px;
}
.game-area {
flex-direction: column;
align-items: center;
}
.side-panel {
width: 100%;
margin-left: 0;
margin-top: 20px;
}
canvas {
width: 90%;
height: auto;
}
button, .button-secondary {
width: 100%;
padding: 15px;
}
}