footer {
    height: 30vh;
    width: 100%;
    border-top: var(--primary-color) solid;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}

.upper-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    height: 66%;
}

.icons-footer {
    display: flex;
    justify-content: center;
    gap: 15%;
    width: 30vw;
}

.icons-footer a  {
    width: 100%;
}

.icons-footer img {
    width: 3rem;
    background-color: var(--primary-color);
    border-radius: 40%;
    padding: 10px;
    transition: 0.7s;
    cursor: pointer;
}

.icons-footer>:nth-child(1) img:hover {
    background-color: #333;
    transform: translateY(-10px);
}

.icons-footer>:nth-child(2)  img:hover {
    background-color: #fff;
    transform: translateY(-10px);
}

.icons-footer>:nth-child(3)  img:hover {
    background-color: #007bb6;
    transform: translateY(-10px);
}

.icons-footer>:nth-child(4)  img:hover {
    background-color: #c71610;
    transform: translateY(-10px);
}

.icons-footer>:nth-child(5)  img:hover {
    background-color: #075E54;
    transform: translateY(-10px);
}

footer nav {
    width: 100vw;
    display: flex;
    justify-content: center;
}

footer nav ul {
    display: flex;
    justify-content: space-around;
    width: 35rem;
}

footer nav ul li a {
    color: var(--font-color);
    font-size: 1.1rem;
    display: block;
    position: relative;
}

footer ul li a::after {
    position: absolute;
    bottom: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 1px;
    background-color: var(--primary-color);
    content: "";
    transform: scale(0);
    transition: transform .3s cubic-bezier(0.11, 0.7, 0, 1);
}

footer ul li a:hover::after {
    transform: scale(1);
}

.lower-footer {
    background-color: var(--primary-color);
    height: 33%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.lower-footer h2 {
    font-size: 1.8rem;
}

.lower-footer p {
    font-size: 1rem;
}

.lower-footer>:nth-child(3) {
    opacity: 0.8;
}


@media screen and (max-height:800px) {
    footer {
        height: 40vh;
    }

    .upper-footer {
        align-items: center;
    }
}