BlueGit

blue-star tribegen

Files

tribegen / web / css / style.css

style.css

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