0906772adc33efac5ea7fc27f46eba850a61df99
[yukkurigames.com.git] / css / main.css
1 @font-face {
2 font-family: 'Fira Sans';
3 font-style: normal;
4 font-weight: 300;
5 src: local('Fira Sans OT Light'), local('Fira Sans Light'), url(FiraSans-Light.woff) format('woff');
6 }
7
8 @font-face {
9 font-family: 'Fira Sans';
10 font-style: italic;
11 font-weight: 300;
12 src: local('Fira Sans OT Light Italic'), local('Fira Sans Light Italic'), url(FiraSans-LightItalic.woff) format('woff');
13 }
14
15 @font-face {
16 font-family: 'Fira Sans';
17 font-style: normal;
18 font-weight: 400;
19 src: local('Fira Sans OT'), local('Fira Sans'), url(FiraSans-Regular.woff) format('woff');
20 }
21
22 @font-face {
23 font-family: 'Fira Sans';
24 font-style: normal;
25 font-weight: 700;
26 src: local('Fira Sans OT Bold'), local('Fira Sans Bold'), url(FiraSans-Bold.woff) format('woff');
27 }
28
29 @font-face {
30 font-family: 'Fira Sans';
31 font-style: italic;
32 font-weight: 400;
33 src: local('Fira Sans OT Italic'), local('Fira Sans Italic'), url(FiraSans-Italic.woff) format('woff');
34 }
35
36 @font-face {
37 font-family: 'Fira Sans';
38 font-style: italic;
39 font-weight: 700;
40 src: local('Fira Sans OT Bold Italic'), local('Fira Sans Bold Italic'), url(FiraSans-BoldItalic.woff) format('woff');
41 }
42
43 @font-face {
44 font-family: 'Fira Mono';
45 font-style: normal;
46 font-weight: 400;
47 src: local('Fira Mono OT'), local('Fira Mono'), url(FiraMono-Regular.woff) format('woff');
48 }
49
50 @font-face {
51 font-family: 'Fira Mono';
52 font-style: normal;
53 font-weight: 700;
54 src: local('Fira Mono OT Bold'), local('Fira Mono Bold'), url(FiraMono-Bold.woff) format('woff');
55 }
56
57 * {
58 padding: 0;
59 margin: 0;
60 font-weight: normal;
61 text-decoration: none;
62 }
63
64 header * {
65 outline: none;
66 }
67
68 strong { font-weight: bold; }
69 em { font-style: italic; }
70
71 a:link, [onclick] {
72 text-decoration: underline;
73 cursor: pointer;
74 }
75
76 html {
77 font-family: "Fira Sans", sans-serif;
78 font-size: 16px;
79 background-color: rgb(226, 192, 242);
80 background-image: linear-gradient(rgb(226, 192, 242), rgb(244, 199, 199) 100%);
81 background-attachment: fixed;
82 padding: 0 1em;
83 height: 100%;
84 background-repeat: no-repeat;
85 }
86
87 body {
88 border-top: solid rgb(206, 132, 242) 0.75em;
89 border-bottom: solid rgb(244, 126, 126) 0.75em;
90 border-radius: 2em;
91 margin: 0.25em auto;
92 color: black;
93 background-color: white;
94 max-width: 56em;
95 padding: 0 1em;
96 }
97
98 header {
99 border-top: solid rgb(206, 132, 242) 0.5em;
100 border-bottom: solid rgb(244, 126, 126) 0.5em;
101 border-radius: 2em;
102 height: 6em;
103 transition: border-color 0.5s;
104 white-space: nowrap;
105 text-align: right;
106 margin: 0 -1em;
107 margin-top: -0.75em;
108 background-color: white;
109 }
110
111 header img {
112 float: left;
113 height: 100%;
114 width: auto;
115 }
116
117 header h1 {
118 font-size: 3em;
119 font-weight: normal;
120 margin-right: 0.25em;
121 display: inline-block;
122 height: 100%;
123 line-height: 2em;
124 }
125
126 header:hover {
127 border-top-color: rgb(244, 126, 126);
128 border-bottom-color: rgb(206, 132, 242);
129 }
130
131 img.logo {
132 -webkit-transition: -webkit-transform 1.5s;
133 transition: transform 1.5s;
134 -webkit-transition-delay: 0.5s;
135 transition-delay: 0.5s;
136 -webkit-transition-timing-function: cubic-bezier(0.4, 0.2, 0.5, 1.3);
137 transition-timing-function: cubic-bezier(0.4, 0.2, 0.5, 1.3);
138 }
139
140 img.logo:hover {
141 -webkit-transform: rotate(360deg);
142 transform: rotate(360deg);
143 }
144
145 h2 {
146 border-top: solid rgb(206, 132, 242) 1px;
147 border-left: solid rgb(206, 132, 242) 1px;
148 border-radius: 1em 0 0 1em;
149 font-size: 1.25em;
150 font-weight: 300;
151 margin-left: -0.67em;
152 margin-right: -0.67em;
153 margin-top: 1.5em;
154 margin-bottom: 0.5em;
155 padding-left: 0.5em;
156 padding-top: 0.125em;
157 }
158
159 h3 {
160 border-top: solid rgb(206, 132, 242) 1px;
161 border-left: solid rgb(206, 132, 242) 1px;
162 border-radius: 1.5em;
163 display: inline-block;
164 font-size: 1.125em;
165 font-weight: 300;
166 margin-bottom: 0;
167 margin-left: -0.445em;
168 padding-left: 0.67em;
169 padding-right: 0.67em;
170 }
171
172 a:link, [onclick] {
173 color: rgb(206, 132, 242);
174 transition: color 0.3s;
175 }
176
177 a:visited {
178 color: rgb(206, 132, 242);
179 }
180
181 a:hover, [onclick]:hover {
182 color: rgb(244, 126, 126);
183 }
184
185 main {
186 display: block;
187 padding: 1em;
188 max-width: 50em;
189 margin: auto;
190 }
191
192 main > *:first-child {
193 margin-top: 0;
194 }
195
196 p, li {
197 line-height: 125%;
198 }
199
200 main > p {
201 max-width: 45em;
202 margin: 1em auto;
203 }
204
205 main > ul {
206 max-width: 40em;
207 margin: 1em auto;
208 }
209
210 main > ul > li {
211 margin: 0.5em auto;
212 }
213
214 hr {
215 margin-top: 0;
216 margin-bottom: 1em;
217 border: 0;
218 border-bottom: solid rgb(206, 132, 242) 1px;
219 height: 2em;
220 }
221
222 .highlight {
223 border-bottom: solid rgb(206, 132, 242) 0.125em;
224 border-top: solid rgb(206, 132, 242) 0.125em;
225 border-radius: 1em;
226 font-weight: 300;
227 padding: 1em 3em;
228 transition: border-radius 0.3s;
229 box-sizing: border-box;
230 }
231
232 .highlight:hover {
233 border-radius: 3em;
234 }
235
236 .game-preview {
237 padding: 0;
238 text-align: center;
239 width: 100%;
240 max-width: 37em;
241 margin: auto;
242 list-style-type: none;
243 }
244
245 .game-preview > li {
246 position: relative;
247 border: solid rgb(206, 132, 242) 1px;
248 margin-bottom: 1.5em;
249 margin-top: 1em;
250 margin-left: 2.5em;
251 border-left-width: 0;
252 height: 8em;
253 transition: border-radius 0.3s, border-color 0.3s;
254 padding-left: 4em;
255 box-sizing: border-box;
256 border-radius: 0 3em 3em 0;
257 }
258
259 .game-preview > li:nth-child(even) {
260 padding-left: 0;
261 padding-right: 4em;
262 margin-right: 2.5em;
263 margin-left: 0;
264 border-left-width: 1px;
265 border-right-width: 0;
266 border-radius: 3em 0 0 3em;
267 }
268
269 .game-preview > li:hover {
270 border-radius: 0 0.25em 0.25em 0;
271 border-color: rgb(244, 126, 126);
272 }
273
274 .game-preview > li img {
275 border: solid rgb(206, 132, 242) 1px;
276 position: absolute;
277 border-radius: 50%;
278 top: -1px;
279 left: -4em;
280 height: 8em;
281 width: 8em;
282 opacity: 0.75;
283 transition: border-radius 0.3s, border-color 0.3s, opacity 0.3s;
284 box-sizing: border-box;
285 }
286
287 .game-preview > li:nth-child(even) img {
288 left: auto;
289 right: -4em;
290 }
291
292 .game-preview > li:hover img {
293 border-radius: 0;
294 border-color: rgb(244, 126, 126);
295 opacity: 1.0;
296 }
297
298 .game-preview .info {
299 position: relative;
300 height: 100%;
301 }
302
303 .game-preview .info h4 {
304 color: inherit;
305 font-style: italic;
306 padding-left: 0.125em;
307 padding-right: 0.125em;
308 text-decoration: none;
309 text-align: center;
310 box-sizing: border-box;
311 padding-top: 0.25em;
312 font-size: 1.125em;
313 }
314
315 .game-preview li:nth-child(odd) .info h4,
316 .game-preview li:nth-child(odd) .info ul {
317 margin-right: 6.5rem;
318 }
319
320 .game-preview li:nth-child(even) .info h4,
321 .game-preview li:nth-child(even) .info ul {
322 margin-right: 0em;
323 margin-left: 6.5rem;
324 }
325
326 h4 a:link {
327 text-decoration: none;
328 }
329
330 .game-preview .info p {
331 padding: 0.25em;
332 text-align: center;
333 position: absolute;
334 left: 0;
335 right: 0;
336 top: 50%;
337 transform: translateY(-50%);
338 -webkit-transform: translateY(-50%);
339 margin-top: 0.125em;
340 }
341
342 .game-preview .info ul {
343 bottom: 0.25em;
344 font-size: 0.75em;
345 position: absolute;
346 right: 0.125em;
347 left: 0.125em;
348 text-align: center;
349 list-style-type: none;
350 }
351
352 .game-preview .info li {
353 white-space: nowrap;
354 }
355
356 .game-preview .info li a:link {
357 text-decoration: none;
358 font-weight: inherit;
359 }
360
361 .game-preview .info li:before {
362 content: ' ~ ';
363 }
364
365 .game-preview .info li:first-child:before {
366 content: '';
367 }
368
369 .game-preview .info li {
370 display: inline;
371 font-weight: 300;
372 }
373
374 ul.download {
375 border-radius: 1em;
376 border: solid rgb(206, 132, 242) 0.125em;
377 font-weight: 300;
378 padding: 0.5em;
379 margin: 1em auto;
380 transition: border-radius 0.3s, border-color 0.3s;
381 white-space: nowrap;
382 display: table;
383 }
384
385 ul.download:hover {
386 border-radius: 4px;
387 border-color: rgb(244, 126, 126);
388 }
389
390 ul.download li {
391 list-style-type: none;
392 font-size: 1.25em;
393 margin-bottom: 0.8em;
394 text-align: center;
395 }
396
397 ul.download li a {
398 text-decoration: none;
399 }
400
401 ul.download li.sh {
402 margin-bottom: 0;
403 font-size: 0.75em;
404 font-family: "Fira Mono", monospace;
405 text-align: left;
406 }
407
408 ul.download li:last-child {
409 margin-bottom: 0;
410 }
411
412 .actionable {
413 text-align: center;
414 font-size: 0.8rem;
415 margin: 0.75em auto;
416 color: rgba(0, 0, 0, 0.5);
417 display: block;
418 }
419
420 .actionable a {
421 display: inline-block;
422 font-size: 1.5em;
423 background-color: rgb(240, 110, 110);
424 color: white;
425 text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
426 padding: 0.5em;
427 text-decoration: none;
428 line-height: 0.8em;
429 border-radius: 8px;
430 width: 25%;
431 margin: 0 1em;
432 }
433
434 .actionable a:hover {
435 background-color: rgb(244, 126, 126);
436 }
437
438 .screenshots {
439 text-align: center;
440 }
441
442 .screenshots img {
443 height: 8rem;
444 width: auto;
445 margin: 1rem 0.5rem;
446 }
447
448 .sh:before {
449 content: "$ ";
450 }
451
452 input {
453 font-family: inherit;
454 font-size: 1em;
455 }
456
457 .copyright {
458 margin: auto;
459 text-align: justify;
460 width: 75%;
461 font-size: 0.875em;
462 font-weight: 400;
463 }
464
465 .copyright > p {
466 font-size: 0.875em;
467 font-weight: 300;
468 }
469
470 .copyright:before {
471 content: "Copyright ©";
472 }
473
474 pre {
475 border-left: solid rgba(206, 132, 242, 0.5) 8px;
476 border-radius: 8px;
477 font-family: "Fira Mono", monospace;
478 overflow: auto;
479 padding-left: 2em;
480 padding: 0.5em;
481 max-width: 40em;
482 margin: auto;
483 transition: background-color 0.3s, border-color 0.3s, border-radius 0.3s;
484 }
485
486 pre:hover {
487 background-color: rgba(206, 132, 242, 0.125);
488 border-color: rgb(206, 132, 242);
489 border-radius: 16px;
490 }
491
492 code {
493 font-family: "Fira Mono", monospace;
494 transition: background-color 0.3s;
495 }
496
497 code:hover {
498 background-color: rgba(206, 132, 242, 0.125);
499 }
500
501 pre code:hover {
502 background-color: transparent;
503 }
504
505 footer {
506 font-weight: 300;
507 text-align: center;
508 font-size: 0.75em;
509 }
510
511 footer a:link {
512 display: inline-block;
513 margin: 0 1em;
514 text-decoration: none;
515 }
516
517 iframe[src*="itch.io"] {
518 width: 552px;
519 height: 167px;
520 margin: auto;
521 left: 50%;
522 -webkit-transform: translateX(-50%);
523 transform: translateX(-50%);
524 position: relative;
525 border: 0;
526 }
527
528 @media (max-width: 767px) {
529 html { font-size: 13px; }
530
531 .optional {
532 display: none;
533 }
534
535 ul.download li.sh:before {
536 content: "";
537 }
538
539 pre {
540 font-size: 0.875em;
541 }
542
543 iframe[src*="itch.io"] {
544 -webkit-transform: translateX(-50%) scale(0.8);
545 transform: translateX(-50%) scale(0.8);
546 }
547 }
548
549 @media (max-width: 479px) {
550 html { font-size: 10px; padding: 0 0.5em; }
551 h4 { font-size: 1em; }
552
553 iframe[src*="itch.io"] {
554 -webkit-transform: translateX(-50%) scale(0.6);
555 transform: translateX(-50%) scale(0.6);
556 }
557 }
558