@font-face {
    font-family: 'Bitcount Prop Double';
    src: url('https://assets.kryspak.com/WWW/WOFF2/BitcountPropDouble.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Merriweather Sans';
    src: url('https://assets.kryspak.com/WWW/WOFF2/MerriweatherSans.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Archivo Black';
    src: url('https://assets.kryspak.com/WWW/WOFF2/ArchivoBlack.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Roboto';
    src: url('https://assets.kryspak.com/WWW/WOFF2/Roboto.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Geist Pixel';
    src: url('https://assets.kryspak.com/WWW/WOFF2/GeistPixel.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'JetBrains Mono';
    src: url('https://assets.kryspak.com/WWW/WOFF2/JetBrainsMono.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    margin-top: 60px;
    overflow-x: hidden;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-height: 60px;

    z-index: 7;

    background-color: #f7f7f7;
    border-bottom: 1px solid #e9e9e9;

    padding-inline: 20px;
    padding-block: 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;

    user-select: none;
}
header > #brand {
    font-family: 'Bitcount Prop Double';
    text-decoration: none;
    font-size: 32px;
    line-height: 0;
    color: #000;

    position: relative;
    top: 2px;

    transition: letter-spacing 0.2s ease;
}
header > #brand:hover {
    letter-spacing: 2px;
}
#header-links {
    display: flex;
    gap: 15px;
}
#header-links > .link {
    font-family: 'Merriweather Sans';
    text-decoration: none;
    font-size: 15px;
    color: #000;
}
#header-links > .link:hover {
    text-decoration: underline;
}
#menu-toggle {
    display: none;
}
#menu-button {
    display: none;
    width: 32px;
    height: 26px;

    cursor: pointer;

    flex-direction: column;
    justify-content: space-between;
}
#menu-button span {
    display: block;

    height: 2px;
    width: 100%;

    background: #000;
    transition: transform .25s ease,
                opacity .25s ease;
}
#menu-overlay {
    display: none;
}
#menu-top,
#menu-footer {
    display: none;
}

@media (max-width: 558px) {
    header > #menu-button {
        display: flex;
    }

    #menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.25);
        backdrop-filter: blur(3px);
        z-index: 8;
        opacity: 0;
        pointer-events: none;
        transition: opacity .3s ease;
        display: block;
    }

    #header-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(360px, 85vw);
        background: #f7f7f7;
        border-left: 1px solid #ddd;
        display: flex;
        flex-direction: column;
        gap: 28px;
        padding: 25px;
        box-sizing: border-box;
        z-index: 9;
        transform: translateX(100%);
        transition: transform .35s cubic-bezier(.4,0,.2,1);
        box-shadow:
            -10px 0 30px rgba(0,0,0,.08);
    }

    #menu-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 25px;
    }

    #menu-brand {
        font-family: 'Bitcount Prop Double';
        font-size: 34px;
        margin: 0;
    }

    #menu-close {
        width: 32px;
        height: 32px;
        cursor: pointer;
        position: relative;
    }

    #menu-close span {
        position: absolute;
        top: 15px;
        left: 0;
        width: 32px;
        height: 2px;
        background: #000;
    }

    #menu-close span:first-child {
        transform: rotate(45deg);
    }

    #menu-close span:last-child {
        transform: rotate(-45deg);
    }

    #header-links > .link {
        font-size: 24px;
        padding: 10px 0;
        border-bottom: 1px solid #e5e5e5;
    }



    #menu-footer {
        display: block;
        margin-top: auto;
        color: #777;
        font-size: 13px;
    }

    #menu-toggle:checked ~ #header-links {
        transform: translateX(0);
    }

    #menu-toggle:checked ~ #menu-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    #menu-toggle:checked ~ #menu-button span:nth-child(1) {
        transform: translateY(12px) rotate(45deg);
    }

    #menu-toggle:checked ~ #menu-button span:nth-child(2) {
        opacity: 0;
    }

    #menu-toggle:checked ~ #menu-button span:nth-child(3) {
        transform: translateY(-12px) rotate(-45deg);
    }
}

