/* Default styles */
#main{
    margin-left: 86px;
    margin-right: 86px;
}
.services-details__content {
    float: left;
    width: 50%;
    margin-top: 40px;
}

.services-details__content h2 {
    margin-top: 60px;
}

#main-img {
    width: 40%;
    float: right;
    margin-bottom: 60px;
    margin-right: 60px;
}

/* For tablets and smaller screens */
@media only screen and (max-width: 768px) {
    .services-details__content, #main-img {
        float: none;
        width: 100%;
        margin: 0;
        margin-bottom: 20px;
    }

    .services-details__content h2 {
        margin-top: 20px;
    }

    #main-img {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* For mobile phones */
@media only screen and (max-width: 480px) {
    #main{
        margin: 16px;
        padding-top: 0px;

    }

    .services-details__content h2 {
        margin-top: 15px;
    }

    .services-details__content p, .services-details__content ul {
        font-size: 1em;
    }

    #main-img {
        margin: 15px 0;
        margin-top: 0 !important;
    }
}
