footer {
    background-color: var(--bg);
    padding: 2rem;
    border-style:solid;
    border-width: 2px 0 0 0;
    border-color: var(--primary);
}

.footer-flex {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.footer-flex-item {
    margin: 2rem;
    text-align: center;
}

.footer-flex-item:nth-child(1) {
    margin: 2rem;
    text-align: left;
}

.footer-flex-item:nth-child(3) {
    margin: 2rem;
    text-align: right;
}

a>img {
    width: 2vw;
    transition-duration: 0.5s;
}

.footer-flex-item>img {
    width: 10vw;
    transition-duration: 0.5s;
}

.footer-flex-item>img:hover {
    transform: scale(1.1);
}

a>img:hover {
    transform: scale(1.1);
}

h3 {
    margin-top: 0;
}

@media only screen and (max-width: 1025px) {
    .footer-flex-item>img {
        width: 15vw;
    }

    a > img {
        width: 3vw;
    }
}

@media only screen and (max-width: 811px) {

    .footer-flex {
        grid-template-columns: 100%;
        align-items: center;
        text-align: center;
    }

    .flex-item>h1 {
        font-size: 1.7rem;
    }

    .footer-flex-item>a>img {
        width: 5vw;
    }

    .footer-flex-item:nth-child(1) {
        margin: 2rem;
        text-align: center
    }

    .footer-flex-item:nth-child(3) {
        margin: 2rem;
        text-align:center;
    }
}

@media only screen and (max-width: 429px) {
    .footer-flex {
        grid-template-columns: 100%;
    }

    .footer-flex-item {
        margin: 1rem;
    }

    .footer-flex-item > img {
        width: 50vw;
        margin: auto;
    }

    .footer-flex-item > a > img {
        width: 10vw;
        margin: 2vw;
    }
}