/* * * FONTS * * */

@font-face {
    font-family: 'McLaren';
    src: local('McLaren Regular'), local('McLaren-Regular'),
    url('/fonts/McLaren-Regular.woff2') format('woff2'), url('https://pixit.fun/fonts/McLaren-Regular.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Chilanka';
    src: local('Chilanka Regular'), local('Chilanka-Regular'),
    url('/fonts/Chilanka-Regular.woff2') format('woff2'), url('https://pixit.fun/fonts/Chilanka-Regular.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}

/* * * BODY * * */

body {
    margin: auto;
    background: #f2f2f2;
    color: #222;
    font-family: sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

/* * * BETTER DEFAULTS * * */

figure {
    padding: 0.5em;
    background-color: black;
    color: white;
    max-width: 90%;
}

img {
    width: 100%;

    /* Styling for alt descriptions */
    color: antiquewhite;
    font-size: 0.8em;
    font-family: monospace;
    text-decoration: dotted underline;
}

figcaption {
    color: white;
    font-size: 0.75em;
    display: flex;
    justify-content: space-between;
}

figcaption a {
    color: white;
    text-decoration: underline;
}

li {
    margin: 1em 0;
}

.mobileOnly {
    display: none;
}

@media screen and (max-width: 600px) {
    .desktopOnly {
        display: none;
    }

    .mobileOnly {
        display: block;
    }
}

/* * * HEADER * * */

a {
    text-decoration: none;
}

h1 a {
    border-bottom: 0;
    color: inherit;
    text-decoration: none;
    margin-bottom: 0;
    font-family: "Chilanka", "McLaren", sans-serif;
}

.separator {
    color: gray;
}

.langSelectForm {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.5em;
    width: 100%;
    box-sizing: border-box;

    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.langSelectForm > * {
    margin: 0 0.5em;
}

/* * * ERRORS SECTION * * */

#errors {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 0);
    background-color: lavenderblush;
    color: darkred;
    border: 1px solid darkred;
    border-radius: 5px;
    opacity: 80%;
    padding: 0.5em 1.5em;
    width: min(25em, 80%);
    text-align: center;
}

/* * * POP-UPS SECTION * * */

.popups {
    position: absolute;
    left: 0;
    top: 0;
    margin: 1em;
}

.popups aside {
    background-color: lavenderblush;
    color: darkblue;
    border: 1px solid darkblue;
    border-radius: 5px;
    opacity: 80%;
    padding: 0.5em 1.5em;
    width: min(20em, 60vw);
    text-align: center;
    margin-top: 1em;
}

/* * * GAME DESCRIPTION * * */

#gameDescription {
    margin: 5em auto;
    max-width: max(75%, 1024px);
    padding: 0 1em;
}

#gameDescription > ul {
    list-style-type: none;
    padding-left: 0;
}

#gameDescription figure {
    max-width: min(75%, 800px);
}

/* * * FOOTER * * */

footer {
    margin: 1em 1em 0 1em;
}

hr {
    border-top: none;
    border-bottom: 1px solid darkgray;
}