.pageTitle {
    padding-top: 20px;
    padding-bottom: 10px;
    font-size: 5vw;
    color: rgb(34, 57, 57);
    font-weight: bold;
    text-align: center;
    width: 90%;
    margin-left: 5%;
}

.underlineFade {
    width: 90%;
    margin-left: 5%;
    height: 10px;
    background-image: linear-gradient(rgb(34, 57, 57), white);
}

.servicesBackground {
    background-image: url('../images/board.jpg');
    width: 100%;
    height: 250px;
    background-position: center;
    background-size: cover;
    margin-bottom: 30px;
}

.servicesDiv {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    height: fit-content;
    background-image: linear-gradient(rgb(179, 179, 179), white);
}

.servicesTitleText {
    font-size: 60px;
    color: white;
    background-color: rgb(47, 79, 79, .82);
    padding: 3px 15px;
    width: 50%;
    min-width: 570px;
    margin-left: 30px;
    position: relative;
    top: 140px;
}

.servicesRow {
    width: 100%;
    height: 50%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.servicesGrid {
    width: 100%;
    margin-bottom: 50px;
}

.servicesButton {
    width: 44%;
    margin: 0px 3%;
    height: 350px;
    border-radius: 10px;
    border: none;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    font-size: 6vw;
    color: white;
    font-weight: bold;
    padding: 0px;
}

.servicesButton:hover {
    cursor: pointer;
}

.servicesFirstRow, .servicesSecondRow {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    margin-top: 20px;
    height: calc(50% - 40px);
}

#blockOutDiv {
    position: fixed;
    display: none;
    top: 73px;
    left: 0px;
    width: 100vw;
    height: calc(100vh - 73px);
    background-color: rgb(0, 0, 0, .7);
}

.bigCenteredDiv {
    background-color: rgba(0,0,70);
    border-radius: 20px;
    display: none;
    width: 0px;
    height: 0px;
    max-height: 620px;
    position: absolute;
    left: 50vw;
    top: 50vh;
    border: 2px solid white;
}

.bigCenteredDiv:hover {
    cursor: pointer;
}

.servicesPopUpTitle {
    font-size: 28px;
    font-weight: bold;
    color: white;
    height: 100px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0px;
    left: 0px;
}

.contentSectionServices {
    position: absolute;
    top: 100px;
    left: 0px;
    height: calc(100% - 100px);
    width: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.contentSectionServicesText {
    position: absolute;
    top: 100px;
    left: 0px;
    height: calc(100% - 160px);
    width: 80%;
    padding-left: 10%;
    padding-top: 30px;
    padding-bottom: 30px;
    color: white;
    font-size: 18px;
    text-align: left;
    overflow: scroll;
}

#services1 {
    background: linear-gradient( rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5) ), url('../images/services1.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

#contentSectionImg1 {
    background-image: url('../images/services1.jpg');
    opacity: .10;
}

#services2 {
    background-image: url('../images/services2.jpg');
}

#contentSectionImg2 {
    background-image: url('../images/services2.jpg');
    opacity: .15;
}

#services3 {
    background-image: url('../images/services3.jpg');
}

#contentSectionImg3 {
    background-image: url('../images/services3.jpg');
    opacity: .15;
}

#services4 {
    background-image: url('../images/services4.jpg');
}

#contentSectionImg4 {
    background-image: url('../images/services4.jpg');
    opacity: .15;
}

@media only screen and (max-width: 1310px) {
    .servicesItemBack {
        font-size: 18px;
    }
}

@media only screen and (max-width: 1010px) {
    .servicesItemBack {
        font-size: 16px;
    }
}

@media only screen and (max-width: 830px) {
    /* .servicesItemBack {
        font-size: 14px;
    } */
    .contentSectionServicesText {
        font-size: 16px;
    }
}

@media only screen and (max-width: 500px) {
    .servicesItemBack {
        font-size: 12px;
    }
}

@media only screen and (max-width: 370px) {
    .servicesItemBack {
        font-size: 11px;
    }
}

@media only screen and (max-width: 780px) {
    .flipCard {
        width: 49%;
        height: 90%;
        margin: 1%;
    }
}


@media only screen and (max-width: 690px) {
    .servicesTitleText {
        font-size: 40px;
        width: 60%;
        min-width: 0px;
    }
}

@media only screen and (max-width: 675px) {
    .servicesFirstRow {
        flex-direction: column;
        height: fit-content;
    }
    .servicesSecondRow {
        flex-direction: column;
        height: fit-content;
    }
    .servicesButton {
        width: 80%;
        margin: 15px 10%;
        height: 300px;
    }
}

@media only screen and (max-width: 520px) {
    .servicesTitleText {
        top: 180px;
        font-size: 34px;
        width: 70%;
        min-width: 0px;
    }
}

@media only screen and (max-width: 520px) {
    .servicesTitleText {
        font-size: 28px;
        width: 70%;
    }
}
