.mainContent {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    margin: auto;
    width: 80%;
    background-color: #ffffff;
}

#topMain {
    display: flex;
    flex-wrap: wrap-reverse;
    justify-content: space-around;
    align-items: center;
    padding: 0px 75px;
}

#topLeftMain,
#topRightMain {
    flex: 1;
    position: relative;
    min-width: 410px;
    margin: 20px;
}

#topLeftMain{
    text-align: center;
}

#topLeftMain h1 {
    font-size: xx-large;
    margin-bottom: 10px;
}

#topLeftMain hr {
    margin: auto;
    border-bottom: 1px black solid;
    margin-bottom: 15px;
    width: 90%;
}

#topLeftMain p{
    font-size: large;
}

#topRightMain{
    min-width: 410px;
}

#topRightMain img{
    max-height: 300px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
}

#bottomMain {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5;
}

#dynamicServicesContainer {
    width: 100%;
}

.serviceCard {
    display: flex;
    max-height: 50vh;
    max-width: 2200px;
    margin: 20px 0px;
    background: white;
    overflow: hidden;
    border: 3px solid #0030AC;
    border-radius: 20px;
}

.leftServiceCard {
    flex: 1;
    position: relative;
}

.leftServiceCard img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

.rightServiceCard {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.rightServiceCard h1 {
    font-size: xx-large;
    margin-bottom: 10px;
}

.rightServiceCard hr {
    border-bottom: 1px black solid;
    margin-bottom: 15px;
    width: 70%;
}

.rightServiceCard p {
    font-size: larger;
    padding: 0px 5vw;
}

.rightServiceCard ul {
    text-align: left;
    margin-top: 25px;
    list-style-type: disc;
    padding-left: 20px;
    text-align: left;
    display: inline-block;
}

.rightServiceCard li {
    font-size: larger;
    margin-bottom: 20px;
}

@media (max-width: 1312px){
    #topMain .fadeOverlayLeft{
        display: none;
    }
    .mainContent{
        width: 90%;
    }
}

@media (max-width: 750px) {
    .serviceCard {
        flex-direction: column;
        border-radius: 10px;
        max-height: none;
    }

    .leftServiceCard {
        flex: none;
        width: 100%;
    }

    .leftServiceCard img {
        max-height: 50vh;
        border-radius: 0px;
    }

    .fadeOverlayRight {
        display: none;
    }

    .fadeOverlayLeft {
        display: none;
    }

    .mainContent {
        width: 90vw;
    }
}