body { /* layer1 */
    background-color: #000b27;
    color: #ffffff;
    font-family: 'IBMPlexSans', 'Ubuntu', sans-serif;
    font-weight: normal;
    margin: 0;
    padding-top: 64px;
    overflow-x: clip;
}
h1 {
    font-family: 'Comfortaa', sans-serif;
    font-weight: Medium;
}
h2 {
    font-family: Georgia, 'Times New Roman', serif;
    margin: 0;
    font-size: 30px;
}

.layer2 {
    background-color: #0e1324;
    color: #ffffff;
    font-family: 'Ubuntu', sans-serif;
    padding: 34px 26px 40px;
}
.layer3 {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Ubuntu', sans-serif;
    padding: 24px 26px 40px;
    margin: 0;
}

.layer3title {
    image-rendering: pixelated;
    display: flex;
    align-items: center;
    gap: 12px;
}
.layer3title h2,
.layer3title a {
    color: white;
    font-size: 30px;
}

.buttonoutline,
.buttonfilled,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 16px;
    margin: 6px 0;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 3px;
    background: transparent;
    color: #ffffff;
    font: inherit;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}
.buttonoutline a,
.buttonfilled a,
button a {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.buttonoutline:focus-visible,
.buttonfilled:focus-visible,
button:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}
.buttonoutline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.9);
    color: #ffffff;
}
.buttonfilled {
    background: #ffffff;
    border-color: #ffffff;
    color: #000b27;
}
.buttonoutline:hover {
    background-color: rgb(49, 49, 49);
    border-color: rgb(148, 148, 148);
}
.buttonfilled:hover {
    color: black;
    background: rgb(224, 223, 236);
    border-color: rgb(226, 241, 255);
}

.top-bar {
    image-rendering: pixelated;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 16px;
/*    background: rgba(0, 11, 39, 0.425);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000; */
}
.top-bar p {
    font-family: 'RobotoCondensed';
    font-weight: 200;
    text-decoration: none;
    font-size: 23px;
    color: white;
    margin-left: 7px;
}
.top-bar__logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.top-bar__logo img {
    display: block;
    height: 57px;
    width: auto;
}

@media (max-width: 640px) {
    body {
        padding-top: 52px;
    }

    .top-bar {
        height: 52px;
        padding: 0 12px;
    }

    .top-bar__logo img {
        height: 38px;
    }
}

/* really annoying to code grids */
.link-grid {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 34px 22px;
}

@media (max-width: 900px) {
    .link-grid {
        gap: 28px 18px;
    }
}

@media (max-width: 640px) {
    .layer2 {
        padding: 26px 14px 32px;
    }

    .link-grid {
        gap: 18px 10px;
    }

    .link-card,
    .link-card-main {
        gap: 8px;
        padding: 8px 6px;
    }

    .link-card img,
    .link-card-main img {
        width: 88px;
        height: 88px;
    }

    .link-card span,
    .link-card-main span {
        font-size: 13px;
        white-space: normal;
    }

    .link-card small {
        font-size: 10px;
        white-space: normal;
        text-align: center;
    }
}

@media (max-width: 420px) {
    .link-grid {
        gap: 16px 10px;
    }

    .link-card img,
    .link-card-main img {
        width: 96px;
        height: 96px;
    }
}

.link-card {
    color: #ffffff;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    min-width: 0;
    padding: 12px 10px;
    position: relative;
    overflow: hidden;
}
.link-card-main {
    color: #ffffff;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    min-width: 0;
    padding: 12px 10px;
}
.link-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 5px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(8, 6, 36, 0.85) 75%, rgba(34, 26, 51, 0.404) 100%);
    opacity: 0;
    transition: opacity 220ms ease;
    pointer-events: none;
}
.link-card > *,
.link-card-main > * {
    position: relative;
    z-index: 1;
}
.link-card:hover,
.link-card--stacked:hover {
    border-radius: 5px;
    color: aliceblue;
}
.link-card:hover::before {
    opacity: 1;
}
.link-card img {
    image-rendering: pixelated;
    display: block;
    width: 124px;
    height: 124px;
    object-fit: contain;
    image-rendering: auto;
}
.link-card-main img {
    display: block;
    width: 124px;
    height: 124px;
    object-fit: contain;
    image-rendering: auto;
}
.link-card span {
    font-size: 16px;
    line-height: 1.15;
    white-space: nowrap;
}
.link-card-main span {
    font-size: 16px;
    line-height: 1.15;
    white-space: nowrap;
}
.link-card small {
    color: #87a8ff;
    font-size: 11px;
    line-height: 1.2;
    margin-top: -4px;
    white-space: nowrap;
}
.link-card--stacked {
    align-items: center;
    gap: 12px;
}
.link-card--stacked small a {
    color: rgb(143, 203, 255);
    text-decoration: none;
}
.link-card--stacked small a:hover {
    text-decoration: underline;
}


@font-face {
    font-family: 'IBMPlexSans';
    src: url('./fonts/IBMPlexSans.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'IBMPlexSans';
    src: url('./fonts/IBMPlexSans-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}
@font-face {
    font-family: 'RobotoCondensed';
    src: url('./fonts/RobotoCondensed.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
}
@font-face {
    font-family: 'Comfortaa';
    src: url('./fonts/Comfortaa.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'ZCOOLKuaiLe';
    src: url('./fonts/ZCOOLKuaiLe.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Ubuntu';
    src: url('./fonts/Ubuntu-Light.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}