.nav .item img.white {
    visibility: hidden;
}

.nav .item img.red {
    visibility: visible;
}

.nav .item a:not(.btn-blue) {
    color: #4e4e4e;
}

h3 {
    font-family: Montserrat-Regular;
    margin: 0 auto 4rem;
    text-align: center;
    width: 80%;
}

p {
    font-size: 1.25rem;  
    margin: 1rem 0;
}
p img {
    margin-right: 1rem;
    vertical-align: middle;
    width: 5%;
}


.section#portfolioSection {
    padding: 6rem 2rem;
    background-image: url("img/hero-background-clean.png");
    background-size: cover;
    background-position: center;
    color: white;
}
.section#portfolioSection .portfolioBanner p{
    width: 60%;
    margin: 0 auto 6rem auto;
    font-size: 1.5rem;
}
.section#portfolioSection .portfolioBanner p a{
    color: white;
    font-family: Dosis-Light;
}
.section#portfolioSection .portfolioBanner div {
    width: 80%;
    margin: 0 auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}
.section#portfolioSection .card {
    width: 15rem;
    height: 15rem;
    margin: 0 1.5rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    background-color: white;
}
.section#portfolioSection .portfolioBanner div .card img {
    width: 100%;
}
.section#portfolioSection .portfolioBanner div .card:nth-child(1) img {
    padding: 2rem;
    height: 100%;
}

.section#companySection {
    padding: 4rem 2.5rem;
}

.section#companySection h3 {
    font-size: 4rem;
    font-family: Montserrat-Bold;
    margin-bottom: 1rem;
}

.section#companySection .flexWrapper{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}

.section#companySection .flexWrapper .companyCard{
    width: 15rem;
    margin: 2rem 1.5rem;
}

.section#companySection .flexWrapper .companyCard h4{
    font-size: 1.5rem;
}

.section#companySection .flexWrapper .companyCard .imgWrapper {
    width: 100%;
    height: 15rem;
    position: relative;
    border: 1px solid rgb(200, 200, 200);
}

.section#companySection .flexWrapper .companyCard .imgWrapper a.portfolioLink {
    width: 100%;
    height: 100%;
    padding: 1rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}

.section#companySection .flexWrapper .companyCard .imgWrapper a.portfolioLink.squared {
    padding: 0;
}

.section#companySection .flexWrapper .companyCard .imgWrapper a.portfolioLink#reSure {
    background-color: #D2FBFC;
}

.section#companySection .flexWrapper .companyCard .imgWrapper a.portfolioLink#hubg {
    background-color: #DCDDDC;
}

.section#companySection .flexWrapper .companyCard .imgWrapper a.portfolioLink img {
    width: 100%;
}

.section#companySection .flexWrapper .companyCard .imgWrapper a.portfolioLink .desc {
    position: absolute;
    padding: 1.5rem;
    opacity: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.9);
    color: black;
    -webkit-transition: .5s ease-in-out;
    -o-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
}

.section#companySection .flexWrapper .companyCard .imgWrapper a.portfolioLink .desc p {
    margin: 0;
}

.section#companySection .flexWrapper .companyCard .imgWrapper:nth-child(n):hover .desc:nth-child(n) {
    opacity: 1;
}

.section#communitySection {
    background: #fafafa;
    padding: 4rem 4rem 1rem;
}

.section#communitySection > div:nth-child(1) {
    margin: 0 auto 3rem;
    text-align: center;
    width: 80%;
}

.section#communitySection > div:nth-child(1) h6 {
    color: red;
    font-size: .8rem;
    margin: 0;
    text-transform: uppercase;
}

.section#communitySection > div:nth-child(1) h2 {
    font-size: 2rem;
    margin: .5rem 0 .5rem;
}

.section#communitySection > .flexWrapper:nth-child(2) {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin: 0 auto 2rem;
    max-width: 700px;
}

.section#communitySection > .flexWrapper:nth-child(2) div {
    width: 3rem;
}

.section#communitySection > .flexWrapper:nth-child(3) {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.section#communitySection > .flexWrapper:nth-child(3) > .flexWrapper:nth-child(2) {
    width: 28%;
}

.section#communitySection > .flexWrapper:nth-child(3) > .flexWrapper:nth-child(1) {
    width: 69%;
}

@media (max-width:1200px) {

    .section#portfolioSection .portfolioBanner p{
        width: 80%;
    }
    .section#companySection h3 {
        font-size: 3rem;
    }

}



@media (max-width: 960px) {
    h3 {
        font-size: 1rem;
    }
    p {
        font-size: 1rem;
    }

    .section#portfolioSection {
        padding: 2rem 4rem;
    }

    .section#portfolioSection .portfolioBanner p{
        width: 100%;
        margin-bottom: 2rem;
    }

    .section#portfolioSection .portfolioBanner div {
        width: 100%;
    }
    
    /* .section#portfolioSection > div:nth-child(1) >  img:nth-child(1) {
        width: 6rem;
    }
    
    .section#portfolioSection > div:nth-child(1) > img:nth-child(2) {
        width: 12rem;
    } */
    
    .section#companySection h3 {
        font-size: 2rem;
    }
    
    .section#companySection .flexWrapper .companyCard{
        width: 18rem;
    }

    .section#companySection .flexWrapper .companyCard h4{
        font-size: 1.25rem;
    }

    .section#companySection .flexWrapper .companyCard .imgWrapper {
        height: 18rem;
    }
    .section#companySection .flexWrapper .companyCard .imgWrapper a.portfolioLink .desc p {
        font-size: 1.25rem;
    }
    .section#communitySection > div:nth-child(1) h2 {
        font-size: 1.4rem;
    }
    .section#communitySection > .flexWrapper:nth-child(2) {
        padding: 0 2rem;
    }
    .section#communitySection > .flexWrapper:nth-child(3) .flexWrapper h2 {
        font-size: 1.2rem;
    }
    .section#communitySection > .flexWrapper:nth-child(3) .flexWrapper a {
        font-size: .9rem;
    }

}

