@media (min-width: 1570px) {
    .services-section-1-bg {
        background-size: 100%;
    }
}

.services-section-1-bg {
    background-image: url("../img/banner-imgs/circuit3.jpg");
    background-position-y: -390px;
    background-position-x: 0px;
}

div.services-section-1-bg > div.black-overlay {
    background-color: rgba(0,0,0,0.5);
}

.services-section-2 {
    padding-top: 100px;
    font-size: 16px;
}

#services-container {
    height: 700px;
    margin-top: 60px;
}

#services-container > .service-element {
    position: absolute;
}

.service-element hr {
    display: none;
}

.services-octagon-bg {
    width: 170px;
    height: 170px;
    position: absolute;
    z-index: 1;
    left: 0px;
    top: 0px;
}


.service-element .services-icon {
    z-index: 2;
    position: absolute;
    left: 0px;
    top: 0px;
    pointer-events: none
}

.service-element .services-label {
    position: absolute;
    z-index: 2;
    left: 37px;
    top: 79px;
    color: rgba(255,255,255,1);
    text-align: center;
    pointer-events: none
}

#services-title-element {
    position: absolute;
    left: 244px;
    top: 260px;
    font-size: 24px;
    width: 160px;
    text-align: center;
}

/* container 647 pixels wide*/
#research-service-element {
    left: 238px;
}

#research-service-element .services-icon {
    top: 38px;
    left: 58px;
}

#research-service-element .services-label {
    top: 110px;
    left: 54px;
}

#design-service-element {
    left: 346px;
    top: 108px;
}

#design-service-element .services-icon {
    top: 32px;
    left: 52px;
    width: 70px;
}

#design-service-element .services-label {
    left: 62px;
    top: 110px;
}

#engineering-service-element {
    left: 453px;
    top: 217px;
}

#engineering-service-element .services-icon {
    top: 40px;
    left: 56px;
}

#engineering-service-element .services-label {
    left: 44px;
    top: 110px;
}

#prototyping-service-element {
    left: 346px;
    top: 327px;
}

#prototyping-service-element .services-icon {
    top: 40px;
    left: 56px;
}

#prototyping-service-element .services-label {
    left: 44px;
    top: 110px;
}

#testing-service-element {
    left: 238px;
    top: 434px;
}

#testing-service-element .services-icon {
    left: 56px;
    top: 42px;
}

#testing-service-element .services-label {
    left: 60px;
    top: 110px;
}

#prod-cert-service-element {
    left: 129px;
    top: 327px;
}

#prod-cert-service-element .services-icon {
    left: 56px;
    top: 30px;
}

#prod-cert-service-element .services-label {
    font-size: 14px;
    left: 47px;
    top: 100px;
}

#prod-design-service-element {
    left: 22px;
    top: 217px;
}

#prod-design-service-element .services-icon {
    left: 56px;
    top: 32px;
}

#prod-design-service-element .services-label {
    font-size: 14px;
    left: 52px;
    top: 102px;
}

#manufac-service-element {
    left: 129px;
    top: 108px;
}

#manufac-service-element .services-icon {
    left: 56px;
    top: 38px;
}

#manufac-service-element .services-label {
    left: 34px;
    top: 110px;
}


@media (min-width: 1200px) {
    #services-title-element {
        left: 307px;
    }
}

@media (max-width: 991px) {
    #services-title-element {
        left: 233px;
    }
}

@media (max-width: 767px) {

    .services-section-1 {
        height: auto;
        padding-top: 70px;
        padding-bottom: 70px;
    }

    #services-container {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        height: inherit;
        margin-top: 60px;
    }

    .services-section-2 {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    #services-title-element {
        position: relative;
        width: 100%;
        left: inherit;
        top: inherit;
        margin-bottom: 40px;
    }

    #services-container > .service-element {
        position: relative;
        left: inherit;
        top: inherit;
    }
    .services-octagon-bg {
        position: relative;
    }

    #prod-cert-service-element .services-label,
    #prod-design-service-element .services-label {
        font-size: 16px;
        width: 120px;
        left: 25px;
    }
}

@media (max-width: 550px) {
    svg.services-octagon-bg.svg-octagon {
        display: none;
    }

    .rectangle-bg {
        height: 68px;
        width: 300px;
        background-color: #337ab7;
    }

    .service-element {
        margin-bottom: 12px;
    }

    .service-element .services-icon {
        height: 36px;
    }

    .service-element hr {
        display: block;
        position: absolute;
        width: 0px;
        height: 35px;
        border-left: 1px solid rgba(255,255,255,0.5);
        left: 90px;
        top: -5px;
    }

    div#services-container img.services-icon {
        top: 16px;
        left: 14px;
    }

    div#services-container .services-label {
        top: 16px;
        font-size: 24px;
    }

    #research-service-element .services-label {
        left: 146px;
    }

    div#design-service-element img.services-icon{
        left: 10px;
    }

    #design-service-element .services-label {
        left: 157px;
    }

    #engineering-service-element .services-label {
        left: 133px;
    }

    #prototyping-service-element .services-label {
        left: 134px;
    }

    #testing-service-element .services-label {
        left: 154px;
    }

    div#services-container .services-label.wide-text {
        width: inherit;
        font-size: 20px;
        top: 20px;
    }

    #prod-cert-service-element p.services-label {
        left: 44px;
    }

    #prod-design-service-element p.services-label {
        left: 44px;
    }

    #manufac-service-element .services-label {
        left: 118px;
    }

    div#manufac-service-element img.services-icon {
        left: 13px;
    }

    #prod-cert-service-element p.services-label,
    #prod-design-service-element p.services-label {
        font-size: 20px;
        width: auto;
        top: 18px;
    }

    #prod-cert-service-element p.services-label {
        left: 105px;
    }

    #prod-design-service-element p.services-label {
        left: 115px;
    }
}