BlueGit

blue-star tribegen

Files

tribegen / web / css / style.css

style.css

farming
timfa Tim · pushed by timfa · 9 months ago
569cc974 History
style.css 14.0 KiB Download Raw
1* {
2 margin: 0;
3 padding: 0;
4 box-sizing: border-box;
5}
6
7body {
8 font-family: 'Arial', sans-serif;
9 background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
10 min-height: 100vh;
11 color: #333;
12}
13
14#app {
15 min-height: 100vh;
16 display: flex;
17 align-items: center;
18 justify-content: center;
19}
20
21.screen {
22 width: 100%;
23 min-height: 100vh;
24 display: flex;
25 align-items: center;
26 justify-content: center;
27}
28
29.screen.hidden {
30 display: none;
31}
32
33/* Auth Screen */
34.auth-container {
35 background: white;
36 padding: 40px;
37 border-radius: 10px;
38 box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
39 max-width: 400px;
40 width: 100%;
41}
42
43.auth-container h1 {
44 text-align: center;
45 color: #667eea;
46 margin-bottom: 10px;
47 font-size: 2.5em;
48}
49
50.auth-container p {
51 text-align: center;
52 color: #666;
53 margin-bottom: 30px;
54}
55
56.tabs {
57 display: flex;
58 margin-bottom: 20px;
59 border-bottom: 2px solid #eee;
60}
61
62.tab-btn {
63 flex: 1;
64 padding: 10px;
65 background: none;
66 border: none;
67 cursor: pointer;
68 font-size: 1em;
69 color: #999;
70 border-bottom: 3px solid transparent;
71 transition: all 0.3s;
72}
73
74.tab-btn.active {
75 color: #667eea;
76 border-bottom-color: #667eea;
77}
78
79.tab-btn:hover {
80 color: #667eea;
81}
82
83.tab-content {
84 display: none;
85}
86
87.tab-content.active {
88 display: block;
89}
90
91.tab-content form {
92 display: flex;
93 flex-direction: column;
94 gap: 15px;
95}
96
97input {
98 padding: 12px;
99 border: 1px solid #ddd;
100 border-radius: 5px;
101 font-size: 1em;
102 transition: border-color 0.3s;
103}
104
105input:focus {
106 outline: none;
107 border-color: #667eea;
108 box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
109}
110
111button {
112 padding: 12px;
113 border: none;
114 border-radius: 5px;
115 font-size: 1em;
116 cursor: pointer;
117 transition: all 0.3s;
118 font-weight: bold;
119}
120
121.primary {
122 background: #667eea;
123 color: white;
124}
125
126.primary:hover {
127 background: #5568d3;
128 transform: translateY(-2px);
129 box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
130}
131
132.secondary {
133 background: #f0f0f0;
134 color: #333;
135}
136
137.secondary:hover {
138 background: #e0e0e0;
139}
140
141.error-message {
142 color: #e74c3c;
143 text-align: center;
144 margin-top: 15px;
145 display: none;
146}
147
148.error-message.show {
149 display: block;
150}
151
152/* Main Menu Screen */
153.main-menu {
154 background: white;
155 padding: 40px;
156 border-radius: 10px;
157 box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
158 max-width: 800px;
159 width: 100%;
160}
161
162.main-menu h1 {
163 text-align: center;
164 color: #667eea;
165 margin-bottom: 20px;
166}
167
168.user-info {
169 text-align: right;
170 margin-bottom: 30px;
171 padding-bottom: 20px;
172 border-bottom: 1px solid #eee;
173}
174
175.user-info p {
176 margin-bottom: 10px;
177 color: #666;
178}
179
180.saves-section h2 {
181 color: #333;
182 margin-bottom: 20px;
183}
184
185.saves-grid {
186 display: grid;
187 grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
188 gap: 15px;
189 margin-bottom: 20px;
190}
191
192.save-card {
193 background: #f9f9f9;
194 border: 2px solid #ddd;
195 border-radius: 5px;
196 padding: 15px;
197 cursor: pointer;
198 transition: all 0.3s;
199}
200
201.save-card:hover {
202 border-color: #667eea;
203 box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
204 transform: translateY(-2px);
205}
206
207.save-card h3 {
208 margin-bottom: 10px;
209 color: #667eea;
210}
211
212.save-card p {
213 font-size: 0.9em;
214 color: #666;
215 margin-bottom: 5px;
216}
217
218/* Game Setup Screen */
219.game-setup {
220 background: white;
221 padding: 40px;
222 border-radius: 10px;
223 box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
224 max-width: 1000px;
225 width: 100%;
226}
227
228.game-setup h2 {
229 color: #667eea;
230 margin-bottom: 30px;
231}
232
233.setup-step {
234 display: block;
235}
236
237.setup-step.hidden {
238 display: none;
239}
240
241.setup-step p {
242 margin-bottom: 15px;
243 font-size: 1.1em;
244 color: #333;
245}
246
247.setup-step input {
248 display: block;
249 width: 100%;
250 margin-bottom: 20px;
251}
252
253.kobold-grid {
254 display: grid;
255 grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
256 gap: 15px;
257 margin-bottom: 20px;
258}
259
260.kobold-card {
261 background: #f9f9f9;
262 border: 2px solid #ddd;
263 border-radius: 5px;
264 padding: 15px;
265 text-align: center;
266 cursor: pointer;
267 transition: all 0.3s;
268}
269
270.kobold-card:hover {
271 border-color: #667eea;
272 transform: translateY(-3px);
273}
274
275.kobold-card.selected {
276 border-color: #27ae60;
277 background: #eafef0;
278}
279
280.kobold-sprite {
281 width: 80px;
282 height: 80px;
283 background: #ddd;
284 margin: 0 auto 10px;
285 border-radius: 3px;
286}
287
288.kobold-stats {
289 font-size: 0.8em;
290 color: #666;
291 text-align: left;
292 line-height: 1.4;
293}
294
295.counter {
296 text-align: center;
297 font-size: 1.1em;
298 color: #666;
299 margin-bottom: 20px;
300}
301
302.full-width {
303 width: 100%;
304}
305
306/* Game Screen */
307.game-container {
308 background: white;
309 width: 95%;
310 max-width: 1400px;
311 height: 90vh;
312 border-radius: 10px;
313 box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
314 display: flex;
315 flex-direction: column;
316}
317
318.game-header {
319 padding: 20px;
320 border-bottom: 2px solid #eee;
321 display: flex;
322 justify-content: space-between;
323 align-items: center;
324}
325
326.game-header h1 {
327 color: #667eea;
328}
329
330.game-time {
331 font-size: 1.1em;
332 color: #666;
333}
334
335.game-time span {
336 margin-left: 20px;
337}
338
339.game-main {
340 display: flex;
341 flex: 1;
342 overflow: hidden;
343}
344
345.game-left {
346 flex: 1;
347 display: flex;
348 flex-direction: column;
349 border-right: 2px solid #eee;
350 overflow-y: auto;
351}
352
353.environment {
354 flex: 1;
355 background: linear-gradient(to bottom, #87ceeb, #90ee90);
356 position: relative;
357 overflow-y: auto;
358}
359
360.placements {
361 display: flex;
362 flex-wrap: wrap;
363 gap: 10px;
364 padding: 10px;
365 background: #f9f9f9;
366}
367
368.placement {
369 width: 60px;
370 height: 60px;
371 background: #ddd;
372 border-radius: 5px;
373 cursor: pointer;
374 display: flex;
375 align-items: center;
376 justify-content: center;
377 color: #666;
378 font-size: 0.8em;
379 text-align: center;
380 padding: 5px;
381 transition: all 0.3s;
382}
383
384.placement:hover {
385 background: #ccc;
386 transform: scale(1.05);
387}
388
389.game-right {
390 width: 300px;
391 display: flex;
392 flex-direction: column;
393 overflow-y: auto;
394 padding: 15px;
395 gap: 15px;
396}
397
398.panel {
399 background: #f9f9f9;
400 border: 1px solid #ddd;
401 border-radius: 5px;
402 padding: 15px;
403 overflow-y: auto;
404 min-height: 150px;
405}
406
407.panel h3 {
408 color: #667eea;
409 margin-bottom: 10px;
410}
411
412.events-list,
413.tribe-list {
414 display: flex;
415 flex-direction: column;
416 gap: 10px;
417}
418
419.event-item,
420.tribe-item {
421 background: white;
422 border: 1px solid #ddd;
423 border-radius: 3px;
424 padding: 10px;
425 cursor: pointer;
426 transition: all 0.3s;
427}
428
429.event-item:hover,
430.tribe-item:hover {
431 background: #f0f0f0;
432 border-color: #667eea;
433}
434
435.tribe-item {
436 display: flex;
437 justify-content: space-between;
438 align-items: center;
439}
440
441.tribe-item-name {
442 font-weight: bold;
443 color: #333;
444}
445
446.tribe-item-age {
447 font-size: 0.8em;
448 color: #999;
449}
450
451.tribe-item.injured {
452 background: #ffe6e6;
453 border-color: #ff9999;
454}
455
456.tribe-item.injured:hover {
457 background: #ffcccc;
458 border-color: #ff6666;
459}
460
461/* Modal */
462.modal {
463 position: fixed;
464 top: 0;
465 left: 0;
466 right: 0;
467 bottom: 0;
468 background: rgba(0, 0, 0, 0.7);
469 display: flex;
470 align-items: center;
471 justify-content: center;
472 z-index: 1000;
473}
474
475.modal.hidden {
476 display: none;
477}
478
479.modal-content {
480 background: white;
481 border-radius: 10px;
482 padding: 40px;
483 max-width: 600px;
484 width: 90%;
485 max-height: 80vh;
486 overflow-y: auto;
487 position: relative;
488}
489
490.modal-close {
491 position: absolute;
492 top: 10px;
493 right: 10px;
494 background: none;
495 border: none;
496 font-size: 2em;
497 cursor: pointer;
498 color: #999;
499}
500
501.modal-close:hover {
502 color: #333;
503}
504
505.event-story {
506 font-size: 1.1em;
507 line-height: 1.6;
508 color: #333;
509 margin-bottom: 20px;
510 white-space: pre-wrap;
511}
512
513/* Storage Window */
514.storage-header {
515 margin-bottom: 15px;
516 padding-bottom: 10px;
517 border-bottom: 1px solid #eee;
518}
519
520.food-display {
521 font-size: 1.1em;
522 font-weight: bold;
523 color: #667eea;
524}
525
526.storage-items {
527 display: flex;
528 flex-direction: column;
529 gap: 8px;
530 max-height: 200px;
531 overflow-y: auto;
532 overflow-x: hidden;
533}
534
535.storage-item {
536 padding: 10px;
537 background: #f9f9f9;
538 border-radius: 5px;
539 cursor: pointer;
540 transition: all 0.2s;
541}
542
543.storage-item:hover {
544 background: #efe;
545 transform: translateX(5px);
546}
547
548.storage-item-name {
549 font-weight: bold;
550 color: #333;
551}
552
553/* Item Modal */
554.item-modal {
555 max-width: 400px;
556}
557
558.item-modal-header {
559 margin-bottom: 15px;
560 border-bottom: 2px solid #667eea;
561 padding-bottom: 10px;
562}
563
564.item-modal-header h2 {
565 color: #667eea;
566 margin: 0;
567}
568
569.item-description {
570 margin-bottom: 15px;
571 line-height: 1.5;
572 color: #555;
573}
574
575.item-stat-mods {
576 margin-bottom: 15px;
577 padding: 10px;
578 background: #f5f5f5;
579 border-radius: 5px;
580}
581
582.stat-mod {
583 display: flex;
584 justify-content: space-between;
585 padding: 5px 0;
586 font-size: 0.9em;
587}
588
589.stat-mod.positive {
590 color: #28a745;
591}
592
593.stat-mod.negative {
594 color: #dc3545;
595}
596
597.stat-mod.neutral {
598 color: #999;
599}
600
601.item-modal-actions {
602 display: flex;
603 flex-direction: column;
604 gap: 10px;
605}
606
607.kobold-select {
608 padding: 10px;
609 border: 1px solid #ddd;
610 border-radius: 5px;
611 font-size: 1em;
612}
613
614#giveItemBtn:disabled {
615 opacity: 0.5;
616 cursor: not-allowed;
617}
618
619/* Kobold Modal */
620.kobold-modal {
621 max-width: 500px;
622 max-height: 80vh;
623 overflow-y: auto;
624}
625
626.kobold-modal-header {
627 margin-bottom: 15px;
628 border-bottom: 2px solid #667eea;
629 padding-bottom: 10px;
630}
631
632.kobold-modal-header h2 {
633 color: #667eea;
634 margin: 0 0 5px 0;
635}
636
637.kobold-age {
638 color: #999;
639 margin: 0;
640 font-size: 0.9em;
641}
642
643.kobold-description {
644 margin-bottom: 15px;
645 line-height: 1.5;
646 color: #555;
647}
648
649.kobold-tabs {
650 display: flex;
651 gap: 10px;
652 margin-bottom: 15px;
653 border-bottom: 1px solid #eee;
654}
655
656.kobold-tab-btn {
657 padding: 10px 15px;
658 background: none;
659 border: none;
660 cursor: pointer;
661 font-size: 1em;
662 color: #999;
663 border-bottom: 3px solid transparent;
664 transition: all 0.3s;
665}
666
667.kobold-tab-btn.active {
668 color: #667eea;
669 border-bottom-color: #667eea;
670}
671
672.kobold-tab-btn:hover {
673 color: #667eea;
674}
675
676.kobold-tab-content {
677 display: none;
678}
679
680.kobold-tab-content.active {
681 display: block;
682}
683
684.kobold-stats-grid {
685 display: grid;
686 grid-template-columns: 1fr 1fr;
687 gap: 10px;
688}
689
690.stat-item {
691 padding: 10px;
692 background: #f9f9f9;
693 border-radius: 5px;
694}
695
696.stat-name {
697 font-weight: bold;
698 color: #333;
699 font-size: 0.85em;
700 text-transform: capitalize;
701}
702
703.stat-value {
704 color: #667eea;
705 font-size: 1.2em;
706 margin-top: 5px;
707}
708
709.stat-label {
710 color: #999;
711 font-size: 0.75em;
712}
713
714.kobold-inventory-list {
715 display: flex;
716 flex-direction: column;
717 gap: 8px;
718}
719
720.kobold-inventory-item {
721 padding: 10px;
722 background: #f9f9f9;
723 border-radius: 5px;
724 cursor: pointer;
725 transition: all 0.2s;
726}
727
728.kobold-inventory-item:hover {
729 background: #fef;
730 transform: translateX(5px);
731}
732
733.kobold-item-name {
734 font-weight: bold;
735 color: #333;
736}
737
738.kobold-inventory-empty {
739 padding: 20px;
740 text-align: center;
741 color: #999;
742 font-style: italic;
743}
744
745.kobold-injuries-list {
746 display: flex;
747 flex-direction: column;
748 gap: 8px;
749}
750
751.injury-item {
752 padding: 10px;
753 background: #fff7f7;
754 border: 1px solid #f2dede;
755 border-radius: 5px;
756}
757
758.injury-name {
759 font-weight: bold;
760 color: #b94a48;
761}
762
763.injury-desc {
764 color: #666;
765 font-size: 0.95em;
766}
767
768.injury-actions {
769 margin-top: 8px;
770 display: flex;
771 gap: 8px;
772}
773
774/* Config Screen */
775.config-container {
776 background: white;
777 padding: 40px;
778 border-radius: 10px;
779 box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
780 max-width: 600px;
781 width: 100%;
782}
783
784.config-container h2 {
785 color: #667eea;
786 margin-bottom: 30px;
787}
788
789.config-section {
790 margin-bottom: 30px;
791}
792
793.config-section h3 {
794 color: #333;
795 margin-bottom: 15px;
796}
797
798.config-list {
799 display: flex;
800 flex-direction: column;
801 gap: 10px;
802}
803
804.config-item {
805 display: flex;
806 align-items: center;
807 gap: 10px;
808 padding: 10px;
809 background: #f9f9f9;
810 border-radius: 5px;
811}
812
813.config-item input[type="checkbox"] {
814 width: 18px;
815 height: 18px;
816 cursor: pointer;
817}
818
819.config-item label {
820 flex: 1;
821 cursor: pointer;
822}
823
824/* Participant Selection */
825.participants-list {
826 display: flex;
827 flex-direction: column;
828 gap: 10px;
829 margin: 20px 0;
830 max-height: 400px;
831 overflow-y: auto;
832 border: 1px solid #ddd;
833 padding: 10px;
834 border-radius: 5px;
835}
836
837.participant-row {
838 display: flex;
839 align-items: center;
840 padding: 10px;
841 border: 1px solid #e0e0e0;
842 border-radius: 4px;
843 background: #fafafa;
844}
845
846.participant-row.eligible {
847 background: #f0f8ff;
848 border-color: #667eea;
849}
850
851.participant-row.eligible label {
852 cursor: pointer;
853 flex: 1;
854 display: flex;
855 align-items: center;
856 gap: 10px;
857}
858
859.participant-row.eligible input[type="checkbox"] {
860 cursor: pointer;
861 width: 18px;
862 height: 18px;
863}
864
865.participant-row.ineligible {
866 background: #f5f5f5;
867 border-color: #ccc;
868 opacity: 0.6;
869}
870
871.participant-disabled {
872 display: flex;
873 justify-content: space-between;
874 align-items: center;
875 width: 100%;
876 flex: 1;
877}
878
879.disabled-reason {
880 font-size: 0.85em;
881 color: #999;
882 font-style: italic;
883 margin-left: 10px;
884}
885
886.participant-footer {
887 display: flex;
888 justify-content: space-between;
889 align-items: center;
890 margin-top: 20px;
891 gap: 10px;
892}
893
894.participant-footer .counter {
895 font-size: 0.9em;
896 color: #666;
897}
898
899.participant-footer button {
900 flex: 1;
901 max-width: 150px;
902}
903
904/* Responsive */
905@media (max-width: 768px) {
906 .game-main {
907 flex-direction: column;
908 }
909
910 .game-right {
911 width: 100%;
912 border-right: none;
913 border-top: 2px solid #eee;
914 }
915
916 .kobold-grid {
917 grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
918 }
919}