BlueGit

blue-star tribegen

Files

tribegen / web / css / style.css

style.css

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