* {
    box-sizing: border-box;
}

body {
    background-color: #D2B48C;
    background-image: url(fadedroad50.jpg);
    margin: 0;
    color: #221811;
    font-family: Tahoma, Arial, sans-serif;
}

iframe {
    width: 100%;
    padding-top: 40px;
}

header {
    color: #231814;
    background-color: #B69D74;
    background-image: url(final_scale.jpg);
    background-repeat: no-repeat;
    background-size: 200px 132px;
    height: 128px;
    padding-left: 105px;
    padding-top: 5px;
    padding-bottom: 5px;
}

header a:link {
    color: #231814;
}

header a:visited {
    color: #231814
}

header a:hover {
    color: #FEF6C2;
}

h1 {
    font-size: 2em;
}

h2 {
    color: #1F2839;
    padding-left: 1em;
    padding-right: 1em;
}

h3 {
    color: #1F2839;
    padding-left: 1em;
    padding-right: 1em;
}

h4 {
    background-color: #D2B48C;
    font-size: 1.2em;
    text-transform: uppercase;
    padding-left: 1em;
    padding-right: 1em;
    padding-bottom: 0;
    border-bottom: 2px solid #221811;
}

nav {
    text-align: center;
    font-size: 1.5em;
}

nav a:link {
    color: #FEF6C2;
}

nav a:visited {
    color: #D2B48C;
}

nav a:hover {
    color: #CC9933;
}

nav ul {
    display: flex;
    flex-direction: column;
    list-style-type: none;
    padding: 0;
    font-size: 1.23em;
    margin: 0;
}

nav li {
    padding-top: .5em;
    padding-bottom: .5em;
    padding-left: 1em;
    padding-right: 1em;
    width: 100%;
    border-bottom: 1px solid #FEF6C2;
}

a {
    text-decoration: none;
}

dt {
    color: #8c3826
}

img {
    padding-left: 10px;
    padding-right: 10px;
}

p {
    padding-left: 1em;
    padding-right: 1em;
}

/* div area is making the footer have space on left and right side margins */
div {
    padding-left: 1em;
    padding-right: 1em;
}

ul {
    padding-left: 3em;
    padding-right: 2em;
}

dl {
    padding-left: 1em;
    padding-right: 1em;
}

main {
    padding-left: 0;
    padding-right: 0em;
    padding-bottom: 2em;
    padding-top: 0;
    background-color: #F5F5EF;
}

main ul {
    padding-left: 2em;
}

footer {
    background-color: #B69D74;
    font-size: .60em;
    font-style: italic;
    text-align: center;
    padding: 1em;
    border-top: 2px solid #1F2839;
}

.clearleft {
    clear: left;
}

.details {
    padding-left: 20%;
    padding-right: 20%;
    overflow: auto;
}

#wrapper {
    background-color: #1F2839;
    padding: 0;
}

#homehero {
    background-image: url(boxcouch.jpg);
    background-size: 100% 100%;
    height: 300px;
}

#heromugs {
    background-image: url(boxham.jpg);
    background-size: 100% 100%;
    height: 300px;
}

#heroguitar {
    background-image: url(boxham.jpg);
    background-size: 100% 100%;
    height: 300px;
}

#mobile {
    display: none;
}

#desktop {
    display: inline;
}

table {
    margin: auto;
    width: 90%;
    border-spacing: 0;

}

td {
    padding: 10px;
}

th {
    padding: 10px;
}

#herojobs {
    background-image: url(boxcouch.jpg);
    background-size: 100% 100%;
    height: 300px;

}

form { 
    padding-left: 1em;
    display: grid;
    grid-template-columns: 6em 1fr;
    grid-gap: 1em;
    width: 9em;
}

input, textarea {
    margin-bottom: .5em;
    
}

label { 
    
    grid-column: 1 / 2;
  align-self: center;
}

input[type="submit"] {
    grid-column: 2 / 3;
    width: 9em;
}


tr:nth-of-type(odd) { background-color: #D2B48C; }

@media only screen and (min-width: 600px) {
    header {
        text-align: center;
        padding-left: 0;
    }

    h1 {
        font-size: 3em;
    }

    nav ul {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-around;
    }

    nav li {
        border-bottom: none;
    }

    #homehero {
        height: 50vh;
        background-image: url(couch.jpg);
    }

    #heromugs {
        background-image: url(ham.jpg);
    }

    #heroguitar {
        background-image: url(ham.jpg);
    }

    #herojobs {
        background-image: url(couch.jpg);
    }

    /* slide 14 #6  */
    #flow {
        display: flex;
        flex: auto;
        width: 100%;
        flex-direction: row;
    }

    #mobile {
        display: none;
    }

    #desktop {
        display: inline;
    }

    /* slide 14 #6  */
    .details {
        display: flex;
        flex: auto;
        width: 100%;
        flex-direction: row;
    }

    h4 {
        margin-left: 10%;
        margin-right: 10%;
    }
}

@media only screen and (min-width: 1024px) {

    @supports (display: grid) {

        header {
            grid-area: header;
        }

        nav {
            grid-area: nav;
        }

        main {
            grid-area: main;
        }

        footer {
            grid-area: footer;
        }

        #wrapper {
            display: grid;
            grid-template:
                "header header"
                "nav main"
                "footer footer"
                / 200px;
        }

        nav ul {
            display: flex;
            flex-direction: column;
        }

        header {
            background-image: url(final_scale.jpg);
        }

    }
}

@media only screen and (max-width: 599px) {
    .desktop-br {
      display: none;
    }
  }


  @media only screen and (max-width: 1023px) {
    header {
        background-image: none;
    }
}

@media only screen and (max-width: 1023px) {
    header {
        text-align: center;
        padding-left: 0;
        padding-right: 0;
    }
}