@media (max-width: 767px) {
    .section#portfolioSection {
        padding: 2rem;
    }
    /* .section#portfolioSection > div:nth-child(1) >  img:nth-child(1) {
        width: 4rem;
    }
    
    .section#portfolioSection > div:nth-child(1) > img:nth-child(2) {
        width: 8rem;
    } */
    h3 {
        font-size: .9rem;
        margin: 0 auto 2rem;
        width: 100%;
    }
    /* .section#portfolioSection > div:nth-child(1) img {
        margin: 0 1rem;
    } */
    .section#portfolioSection .card {
        width: 14rem;
        height: 14rem;
    }

    .section#companySection .flexWrapper .companyCard{
        width: 14rem;
    }

    .section#companySection .flexWrapper .companyCard h4{
        font-size: 1.25rem;
    }

    .section#companySection .flexWrapper .companyCard .imgWrapper {
        height: 14rem;
    }
    .section#companySection .flexWrapper .companyCard .imgWrapper a.portfolioLink .desc p {
        font-size: 1rem;
    }

    .section#communitySection {
        padding: 4rem .7rem 1rem;
    }
    .section#communitySection > div:nth-child(1) h2 {
        font-size: 1.1rem;
    }
    .section#communitySection > .flexWrapper:nth-child(3) {
        display: block;
    }
    .section#communitySection > .flexWrapper:nth-child(3) > .flexWrapper:nth-child(1) {
        margin-bottom: 2rem;
        width: 100%;
    }
    .section#communitySection > .flexWrapper:nth-child(2) {
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
    }
    .section#communitySection > .flexWrapper:nth-child(2) > div {
        margin: 0 .5rem .3rem;
        width: 3rem;
    }
    .section#communitySection > .flexWrapper:nth-child(3) .flexWrapper h2,
    .section#communitySection > .flexWrapper:nth-child(3) .flexWrapper h2 {
        text-align: center;
    }
    .section#communitySection > .flexWrapper:nth-child(3) > .flexWrapper:nth-child(2) {
        display: block;
        width: auto;
    }
    .section#communitySection > .flexWrapper:nth-child(3) > div:nth-child(2) img {
        display: block;
        margin: auto;
        width: 25rem;
    }
    .section#communitySection > .flexWrapper:nth-child(3) .flexWrapper a {
        display: block;
    }

}

@media (max-width: 650px) {
    .section#portfolioSection .card {
        width: 11rem;
        height: 11rem;
    }
    .section#portfolioSection .portfolioBanner div .card:nth-child(1) img {
        padding: 1rem;
    }
    .section#communitySection > .flexWrapper:nth-child(2) {
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        padding: 0;
    }
    .section#companySection .flexWrapper .companyCard{
        width: 11rem;
    }

    .section#companySection .flexWrapper .companyCard h4{
        font-size: 1.25rem;
    }

    .section#companySection .flexWrapper .companyCard .imgWrapper {
        height: 11rem;
    }
    .section#companySection .flexWrapper .companyCard .imgWrapper a.portfolioLink .desc p {
        font-size: .9rem;
    }
}

@media (max-width: 550px) {
    .section#portfolioSection {
        padding: 1rem 1rem 2rem;
    }
    /* .section#portfolioSection > div:nth-child(1) {
        margin-bottom: 1rem;
    } */
    .section#portfolioSection .portfolioBanner p{
        width: 90%;
        font-size: 1rem;
    }

    h3 {
        font-size: .7rem;
    }
    p {
        font-size: .85rem;
    }
    p img {
        margin-right: .5rem;
        width: 10%;
    }
    .section#portfolioSection .card {
        width: 8rem;
        height: 8rem;
        margin: 0 .5rem;
    }

    .section#companySection {
        padding: 1.5rem 1rem;
    }
    .section#companySection h3 {
        font-size: 1.25rem;
    }

    .section#companySection .flexWrapper .companyCard{
        width: 8rem;
        margin: .5rem;
    }

    .section#companySection .flexWrapper .companyCard h4{
        font-size: 1rem;
    }

    .section#companySection .flexWrapper .companyCard .imgWrapper {
        height: 8rem;
    }

    .section#companySection .flexWrapper .companyCard .imgWrapper a.portfolioLink .desc p {
        width: 100%;
        height: 100%;
        font-size: .75rem;
        overflow: auto;
    }
    .section#companySection .flexWrapper .companyCard .imgWrapper a.portfolioLink .desc {
        padding: .5rem;
    }

    .section#communitySection > div:nth-child(1) {
        width: 100%;
    }
    .section#communitySection > .flexWrapper:nth-child(3) > div:nth-child(2) img {
        width: 100%;
    }
}