Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
740 lines (659 loc) · 17.8 KB
/
Copy pathstyle.css
File metadata and controls
740 lines (659 loc) · 17.8 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
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
/* These are the colors we use everywhere */
/* we added this to the root so that the variables are everywhere */
:root {
--bg-color: #0f172a;
--accent-primary: #62c955;
--accent-secondary: #ffffff;
--text-main: #ffffff;
--text-dim: #94a3b8;
--panel-bg: #1e293b;
--border-color: #919191;
--success: #86ffb2;
--danger: #ef4444;
}
/* we added this to everything so that the margins are reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* This makes sure everything fits on the page */
/* we added this to the body so that the background color fits */
body {
background-color: var(--bg-color);
color: var(--text-main);
font-family: 'Inter', system-ui, sans-serif;
overflow: hidden;
height: 100vh;
width: 100vw;
}
/* we added this to the app so that the content is centered */
#app {
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
/* we added this to the view so that the screens are hidden */
.view {
display: none;
width: 100%;
height: 100%;
justify-content: center;
align-items: center;
flex-direction: column;
}
/* we added this to the active view so that the screen shows up */
.view.active {
display: flex;
}
/* Flat Card */
/* we added this to the glass card so that the box looks cool */
.glass-card {
background: var(--panel-bg);
border: 1px solid var(--border-color);
padding: 2.5rem;
border-radius: 12px;
width: 100%;
max-width: 450px;
text-align: center;
}
/* we added this to the h1 so that the title is big */
h1 {
font-size: 2.5rem;
font-weight: 700;
margin-bottom: 0.5rem;
color: var(--accent-secondary);
}
/* we added this to the subtitle so that the text is smaller */
.subtitle {
color: var(--text-dim);
margin-bottom: 2rem;
text-transform: uppercase;
font-size: 0.8rem;
letter-spacing: 1px;
}
/* we added this to the input group so that the inputs have space */
.input-group {
margin-bottom: 1.5rem;
}
/* we added this to the text input so that the user can type */
input[type="text"] {
width: 100%;
padding: 0.8rem;
background: #0f172a;
border: 1px solid var(--border-color);
border-radius: 6px;
color: white;
font-size: 1rem;
outline: none;
}
/* we added this to the focused input so that the border lights up */
input[type="text"]:focus {
border-color: var(--accent-primary);
}
/* This is how the main buttons look */
/* we added this to the primary button so that the main buttons pop */
.primary-btn {
width: 100%;
padding: 1rem;
background: var(--accent-primary);
border: none;
border-radius: 8px;
color: white;
font-weight: 600;
cursor: pointer;
text-transform: uppercase;
}
/* we added this to the secondary button so that the side buttons look okay */
.secondary-btn {
background: #334155;
border: none;
color: white;
padding: 0.8rem 1.5rem;
border-radius: 8px;
cursor: pointer;
font-weight: 500;
}
/* World */
/* This is the big green area where you walk around */
/* we added this to the world viewport so that the game stays in the box */
.world-viewport {
width: 90vw;
height: 70vh;
background: #166534;
border: 2px solid #14532d;
border-radius: 12px;
position: relative;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
}
/* we added this to the world grid so that the ground has squares */
.world-grid {
position: absolute;
width: 200%;
height: 200%;
background-image:
linear-gradient(#14532d 1px, transparent 1px),
linear-gradient(90deg, #14532d 1px, transparent 1px);
background-size: 60px 60px;
pointer-events: none;
}
/* Pixel Art Logic remains same */
/* we added this to the pixel human so that the player looks like a person */
.pixel-human {
position: absolute;
top: 50%;
left: 50%;
width: 4px;
height: 4px;
margin-left: -16px;
margin-top: -24px;
z-index: 10;
box-shadow:
8px 0 #4b2c20, 12px 0 #4b2c20, 16px 0 #4b2c20, 20px 0 #4b2c20,
8px 4px #4b2c20, 12px 4px #4b2c20, 16px 4px #4b2c20, 20px 4px #4b2c20,
8px 8px #e5c1a0, 12px 8px #e5c1a0, 16px 8px #e5c1a0, 20px 8px #e5c1a0,
8px 12px #e5c1a0, 12px 12px #e5c1a0, 16px 12px #e5c1a0, 20px 12px #e5c1a0,
0 16px #e5c1a0, 4px 16px #0ea5e9, 8px 16px #0ea5e9, 12px 16px #0ea5e9, 16px 16px #0ea5e9, 20px 16px #0ea5e9, 24px 16px #0ea5e9, 28px 16px #e5c1a0,
0 20px #e5c1a0, 4px 20px #0ea5e9, 8px 20px #0ea5e9, 12px 20px #0ea5e9, 16px 20px #0ea5e9, 20px 20px #0ea5e9, 24px 20px #0ea5e9, 28px 20px #e5c1a0,
0 24px #e5c1a0, 8px 24px #0ea5e9, 12px 24px #0ea5e9, 16px 24px #0ea5e9, 20px 24px #0ea5e9, 28px 24px #e5c1a0,
8px 28px #0ea5e9, 12px 28px #0ea5e9, 16px 28px #0ea5e9, 20px 28px #0ea5e9,
8px 32px #333, 12px 32px #333, 16px 32px #333, 20px 32px #333,
8px 36px #333, 12px 36px #333, 16px 36px #333, 20px 36px #333,
8px 40px #333, 20px 40px #333,
8px 44px #111, 20px 44px #111;
}
/* Pets and Trees */
/* we added this to the pet class so that the animals move smoothly */
.pet {
position: absolute;
width: 50px;
height: 50px;
z-index: 9;
transition: left 0.8s ease, top 0.8s ease;
background-repeat: no-repeat;
background-position: center;
background-size: contain;
image-rendering: pixelated;
}
/* we added this to the cat so that it looks like a cat */
.pet.cat {
box-shadow: none;
width: 50px;
height: 50px;
background-image: url("pets/cat_normal.png");
background-size: contain;
background-repeat: no-repeat;
background-position: center;
image-rendering: pixelated;
}
/* we added this to the dog so that it looks like a dog */
.pet.dog {
box-shadow: none;
width: 50px;
height: 50px;
background-image: url("pets/dog_normal.png");
background-size: contain;
background-repeat: no-repeat;
background-position: center;
image-rendering: pixelated;
}
/* we added this to the rabbit so that it looks like a rabbit */
.pet.rabbit {
box-shadow: none;
width: 50px;
height: 50px;
background-image: url("pets/rabbit_normal.png");
background-size: contain;
background-repeat: no-repeat;
background-position: center;
image-rendering: pixelated;
}
/* we added this to the tree so that there are obstacles */
.tree {
position: absolute;
width: 24px;
height: 36px;
z-index: 5;
}
/* we added this to the tree after so that it has detailed leaves */
.tree::after {
content: '';
position: absolute;
width: 4px;
height: 4px;
box-shadow:
8px 0 #14532d, 12px 0 #14532d, 16px 0 #14532d,
4px 4px #14532d, 8px 4px #14532d, 12px 4px #14532d, 16px 4px #14532d, 20px 4px #14532d,
0 8px #166534, 4px 8px #166534, 8px 8px #166534, 12px 8px #166534, 16px 8px #166534, 20px 8px #166534, 24px 8px #166534,
0 12px #166534, 4px 12px #166534, 8px 12px #166534, 12px 12px #166534, 16px 12px #166534, 20px 12px #166534, 24px 12px #166534,
4px 16px #22c55e, 8px 16px #22c55e, 12px 16px #22c55e, 16px 16px #22c55e, 20px 16px #22c55e,
8px 20px #22c55e, 12px 20px #22c55e, 16px 20px #22c55e,
10px 24px #451a03, 14px 24px #451a03,
10px 28px #451a03, 14px 28px #451a03,
10px 32px #451a03, 14px 32px #451a03;
}
/* Stations */
/* we added this to the station so that you can see where to go */
.station {
position: absolute;
width: 80px;
height: 80px;
background: #1e293b;
border: 2px solid var(--accent-secondary);
border-radius: 8px;
display: flex;
justify-content: center;
align-items: center;
color: white;
font-size: 0.75rem;
text-align: center;
padding: 5px;
font-weight: 700;
}
/* Sidebar */
/* we added this to the sidebar so that you can see your stats */
.status-sidebar {
position: absolute;
left: 20px;
top: 100px;
width: 260px;
background: #1e293b;
border: 1px solid var(--border-color);
border-radius: 12px;
padding: 1.2rem;
z-index: 50;
display: flex;
flex-direction: column;
}
/* we added this to the h3 in the header so that the text is colored */
.sidebar-header h3 {
font-size: 1rem;
color: var(--accent-secondary);
margin-bottom: 0.5rem;
}
/* we added this to the meta info so that the level is shown */
.sidebar-meta {
display: flex;
align-items: center;
gap: 0.5rem;
border-bottom: 1px solid var(--border-color);
padding-bottom: 0.5rem;
margin-bottom: 1rem;
}
/* we added this to the meta h3 so that the text is small */
.sidebar-meta h3 {
font-size: 0.85rem;
margin-bottom: 0;
}
/* we added this to the overview so that the circles are aligned */
.stats-overview {
display: flex;
justify-content: space-around;
margin-bottom: 1.5rem;
border-bottom: 1px solid var(--border-color);
padding-bottom: 1rem;
}
/* we added this to the mini stat so that the icons are centered */
.mini-stat {
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
}
/* we added this to the circle progress so that the stats look like pies */
.circle-progress {
width: 40px;
height: 40px;
border-radius: 50%;
border: 2px solid var(--border-color);
position: relative;
}
/* we added this to the circle inside so that it becomes a ring */
.circle-progress::after {
content: '';
position: absolute;
inset: 4px;
background: #1e293b;
border-radius: 50%;
}
/* we added this to the money display so that you know if you are rich */
.mini-money {
background: #064e3b;
color: #4ade80;
padding: 18px 12px;
border-radius: 20px;
font-weight: 700;
font-size: 1rem;
}
/* we added this to the sidebar content so that the list scrolls */
.sidebar-content {
display: flex;
flex-direction: column;
gap: 0.8rem;
overflow-y: auto;
max-height: 40vh;
}
/* we added this to the status item so that each station has a box */
.station-status-item {
background: #0f172a;
border: 1px solid var(--border-color);
padding: 0.8rem;
border-radius: 8px;
}
/* we added this to the station name so that it stands out */
.station-name {
font-size: 0.75rem;
font-weight: 700;
color: var(--accent-secondary);
}
/* we added this to the action text so that you can read the summary */
.action-text {
font-size: 0.8rem;
color: #cbd5e1;
}
/* we added this to the execute button so that it has space above */
#execute-all-btn {
margin-top: 1rem;
}
/* Modal */
/* we added this to the overlay so that the background dims */
.modal-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
z-index: 100;
justify-content: center;
align-items: center;
}
/* we added this to the active overlay so that it appears */
.modal-overlay.active {
display: flex;
}
/* we added this to the modal content so that the popup is centered */
.modal-content {
background: #0f172a;
width: 95vw;
height: 95vh;
border: 1px solid var(--border-color);
border-radius: 16px;
padding: 20px;
display: flex;
flex-direction: column;
position: relative;
}
/* we added this to the close button so that you can exit */
.close-modal {
position: absolute;
top: 15px;
right: 15px;
background: var(--danger);
border: none;
color: white;
padding: 5px 12px;
border-radius: 4px;
cursor: pointer;
font-weight: 700;
}
/* we added this to the vet interface so that the layout is split */
.vet-interface {
display: flex;
gap: 15px;
flex: 1;
min-height: 0;
margin-top: 10px;
}
/* we added this to the panels so that they are side by side */
.left-panel,
.right-panel {
flex: 1;
background: #1e293b;
border: 1px solid var(--border-color);
border-radius: 12px;
padding: 1.5rem;
display: flex;
flex-direction: column;
}
/* we added this to the stat item so that each bar has space */
.stat-item {
margin-bottom: 1rem;
}
/* we added this to the label so that you know what the bar is */
.stat-item label {
display: block;
margin-bottom: 5px;
font-size: 0.85rem;
font-weight: 600;
color: var(--accent-secondary);
}
/* we added this to the bar background so that you see the empty part */
.bar-bg {
width: 100%;
height: 24px;
background: #0f172a;
border: 1px solid var(--border-color);
border-radius: 4px;
overflow: hidden;
}
/* we added this to the bar fill so that it animates */
.bar-fill {
height: 100%;
transition: width 0.4s ease;
}
/* we added this to the health bar so that it is red */
#bar-health {
background: var(--danger);
}
/* we added this to the happiness bar so that it is green */
#bar-happiness {
background: var(--success);
}
/* we added this to the hunger bar so that it is orange */
#bar-hunger {
background: #ea580c;
}
/* we added this to the hygiene bar so that it is blue */
#bar-hygiene {
background: #3b82f6;
}
/* we added this to the energy bar so that it is yellow */
#bar-energy {
background: #facc15;
}
/* we added this to the money bar so that it is gold */
#bar-money {
background: #eab308;
}
/* we added this to the pet display so that the pet is big */
.modal-pet-display {
height: 140px;
background: #0f172a;
border: 1px solid var(--border-color);
border-radius: 8px;
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 1rem;
}
/* we added this to the pet inside the modal so that it scales up */
.modal-pet-display .pet {
position: relative;
transform: scale(4);
}
/* we added this to the block editor so that blockly fits well */
.block-editor {
flex: 1;
min-height: 0;
background: white;
border: 1px solid var(--border-color);
border-radius: 8px;
position: relative;
overflow: hidden;
}
/* we added this to the blockly div so that it fills the space */
#blocklyDiv {
position: absolute;
inset: 0;
}
/* AI Panel */
/* we added this to the ai interface so that the chat and faq are side by side */
.ai-interface {
flex: 1;
display: flex;
gap: 20px;
height: 100%;
}
/* we added this to the panels so that they share the space */
.faq-panel,
.chat-panel {
flex: 1;
display: flex;
flex-direction: column;
}
/* we added this to the chat container so that the messages are held */
.chat-container {
flex: 1;
display: flex;
flex-direction: column;
background: #0f172a;
border: 1px solid var(--border-color);
border-radius: 12px;
overflow: hidden;
}
/* we added this to the message area so that it handles scrolling */
.chat-messages {
flex: 1;
overflow-y: auto;
padding: 1.5rem;
display: flex;
flex-direction: column;
gap: 1rem;
}
/* we added this to the message bubble so that it looks nice */
.message {
max-width: 85%;
padding: 0.8rem 1rem;
border-radius: 12px;
font-size: 0.9rem;
}
/* we added this to the assistant message so that it is grey */
.message.assistant {
align-self: flex-start;
background: #334155;
color: white;
border-bottom-left-radius: 2px;
}
/* we added this to the user message so that it is green */
.message.user {
align-self: flex-end;
background: var(--accent-primary);
color: white;
border-bottom-right-radius: 2px;
}
/* we added this to the input area so that you can type messages */
.chat-input-area {
display: flex;
gap: 8px;
padding: 1rem;
background: #1e293b;
border-top: 1px solid var(--border-color);
}
/* we added this to the chat input so that you can ask questions */
#ai-chat-input {
flex: 1;
background: #0f172a;
border: 1px solid var(--border-color);
color: white;
border-radius: 6px;
padding: 0.6rem;
}
/* we added this to the send button so that you can submit */
#ai-send-btn {
background: var(--accent-secondary);
color: white;
border: none;
padding: 0 1.2rem;
border-radius: 6px;
cursor: pointer;
font-weight: 600;
}
/* Result colors */
/* we added this to the stat up class so that gains are green */
.stat-up {
color: var(--success);
font-weight: 600;
}
/* we added this to the stat down class so that losses are red */
.stat-down {
color: var(--danger);
font-weight: 600;
}
/* we added this to the faq panel so that it has scroll */
.faq-panel {
overflow-y: auto;
padding-right: 10px;
}
/* we added this to the faq title so that it is uppercase */
.faq-panel h3 {
color: var(--accent-secondary);
font-size: 1.1rem;
margin-bottom: 1.5rem;
text-transform: uppercase;
letter-spacing: 1px;
}
/* we added this to the faq item so that it has a border */
.faq-item {
margin-bottom: 1rem;
padding: 1rem;
background: #0f172a;
border-radius: 8px;
border-left: 4px solid var(--accent-secondary);
}
/* we added this to the question so that it is bold */
.faq-q {
display: block;
font-weight: 700;
color: var(--accent-secondary);
margin-bottom: 0.5rem;
font-size: 0.9rem;
}
/* we added this to the answer so that text is readable */
.faq-a {
display: block;
font-size: 0.85rem;
color: var(--text-dim);
line-height: 1.5;
}
/* we added this to the logout button so that you can sign out */
#logout-btn {
background-color: hsl(0, 92%, 65%);
color: white;
border: 4px solid hsl(0, 92%, 55%);
border-radius: 5px;
font-size: 1.1em;
}
/* we added this to the display name so that you see who is logged in */
#display-name {
font-size: 1.3em;
font-weight: bold;
}
/* we added this to the user badge so that the font is monospace */
.userbadge {
font-family: 'Courier New', Courier, monospace
}
/* we added this to the keyframes so that things fade in smoothly */
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}