/*** whole document properties start***/

@font-face {
    font-family: CascadiaCode;
    src: url(CascadiaCodePL.ttf)
}

@font-face {
    font-family: LonelyAlways;
    src: url(LonelyAlways.ttf)
}

.centerall {
    text-align: center;
    /* Clear any floating elements */
    clear: both;
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    position: relative;
    min-height: 100vh;
    background-attachment: fixed;
    background-position: right bottom;
    background-size: cover;


}

#content-wrap {
    padding-bottom: 75px;
}

nav{
    z-index:999;
}

main {
    color: #594442;

}

h1 {
    font-family: 'LonelyAlways', sans-serif;
    font-size: xxx-large;
    font-style: italic;
    margin-bottom: .5em;
    letter-spacing: 2px;
    line-height: 100%;
    margin-top:0.5em;
}

h3 {
    font-family: 'LonelyAlways', sans-serif;
    font-size: xx-large;
    letter-spacing: 2px;
    font-style: italic;
    margin-bottom: 1em;
}

p {
    margin-bottom: 1.5em;
}

a {
    font-family: 'CascadiaCode', sans-serif;
    font-weight: lighter;

}

/*** whole document properties end***/
/***section properties start***/

/***-->navbar*/

.logo img {
    height: 90px;
}

.logo {
    font-size: 20px;
    padding: 7.5px 10px 7.5px 10px;
}

.item {
    padding: 10px;
}

/*navbar ends*/
/*main section*/
main {
    padding-left: 7%;
    padding-right: 7%;
    padding-top: 12%;
    padding-bottom: 10%;
}

main a:link {
    line-height: normal;
    display: inline;
    color: #a65e58;

}

main a:visited {
    color: #352827;

}

main a:hover {
    color: #7c9c73;

}

.flex-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-content: space-around;

}

.flex-item {
    border-style: hidden;
    background-color: rgb(233, 242, 233, .5);
    border-radius: 5px;
    box-shadow: 10px 10px 8px#788c74;
    padding: 30px;
    width: 80vw;
    line-height: 150%;
    margin: 20px;


}

.flex-item p,
li {
    font-size: larger;
    line-height: 1.2;
}

/*homepage*/
#homewelcome {
    padding-top: 30px;
    text-align: center;
    width: 70%;
    margin: auto;
    font-size: larger;
}

button {
    color: #E9f2e9;
    font-family: 'CascadiaCode', sans-serif;
    background-color: #556e50;
    font-size: 19px;
    border: 1px solid #1b201a;
    border-radius: 11px;
    padding: 15px 50px;
    letter-spacing: 1px;
    cursor: pointer;
    font-weight: lighter;
}

button:hover {
    color: #f2dea0;
    background-color: #8da686;
}

/*Contact page*/
#contactcontainer {
    text-align: center;
    max-width: 650px;
    margin: auto;
}

/*About page*/
#headshot {
    height: 275px;
    float: right;
    border: 5px #1b201a solid;
    box-shadow: 10px 10px 8px#788c74;
    margin-left: 15px;
    margin-right: 15px;
    margin-top: 30px;
    margin-bottom: 15px;
    border-radius: 5px;
}

#bio {
    padding-top: 15px;
}

/*Services page*/
#servicescontainer {
    flex-wrap: wrap;
    align-items: flex-start;

}

#servicescontainer ul {
    margin-left: 20px;
}


/*faq page*/
.faq-item h3 {
    font-family: 'CascadiaCode', sans-serif;
    font-size: large;
    font-style: normal;
    font-weight: normal;
    letter-spacing: normal;
}

#faqcontainer {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
}

/*sitemap*/
#sitelinks {
    text-align: center;
}

#sitelinks span {
    display: block;
}

/*404 page*/
#errormsg {
    margin-top: 200px;
    text-align: center;

}

#errormsg p {
    font-size: larger;
}

/*footer*/
footer {
    font-family: 'CascadiaCode', 'AmericanTypewriter', sans-serif;
    font-size: 10px;
    font-style: normal;
    font-weight: bold;
    color: #594442;
    text-align: center;
    padding-top: 20px;
    padding-right: 0px;
    padding-bottom: 20px;
    padding-left: 0px;
    left: 0;
    bottom: 0;
    width: 100%;
    position: absolute;
    height: 75px;
}

footer a:link {
    color: #788c74;
    line-height: 150%;

}

footer a:visited {
    color: #a65e58;
}

footer a:hover {
    color: #594442;
}

footer a:active {
    color: #3e5439;
}

/****Media Queries Start*****/
/* Mobile menu and up--> mobile first= the properties are inherited by larger screens unless directly contradicted*/
.menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.menu a {
    display: block;
    padding: 15px 5px;
}

.toggle {
    order: 1;
    font-size: 20px;
}

.logo img {
    height: 40px;
}

.item {
    order: 3;
    width: 100%;
    text-align: center;
    display: none;
    
}

.active .item {
    display: block;
}

/*mobile menu ends*/
body {
    background-image: url("images/backgroundvertical.png");
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;

}

nav {
    padding: 10px 20px 10px 15px;
    position: absolute;
    width: 100%;
}

nav a {
    color: #E9f2e9;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 20px;
}

@media all and (max-width:799px) {
    nav {
        background-color: #556e50;

    }

    nav .item:hover {
        color: #f2dea0;
        background-color: #8da686;
    }

    main {
        padding-top: 30%;
        padding-bottom: 15%;
    }

    .flex-container,
    #servicescontainer {
        flex-direction: column;
        margin: auto;
        align-items: center;
        align-content: center;

    }


}


/*tablet and up*/
@media all and (min-width:800px) {
    body {
        background-image: url("images/backgroundhorizontal.png");
    }

    /*nav starts*/
    nav {
        background-color: none;
    }

    nav a {
        color: #594442;
        padding: 14px 16px;
        text-decoration: none;
        font-size: 1.75vw;
        font-family: 'CascadiaCode', sans-serif;
    }

    nav a:hover {
        color: #a65e58;
    }

    .logo {
        flex: 1;
        order: 0;
    }

    .logo img {
        height: 70px;
    }

    .menu {
        justify-content: center;
        padding: 0;
        align-items: flex-start;
        flex-wrap: nowrap;
        background: none;
    }

    .item {
        padding: 30px 0px 0px 40px;
        order: 1;
        position: relative;
        display: block;
        width: auto;
    }

    .toggle {
        flex: 1;
        text-align: right;
        order: 2;
        display: none;
    }

    /*nav ends*/
    .service-item {
        max-width: 450px;
    }

    .faq-item {
        max-width: 450px;
    }
}

/****Media Queries End***/