forked from you-dont-need/You-Dont-Need-JavaScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
462 lines (416 loc) · 8.07 KB
/
styles.css
File metadata and controls
462 lines (416 loc) · 8.07 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
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
height: 100vh;
overflow: hidden;
background: linear-gradient(to bottom, #0a0a0f 0%, #050508 50%, #0a0a0f 100%);
position: relative;
}
.sky {
position: absolute;
width: 100%;
height: 100%;
background: radial-gradient(
1.5px 1.5px at 12% 18%,
rgba(255, 255, 255, 0.6),
transparent
),
radial-gradient(1px 1px at 78% 12%, rgba(255, 255, 255, 0.5), transparent),
radial-gradient(
1.2px 1.2px at 42% 25%,
rgba(255, 255, 255, 0.6),
transparent
),
radial-gradient(
1.5px 1.5px at 88% 32%,
rgba(255, 255, 255, 0.5),
transparent
),
radial-gradient(1px 1px at 22% 42%, rgba(255, 255, 255, 0.4), transparent),
radial-gradient(
1.3px 1.3px at 65% 8%,
rgba(255, 255, 255, 0.6),
transparent
),
radial-gradient(1px 1px at 35% 35%, rgba(255, 255, 255, 0.5), transparent),
radial-gradient(
1.2px 1.2px at 92% 48%,
rgba(255, 255, 255, 0.4),
transparent
);
opacity: 0.4;
animation: stars-dim 5s infinite;
}
@keyframes stars-dim {
0%,
100% {
opacity: 0.3;
}
50% {
opacity: 0.5;
}
}
.moon {
position: absolute;
width: 70px;
height: 70px;
background: radial-gradient(
circle at 45% 45%,
#e8e8e8 0%,
#b8b8b8 60%,
rgba(150, 150, 150, 0) 100%
);
border-radius: 50%;
top: 12%;
right: 15%;
opacity: 0.3;
box-shadow: 0 0 30px rgba(200, 200, 200, 0.15);
}
.city {
position: absolute;
bottom: 22%;
left: 0;
width: 100%;
height: 45%;
display: flex;
align-items: flex-end;
gap: 3%;
padding: 0 2%;
}
.tower {
background: linear-gradient(to right, #080810 0%, #101018 50%, #080810 100%);
position: relative;
box-shadow: 0 0 30px rgba(0, 0, 0, 0.9);
border-radius: 2px 2px 0 0;
}
.tower:nth-child(1) {
width: 8%;
height: 60%;
}
.tower:nth-child(2) {
width: 10%;
height: 85%;
}
.tower:nth-child(3) {
width: 7%;
height: 50%;
}
.tower:nth-child(4) {
width: 12%;
height: 95%;
}
.tower:nth-child(5) {
width: 9%;
height: 70%;
}
.tower:nth-child(6) {
width: 8%;
height: 55%;
}
.tower:nth-child(7) {
width: 11%;
height: 90%;
}
.tower:nth-child(8) {
width: 7%;
height: 45%;
}
.tower::before {
content: '';
position: absolute;
top: 10%;
left: 10%;
right: 10%;
bottom: 5%;
background-image: repeating-linear-gradient(
0deg,
transparent 0px,
transparent 15px,
rgba(180, 150, 80, 0.08) 15px,
rgba(180, 150, 80, 0.08) 17px
),
repeating-linear-gradient(
90deg,
transparent 0px,
transparent 12px,
rgba(180, 150, 80, 0.08) 12px,
rgba(180, 150, 80, 0.08) 14px
);
animation: lights-dim 6s infinite;
}
@keyframes lights-dim {
0%,
100% {
opacity: 0.2;
}
50% {
opacity: 0.4;
}
}
.highway {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 22%;
background: linear-gradient(to bottom, #0f0f0f 0%, #080808 100%);
border-top: 2px solid #1a1a1a;
overflow: hidden;
}
.lanes {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 200%;
height: 4px;
background: repeating-linear-gradient(
to right,
#666 0%,
#666 50px,
transparent 50px,
transparent 100px
);
animation: road-move 2s linear infinite;
opacity: 0;
}
@keyframes road-move {
0% {
left: 0;
}
100% {
left: -100%;
}
}
.vehicle {
position: absolute;
bottom: 22%;
left: 50%;
transform: translateX(-50%);
width: 200px;
height: 80px;
animation: car-hover 0.4s ease-in-out infinite;
}
@keyframes car-hover {
0%,
100% {
transform: translateX(-50%) translateY(0px);
}
50% {
transform: translateX(-50%) translateY(-3px);
}
}
.chassis {
position: absolute;
bottom: 20px;
left: 15px;
width: 170px;
height: 48px;
background: linear-gradient(180deg, #2a2a3e 0%, #1a1a2e 50%, #0f0f1a 100%);
border-radius: 8px 8px 4px 4px;
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.8),
inset 0 2px 5px rgba(255, 255, 255, 0.1),
inset 0 -3px 10px rgba(0, 0, 0, 0.5);
}
.chassis::before {
content: '';
position: absolute;
right: 0;
top: 8px;
width: 45%;
height: 60%;
background: linear-gradient(
90deg,
transparent 0%,
rgba(50, 50, 70, 0.4) 100%
);
border-radius: 0 8px 4px 0;
}
.chassis::after {
content: '';
position: absolute;
bottom: 15px;
left: 5%;
width: 90%;
height: 2px;
background: linear-gradient(
90deg,
transparent 0%,
rgba(100, 100, 120, 0.6) 20%,
rgba(100, 100, 120, 0.6) 80%,
transparent 100%
);
box-shadow: 0 0 4px rgba(150, 150, 180, 0.3);
}
.cabin {
position: absolute;
bottom: 54px;
left: 50px;
width: 100px;
height: 38px;
background: linear-gradient(180deg, #3a3a4e 0%, #2a2a3e 60%, #1a1a2e 100%);
border-radius: 12px 12px 6px 6px;
box-shadow: 0 3px 15px rgba(0, 0, 0, 0.7),
inset 0 2px 5px rgba(255, 255, 255, 0.1);
}
.glass {
position: absolute;
top: 4px;
right: 8px;
width: 45px;
height: 28px;
background: linear-gradient(
135deg,
rgba(100, 150, 200, 0.3) 0%,
rgba(50, 80, 120, 0.5) 100%
);
border-radius: 8px 8px 4px 2px;
border: 1px solid rgba(80, 120, 160, 0.4);
box-shadow: inset 2px 2px 6px rgba(150, 180, 220, 0.2);
}
.glass::before {
content: '';
position: absolute;
top: 0;
left: -38px;
width: 35px;
height: 28px;
background: linear-gradient(
135deg,
rgba(100, 150, 200, 0.3) 0%,
rgba(50, 80, 120, 0.5) 100%
);
border-radius: 8px 8px 2px 4px;
border: 1px solid rgba(80, 120, 160, 0.4);
box-shadow: inset 2px 2px 6px rgba(150, 180, 220, 0.2);
}
.wing {
position: absolute;
bottom: 64px;
left: 18px;
width: 50px;
height: 5px;
background: linear-gradient(180deg, #3a3a4e 0%, #1a1a2e 100%);
border-radius: 2px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.wing::after {
content: '';
position: absolute;
bottom: -8px;
left: 5px;
right: 5px;
height: 2px;
background: #2a2a3e;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.door-line {
position: absolute;
width: 2px;
height: 35px;
background: linear-gradient(
180deg,
transparent 0%,
rgba(50, 50, 70, 0.6) 50%,
transparent 100%
);
bottom: 25px;
left: 90px;
}
.mirror {
position: absolute;
width: 8px;
height: 12px;
background: linear-gradient(135deg, #3a3a4e 0%, #1a1a2e 100%);
border-radius: 3px;
bottom: 58px;
box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}
.mirror-left {
left: 48px;
}
.mirror-right {
right: 28px;
}
.rim {
position: absolute;
width: 36px;
height: 36px;
bottom: 0;
border-radius: 50%;
background: radial-gradient(
circle at center,
#1a1a1a 0%,
#000 60%,
#0a0a0a 100%
);
border: 3px solid #333;
box-shadow: 0 0 15px rgba(100, 100, 255, 0.5),
inset 0 0 10px rgba(0, 0, 0, 0.8);
animation: wheel-rotation 0.3s linear infinite;
}
.rim::before {
content: '';
position: absolute;
width: 16px;
height: 16px;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: radial-gradient(circle, #444 0%, #222 100%);
border-radius: 50%;
box-shadow: 0 0 8px rgba(100, 100, 255, 0.4);
}
.rim-front {
right: 18px;
}
.rim-back {
left: 18px;
}
@keyframes wheel-rotation {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.beam {
position: absolute;
width: 10px;
height: 8px;
bottom: 28px;
right: 10px;
background: radial-gradient(ellipse at center, #ffffcc 0%, #ffff99 100%);
border-radius: 50%;
box-shadow: 0 0 15px rgba(255, 255, 200, 0.6);
}
.beam::before {
content: '';
position: absolute;
width: 100px;
height: 50px;
left: 100%;
top: 50%;
transform: translateY(-50%);
background: linear-gradient(
90deg,
rgba(255, 255, 200, 0.3) 0%,
rgba(255, 255, 200, 0.1) 50%,
transparent 100%
);
clip-path: polygon(0% 30%, 100% 0%, 100% 100%, 0% 70%);
filter: blur(6px);
}
.tail {
position: absolute;
width: 8px;
height: 6px;
bottom: 28px;
left: 10px;
background: radial-gradient(ellipse at center, #ff4444 0%, #cc0000 100%);
border-radius: 50%;
box-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
}