-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
346 lines (300 loc) · 7.41 KB
/
Copy pathstyles.css
File metadata and controls
346 lines (300 loc) · 7.41 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
/* General Styling */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f0f8ff;
}
/* Home Interface */
#home-interface {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-image: url('GnYIbi5WcAA9a-f\ \(1\).png');
background-size: cover;
background-position: center;
text-align: center;
}
#home-content {
color: rgba(95, 22, 159, 0.712);
padding: 20px;
background-color: rgba(247, 247, 118, 0.854);
border-radius: 10px;
}
#home-content h1 {
font-size: 36px;
margin-bottom: 20px;
}
#chameleon-home {
max-width: 300px;
margin-bottom: 20px;
}
#start-game-button {
padding: 15px 25px;
font-size: 20px;
cursor: pointer;
background-color: rgb(105, 1, 174);
color: rgba(235, 235, 235, 0.854);
border: none;
border-radius: 5px;
transition: background-color 0.3s;
}
#start-game-button:hover {
opacity: 0.6;
}
/* Game Container */
#game-container {
display: flex;
flex-direction: column;
align-items: center;
padding: 10px;
}
/* General Styling */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f0f8ff;
background-image: url('ggg.png'); /* Added background image */
background-size: cover;
background-position: center;
}
header {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px;
background-color: rgba(119, 3, 228, 0.854);
color: rgb(255, 255, 255);
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
#score-board {
display: flex;
gap: 20px;
font-family: 'Comic Sans MS', cursive, sans-serif;
font-size: 18px;
color: #fff;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
background: linear-gradient(45deg, rgb(40, 151, 18), rgb(93, 55, 231));
padding: 10px 20px;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}
#score-board p {
margin: 0;
}
#game-area {
position: relative;
width: 60%;
max-width: 500px;
height: 400px;
margin: 20px auto;
border: 2px solid rgb(109, 36, 255);
background-color: rgb(97, 3, 237);
overflow: hidden;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
#chameleon {
position: absolute;
bottom: 10px;
left: 50%;
transform: translateX(-50%);
height: 70px;
}
.falling-item {
position: absolute;
width: 30px;
height: 30px;
background-color: rgba(253, 253, 253, 0.854);
border-radius: 50%;
}
/* Styled Control Buttons */
#control-buttons button {
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
background-color: rgb(255, 215, 18);
color: white;
border: none;
border-radius: 5px;
margin: 10px;
transition: background-color 0.3s;
}
#control-buttons button:hover {
background-color: rgb(255, 255, 255);
}
#pause-button {
background-color: rgba(69, 0, 218, 0.637);
}
#play-button {
background-color: rgb(232, 232, 196);
}
#restart-game-button {
background-color: rgba(24, 133, 49, 0.854);
}
/* Game Over Screen */
#game-over-screen {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
height: 100vh;
background-color: #6800c3dd;
color: rgb(214, 210, 194);
text-align: center;
}
#game-over-screen h1 {
font-size: 48px;
margin-bottom: 20px;
}
#game-over-screen p {
font-size: 24px;
margin-bottom: 30px;
}
#return-home-button {
padding: 15px 25px;
font-size: 20px;
cursor: pointer;
background-color: rgba(23, 114, 241, 0.854);
color: rgb(255, 215, 18);
border: none;
border-radius: 5px;
transition: background-color 0.3s;
}
#return-home-button:hover {
background-color: rgba(105, 5, 219, 0.854);
}
#highscore-button {
padding: 15px 25px;
font-size: 20px;
cursor: pointer;
background-color: rgba(85, 5, 183, 0.854); /* Gold color for high scores */
color: black;
border: none;
border-radius: 8px;
transition: background-color 0.3s, transform 0.2s;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); /* Slight shadow for depth */
}
#highscore-button:hover {
background-color: #f9eba5; /* Slightly darker gold on hover */
transform: scale(1.05); /* Slight zoom effect */
box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4);
}
#highscore-button:active {
background-color: #FFA000; /* Even darker on click */
box-shadow: 0 3px 4px rgba(0, 0, 0, 0.5);
transform: scale(0.95); /* Slight compression effect */
}
/* High Score Page */
#high-score-page {
display: flex;
flex-direction: column;
align-items: center;
padding: 20px;
background-color: #f0f8ff;
height: 100vh;
}
#high-score-page header {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 20px;
background-color: #4CAF50;
color: white;
}
#high-score-list {
margin-top: 20px;
padding: 20px;
background-color: #e8f5e9;
border-radius: 10px;
text-align: center;
}
#high-score-list h2 {
font-size: 24px;
margin-bottom: 20px;
}
#score-list {
list-style-type: decimal;
padding-left: 0;
}
#score-list li {
font-size: 18px;
margin: 5px 0;
}
#return-to-home-button {
padding: 10px 15px;
font-size: 16px;
cursor: pointer;
background-color: #f44336;
color: white;
border: none;
border-radius: 5px;
transition: background-color 0.3s;
}
#return-to-home-button:hover {
background-color: #d32f2f;
}
/* Responsive Design - Adjust for smaller screens */
@media screen and (max-width: 768px) {
/* Home Interface */
#home-interface {
flex-direction: column;
}
/* Game Area */
#game-area {
width: 90%; /* More width for smaller screens */
max-width: 350px;
height: 300px; /* Adjust height */
}
/* Chameleon */
#chameleon {
height: 60px; /* Slightly smaller chameleon */
}
/* Buttons */
#start-game-button,
#return-home-button,
#restart-game-button,
#pause-button,
#play-button {
font-size: 18px; /* Adjusted font size for mobile */
padding: 12px 18px; /* Slightly smaller padding */
}
/* Score Board */
#score-board {
font-size: 16px; /* Slightly smaller font for mobile */
}
}
@media screen and (max-width: 480px) {
/* Home Interface */
#home-interface {
height: auto;
padding: 10px;
}
/* Game Area */
#game-area {
width: 95%; /* Even more width for smaller screens */
height: 280px; /* Further reduce height for small screens */
}
/* Chameleon */
#chameleon {
height: 50px; /* Smaller chameleon */
}
/* Buttons */
#start-game-button,
#return-home-button,
#restart-game-button,
#pause-button,
#play-button {
font-size: 16px; /* Further reduce font size */
padding: 10px 15px; /* Adjust padding */
}
/* Score Board */
#score-board {
font-size: 14px; /* Smaller font for mobile */
}
}