.footer {
    background-color: var(--footer-background-color);
    color: var(--footer-text-color);
    fill: var(--footer-text-color);
    position: relative;
    padding: 24px 50px 120px;
    text-align: center;

    .powered-by {
        display: flex;
        span {
            margin-right: 0.5rem;
        }
    }

    a {
        --btn-font-weight: 400;
    }

    > div {
        display: flex;
        align-items: center;
        flex-direction: column;

        > * {
            margin-bottom: 2rem;
        }

        &:first-child {
            justify-content: space-around;
        }
        &:last-child {
            justify-content: space-between;
        }

        > img {
            width: 200px;
            height: 23.52px;
        }
    }

    @media(min-width: 1024px) {
        padding: 24px 50px;
        text-align: inherit;

        > div {
            > * {
                margin-bottom: 0;
            }
            &:not(:last-child) {
                margin-bottom: 2rem;
            }
        }

        > div {
            flex-direction: row;
        }
    }

    @media(hover:hover) {
        a:hover {
            --btn-color: var(--color-primary);
        }
    }
    @media(hover:none) {
        a:active {
            --btn-color: var(--color-primary);
        }
    }

}

.footer__socials {
    color: var(--highlight);
    font-weight: 500;
    text-align: center;

    > div {
        display: flex;
        gap: 2rem;
        margin-top: 1rem;

        > a {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 48px;
            height: 48px;
            border-radius: 100%;


            &:nth-child(1) {
                background-color: #000;
            }
            &:nth-child(2) {
                background-color: #1877f2;
            }
        }
    }

    @media(min-width: 1024px) {
        position: absolute;
        margin-left: auto;
        margin-right: auto;
        top: 24px;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
    }
}

.footer__nav-links {
    &.footer__nav-links--bottom {
        .footer__link {
            margin-bottom: 0;
            margin-top: 1rem;
        }
    }

    &.footer__nav-links--top {
        .footer__link {
            margin-bottom: 1rem;
        }
    }

    @media(min-width: 1024px) {
        margin-left: auto;
        display: flex;

         > div:not(:first-child) {
            margin-left: 35px;
        }

         > div:not(:last-child) {
            margin-right: 35px;
        }

        &.footer__nav-links--bottom {
            flex-direction: row;

            .footer__link {
                margin: 0 0 0 1rem;
            }
        }

        &.footer__nav-links--top {
            flex-direction: column;
            flex-wrap: wrap;
            max-height: 140px;
            min-width: 410px;

            .footer__link {
                margin-left: 4rem;
                margin-right: 0;
            }
        }
    }
}

.footer__link:not(:last-of-type) {
    margin-bottom: 16px;
}

.super-footer {
    margin-top: 1rem;
    padding: 1rem;
    background-color: var(--light);
    text-align: center;

    > h4 {
        margin-bottom: 1rem;
    }

    a {
        --btn-font-weight: 400;
        margin-bottom: .5rem;
        display: block;
    }

    @media(min-width: 768px) {
        text-align: inherit;
        > h4 {
            text-align: center;
        }

        a {
            --btn-font-weight: 700;
        }
    }
}

.super-footer__links {
    @media(min-width: 768px) {
        margin-top: 1.5rem;
        display: grid;
        justify-content: flex-start;
        text-align: inherit;
        grid-template-columns: repeat(2, 1fr);
    }

    @media(min-width: 1280px) {
        grid-template-columns: repeat(3, 1fr);
    }

    @media(hover:hover) {
        /* when hover is supported */
        a:hover {
            opacity: 0.8;
            transition: 0.3s;
        }
    }
}
