This doesn't look good.
[heroik.git] / heroik.css
1 /* The person who associated a work with this deed has dedicated the
2 work to the public domain by waiving all of his or her rights to
3 the work worldwide under copyright law, including all related and
4 neighboring rights, to the extent allowed by law.
5
6 You can copy, modify, distribute and perform the work, even for
7 commercial purposes, all without asking permission.
8
9 See https://creativecommons.org/publicdomain/zero/1.0/ for details.
10 */
11
12 @font-face {
13 font-family: Oranienbaum;
14 font-style: normal;
15 font-weight: 400;
16 src: url('Oranienbaum-Regular.woff') format('woff');
17 }
18
19 @font-face {
20 font-family: Cardo;
21 font-style: normal;
22 font-weight: 400;
23 src: url('Cardo-Regular.woff') format('woff');
24 }
25
26 @font-face {
27 font-family: Cardo;
28 font-style: normal;
29 font-weight: 700;
30 src: url('Cardo-Bold.woff') format('woff');
31 }
32
33 @font-face {
34 font-family: Cardo;
35 font-style: italic;
36 font-weight: 400;
37 src: url('Cardo-Italic.woff') format('woff');
38 }
39
40 * {
41 margin: 0;
42 padding: 0;
43 }
44
45 #change {
46 position: relative;
47 top: 1em;
48 }
49
50 ul {
51 margin-left: 1em;
52 margin-bottom: 1em;
53 }
54
55 ul.cards {
56 list-style-type: none;
57 display: inline-block;
58 margin: auto;
59 }
60
61 html {
62 font-family: Cardo, serif;
63 font-size: 20px;
64 background-color: black;
65 min-height: 100%;
66 height: 100%;
67 }
68
69 @media (max-width: 639px) {
70 html { font-size: 14px; }
71 }
72
73 body {
74 background-color: black;
75 min-height: 100%;
76 height: 100%;
77 box-sizing: border-box;
78 }
79
80 body.standalone {
81 padding-top: 20px;
82 }
83
84 main {
85 background-color: white;
86 max-width: 25.2em;
87 margin: 0 auto;
88 padding: 1em;
89 display: block;
90 min-height: 100%;
91 box-sizing: border-box;
92 }
93
94 body.standalone main {
95 padding-top: 0.5em;
96 }
97
98 table {
99 border-collapse: collapse;
100 margin: auto;
101 max-width: 25em;
102 }
103
104 table.tall td {
105 padding-top: 0.125em;
106 padding-bottom: 0.125em;
107 }
108
109 thead {
110 font-size: 0.8em;
111 font-variant: small-caps;
112 vertical-align: bottom;
113 text-align: left;
114 }
115
116 th {
117 font-weight: bold;
118 }
119
120 tbody, tfoot {
121 vertical-align: top;
122 text-align: left;
123 }
124
125
126 tbody tr:nth-last-child(odd) {
127 background-color: hsl(270, 30%, 85%);
128 }
129
130 #fate th:first-child, #fate td:first-child {
131 text-align: center;
132 width: 2em;
133 }
134
135 #abilities td {
136 text-align: justify;
137 -webkit-hyphens: auto;
138 -moz-hyphens: auto;
139 -ms-hyphens: auto;
140 hyphens: auto;
141 }
142
143 #abilities td:first-child {
144 white-space: nowrap;
145 }
146
147
148 th, td {
149 padding: 0 0.5rem;
150 }
151
152 h1:before {
153 content: '\25cf';
154 color: #dae9bc;
155 text-shadow: -0.08333em -0.08333em 0.25em #aec38b,
156 0.08333em -0.08333em 0.25em #aec38b,
157 0.08333em 0.08333em 0 #534f53,
158 -0.08333em 0.08333em 0 #534f53,
159 0 0.1667em 0 #414045;
160 -webkit-text-stroke: 0;
161 display: inline-block;
162 width: 1em;
163 margin-top: -0.1em;
164 vertical-align: top;
165 margin-left: -1em;
166 }
167
168 h1 {
169 padding-left: 1em;
170 margin-top: 1em;
171 margin-bottom: 0.5em;
172 font-family: Oranienbaum, Cardo, serif;
173 color: hsl(270, 25%, 75%);
174 font-size: 2em;
175 text-shadow: none;
176 border-bottom: solid hsl(270, 25%, 50%) 0.0625em;
177 line-height: 0.8em;
178 font-weight: normal;
179 letter-spacing: -0.02em;
180 text-shadow: -1px 0 black, 1px 0 black,
181 0 1px black, 0 -1px black,
182 -0.707px -0.707px black, 0.707px 0.707px black,
183 -0.707px 0.707px black, 0.707px -0.707px black;
184 }
185
186 h1:first-child {
187 margin-top: 0;
188 }
189
190 h2:before {
191 content: '\25fc';
192 color: #00a1eb;
193 font-size: 1.5em;
194 width: 0.55em;
195 display: inline-block;
196 }
197
198 h2 {
199 height: 1.15em;
200 font-size: 1.25em;
201 font-family: Oranienbaum, Cardo, serif;
202 text-align: left;
203 letter-spacing: -1px;
204 z-index: 1;
205 border-bottom: solid hsl(270, 30%, 85%) 0.25em;
206 padding-right: 1em;
207 white-space: nowrap;
208 margin-bottom: 0.5em;
209 font-weight: bold;
210 }
211
212 a:link, a:visited, a:active {
213 color: hsl(270, 25%, 50%);
214 font-weight: bold;
215 text-decoration: none;
216 }
217
218 .fate-name { font-weight: bold; }
219 .fate-effect { font-style: italic; font-size: 0.95em; }
220 .fate-action { font-size: 0.95em; }
221
222 input[type=checkbox] {
223 margin-right: 0.5em;
224 }
225
226 .button {
227 font-size: 1.1em;
228 font-weight: bold;
229 color: black !important;
230 background-color: hsl(270, 30%, 85%);
231 margin: 0.0625em 0;
232 padding: 0.375em 0.5em;
233 display: inline-block;
234 border-radius: 0 0.5em 0 0.5em;
235 transition: box-shadow 0.167s, border-color 0.167s, opacity 0.333s;
236 -webkit-transition: box-shadow 0.167s, border-color 0.167s, opacity 0.333s;
237 box-shadow: 0.125em 0.125em 0.25em 0.0625em #aaa;
238 border: solid hsl(270, 30%, 85%) 1px;
239 min-width: 6em;
240 }
241
242 .button.small {
243 min-width: 1.25em;
244 }
245
246 .button:hover, .button:focus {
247 box-shadow: 0.125em 0.125em 0.25em 0.0625em #888;
248 border-color: hsl(270, 25%, 50%);
249 }
250
251 .button:active {
252 box-shadow: 0.0625em 0.0625em 0.0625em 0.0625em #888;
253 }
254
255 main > div, main > noscript {
256 text-align: center;
257 margin-bottom: 1rem;
258 display: block;
259 }
260
261 ul.cards li {
262 padding: 0.25em 0;
263 display: inline-block;
264 width: 8em;
265 }
266
267 select {
268 -webkit-appearance: none;
269 -moz-appearance: none;
270 appearance: none;
271 font-family: Cardo, serif;
272 font-size: 1.1em;
273 margin-top: 0.5em;
274 width: 60%;
275 margin-left: 20%;
276 padding: 0 0.5em;
277 border: solid hsl(270, 30%, 85%) 1px;
278 border-radius: 0 0.5em 0 0.5em;
279 background-color: hsl(270, 30%, 85%);
280 box-shadow: 0.125em 0.125em 0.25em 0.0625em #aaa;
281 transition: box-shadow 0.167s, border-color 0.167s;
282 -webkit-transition: box-shadow 0.167s, border-color 0.167s;
283 text-align:-webkit-center !important;
284 font-weight: bold;
285 }
286
287 select:hover, select:focus {
288 box-shadow: 0.125em 0.125em 0.25em 0.0625em #888;
289 border-color: hsl(270, 25%, 50%);
290 outline: none;
291 }
292
293 select:active {
294 box-shadow: 0.0625em 0.0625em 0.0625em 0.0625em #888;
295 outline: none;
296 }
297
298 option {
299 -webkit-appearance: none;
300 -moz-appearance: none;
301 appearance: none;
302 font-family: Cardo, serif;
303 background-color: white;
304 text-align: center;
305 font-weight: normal;
306 }
307
308 p, li {
309 text-align: justify;
310 -webkit-hyphens: auto;
311 -moz-hyphens: auto;
312 -ms-hyphens: auto;
313 hyphens: auto;
314 }
315
316 p {
317 margin-bottom: 0.5em;
318 }
319
320 blockquote {
321 text-align: justify;
322 font-style: italic;
323 margin-left: 1em;
324 margin-right: 1em;
325 margin-bottom: 0.5em;
326 font-size: 0.95em;
327 }
328
329 @keyframes row-content-in {
330 0% { max-height: 0; opacity: 0; }
331 50% { max-height: 10em; }
332 100% { opacity: 1; }
333 }
334 @-webkit-keyframes row-content-in {
335 0% { max-height: 0; opacity: 0; }
336 50% { max-height: 10em; }
337 100% { opacity: 1; }
338 }
339
340 table {
341 width: 100%;
342 }
343
344 #fate tbody tr div {
345 max-height: 10em;
346 animation: row-content-in 0.6667s;
347 -webkit-animation: row-content-in 0.6667s;
348 }
349
350 #fate tbody ~ tfoot {
351 transition: opacity 0.3333s, visibility 0s 0.3333s;
352 -webkit-transition: opacity 0.3333s, visibility 0s 0.3333s;
353 opacity: 0;
354 visibility: hidden;
355 }
356
357 #fate tbody:empty ~ tfoot {
358 opacity: 1;
359 visibility: visible;
360 }
361
362 .button.big {
363 display: inline-block;
364 width: 35%;
365 padding-top: 1em;
366 padding-bottom: 1em;
367 margin: 0.5em 0.5em;
368 }
369
370 .card1 {
371 width: 2.5em;
372 background-color: white;
373 display: inline-block;
374 margin: 0.2em 0.375em;
375 border: solid 1px black;
376 }
377
378 .card2 {
379 width: 2.5em;
380 background-color: black;
381 display: inline-block;
382 margin: 0.2em 0.375em;
383 border: solid 1px black;
384 color: white;
385 }
386
387 .card {
388 display: block;
389 position: relative;
390 width: 20em;
391 height: 27.1875em;
392 font-size: 88.275%;
393 margin: 0.5em auto;
394 z-index: 1;
395 }
396
397 .card:after {
398 content: '';
399 display: block;
400 position:absolute;
401 width:100%;
402 height:100%;
403 left:0;
404 top:0;
405 background-image: url(card.png);
406 background-size: cover;
407 z-index: -1;
408 }
409
410 .card .art {
411 position: absolute;
412 z-index: -1;
413 left: 9.5%;
414 right: 9.5%;
415 width: 81%;
416 height: auto;
417 top: 7.1%;
418 }
419
420 .card.adventurer .name, .card.adventurer .type {
421 background-color: #4ba12f;
422 }
423
424 .card.object .name, .card.object .type {
425 background-color: #cdab4c;
426 }
427
428 .card .name {
429 position: absolute;
430 color: white;
431 text-align: center;
432 width: 77%;
433 border: solid white 0.1em;
434 border-radius: 0.6em;
435 line-height: 1.6em;
436 height: 5.4%;
437 font-size: 0.85em;
438 left: 11.5%;
439 right: 11.5%;
440 top: 3.5%;
441 box-sizing: border-box;
442 text-shadow: -1px -1px rgba(0, 0, 0, 0.75),
443 1px -1px rgba(0, 0, 0, 0.75),
444 -1px 1px rgba(0, 0, 0, 0.75),
445 1px 1px rgba(0, 0, 0, 0.75),
446 1px 0 black,
447 -1px 0 black,
448 0 1px black,
449 0 -1px black;
450 }
451
452 .card .type {
453 color: black;
454 letter-spacing: 0.05em;
455 font-weight: bold;
456 text-shadow: -0.707px -0.707px rgba(255, 255, 255, 0.75),
457 0.707px -0.707px rgba(255, 255, 255, 0.75),
458 -0.707px 0.707px rgba(255, 255, 255, 0.75),
459 0.707px 0.707px rgba(255, 255, 255, 0.75),
460 1px 0 white,
461 -1px 0 white,
462 0 1px white,
463 0 -1px white;
464 text-align: left;
465 margin: auto;
466 position: absolute;
467 height: 2.55%;
468 width: 84%;
469 left: 8%;
470 top: 52.3333%;
471 box-sizing: border-box;
472 padding-left: 0.6667em;
473 font-size: 0.575em;
474 line-height: 1.25em;
475 box-shadow: inset 0 0 0.25em black;
476 }
477
478 .card .gender {
479 position: absolute;
480 height: 9%;
481 top: 47.5%;
482 right: 8.5%;
483 }
484
485 .card .gender img {
486 float: right;
487 height: 100%;
488 }
489
490 .card .abilities {
491 text-align: left;
492 position: absolute;
493 top: 57%;
494 bottom: 8%;
495 left: 10%;
496 right: 10%;
497 font-size: 0.8em;
498 line-height: 1.05em;
499 padding-left: 1em;
500 }
501
502 .card .cost span {
503 position: relative;
504 content: ' ';
505 width: 1.5em;
506 height: 1.5em;
507 border-radius: 1.5em;
508 display: inline-block;
509 box-sizing: border-box;
510 margin: 0.5em 0.05em;
511 box-shadow: 0 0 0.05em 0.05em black;
512 background-image: url(sword.png);
513 background-size: 0.2778em 1.3em;
514 background-position: center;
515 background-repeat: no-repeat;
516 text-align: center;
517 }
518
519 .card .cost span:before, .card .cost span:after {
520 position: absolute;
521 line-height: 1.333em;
522 width: 1.5em;
523 height: 1.5em;
524 display: block;
525 transform-origin: 50% 65%;
526 background-image: url(sword.png);
527 background-size: 0.2778em 1.3em;
528 background-position: center;
529 background-repeat: no-repeat;
530 }
531
532 .card .cost .r:before {
533 transform: rotate(30deg);
534 -webkit-transform: rotate(30deg);
535 content: '';
536 }
537
538 .card .cost .r img {
539 /* :( would prefer with no extra elements... */
540 transform: rotate(60deg);
541 max-width: 1.3em;
542 position: absolute;
543 max-height: 1.3em;
544 transform-origin: 50% 65%;
545 left: 0.6em;
546 top: 0.1em;
547 }
548
549 .card .cost .r:after {
550 transform: rotate(-30deg);
551 -webkit-transform: rotate(-30deg);
552 content: '';
553 }
554
555 .card .cost .r {
556 transform: rotate(-15deg);
557 background-color: #e4573c;
558 }
559 .card .cost .g {
560 background-color: #abbc45;
561 }
562
563 .card .abilities .skill:before {
564 content: "Skill: ";
565 font-weight: bold;
566 margin-left: -1em;
567 }
568
569 .card .abilities .temporary:before {
570 content: "Temporary power: ";
571 font-weight: bold;
572 margin-left: -1em;
573 }
574
575 .card .abilities .ultimate:before {
576 content: "Ultimate power: ";
577 font-weight: bold;
578 margin-left: -1em;
579 }
580
581 .card .effect {
582 text-align: center;
583 position: absolute;
584 top: 59%;
585 bottom: 8%;
586 left: 15%;
587 width: 70%;
588 font-size: 0.8em;
589 line-height: 1.05em;
590 }
591
592 .card .flavor:before { content: "«"; }
593 .card .flavor:after { content: "»"; }
594 .card .flavor {
595 position: absolute;
596 bottom: 9%;
597 width: 80%;
598 left: 10%;
599 font-style: italic;
600 color: black;
601 font-size: 0.6em;
602 }
603
604 .card .code {
605 position: absolute;
606 color: white;
607 bottom: 3.5%;
608 right: 12%;
609 font-size: 0.65em;
610 text-shadow: -0.0433em -0.0433em black,
611 0.0433em -0.0433em black,
612 -0.0433em 0.0433em black,
613 0.0433em 0.0433em black,
614 0.06667em 0 black,
615 -0.06667em 0 black,
616 0 0.06667em black,
617 0 -0.06667em black;
618 }
619
620
621 .card.dungeon {
622 height: 17.5841em;
623 width: 25em;
624 }
625
626 .card.dungeon:after {
627 background-image: url(dungeon.jpg);
628 }
629
630 .card.final .name, .card.final .type {
631 background-color: #832b22;
632 }
633
634 .card.dungeon .name {
635 position: absolute;
636 color: #e3f902;
637 top: 2%;
638 height: 7.5%;
639 }
640
641 .card.dungeon .type {
642 color: #e3f902;
643 left: 2.25%;
644 right: 2.25%;
645 width: 95.5%;
646 height: 4.5%;
647 top: 74%;
648 text-shadow: -0.707px -0.707px rgba(0, 0, 0, 0.75),
649 0.707px -0.707px rgba(0, 0, 0, 0.75),
650 -0.707px 0.707px rgba(0, 0, 0, 0.75),
651 0.707px 0.707px rgba(0, 0, 0, 0.75),
652 1px 0 black,
653 -1px 0 black,
654 0 1px black,
655 0 -1px black;
656 }
657
658 .card.dungeon .power img {
659 max-height: 1.5em;
660 vertical-align: bottom;
661 }
662 .card.dungeon .power {
663 font-size: 0.85em;
664 position: absolute;
665 top: 67%;
666 height: 1em;
667 color: white;
668 left: 68%;
669 width: 15%;
670 text-align: center;
671 text-shadow: -0.707px -0.707px rgba(0, 0, 0, 0.75),
672 0.707px -0.707px rgba(0, 0, 0, 0.75),
673 -0.707px 0.707px rgba(0, 0, 0, 0.75),
674 0.707px 0.707px rgba(0, 0, 0, 0.75),
675 1px 0 black,
676 -1px 0 black,
677 0 1px black,
678 0 -1px black;
679 }
680
681 .card.dungeon .effect {
682 color: #e30000;
683 text-shadow: -0.707px -0.707px rgba(255, 255, 255, 0.75),
684 0.707px -0.707px rgba(255, 255, 255, 0.75),
685 -0.707px 0.707px rgba(255, 255, 255, 0.75),
686 0.707px 0.707px rgba(255, 255, 255, 0.75),
687 1px 0 white,
688 -1px 0 white,
689 0 1px white,
690 0 -1px white;
691 font-size: 0.55em;
692 top: 83%;
693 left: 5%;
694 right: 5%;
695 width: 90%;
696 font-weight: bold;
697 }
698
699 .card.dungeon .code {
700 right: 4%;
701 bottom: 1.8%;
702 }
703
704 #statusbar {
705 display: none;
706 position: fixed;
707 left: 0;
708 top: 0;
709 right: 0;
710 height: 20px;
711 background-color: black;
712 }
713
714 body.standalone #statusbar {
715 display: block;
716 }
717
718 h1, h2, [onclick], label {
719 -webkit-user-select: none;
720 -moz-user-select: none;
721 user-select: none;
722 -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
723 cursor: default;
724 }
725
726 [onclick], select, label {
727 cursor: pointer;
728 }
729
730 @media print {
731
732 @page {
733 size: 3.5in 7in;
734 margin: 0.5em;
735 }
736 .no-print {
737 display: none !important;
738 }
739
740 body, html {
741 background-color: white;
742 font-size: 10pt;
743 }
744
745 main {
746 max-width: 3.5in;
747 }
748
749 .card {
750 width: 64mm;
751 height: 87mm;
752 font-size: 9pt;
753 page-break-inside: avoid;
754 }
755 }
756
757 @media all and (-webkit-min-device-pixel-ratio:0) {
758 h1 {
759 text-shadow: none;
760 -webkit-text-stroke: 0.02em black;
761 }
762
763 .broken-on-webkit {
764 display: none !important;
765 }
766
767 }