@import url('../../fonts/BKANT.TTF');

#bap-footer {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 0px 50px 10px 50px;
}

#bap-footer > div{
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    width: 100%;
    margin: 5px 0px 5px 0px;
}

#bap-footer .footer-fragment {

    padding: 15px 5px 15px 5px;

}

#bap-footer .footer-right{
    flex:   3;
    text-align: right;
}

#bap-footer .footer-left{
    flex:   3;
    text-align: left;
}
#bap-footer .social-media-footer{
    text-align: left;
}

#bap-footer .footer-center{
    flex:   2;
    text-align: center;
}

#bap-footer .footer-center > h3{
    font-size: 2em;
    font-family: 'Book Antiqua', serif;
    font-weight: 600;
}

#bap-footer .mailing-list-footer{
    display: inline-grid;

    grid-template-columns: [line1] 160px [line2] 160px[line3] auto;

    grid-template-rows: [row1] 35px [row2] 35px;
}

#bap-footer .mailing-list-footer > h4{
    grid-column-start: 1;
    grid-column-end: 4;
    text-align: right;
}

#bap-footer .mailing-list-footer > label{
    display: inline-block;
    
}

#bap-footer .mailing-list-footer input[type="submit"] {
    width: 103px;
}
#bap-footer .mailing-list-footer input {
    margin: 5px 0px 5px 10px;
    padding: 5px 5px 5px 5px;
    height: 32px;
    width: auto;
}

#bap-footer .mailing-list-footer input:not([type=submit]){
     background: #DFDFDF;
     color: #8B8B8B;
 }

 #bap-footer .mailing-list-footer input[type=submit]{
    margin: 5px 0px 5px 0px;
 }

 #bap-footer .footer-site-map{
    max-height: 205px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}

#bap-footer .footer-site-map > span{
    display: inline-block;
}

#bap-footer .footer-site-map > span > div:first-child{
    font-weight: 600;
}

#bap-footer .footer-site-map > span > div {
    margin: 1px 5px 1px 5px;
}

#bap-footer .social-media-footer > span {

    margin: 0px 15px 0px 10px;

}

/***Responsiveness***/
@media only screen and (max-width: 1100px) {
    /*Restructure top footer*/
    #bap-footer .footer-left, #bap-footer .footer-right {
        flex: 1;
    }
    /*Reorder bottom as column*/
    #bap-footer > div.footer-bottom {
        flex-direction: column;
    }
    /*Resize mail*/
    #bap-footer .mailing-list-footer{
        display: inherit;
    }
    
    #bap-footer .mailing-list-footer input:not([type=submit]){
        margin: 5px 0px 5px 0px;
        /*Small fix*/
        width: calc(50% - 2px);
    }

    #bap-footer .mailing-list-footer input[type=submit]{
        display: block;
        width: 100%;
        margin: auto;
    }

    /*Hide sub categories*/
    #bap-footer .footer-site-map > span > div:not(:first-child) {
        display: none;
    }
    #bap-footer .footer-site-map{
        display: grid;
        grid-template-columns: 50% 50%;
    }

    /*Reorder social icons*/

    #bap-footer .social-media-footer{    
        text-align: center;
    }

    #bap-footer .social-media-footer > span:first-of-type {
        display: block;
        text-align: center;
        font-size: 2em;
        font-weight: 600;
        margin: 5px 0px 5px 0px;
    }
  }

  @media only screen and (max-width: 787px) {
    /* Reorder as column*/
    #bap-footer > div {
        flex-direction: column;
    }

    #bap-footer .footer-center {
        order: -1;
    }
  }
