#footer {
    background: #014F99;
    padding-top: 100px;
    padding-bottom: 80px;
    display: flex;
    justify-content: space-between;
    border-top: 10px solid #015EB6;
    gap: 20px;
    transition: 5s;
}

#footer p, #footer li a {
    color: #fff;
    font-size: 16px;
}

#footer li a {
    display: block;
    padding-bottom: 5px;
}

#footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#footer .button {
    font-size: 14px;
}

#footer h5 {
    font-weight: bold;
    font-size: 20px;
    line-height: 23px;

    color: #FFDA00;
}

#footer > div:nth-child(2) {
    display: flex;
    gap: clamp(20px, 5vw, 80px);
    text-align: right;
}


#footer > div:nth-child(1) p a {
    color: #fff;
    display: inline-block;
    margin-top: 10px;
}

.end_of_page {
    display: flex;
    justify-content: space-between;
    background: #014F99;
    padding-bottom: 20px;
    position: relative;
}

.end_of_page:before {
    width: 96%;
    height: 1px;
    content: '';
    background: rgba(255, 255, 255, 0.3);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: auto;
    max-width: 1700px;
}

.end_of_page * {
    color: #fff;
    font-size: 14px;
}

.end_of_page > div:nth-child(2) {
    display: flex;
}

.end_of_page > div:nth-child(2) a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.end_of_page > div:nth-child(2) a:hover {
    text-decoration: none;
    opacity: 0.7;
}

.end_of_page > div:nth-child(1) {
    display: flex;
    align-items: center;
    gap: 5px;
}

.end_of_page > div:nth-child(2) span {
    width: 100px;
    height: 25px;
    display: inline-block;
    background: no-repeat center / contain;
}

.end_of_page a {
    font-weight: 400;
}

.end_of_page a:hover {
    color: #fff;
}

.end_of_page > p:nth-child(1) a:after {
    content: '|';
    margin-left: 6px;
}

.end_of_page > p:nth-child(1) a:last-child:after {
    display: none;
}


@media (max-width: 768px) {
    #footer {
        padding-top: 30px;
        padding-bottom: 10px;
        display: block;
    }

    #footer > div:nth-child(n) {
        max-width: unset;
        width: 100%;
        text-align: center;
    }

    .end_of_page > p:nth-child(2) {
        margin-left: 0;
    }

    .end_of_page {
        display: block;
        text-align: center;
        justify-content: center;
    }

    #footer .social_links {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
    }

    #footer .social_links a {
        width: 40px;
        height: 40px;
        border-radius: 4px;
        background: center / 8px 19px no-repeat url("data:image/svg+xml,%3Csvg width='8' height='19' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M1.7 19H5V9.5h2.5l.5-3H5V4.4C5 3.7 5.4 3 6 3h1.8V0H5.7c-3.3.1-4 2.1-4 4.2v2.3H0v3h1.7V19z' fill='%23fff'/%3E%3C/svg%3E") rgba(255, 255, 255, 0.1);
        overflow: hidden;
        text-indent: -999px;
        display: block;
        margin-right: 10px;
    }

    #footer .social_links li:last-child a {
        margin: 0;
    }

    #footer .social_links a.instagram {
        background: center / 20px 20px no-repeat url("data:image/svg+xml,%3Csvg width='90' height='90' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M25 0h40c14 0 25 11 25 25v40c0 14-11 25-25 25H25C11 90 0 79 0 65V25C0 11 11 0 25 0zm40 82c9 0 17-8 17-17V25c0-9-8-17-17-17H25C16 8 8 16 8 25v40c0 9 8 17 17 17h40z' fill='%23fff'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M22 45a23 23 0 1146 0 23 23 0 01-46 0zm8 0a15 15 0 1030 0 15 15 0 00-30 0z' fill='%23fff'/%3E%3Cpath d='M69 15a6 6 0 00-6 6 6 6 0 006 6l4-2a6 6 0 000-8l-4-2z' fill='%23fff'/%3E%3C/svg%3E") rgba(255, 255, 255, 0.1);
    }

    #footer .social_links a.twiiter {
        background: center / 18px 18px no-repeat url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none'%3e%3cpath fill='white' d='M10.6 7.3 16.9 0h-1.5L9.9 6.3 5.5.1h-5L7 9.5.4 17.1H2l5.8-6.6 4.7 6.6h5l-6.8-9.8ZM8.5 9.6l-6-8.4h2.3L15.4 16H13L8.5 9.6Z'/%3e%3c/svg%3e") rgba(255, 255, 255, 0.1);
    }

    #footer .social_links a.your_tube {
        background: center / 20px 16px no-repeat url("data:image/svg+xml,%3Csvg width='90' height='72' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M88 11c-1-4-4-8-8-9-7-2-35-2-35-2S17 0 10 2c-4 1-7 5-8 9-2 8-2 25-2 25s0 17 2 25c1 4 4 8 8 9 7 2 35 2 35 2s28 0 35-2c4-1 7-5 8-9 2-8 2-25 2-25s0-17-2-25zM36 51V21l23 15-23 15z' fill='%23fff'/%3E%3C/svg%3E") rgba(255, 255, 255, 0.1);
    }

    #footer > div:nth-child(2) {
        justify-content: center;
    }

    .end_of_page > div:nth-child(2) p {
        justify-content: center;
    }

    .end_of_page > div:nth-child(1) {
        justify-content: center;
    }
}

@media (max-width: 400px) {
    #footer > div:nth-child(2) {
        display: grid;
        grid-gap: 30px;

    }
}