.web-message {
    padding-inline: 20px;
    padding-block: 1px;
}
#web-message-color-blue_info {
    background-color: #3b96ff50;
}
#web-message-color-white_info {
    background-color: #c9c9c950;
}
#web-message-color-yellow_warn {
    background-color: #ffee0050;
}
#web-message-color-red_warn {
    background-color: #ff000050;
}

main {
    font-family: 'Merriweather Sans', Arial, Helvetica, sans-serif;
    flex: 1;
}
main > #fullscreen {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100%;
    gap: 30px;
}
main > #fullscreen > div > * {
    text-align: center;
    margin: 0;
}
main > #fullscreen > div > #err-txt {
    font-size: 12px;
    opacity: 0.5;
}
main > #fullscreen > div > h1 {
    font-size: 70px;
}
main > #fullscreen > #flex-column {
    flex-direction: column;
    display: flex;
    gap: 10px;
}
main > #fullscreen input, main > #fullscreen button {
    background-color: transparent;
    border: 1px solid gray;
    border-radius: 5px;
    padding: 10px 20px;
}
main > #fullscreen button {
    cursor: pointer;
}
main > #fullscreen :focus {
    outline: none;
}


.mono-invert-button-whitem {
    transition: background-color 0.2s ease, color 0.2s ease;
    background-color: transparent;
    border: 1px solid #888888;
    padding: 10px 40px;
    cursor: pointer;
}
.mono-invert-button-whitem:hover {    
    background-color: #000 !important; /* This stopped working for some reason, that's why the !important is here. */
    color: #fff;
}
.mono-invert-button-darkm {
    transition: background-color 0.2s ease, color 0.2s ease;
    background-color: transparent;
    border: 1px solid #888888;
    padding: 10px 40px;
    cursor: pointer;
    color: #fff;
}
.mono-invert-button-darkm:hover {    
    background-color: #fff;
    color: #000;
}
.blue-button {
    transition: background-color 0.2s ease;
    background-color: #1f62f1;
    text-decoration: none;
    text-align: center;
    padding: 10px 40px;
    max-width: 150px;
    cursor: pointer;
    color: #fff;
}
.blue-button:hover {
    background-color: #3a78ff;
}

.flat-a {
    text-decoration: none;
    color: #0047ca;
}
.flat-a:hover {
    text-decoration: underline;
}



footer {
    font-family: 'Merriweather Sans';

    background-color: #f7f7f7;
    border-top: 1px solid #e9e9e9;
    color: #272727;

    padding-block: 40px;

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

    user-select: none;
}
footer > #socials {
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}
footer > #socials > .social {
    transition: border-radius 0.2s ease, background-color 0.5s ease;
    
    background-color: #fff;
    align-items: center;
    justify-content: center;
    display: flex;

    box-shadow: #0000003d 0px 3px 8px;
    border-radius: 20px;

    height: 40px;
    width: 40px;
}
footer > #socials > .social:hover {
    border-radius: 10px;
}
footer > #socials > .social > img {
    padding: 2px;
    height: 30px;
}
footer > #socials > .social > #smaller {
    height: 25px;
}
footer > #socials > .social > #smallest {
    height: 20px;
}

footer > #links {
    padding: 20px;
    display: flex;
    gap: 15px;
}
footer > #links > .link, footer > #linksT > .link {
    display: flex;
    justify-content: center;
    gap: 4px;

    text-decoration: none;
    font-size: 15px;
    color: #161616;
}
footer > #links > .link > img {
    height: 18px;
}
footer > #links > .link:hover {
    text-decoration: underline;
}

footer > #linksT {
    display: flex;
    gap: 5px;
}
footer > #linksT > .link {
    font-size: 12px;
    color: #303030;
    padding: 15px;
}
footer > #linksT > .link:hover {
    text-decoration: underline;
}

@media (max-width: 453px) {
    footer > #links {
        flex-direction: column;
    }
}