body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;

    @media (min-width: 992px) {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
    }
}

footer {
    width: 100%;
    max-width: var(--page-width);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: row wrap;

}

footer>nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

footer>p {
    width: 100%;
    align-items: center;
    margin: 0;
    padding: .2rem;

}

footer>nav>a {
    text-decoration: none;
}

footer>nav>a>img {
    height: 1rem;
}

footer>p {
    margin: 0;
}

nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0;

    /* do not wrap header */
    @media (max-width: 600px) {
        flex-direction: row !important;
    }

    /* do not resize nav links */
    >.right-nav>a {
        @media all {
            font-size: var(--font-size-base)
        }
    }
}

.project-cards {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: row wrap;
}

.card-small {
    min-height: 150px;
    background: var(--bg-1);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    width: 30%;
}

.card-media-small {
    height: 200px;
}

.main-content {

    width: 100%;
    max-width: var(--page-width);
}

.logo>img {
    height: 50px;
    padding-right: 0.5rem;
}

.logo:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-decoration-color: var(--primary-color)
}

#logo-text {
    display: none;

    @media (min-width: 992px) {
        display: block;
    }
}

:root.dark {
    --primary-color: #7c5091;
    --hover-color: white;

    .logo>img,
    .social>img,
    .search-button>img {
        filter: invert(1);
    }

    footer>nav>a>img {
        filter: invert(1);
    }

}

:root.light {
    --primary-color: #7c5091;
    --hover-color: white;

    .logo {
        --hover-color: black;
    }
}