*{
    --main-font: 'Source Sans Pro', sans-serif;
    --secondary-font: 'Herr Von Muellerhoff', cursive;
    --body-font: 'Cabin', sans-serif;
}

html{
    background-color: #222831;
}

section{
    margin: 0;
    padding: 0;
}

.hero-services {
    width: 100%;
    height: 70vh;
    background: linear-gradient(to bottom, rgba(0,0,0,.5), transparent), url("../images/hero-services.jpg") no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    text-align: center;
}

.services-section{
    display: flex;
    position: relative;
    justify-content: end;
    min-height: 30vh;
    background-size: 55%;
    background-color: #222831;
    overflow: hidden;
}

.service-container{
    margin: 80px 0;
    position: relative;
    width: 65%;
    float: right;
    background-color: #222831;
    padding: 80px;
    margin-right: 35px;
    box-shadow: 6px 6px 6px 2px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.08);
    transition: .5s;
}

.service-image{
    position: absolute;
    width: 35%;
    margin: 40px 0;
}

.img-right .service-container{
    margin: 80px 0;
    position: relative;
    width: 65%;
    float: left;
    background-color: #222831;
    padding: 80px;
    margin-right: 35px;
    box-shadow: 6px 6px 6px 6px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.08);
    transition: .5s;
}

.img-right .service-image{
    position: absolute;
    width: 35%;
    right: 0;
    margin: 40px 0;
    margin-right: 14%;
}

.service-image img{
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.service-container:hover{
    box-shadow: 10px 8px 10px 8px    rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.service-container .separator-subheadline{
    margin: 20px 0;
}

.service-subheadline{
    text-align: center;
    font-size: 5rem;
}

.service-subheadline-info{
    text-align: center;
    font-size: 3.5rem;
}

.service-content{
    font-size: 17px;
    font-family: var(--main-font);
    letter-spacing: .2rem;
    color: #fdfdfd;
    text-decoration: none;
    line-height: 30px;
    text-align: justify;
    margin-bottom: 40px;
}

.service-content p{
    text-decoration: none;
    color: black;
}

.service-links{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.service-links a{
    font-size: 17px;
    font-family: var(--main-font);
    letter-spacing: .2rem;
    border-bottom: 3px;
    font-weight: 400;
    color: #ffce76;
    cursor: pointer;
}

.service-links a:after { 
    content: "";
    display: block;
    height: 2px;
    left: 50%;
    background: #ffce76;
    transition: width 0.3s ease 0s, left 0.3s ease 0s;
    width: 0;
  }

.service-links a:hover:after{
    width: 100%; 
    left: 0; 
}

.inverse-triangle{
    background-color: white;
}

.appointment{
    background-color: white;
}

@media screen and (max-width :650px){
    
    .service-container,
    .img-right .service-container{
        margin: 20px auto;
        width: 100%;
        background-color: #222831;
        padding: 50px 10px;
        box-shadow: 6px 6px 6px 2px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.08);
        transition: .5s;
    }

    .service-container .headline{
        font-size: 1.8rem;
    }

    .service-content{
        font-size: 1.3rem;
        padding: 0;
        margin: 0 auto;
    }

    .service-image{
        display: none;
    }
}

@media screen and (max-width: 800px){
    .service-links{
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .service-links a{
        padding: 10px 0;
    }
}