
@font-face {
    font-family: 'DanhDa';
    src: url('/_fonts/DanhDa-Bold.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}
/* Kalam-Variable.woff2 */
@font-face {
    font-family: 'Kalam';
    src: url('/_fonts/Kalam-Variable.woff2') format('woff2');
    font-weight: 300 700;
    font-style: normal;
}

:root {
    --bg-clr: #161616;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

html, body {
    background-color: var(--bg-clr);
    color: white;
    background-image: url(/_images/noise.svg);
    background-position: 0 0;
    background-size: auto;
    background-attachment: fixed;
    height: 100dvh;
}



nav {
    width: 90vw;
    height: 5rem;
    margin-inline: auto;
    display: flex;
    justify-content: space-between;
    background-color: var(--bg-clr);
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;

    > #cndrd {
        display: flex;
        align-items: center;
        justify-content: center;
        aspect-ratio: 2 / 1;
        font-size: 2rem;
        font-family: 'DanhDa', sans-serif;
        color: #c0b379;
        font-size: 3rem;
        padding-bottom: 1rem;
        cursor: default;
        user-select: none;

        &::selection {
            background-color: #c0b379;
            color: var(--bg-clr);
        }
    }

    #login {
        color: #aeaeae;
        aspect-ratio: 1;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;

        > img {
            cursor: pointer;
            user-select: none;
            width: 2rem;
            height: 2rem;
            border-radius: 50%;

            &[data-logged="false"] {
                filter: brightness(.7);
                transition: filter .3s ease;
                &:hover {
                    filter: brightness(1);
                }
            }
        }

    }

}


.loader {
    > img {
        animation: loader-spin 1s linear infinite;
    }
}
@keyframes loader-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hidden {
    display: none;
}



.error {
    display: flex;
    gap: .5rem;
    padding: .5rem;
    border: 2px solid #ba0b1a;
    border-radius: 10px;
    color: #ffffff;
    background-color: #320206;
}
