/* ---------- Common ---------- */
*,
*::before,
*::after {

    box-sizing: border-box;

}


@media (max-width: 768px) {

    #background-layer {
        display: none;
    }

}


html,
body {

    width: 100%;
    height: 100%;
    margin: 0;
    font-family: var(--font-main);
    background: var(--color-screen);

}


/* ---------- Content ---------- */
#content-layer {

    position: relative;
    z-index: 1;
    top: -8vh;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: clamp(2rem, 4vw, 9rem);

}


#h1 {

    font-family: var(--font-main);
    font-weight: var(--font-weight-normal);
    font-size: clamp(1.5rem, 2vw, 2rem);
    line-height: 1.2;
    color: var(--color-text-primary);
    text-align: center;

}


.loader {

    position: relative;
    width: clamp(220px, 39vmin, 420px);
    aspect-ratio: 1;

}


.loader-ring {

    position: absolute;
    inset: 0;
    z-index: 1;
    border: clamp(8px, 1.5vmin, 16px) solid rgba(235,155,98,.38);
    border-top-color: #6F3A25FF;
    border-radius: 50%;
    animation: spin 18s linear infinite;

}


#capybara {

    position: absolute;
    left: 50%;
    top: 50%;
    width: clamp(180px, 16vw, 300px);
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 2;

}


@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* ---------- Board ---------- */
#background-layer {

    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;

}


#background-canvas {

    display: block;
    width: 100%;
    height: 100%;

}


#support {

    position: fixed;
    right: 1vw;
    bottom: 1vw;
    z-index: 1000;
    font-size: clamp(0.75rem, 1vw, 1rem);
    opacity: 0.6;

}

/* ---------- Navigation ---------- */
#navigation {
    position: fixed;
    top: 20px;
    right: 20px;

    display: flex;
    flex-direction: row;
    gap: 20px;

    list-style: none;
    margin: 0;
    padding: 0;

    opacity: 1;
    text-decoration: underline;
    color: var(--color-text-primary);
}


/* ---------- Email ---------- */
#support a {

    color: var(--color-text-primary);
    text-decoration: none;

}


#support a:hover {

    opacity: 1;
    text-decoration: underline;
    color: var(--color-text-primary);

}

/* ---------- Small screens ---------- */
@media (max-width: 768px) {

    #support {
        right: 16px;
        bottom: 16px;

        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 12px;
    }

    #navigation {
        position: static;

        display: flex;
        flex-direction: column;
        gap: 12px;

        align-items: flex-end;
    }

}

