@media (min-width: 800px) {
    .custom-logo {
        margin: -8px -18px 0 -52px !important;
        z-index: -50 !important;;
        position: relative !important;;
    }
    /*div {*/
        /*background-color: red;*/
    /*}*/
}

body {
    overflow-x: hidden;
}

header {
    display: flex;
    display: -webkit-flex;
    justify-content: center;
    -webkit-justify-content: center;
    align-items: center;
    -webkit-align-items: center;
    background: #ffffff;
    width: 100%;
    left: 0;
    top: 0;
    right: 0;
    box-shadow: 0 0 5px;
    text-align: center;
    height: 109px;
    font: normal normal normal 20px/1.4em adobe-caslon-w01-smbd, serif;;
}

header .site-logo {
    display: inline-block;
    vertical-align: middle;
    position: absolute;
    left: 221px;
    top: 23px;
    transition: all ease-in-out 0.5s;
    -webkit-transition: all ease-in-out 0.5s;
    -moz-transition: all ease-in-out 0.5s;
    -o-transition: all ease-in-out 0.5s;
    opacity: 1;
}

header .site-logo .site-logo-image {
    width: 160px;
    height: 84px;
    object-fit: cover;
}

header .menu {
    list-style-type: none;
    display: inline-block;
    vertical-align: middle;
    margin: 0;
    padding: 0;
}

header .menu > li {
    display: inline-block;
    vertical-align: top;
}

footer {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    border-top: 3px solid rgba(47, 46, 46, 0.25);
    text-align: center;
    color: #CFCFCF;
}

footer a {
    color: #CFCFCF !important;
}

footer .footer-content {
    padding: 5px;
    color: #CFCFCF !important;
}

footer .footer-link {
    text-decoration: underline;
}

.img-responsive-custom {
    display: inline-block;
    max-width: 100%;
    height: auto;
}

.nav-link {
    padding: 0 10px;
    color: #A8A8A8;
    transition: color 0.4s ease 0s;
    text-decoration: none !important;
    line-height: 40px;
    transition: color 0.4s ease 0s;
}

.nav-link.active {
    color: #000000;
}

.nav-link:hover {
    color: #0C4396;
}

.home-logo .home-logo-image {
    width: 600px;
    height: 297px;
    margin: auto;
}

.home-logo {
    display: flex;
    display: -webkit-flex;
    transition: all ease-in-out 1.5s;
    -webkit-transition: all ease-in-out 1.5s;
    -moz-transition: all ease-in-out 1.5s;
    -o-transition: all ease-in-out 1.5s;
    opacity: 1;
    transform: scale(1);
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -o-transform: scale(1);
}

.site-logo.ng-hide {
    line-height: 0;
    opacity: 0;
}

.home-logo.ng-hide {
    line-height: 0;
    opacity: 0;
    transform: scale(0);
    -webkit-transform: scale(0);
    -moz-transform: scale(0);
    -o-transform: scale(0);
}

.main-container {
    position: absolute;
    min-height: 400px;
    width: 100%;
    display: flex;
    display: -webkit-flex;
    align-items: center;
    -webkit-align-items: center;
    justify-content: center;
    -webkit-justify-content: center;
    z-index: -1;
    margin: 60px 0;
    /*    top: 50vh;
        transform: translateY(-50vh);
        -webkit-transform: translateY(-50%);
        -moz-transform: translateY(-50%);
        -o-transform: translateY(-50%);
    */
}

