* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    color: #555;
}

a {
    color: white;
}
   
ul {
    list-style: none;
}

hr{
    border: 0; 
    width: 50%;
    height: 1px; 
    margin-left: 25%;
    margin-right: 25%;
    background-image: -webkit-linear-gradient(left, #f0f0f0, #8c8b8b, #f0f0f0);
    background-image: -moz-linear-gradient(left, #f0f0f0, #8c8b8b, #f0f0f0);
    background-image: -ms-linear-gradient(left, #f0f0f0, #8c8b8b, #f0f0f0);
    background-image: -o-linear-gradient(left, #f0f0f0, #8c8b8b, #f0f0f0); 
}

header{
    background-color: #2b5797;
    background-image: url("img/background-top.jpg");
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    color: #fff;
    padding: 35px 100px 20px;
    display: flex;
    justify-content: space-around;
    align-items: center; 
}

header div h1{
    font-family: 'Raleway', sans-serif;
    font-size: 36px;
    font-weight: bold;
}

#logo{
    -webkit-filter: invert(1);
    filter: invert(1);
}

header a {
    text-decoration: none;
    color: white;
    opacity: .6;
    cursor: pointer;
    text-transform: uppercase;
}

header a:hover {
    opacity: 1;
}

header nav ul {
    font-size: 14px;
    display: flex;
    justify-content: flex-end;
}
   
header nav li {
    margin: 0 6px;
}
   
header nav li:first-child {
    margin-left: 0;
}
   
header nav li:last-child {
    margin-right: 0;
}

#top-row{
    display: flex;
    justify-content: center;
    padding-top: 1em;
}

#top-img{
    margin: 0 10px;
}

#top-img img{
    width: 250px;
    border-radius: 1em;
}

h3.title {
    font-size: 32px;
    margin: 15px 0;
    text-align: center;
}

#appointments{
    font-size: 20px;
    margin: 1em 10em;
    padding-top: 4em;
    white-space: nowrap;
}

#call-us{
    padding-top: 1em;
}

#appointments h4{
    text-align: center;
}

#appointments h4 a{
    color: #555;
    text-decoration: none;
}

#appointment-btn{
    background: #2b5797;
    padding: 10px;
    margin: 1em;
    border-radius: 1em;
    text-decoration: none;
}

#service-categories{
    display: flex;
    justify-content: center;
    font-size: 20px;
    font-family: 'Raleway', sans-serif;
    padding: 1em 0em;
}

.category{
    margin: 0 1em;
}

.category h4{
    border: solid #555 1px;
    color: #555;
    font-family: 'Martel', serif;
    font-size: 19px;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    padding: 0.5em 0;
    margin-bottom: 0.3em;
}

.service-list{
    display: grid;
    grid-template-columns: 165px 1fr 165px;
    padding: 0 1em 1em;
    white-space: nowrap;
    position: relative;
}

.service-names{
    text-align: right;
}

.divider{
    width: 0.1px;
    margin: 6px 0;
    background: #555;
    padding: 0.5px;
    margin: 0 1em;

}

.prices{
    margin-right: auto;
}

#testimonials{
    padding-bottom: 0.4em;
}

#quotes{
    text-align: center;
}

.review{
    padding: 0.5em;
}

.review h4{
    font-family: 'Raleway', sans-serif;
    font-size: 20px;
    font-weight: normal;
}

.review h5{
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    padding-top: 0.25em;
    font-weight: normal;
}

#location-hours{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 1em;
}

#hours{
    text-align: center;
    font-weight: normal;
    font-size: 22px;
    padding-bottom: 15px;
}

#map{
    position: relative;
    width: 50%;
    padding-top: 50%;
}

#map iframe{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

footer {
    background-color: #2b5797;
    font-family: 'Raleway', sans-serif;
    font-size: 20px;
    background-image: url("img/background-bottom.jpg");;
    /* linear-gradient(
        #2b5797, rgb(172, 90, 205)
    ); */
    color: white;
    text-align: center;
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media(max-width:1332px) {
    header {
      text-align: center;
      flex-direction: column;
      padding: 20px 50px;
    }
    header img {
      width: 75%;
    }
    header nav {
      justify-content: space-around;
    }
    header nav ul{
      justify-content: center;
    }
    header h2 {
      margin-bottom: 15px;
    }
    #top-row{
      flex-direction: column;
      align-items: center;
    }
    #appointments{
        padding-top: 0;
    }
    .category{
        font-size: 20px;
        margin: 0.5em 0;
    }
    #service-categories{
        flex-direction: column;
        align-items: center;
    }
    .service-list{
        grid-template-columns: 130px 1fr 130px;
    }
}

@media(max-width:410px){
    header nav ul{
        font-size: 12px;
    }
}

@media(max-width:355px){
    header nav ul{
        font-size: 11px;
    }
}

@media(max-width:380px){
    .service-list{
        grid-template-columns: 130px 1fr 130px;
        font-size: 16px;
    }
}

@media(min-width:380px){
    .service-list{
        grid-template-columns: 140px 1fr 140px;
        font-size: 17px;
    }
} 

@media(min-width:389px){
    .service-list{
        grid-template-columns: 150px 1fr 150px;
        font-size: 18px;
    }
}

@media(min-width:410px){
    .service-list{
        grid-template-columns: 155px 1fr 155px;
        font-size: 19px;
    }
}

@media(min-width:425px){
    .service-list{
        grid-template-columns: 165px 1fr 165px;
        font-size: 20px;
    }
}

