BlueGit

blue-star tribegen

Files

tribegen / web / css / style.css

style.css

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