@-webkit-keyframes fadein {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@-moz-keyframes fadein {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@-webkit-keyframes fadeout {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@-moz-keyframes fadeout {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.main-container.ng-enter {
    -webkit-animation: fadein 0.5s ease;
    -moz-animation: fadein 0.5s ease;
    -o-animation: fadein 0.5s ease;
    animation: fadein 0.5s ease;
}

.main-container.ng-leave {
    -webkit-animation: fadeout 0.5s linear;
    -moz-animation: fadeout 0.5s linear;
    -o-animation: fadeout 0.5s linear;
    animation: fadeout 0.5s linear;
}

.contact_container {
    text-align: center;
}

.contact-info a, .contact-info h2 {
    color: #000000;
    text-decoration: none;
    cursor: pointer;
    font-family: adobe-caslon-w01-smbd, serif;
    font-size: 22px;
    font-weight: normal;
}

.partners {
    float: left;
    margin-top: 50px;
}

.companies {
    float: left;
    width: 100%;
    margin-bottom: 30px;
}

.company-logo {
    float: left;
}

.partners .company-logo {
    max-width: 225px;
}

.companies-container {
    text-align: center;
    position: relative;
    display: inline-block;
    max-width: 60em;
    padding: 0 50px;
}

#companies_2 {
    clear: both;
}

@media (max-width: 1199px) {

    header .site-logo {
        left: 1.5em;
    }

    .partners {
        display: flex;
        display: -webkit-flex;
    }

    .main-container {
        min-height: auto;
    }
}

@media (max-width: 767px) {
    header {
        display: block;
        padding: 0 10px;
    }

    header .toggle-menu {
        background-color: rgba(255, 255, 255, 1);
        border: solid 1px rgba(96, 96, 96, 1);
        top: 1em;
        width: 45px;
        height: 45px;
        z-index: 2;
    }

    header .toggle-menu .icon-bar {
        background-color: rgba(96, 96, 96, 1);
    }

    header .site-logo .site-logo-image {
        width: 114px;
        height: 56px;
        object-fit: cover;
    }

    header .menu-container {
        top: 3.65em;
        overflow-y: visible !important;
        position: relative;
        -webkit-transition: height 350ms ease;
        -moz-transition: height 350ms ease;
        -o-transition: height 350ms ease;
        transition: height 350ms ease;
        height: 8em;
        opacity: 0;

    }

    /*    header .menu-container.collapse {
            display: none;
        }*/
    header .menu-container.collapse.in {
        opacity: 1;
        /*display: block;*/
        height: 300px;
        top: -16px;
    }

    header .menu {
        position: relative;
        left: 0;
        top: 4.5em;
        text-align: left;
        width: 100%;
        display: block;
        padding: 0;
        z-index: 1;
        border: solid 1px rgba(96, 96, 96, 1);
    }

    header .menu li {
        display: block;
        background-color: #ffffff;
    }

    header .menu li:nth-child(2) {
        border-top: solid 1px rgba(96, 96, 96, 1);
        border-bottom: solid 1px rgba(96, 96, 96, 1);
    }

    .home-footer {
        top: auto;
    }

    .home-logo {
        left: auto;
    }

    .home-logo .home-logo-image {
        width: 280px;
        height: 139px;
        object-fit: cover;
    }

    .companies-container {
        width: auto;
        margin-top: 0;
    }

    .company-logo {
        float: left;
        clear: both;
        width: 100%;
    }

    .partners .company-logo {
        max-width: 100%;
    }

    .nav-link {
        width: 100%;
        display: block;
        color: rgba(96, 96, 96, 1);
    }

    .nav-link.active {
        background-color: rgb(140, 165, 205);
        color: rgba(96, 96, 96, 1);
    }

    .nav-link:hover {
        color: rgba(96, 96, 96, 1);
    }

    .partners {
        display: block;
    }

    .bond_interiors_image {
        margin-left: -28px !important;
    }

    .medina_image {
        margin: -56px 0 0 -34px !important;
    }

    .middle_image {
        margin: 18px 0 16px -32px !important;
    }

    .custom-logo {
        margin: 0 0 0 -28px;

    }


    .trient_image {
        margin-top: 17px;
        margin-bottom: 18px;
        margin-left: -16px;
    }

    .bond_image {
        margin: 21px 0 0 13px !important;
    }

    .pwa-image {
        max-width: 55% !important;
        margin: -52px -20px 0 0 !important;
    }

    .bond-int-contact {
        margin: 7px 95px 30px 0 !important;
    }

    .pwa-image-contact {
        max-width: 60%;
    }
}
