:root {
    --vanish-height: 10em;
    --main-bg-col:rgba(0,0,0,0.5);
    --main-width: 50em;
    --main-min-width: 30em;
}

@font-face {
    font-family: 'Dystopian';

    src: url('fonts/dystopian.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Acquire';

    src: url(fonts/acquire.woff2) format('woff2');
    font-weight: normal;
    font-style: normal;
}

* {
    box-sizing: border-box;
}

#bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;

    z-index: -2;
}
html {
    /* appearance */
    font-family: sans-serif;
    color: white;
    min-height: 100vh;

    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;

    /* BG */
    background: black;
    background-image: url("media/bg.jpg");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    image-rendering: pixelated;
    overflow-x: hidden;
}

html, body, main, header, footer, header *, nav, nav * {
    max-width: 100%;
}

body {
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;

    position: relative;
    display: grid;
    grid-template-areas:
        "header"
        "main"
        "footer";
    grid-template-columns: 1fr;
    grid-template-rows: 2fr 7fr 1fr;
    overflow: hidden;
}

#main-wrapper {
    box-sizing: border-box;
    grid-area: main;
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    height: 100%;
}

#main-wrapper::before {
    content: "";
    position: absolute;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    backdrop-filter: contrast(125%) brightness(50%) saturate(75%) blur(4px);
    mask: linear-gradient(
        to bottom,
        transparent 0,
        black 40%,
        black 60%,
        transparent 100%
    );
    z-index: -1;
}
main {
    max-width: 100%;
    padding: 0 min(2em, 4vw);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: min(var(--main-min-width), 100vw);
}


header, footer {
    min-width: 100%;
    text-align: center;
}

header, header * {
    max-width: 100%;
}
header {
    grid-area: header;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    padding: 0;

    display: grid;
    grid-template-areas:
        "title"
        "nav";
}

header h1 {
    grid-area: title;
    font-size: min(10vh, 15vw);
    display: flex;
/*     flex-direction: row; */
    align-items: center;
    justify-content: center;
    margin: 0;
    flex-wrap: wrap;
    position: relative;

    padding: 0.5em 0 1em 0;
}

header h1::before {
    content: "";
    background-image: url("/media/quasar-white.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    position: absolute;
    top: 00;
    width: 100%;
    height: 2em;
    margin: -0.5;
    z-index: -1;
    filter: opacity(50%);
}


nav {
    grid-area: nav;Skip
    text-align: center;
    margin: auto;
    display: flex;
    width: fit-content;
    flex-wrap: wrap;
    align-items:center;
    justify-content: center;
    gap: 1em;
}

nav div, nav span {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

header a, nav a {
    color: white;
    text-decoration: none;
    margin: 0;
    padding: 0;
    max-width: 100%;
}

nav a {
    font-size: max(1em, min(1.5em, 6vw));
    font-weight: bold;
    font-family: 'Acquire';
    display: inline-block;
    padding: 0;
    margin: 0;
    text-wrap: nowrap;
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

nav a::before {
    content: "├";
    font-size: 1.33em;
}

nav a::after {
    content: "┤";
    font-size: 1.33em;
}

#nav-portal, #nav-local {
    display: flex;
    flex-wrap: wrap;
}
#nav-portal {
    grid-area: nav-portal;
}

#nav-local {
    grid-area: nav-local;
}

h1, h2, h3 {
    font-family: 'Acquire', sans-serif;
}

footer {
    grid-area: footer;
    font-family: 'Acquire';
}

img, video, source {
    border-radius: 0.5em;
}

#links-page {
    padding: 0;
    margin: 0;
    font-size: max(1em, min(1.5em, 6vw));
    width: 100%;
}
#links-page a {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;

    padding: 1em;
    text-decoration: none;
    font-family: 'Acquire';
    color: white;

    text-align: center;
    width: 100%;
}
#links-page a img {
    max-height: 5em;
    object-fit: contain;
}
.glassy {
    backdrop-filter: blur(4px) brightness(150%);
}
