BlueGit

blue-star tribegen

Files

tribegen / web / css / style.css

style.css

style.css 16.2 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: 1260px;
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 border-right: 2px solid #eee;
347 overflow-y: auto;
348 padding: 15px;
349 gap: 15px;
350}
351
352.environment {
353 flex: 0 0 auto;
354 width: 725px;
355 aspect-ratio: 1 / 1;
356 background: linear-gradient(to bottom, #87ceeb, #90ee90);
357 background-size: 100% 100%;
358 background-repeat: no-repeat;
359 background-position: center;
360 position: relative;
361 overflow: hidden;
362 border: 1px solid #ddd;
363 border-radius: 8px;
364}
365
366.placements {
367 position: absolute;
368 inset: 0;
369 pointer-events: auto;
370}
371
372.kobold-placement {
373 position: absolute;
374 width: 80px;
375 height: 80px;
376 transform: translate(-50%, -66.666%);
377 pointer-events: auto;
378 cursor: pointer;
379 image-rendering: pixelated;
380}
381
382.kobold-placement.flipped {
383 transform: translate(-50%, -66.666%) scaleX(-1);
384}
385
386.placement {
387 width: 60px;
388 height: 60px;
389 background: #ddd;
390 border-radius: 5px;
391 cursor: pointer;
392 display: flex;
393 align-items: center;
394 justify-content: center;
395 color: #666;
396 font-size: 0.8em;
397 text-align: center;
398 padding: 5px;
399 transition: all 0.3s;
400}
401
402.placement:hover {
403 background: #ccc;
404 transform: scale(1.05);
405}
406
407.environment-selection {
408 display: flex;
409 flex-direction: column;
410 gap: 12px;
411 margin-bottom: 20px;
412}
413
414.environment-select {
415 padding: 10px;
416 border: 1px solid #ddd;
417 border-radius: 6px;
418 font-size: 1em;
419}
420
421.environment-preview {
422 width: 50%;
423 aspect-ratio: 1 / 1;
424 border: 1px solid #ddd;
425 border-radius: 8px;
426 overflow: hidden;
427 background: #f9f9f9;
428 display: flex;
429 align-items: center;
430 justify-content: center;
431}
432
433.environment-preview img {
434 width: 100%;
435 height: 100%;
436 object-fit: cover;
437}
438
439.environment-description {
440 color: #666;
441 font-size: 0.95em;
442}
443
444.game-right {
445 width: 500px;
446 display: flex;
447 flex-direction: column;
448 overflow-y: auto;
449 padding: 15px;
450 gap: 15px;
451}
452
453.panel {
454 background: #f9f9f9;
455 border: 1px solid #ddd;
456 border-radius: 5px;
457 padding: 15px;
458 overflow-y: clip;
459 min-height: 200px;
460}
461
462.panel h3 {
463 color: #667eea;
464 margin-bottom: 10px;
465}
466
467.events-list {
468 display: flex;
469 flex-direction: column;
470 gap: 10px;
471}
472
473.tribe-list {
474 max-height: -webkit-fill-available;
475 overflow-y: auto;
476}
477
478.tribe-table {
479 width: 100%;
480 border-collapse: collapse;
481 table-layout: fixed;
482}
483
484.tribe-table td {
485 width: 50%;
486 vertical-align: top;
487 padding: 0 6px 10px;
488}
489
490.tribe-item-content {
491 display: flex;
492 align-items: center;
493}
494
495.tribe-cell-empty {
496 padding: 0 6px 10px;
497}
498
499.event-item,
500.tribe-item {
501 background: white;
502 border: 1px solid #ddd;
503 border-radius: 3px;
504 padding: 10px;
505 cursor: pointer;
506 transition: all 0.3s;
507 max-height: 50px;
508}
509
510.event-item:hover,
511.tribe-item:hover {
512 background: #f0f0f0;
513 border-color: #667eea;
514}
515
516.tribe-item {
517 display: flex;
518 justify-content: space-between;
519 align-items: center;
520}
521
522.tribe-item-name {
523 font-weight: bold;
524 color: #333;
525}
526
527.tribe-item-title {
528 font-size: 0.85em;
529 color: #666;
530}
531
532.tribe-item-age {
533 font-size: 0.8em;
534 color: #999;
535}
536
537.tribe-item.injured {
538 background: #ffe6e6;
539 border-color: #ff9999;
540}
541
542.tribe-item.injured:hover {
543 background: #ffcccc;
544 border-color: #ff6666;
545}
546
547.kobold-list-sprite {
548 max-height: 45px;
549}
550
551/* Modal */
552.modal {
553 position: fixed;
554 top: 0;
555 left: 0;
556 right: 0;
557 bottom: 0;
558 background: rgba(0, 0, 0, 0.7);
559 display: flex;
560 align-items: center;
561 justify-content: center;
562 z-index: 1000;
563}
564
565.modal.hidden {
566 display: none;
567}
568
569.modal-content {
570 background: white;
571 border-radius: 10px;
572 padding: 40px;
573 max-width: 600px;
574 width: 90%;
575 max-height: 80vh;
576 overflow-y: auto;
577 position: relative;
578}
579
580.modal-close {
581 position: absolute;
582 top: 10px;
583 right: 10px;
584 background: none;
585 border: none;
586 font-size: 2em;
587 cursor: pointer;
588 color: #999;
589}
590
591.modal-close:hover {
592 color: #333;
593}
594
595.event-story {
596 font-size: 1.1em;
597 line-height: 1.6;
598 color: #333;
599 margin-bottom: 20px;
600 white-space: pre-wrap;
601}
602
603/* Storage Window */
604.storage-header {
605 margin-bottom: 15px;
606 padding-bottom: 10px;
607 border-bottom: 1px solid #eee;
608}
609
610.food-display {
611 font-size: 0.8em;
612 font-weight: bold;
613 color: #667eea;
614}
615
616.storage-items {
617 display: flex;
618 flex-direction: column;
619 gap: 8px;
620 max-height: 100px;
621 overflow-y: auto;
622 overflow-x: hidden;
623}
624
625.storage-item {
626 background: #f9f9f9;
627 border-radius: 5px;
628 cursor: pointer;
629 transition: all 0.2s;
630}
631
632.storage-item:hover {
633 background: #efe;
634 transform: translateX(5px);
635}
636
637.storage-item-name {
638 font-weight: bold;
639 color: #333;
640}
641
642/* Item Modal */
643.item-modal {
644 max-width: 400px;
645}
646
647.item-modal-header {
648 margin-bottom: 15px;
649 border-bottom: 2px solid #667eea;
650 padding-bottom: 10px;
651}
652
653.item-modal-header h2 {
654 color: #667eea;
655 margin: 0;
656}
657
658.item-description {
659 margin-bottom: 15px;
660 line-height: 1.5;
661 color: #555;
662}
663
664.item-stat-mods {
665 margin-bottom: 15px;
666 padding: 10px;
667 background: #f5f5f5;
668 border-radius: 5px;
669}
670
671.stat-mod {
672 display: flex;
673 justify-content: space-between;
674 padding: 5px 0;
675 font-size: 0.9em;
676}
677
678.stat-mod.positive {
679 color: #28a745;
680}
681
682.stat-mod.negative {
683 color: #dc3545;
684}
685
686.stat-mod.neutral {
687 color: #999;
688}
689
690.item-modal-actions {
691 display: flex;
692 flex-direction: column;
693 gap: 10px;
694}
695
696.kobold-select {
697 padding: 10px;
698 border: 1px solid #ddd;
699 border-radius: 5px;
700 font-size: 1em;
701}
702
703#giveItemBtn:disabled {
704 opacity: 0.5;
705 cursor: not-allowed;
706}
707
708/* Kobold Modal */
709.kobold-modal {
710 max-width: 500px;
711 max-height: 80vh;
712 overflow-y: auto;
713}
714
715.kobold-modal-header {
716 margin-bottom: 15px;
717 border-bottom: 2px solid #667eea;
718 padding-bottom: 10px;
719}
720
721.kobold-modal-header h2 {
722 color: #667eea;
723 margin: 0 0 5px 0;
724}
725
726.kobold-age {
727 color: #999;
728 margin: 0;
729 font-size: 0.9em;
730}
731
732.kobold-description {
733 margin-bottom: 15px;
734 line-height: 1.5;
735 color: #555;
736}
737
738.kobold-tabs {
739 display: flex;
740 gap: 10px;
741 margin-bottom: 15px;
742 border-bottom: 1px solid #eee;
743}
744
745.kobold-tab-btn {
746 padding: 10px 15px;
747 background: none;
748 border: none;
749 cursor: pointer;
750 font-size: 1em;
751 color: #999;
752 border-bottom: 3px solid transparent;
753 transition: all 0.3s;
754}
755
756.kobold-tab-btn.active {
757 color: #667eea;
758 border-bottom-color: #667eea;
759}
760
761.kobold-tab-btn:hover {
762 color: #667eea;
763}
764
765.kobold-tab-content {
766 display: none;
767}
768
769.kobold-tab-content.active {
770 display: block;
771}
772
773.kobold-stats-grid {
774 display: grid;
775 grid-template-columns: 1fr 1fr;
776 gap: 10px;
777}
778
779.stat-item {
780 padding: 10px;
781 background: #f9f9f9;
782 border-radius: 5px;
783}
784
785.stat-name {
786 font-weight: bold;
787 color: #333;
788 font-size: 0.85em;
789 text-transform: capitalize;
790}
791
792.stat-value {
793 color: #667eea;
794 font-size: 1.2em;
795 margin-top: 5px;
796}
797
798.stat-label {
799 color: #999;
800 font-size: 0.75em;
801}
802
803.kobold-inventory-list {
804 display: flex;
805 flex-direction: column;
806 gap: 8px;
807}
808
809.kobold-inventory-item {
810 padding: 10px;
811 background: #f9f9f9;
812 border-radius: 5px;
813 cursor: pointer;
814 transition: all 0.2s;
815}
816
817.kobold-inventory-item:hover {
818 background: #fef;
819 transform: translateX(5px);
820}
821
822.kobold-item-name {
823 font-weight: bold;
824 color: #333;
825}
826
827.kobold-inventory-empty {
828 padding: 20px;
829 text-align: center;
830 color: #999;
831 font-style: italic;
832}
833
834.kobold-injuries-list {
835 display: flex;
836 flex-direction: column;
837 gap: 8px;
838}
839
840.injury-item {
841 padding: 10px;
842 background: #fff7f7;
843 border: 1px solid #f2dede;
844 border-radius: 5px;
845}
846
847.injury-name {
848 font-weight: bold;
849 color: #b94a48;
850}
851
852.injury-desc {
853 color: #666;
854 font-size: 0.95em;
855}
856
857.injury-actions {
858 margin-top: 8px;
859 display: flex;
860 gap: 8px;
861}
862
863.kobold-relationships-list {
864 display: flex;
865 flex-direction: column;
866 gap: 16px;
867}
868
869.relationships-section {
870 padding: 12px;
871 background: #f9f9f9;
872 border: 1px solid #e0e0e0;
873 border-radius: 5px;
874}
875
876.relationships-section h4 {
877 margin-bottom: 10px;
878 color: #667eea;
879 font-size: 1em;
880}
881
882.relationship-item {
883 display: flex;
884 justify-content: space-between;
885 align-items: center;
886 padding: 8px;
887 background: white;
888 border-radius: 4px;
889 margin-bottom: 6px;
890}
891
892.relationship-item:last-child {
893 margin-bottom: 0;
894}
895
896.relationship-name {
897 font-weight: 500;
898 color: #333;
899}
900
901.relationship-descriptor {
902 font-weight: bold;
903 font-size: 0.9em;
904}
905
906/* Config Screen */
907.config-container {
908 background: white;
909 padding: 40px;
910 border-radius: 10px;
911 box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
912 max-width: 600px;
913 width: 100%;
914}
915
916.config-container h2 {
917 color: #667eea;
918 margin-bottom: 30px;
919}
920
921.config-section {
922 margin-bottom: 30px;
923}
924
925.config-section h3 {
926 color: #333;
927 margin-bottom: 15px;
928}
929
930.config-list {
931 display: flex;
932 flex-direction: column;
933 gap: 10px;
934}
935
936.config-item {
937 display: flex;
938 align-items: center;
939 gap: 10px;
940 padding: 10px;
941 background: #f9f9f9;
942 border-radius: 5px;
943}
944
945.config-item input[type="checkbox"] {
946 width: 18px;
947 height: 18px;
948 cursor: pointer;
949}
950
951.config-item label {
952 flex: 1;
953 cursor: pointer;
954}
955
956/* Participant Selection */
957.participants-list {
958 display: flex;
959 flex-direction: column;
960 gap: 10px;
961 margin: 20px 0;
962 max-height: 400px;
963 overflow-y: auto;
964 border: 1px solid #ddd;
965 padding: 10px;
966 border-radius: 5px;
967}
968
969.participant-row {
970 display: flex;
971 align-items: center;
972 padding: 10px;
973 border: 1px solid #e0e0e0;
974 border-radius: 4px;
975 background: #fafafa;
976}
977
978.participant-row.eligible {
979 background: #f0f8ff;
980 border-color: #667eea;
981}
982
983.participant-row.eligible label {
984 cursor: pointer;
985 flex: 1;
986 display: flex;
987 align-items: center;
988 gap: 10px;
989}
990
991.participant-row.eligible input[type="checkbox"] {
992 cursor: pointer;
993 width: 18px;
994 height: 18px;
995}
996
997.participant-row.ineligible {
998 background: #f5f5f5;
999 border-color: #ccc;
1000 opacity: 0.6;
1001}
1002
1003.participant-disabled {
1004 display: flex;
1005 justify-content: space-between;
1006 align-items: center;
1007 width: 100%;
1008 flex: 1;
1009}
1010
1011.disabled-reason {
1012 font-size: 0.85em;
1013 color: #999;
1014 font-style: italic;
1015 margin-left: 10px;
1016}
1017
1018.participant-footer {
1019 display: flex;
1020 justify-content: space-between;
1021 align-items: center;
1022 margin-top: 20px;
1023 gap: 10px;
1024}
1025
1026.participant-footer .counter {
1027 font-size: 0.9em;
1028 color: #666;
1029}
1030
1031.participant-footer button {
1032 flex: 1;
1033 max-width: 150px;
1034}
1035
1036/* Responsive */
1037@media (max-width: 768px) {
1038 .game-main {
1039 flex-direction: column;
1040 }
1041
1042 .game-right {
1043 width: 100%;
1044 border-right: none;
1045 border-top: 2px solid #eee;
1046 }
1047
1048 .kobold-grid {
1049 grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
1050 }
1051}