BlueGit

blue-star tribegen

Files

tribegen / web / css / style.css

style.css

show injuries in list
timfa Tim Falken · pushed by timfa · 9 months ago
def6bb39 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}
405
406.panel h3 {
407 color: #667eea;
408 margin-bottom: 10px;
409}
410
411.events-list,
412.tribe-list {
413 display: flex;
414 flex-direction: column;
415 gap: 10px;
416}
417
418.event-item,
419.tribe-item {
420 background: white;
421 border: 1px solid #ddd;
422 border-radius: 3px;
423 padding: 10px;
424 cursor: pointer;
425 transition: all 0.3s;
426}
427
428.event-item:hover,
429.tribe-item:hover {
430 background: #f0f0f0;
431 border-color: #667eea;
432}
433
434.tribe-item {
435 display: flex;
436 justify-content: space-between;
437 align-items: center;
438}
439
440.tribe-item-name {
441 font-weight: bold;
442 color: #333;
443}
444
445.tribe-item-age {
446 font-size: 0.8em;
447 color: #999;
448}
449
450.tribe-item.injured {
451 background: #ffe6e6;
452 border-color: #ff9999;
453}
454
455.tribe-item.injured:hover {
456 background: #ffcccc;
457 border-color: #ff6666;
458}
459
460/* Modal */
461.modal {
462 position: fixed;
463 top: 0;
464 left: 0;
465 right: 0;
466 bottom: 0;
467 background: rgba(0, 0, 0, 0.7);
468 display: flex;
469 align-items: center;
470 justify-content: center;
471 z-index: 1000;
472}
473
474.modal.hidden {
475 display: none;
476}
477
478.modal-content {
479 background: white;
480 border-radius: 10px;
481 padding: 40px;
482 max-width: 600px;
483 width: 90%;
484 max-height: 80vh;
485 overflow-y: auto;
486 position: relative;
487}
488
489.modal-close {
490 position: absolute;
491 top: 10px;
492 right: 10px;
493 background: none;
494 border: none;
495 font-size: 2em;
496 cursor: pointer;
497 color: #999;
498}
499
500.modal-close:hover {
501 color: #333;
502}
503
504.event-story {
505 font-size: 1.1em;
506 line-height: 1.6;
507 color: #333;
508 margin-bottom: 20px;
509 white-space: pre-wrap;
510}
511
512/* Storage Window */
513.storage-header {
514 margin-bottom: 15px;
515 padding-bottom: 10px;
516 border-bottom: 1px solid #eee;
517}
518
519.food-display {
520 font-size: 1.1em;
521 font-weight: bold;
522 color: #667eea;
523}
524
525.storage-items {
526 display: flex;
527 flex-direction: column;
528 gap: 8px;
529 max-height: 200px;
530 overflow-y: auto;
531}
532
533.storage-item {
534 padding: 10px;
535 background: #f9f9f9;
536 border-radius: 5px;
537 cursor: pointer;
538 transition: all 0.2s;
539}
540
541.storage-item:hover {
542 background: #efe;
543 transform: translateX(5px);
544}
545
546.storage-item-name {
547 font-weight: bold;
548 color: #333;
549}
550
551/* Item Modal */
552.item-modal {
553 max-width: 400px;
554}
555
556.item-modal-header {
557 margin-bottom: 15px;
558 border-bottom: 2px solid #667eea;
559 padding-bottom: 10px;
560}
561
562.item-modal-header h2 {
563 color: #667eea;
564 margin: 0;
565}
566
567.item-description {
568 margin-bottom: 15px;
569 line-height: 1.5;
570 color: #555;
571}
572
573.item-stat-mods {
574 margin-bottom: 15px;
575 padding: 10px;
576 background: #f5f5f5;
577 border-radius: 5px;
578}
579
580.stat-mod {
581 display: flex;
582 justify-content: space-between;
583 padding: 5px 0;
584 font-size: 0.9em;
585}
586
587.stat-mod.positive {
588 color: #28a745;
589}
590
591.stat-mod.negative {
592 color: #dc3545;
593}
594
595.stat-mod.neutral {
596 color: #999;
597}
598
599.item-modal-actions {
600 display: flex;
601 flex-direction: column;
602 gap: 10px;
603}
604
605.kobold-select {
606 padding: 10px;
607 border: 1px solid #ddd;
608 border-radius: 5px;
609 font-size: 1em;
610}
611
612#giveItemBtn:disabled {
613 opacity: 0.5;
614 cursor: not-allowed;
615}
616
617/* Kobold Modal */
618.kobold-modal {
619 max-width: 500px;
620 max-height: 80vh;
621 overflow-y: auto;
622}
623
624.kobold-modal-header {
625 margin-bottom: 15px;
626 border-bottom: 2px solid #667eea;
627 padding-bottom: 10px;
628}
629
630.kobold-modal-header h2 {
631 color: #667eea;
632 margin: 0 0 5px 0;
633}
634
635.kobold-age {
636 color: #999;
637 margin: 0;
638 font-size: 0.9em;
639}
640
641.kobold-description {
642 margin-bottom: 15px;
643 line-height: 1.5;
644 color: #555;
645}
646
647.kobold-tabs {
648 display: flex;
649 gap: 10px;
650 margin-bottom: 15px;
651 border-bottom: 1px solid #eee;
652}
653
654.kobold-tab-btn {
655 padding: 10px 15px;
656 background: none;
657 border: none;
658 cursor: pointer;
659 font-size: 1em;
660 color: #999;
661 border-bottom: 3px solid transparent;
662 transition: all 0.3s;
663}
664
665.kobold-tab-btn.active {
666 color: #667eea;
667 border-bottom-color: #667eea;
668}
669
670.kobold-tab-btn:hover {
671 color: #667eea;
672}
673
674.kobold-tab-content {
675 display: none;
676}
677
678.kobold-tab-content.active {
679 display: block;
680}
681
682.kobold-stats-grid {
683 display: grid;
684 grid-template-columns: 1fr 1fr;
685 gap: 10px;
686}
687
688.stat-item {
689 padding: 10px;
690 background: #f9f9f9;
691 border-radius: 5px;
692}
693
694.stat-name {
695 font-weight: bold;
696 color: #333;
697 font-size: 0.85em;
698 text-transform: capitalize;
699}
700
701.stat-value {
702 color: #667eea;
703 font-size: 1.2em;
704 margin-top: 5px;
705}
706
707.stat-label {
708 color: #999;
709 font-size: 0.75em;
710}
711
712.kobold-inventory-list {
713 display: flex;
714 flex-direction: column;
715 gap: 8px;
716}
717
718.kobold-inventory-item {
719 padding: 10px;
720 background: #f9f9f9;
721 border-radius: 5px;
722 cursor: pointer;
723 transition: all 0.2s;
724}
725
726.kobold-inventory-item:hover {
727 background: #fef;
728 transform: translateX(5px);
729}
730
731.kobold-item-name {
732 font-weight: bold;
733 color: #333;
734}
735
736.kobold-inventory-empty {
737 padding: 20px;
738 text-align: center;
739 color: #999;
740 font-style: italic;
741}
742
743.kobold-injuries-list {
744 display: flex;
745 flex-direction: column;
746 gap: 8px;
747}
748
749.injury-item {
750 padding: 10px;
751 background: #fff7f7;
752 border: 1px solid #f2dede;
753 border-radius: 5px;
754}
755
756.injury-name {
757 font-weight: bold;
758 color: #b94a48;
759}
760
761.injury-desc {
762 color: #666;
763 font-size: 0.95em;
764}
765
766.injury-actions {
767 margin-top: 8px;
768 display: flex;
769 gap: 8px;
770}
771
772/* Config Screen */
773.config-container {
774 background: white;
775 padding: 40px;
776 border-radius: 10px;
777 box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
778 max-width: 600px;
779 width: 100%;
780}
781
782.config-container h2 {
783 color: #667eea;
784 margin-bottom: 30px;
785}
786
787.config-section {
788 margin-bottom: 30px;
789}
790
791.config-section h3 {
792 color: #333;
793 margin-bottom: 15px;
794}
795
796.config-list {
797 display: flex;
798 flex-direction: column;
799 gap: 10px;
800}
801
802.config-item {
803 display: flex;
804 align-items: center;
805 gap: 10px;
806 padding: 10px;
807 background: #f9f9f9;
808 border-radius: 5px;
809}
810
811.config-item input[type="checkbox"] {
812 width: 18px;
813 height: 18px;
814 cursor: pointer;
815}
816
817.config-item label {
818 flex: 1;
819 cursor: pointer;
820}
821
822/* Participant Selection */
823.participants-list {
824 display: flex;
825 flex-direction: column;
826 gap: 10px;
827 margin: 20px 0;
828 max-height: 400px;
829 overflow-y: auto;
830 border: 1px solid #ddd;
831 padding: 10px;
832 border-radius: 5px;
833}
834
835.participant-row {
836 display: flex;
837 align-items: center;
838 padding: 10px;
839 border: 1px solid #e0e0e0;
840 border-radius: 4px;
841 background: #fafafa;
842}
843
844.participant-row.eligible {
845 background: #f0f8ff;
846 border-color: #667eea;
847}
848
849.participant-row.eligible label {
850 cursor: pointer;
851 flex: 1;
852 display: flex;
853 align-items: center;
854 gap: 10px;
855}
856
857.participant-row.eligible input[type="checkbox"] {
858 cursor: pointer;
859 width: 18px;
860 height: 18px;
861}
862
863.participant-row.ineligible {
864 background: #f5f5f5;
865 border-color: #ccc;
866 opacity: 0.6;
867}
868
869.participant-disabled {
870 display: flex;
871 justify-content: space-between;
872 align-items: center;
873 width: 100%;
874 flex: 1;
875}
876
877.disabled-reason {
878 font-size: 0.85em;
879 color: #999;
880 font-style: italic;
881 margin-left: 10px;
882}
883
884.participant-footer {
885 display: flex;
886 justify-content: space-between;
887 align-items: center;
888 margin-top: 20px;
889 gap: 10px;
890}
891
892.participant-footer .counter {
893 font-size: 0.9em;
894 color: #666;
895}
896
897.participant-footer button {
898 flex: 1;
899 max-width: 150px;
900}
901
902/* Responsive */
903@media (max-width: 768px) {
904 .game-main {
905 flex-direction: column;
906 }
907
908 .game-right {
909 width: 100%;
910 border-right: none;
911 border-top: 2px solid #eee;
912 }
913
914 .kobold-grid {
915 grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
916 }
917}