/* Global styles */
html, input, select {
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-family: 'Suisse', sans-serif;
    font-style: normal;
    line-height: 100%;
    cursor: default;
}

html, body {
    background-color: var(--black);
    color: var(--white);
    scroll-behavior: smooth;

}

/* Header */
header {
    position: fixed;
    display: flex;
    justify-content: center;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    mix-blend-mode: difference;
    pointer-events: none;

    nav {
        display: grid;
        padding: 1rem 1rem;
        grid-template-columns: repeat(4, 1fr);
        column-gap: 2rem;
        row-gap: 0.25rem;
        width: 100%;
        max-width: var(--max-width);

        a {
            pointer-events: all;
            width: fit-content;
        }

        @media (max-width: 750px) {
            grid-template-columns: repeat(2, 1fr);
        }
    }
}

/* Footer */
footer {
    position: fixed;
    mix-blend-mode: difference;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    justify-content: center;

    .footer-inner {
        padding: 1rem;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        column-gap: 2rem;
        row-gap: 0.25rem;
        width: 100%;
        max-width: var(--max-width);

        @media (max-width: 800px) {
            grid-template-columns: repeat(2, 1fr);
            padding: 1rem;
        }
    }
}

/* Buttons */
button, .button {
    background-color: var(--white);
    color: var(--black);
    border: 1px solid var(--white);
    font-family: 'Arketa', monospace;
    font-size: 1rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    width: fit-content;
    height: fit-content;
    cursor: pointer;
    line-height: 100%;

    &:hover {
        background-color: var(--black);
        color: var(--white);
        border: 1px solid var(--white);
    }

    &.square {
        height: 100%;
        aspect-ratio: 1/1;
        display: flex;
        place-items: center;
        justify-content: center;
    }

    &.black {
        background-color: var(--black);
        color: var(--white);
        border: 1px solid var(--black);

        &:hover {
            background-color: var(--white);
            color: var(--black);
        }
    }
}

.buttons {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

/* Elements */
.flex-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;

    @media (max-width: 800px) {
        grid-column: span 4;
    }
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-end {
    display: flex;
    width: 100%;
    justify-content: flex-end;
}

.span-2 {
    grid-column: span 2;

    @media (max-width: 1200px) {
        grid-column: span 3;
    }
}

.span-2-4 {
    grid-column: 2/4;

    @media (max-width: 1200px) {
        grid-column: 2/5;
    }

    @media (max-width: 800px) {
        grid-column: span 1;
    }
}

.span-2-5 {
    grid-column: 2/5;

    /*@media (max-width: 1200px) {*/
    /*    grid-column: 2/5;*/
    /*}*/

    @media (max-width: 800px) {
        grid-column: span 4;
    }
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
    row-gap: 4rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 2rem;
    row-gap: 4rem;

    @media (max-width: 1200px) {
        &.flex-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 500px) {
        &.flex-grid {
            grid-template-columns: 1fr;
        }
    }
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 2rem;
    row-gap: 1rem;

    @media (max-width: 1200px) {
        &.flex-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }
}

.invert {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: var(--white);
    z-index: 5;
    mix-blend-mode: difference;
    pointer-events: none;
}

.toggle-option {
    display: none;

    &.active {
        display: block;
    }
}

.sticky {
    position: sticky;
    align-self: start;
    top: 4rem;

    @media (max-width: 1200px) {
        position: relative;
        top: 0;
    }
}

.alerts {
    position: fixed;
    top: 3rem;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
}

.acknowledgement {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 6;
    overflow: hidden;
    background-color: var(--brown);
    color: var(--black);

    .section-inner {
        height: 100svh;
        max-width: 80rem;
        display: grid;
        place-items: center;
        cursor: pointer;

        .h2 {
            text-align: center;

            +.h2 {
                margin-top: 1rem;
            }
        }
    }
}