* {
    margin: 0;
    padding: 0;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

html {
    background-color: #F7F1F0;
}

nav {
    position: fixed;
    width: 100%;
    height: 110px;
    font-size: 3vh;
    background-color: white;
    border-bottom: 3px solid #5e4031;
    z-index: 1;
}

#navlist {
    padding-top: 15px;
    position: fixed;
    display: inline-flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    
}

#spacep {
    flex: 0.5;
}

nav p {
    flex: 1;
    text-align: center;
    font-size: 2rem;
}
nav a {
    text-decoration: none;
}

nav ul {
    flex: 1;
    display: flex;
    justify-content: space-around;
    justify-items: center;
    align-items: center;
    width: 96%;
    font-size: 2rem;
}

nav li {
    display: inline;
    margin: 0 auto;
}

main {
    position: relative;
    bottom: 5px;
    background-color:#F7F1F0;
    border-top:3px solid #262220;
    padding-bottom: 200px;
}

.spacer {
    padding: 60px;
}

p {
    display: block;
}

header {
    padding: 0 0 0 10%;
    font-size: 3.5vh;
    background-color: #F7F1F0;
    color:#262220;
    background-image: url(BG4.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position-x: 90%;
    background-position-y: 55%;
}
h1 {
    font-size: 4rem;
}

header p {
    padding-top: 20px;
}

.line {
    background-color: #262220;
    width: 20%;
    height: 5px;
    margin: 5% 0;
}

header h3 {
    width: 40vw;
    font-size: 1.7rem;
}

header ul {
    font-size: 1.7rem;
    padding-bottom: 2.5vh;
}
header a {
    font-size: 1.7rem;
    text-decoration: underline;
    display: block;
}
#servicearea {
    height: 100%;
    margin-top: 0;
}

#map {
    display: block;
    width: 88%;
    margin: 8vh auto 50px auto;
}

#servicearea p {
    font-size: 3vh;
    width: auto;
    position: relative;
    padding-top: 20px;
    text-align: left;
}

.sectiontitle {
    font-size: 3.5vh;
    width: 80%;
    position: relative;
    left: 10%;
    padding-top: 10vh;
    text-align: left;
}


.line2 {
    height: 5px;
    width: 100%;
    background-color:#262220;
    margin-top: 20px;
}

.line3 {
    height: 5px;
    width: 80%;
    background-color: #262220;
    margin: 30px auto;
}

#aboutmegrid {
    margin-top: 50px;
    margin-bottom: 150px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 2fr auto auto;
    column-gap: 10%;
    min-height: 600px;
}
#headshot {
    width: 100%;
    grid-row: span 2;
    grid-column: span 1;
    object-fit: cover;
    margin: 0 auto;
    display: block;
}
.aboutmep {
    font-size: 2rem;
    margin-left: 10px;
    object-fit: contain;
}

#contactinfo {
    width: 100%;
    margin: 0 auto;
    height: 10px;
    padding-top: 50px;
    text-align: center;
    font-size: 2rem;
    background-color: #F7F1F0;
    color: black;
    border-top: 3px solid  #262220;
}
span {
    content: "\2011";
}
a {
    color: black;
}

@media only screen and (max-width: 469px) {
    header {
    background: none;
    background-color: #F7F1F0;
    }
    #navlist {
        flex-direction: column;
    }
    header ul {
        padding-left: 9%;
    }
    header a {
        margin-bottom: 10px;
    }
    .sectiontitle p {
        padding-top: 20px;
    }

    #contactinfo p {
        font-size: 1.5rem;
    }
    #headshot {
        width: 100%;
        height: 100%;
        grid-row: span 1;
    }
}

@media only screen and (min-width: 470px) {
    header {
    border-bottom: 4px solid #262220;
    }
    #navlist {
        flex-direction: row;
    }
    nav li {
        margin-right: 20px;
    }
    #services {
        padding-bottom: 50px;
    }
}

@media only screen and (min-width: 900px) {
    .aboutmep {
        font-size: 1.6rem;
    }
    #headshot {
        min-height: 575px;
        max-height: 650px;
        object-position: center 35%;
    }
    #aboutmegrid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
}
@media only screen and (max-width: 730px) {
    header {
        background-image: none;
    }
    header h3 {
        width: 70vw;
    }
}