/* Universal styles */
* {
    box-sizing: border-box;
}

/* Global styles for the document */
body {
    margin: 0;
    background-color: #90C7E3;
    color: #666666;
    font-family: Verdana, Arial, sans-serif;
}

/* Styles for the header element */
header {
    background-color: #002171;
    color: #FFFFFF;
    font-family: Georgia, serif;
    padding: 1em;
}

/* Styles for the h1 element */
h1 {
    text-align: center;
    font-size: 1.5em;
    color: #FFFFFF;
}

/* Remove underline from header link */
header a {
    text-decoration: none;
    color: #FFFFFF;
}

/* Styles for the nav element */
nav {
    text-align: center;
    background-color: #FFFFFF;
}

/* Styles for the unordered lists in nav */
nav ul {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding-left: 0;
    list-style-type: none;
}

/* Styles for nav list items */
nav li {
    padding: 0.5em 1em;
    width: 100%;
    border-bottom: 1px solid #ccc;
}

/* Styles for the main element */
main {
    padding: 0 1em;
    display: block;
}

/* Styles for the section element */
section {
    padding-left: 0.5em;
    padding-right: 0.5em;
}

/* Styles for the hero image areas */
#homehero,
#yurthero,
#trailhero {
    height: 300px;
    background-size: 200% 100%;
    background-repeat: no-repeat;
}

#homehero {
    background-image: url('coast.jpg');
}

#yurthero {
    background-image: url('yurt.jpg');
}

#trailhero {
    background-image: url('trail.jpg');
}

/* Styles for the footer element */
footer {
    font-size: 0.70em;
    font-style: italic;
    text-align: center;
    padding: 1em;
    background-color: #FFFFFF;
}

/* Styles for telephone display */
#mobile {
    display: inline;
}

#desktop {
    display: none;
}

/* Media query for screens 600px and wider */
@media (min-width: 600px) {
    h1 {
        font-size: 2em;
        letter-spacing: 0.25em;
    }
    
    nav ul {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-around;
        padding-right: 2em;
    }
    
    nav li {
        width: 12em;
        border-bottom: none;
    }
    
    section {
        padding-left: 2em;
        padding-right: 2em;
    }
    
    #flow {
        display: flex;
        flex-direction: row;
    }
    
    #mobile {
        display: none;
    }
    
    #desktop {
        display: inline;
    }
    
    #homehero,
    #yurthero,
    #trailhero {
        background-size: 100% 100%;
    }
}

/* Media query for screens 1024px and wider */
@media (min-width: 1024px) {
    body {
        background-image: linear-gradient(to bottom, #FFFFFF 20%, #90C7E3 60%, #FFFFFF 100%);
    }

    nav ul {
        padding-left: 10%;
        padding-right: 10%;
    }

    #wrapper {
        width: 80%;
        margin: auto;
    }
}