*{
    font-family: sans-serif;
}

body{
    margin: 0;
    background-color: #FFFFFF;
}

header{
    display: block;
}

.navigation{
    background-color: #517DB6;
    width: auto;
    height: 70px;
}

nav {
    display: block;
}

#img1{
    background-image: url(images/image4.jpg);
}

#img2{
    background-image: url(images/image5.jpg);
}

#img3{
    background-image: url(images/image6.jpg);
}



nav a{
    display: block;
    padding: 0px 30px;
    padding-top: 1.4rem;
    text-decoration: none;
    float: right;
    font-size: 1.2em;
}

nav a:link{
    color: #FFFFFF;
}

nav a:visited{
    color: #FFFFFF;
}

nav a:hover{
    color: #FFFFFF;
}

nav li{
    clear: left;
    float: right;
}

nav ul{
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}


#homehero{
    background-image: url(images/image2.jpg);
    background-size: cover;
    background-position: center;
    height: 450px;
    width: auto;
}


h3{
    color: #FFFFFF;
    display: block;
    padding: 1.4rem 0 0 0em;
    margin: 0 0 0.5rem;
    float: left;
    font-size: 1.4em;
}

.header{
    margin-left: 40em;
}

.textwidth{
    width: 500px;
}

.hire{
    width: 250px;
    height: 40px;
    margin: auto;
    position: relative;
    top: 50%;
    text-align: center;
    background-color: rgba(81,125,182,.75);
}

div div a{
    color: #FFFFFF;
    text-decoration: none;
    font-size: 2em;
}

.middlecontent{
    margin-top: 5em;
    width: 100%;
    height: 500px;
    margin-right: 40em;
}

.middlephoto{
    float: left;
}

.photo{
    
}

.centertext{
    padding: 20px;
    margin-left: 350px;
}

.bottomcontent{
    margin-top: 0;
    width: auto;
    height: 250px;
    text-align: center;
}

.bottomphoto{
    display: block;
    float: left;
    width: 33%;
}

p{
    font-size: 1em;

}

.wrapper{
    width: 992px;
    margin-left: auto;
    margin-right: auto;
}

.phototext{
    
}

.photobutton{
    position: relative;
    bottom: 144px;
    left: 65px;
    width: 200px;
    height: 40px;
    background-color: rgba(81,125,182,.75);
}

footer{
    background-color: #517DB6;
    width: auto;
    height: 120px;
    margin-top: 50px;
}

.dropdown{
    display: none;
}

.family{
    margin-left: auto;
    margin-right: auto;
    width: 50%;
    display: block;
}

.about{
    margin-top: 50px;
}

.projects{
    margin-top: 50px;
    height: 900px;
}


.mobile{
    display: none;
}
    

.contact{
    margin-top: 50px;
}

.servicetxtwidth{
    width: 500px;
    margin: 0;
}

.serviceimg{
    float: right;
    width: 302.5px;
    height: 227px;
}

.mastication{
    width: 500px;
    margin-right: 0;
}

.masticationimg{
    margin-top: 75px;
}

.textpadding{
    margin-top: 75px;
}

div.transportationimg.textpadding{
    margin-top: 10px;
}

.videos{
    height: 500px;
}

.submitbutton{
    width: 100px;
    height: 50px;
    background-color: #3498DB;
    text-decoration: none;
    color: white;
}

#form{
    margin-top: 50px; 
}

.contactlink{
    color: #517DB5;
    text-decoration: none;
    font-size: 1em;
}

.titlelink{
    color: #FFFFFF;
    text-decoration: none;
    
}



@media only screen and (max-width: 1024px){
    
    #homehero{
        background-image: none;
        height: 0;
    }
    
    .wrapper{
        width: 768px;
    }
    
    .bottomphoto{
        display: inline-block;
        clear: left;
        float: none;
        margin-left: auto;
        margin-right: auto;
        width: auto;
    }

    div.bottomcontent.wrapper{
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        width: auto;
        height: auto;
    }

    .mobile{
        display: inline;
    }
    
    .desktop{
        display: none;
    }
    
    .servicetxtwidth{
        padding-right: 10px;
    }
    
}

@media only all and (max-width:786px){
    body{
        margin: 0;
        padding: 0;
    }
    

    
    #homehero{
        background-image: none;
        height: 0;
    }
    
    .wrapper{
        width: 100%;
        margin-left: 30px;
    }
    
    .middlephoto{
        display: none;
    }
    
    .centertext{
        margin-left: 0;
    }
    
    .bottomphoto{
        display: inline-block;
        clear: left;
        float: none;
        margin-left: auto;
        margin-right: auto;
        width: auto;
    }
    
    .middlecontent{
        height: auto;
        margin-top: 0;
    }
    
    .logoleft{
        margin-left: 10px;
    }

    div.bottomcontent.wrapper{
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        width: auto;
        height: auto;
    }
    
    nav{
        display: none;
    }
    
    .dropbtn {
        background-color: #3498DB;
        color: white;
        padding: 16px;
        font-size: 16px;
        border: none;
        cursor: pointer;
        float: right;
        margin: 10px;
    }
    
    .dropbtn:hover, .dropbtn:focus {
        background-color: #2980B9;
    } 

    .dropdown {
        position: relative;
        display: inline-block;
        float: right;
    }
    
    .dropdown-content {
        display: none;
        position: absolute;
        background-color: #f1f1f1;
        min-width: 160px;
        box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
        z-index: 1;
        right: 0;
        font-size: 10px;
    }
    
    .dropdown-content a {
        color: black;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
    }

    .dropdown-content a:hover {background-color: #ddd}
    
    .show {display:block;}
    
    .serviceimg{
        float: none;
        display: none;
    }
    
    .servicetxtwidth{
        width: 300px;
    }
    
    .projects{
        height: auto;
    }
    
    .textpadding{
        margin-top: 0;
    }
    
    .hometext{
        margin-right: 10px;
    }
    
    .textwidth{
        width: auto;
    }
}
