/* universal style */
* {
    box-sizing: border-box;
}

header, main, nav, footer, figure, figcaption, aside, section, article {
    display: block;
}

/* style header and body */
body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #FFFFFF;
}

header {
    background-color: #00B386;
    color: #FFFFFF;
    text-align: center;
    height: 175px;
    padding-top: 30px;
    padding-left: 3em;
}

/* style all the heading */
h1 {
    margin-top: 0;
    margin-bottom: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 3em;
    letter-spacing: 0.25em;
}

h2 {
    color: #00664D;
    font-family: Georgia, 'Times New Roman', serif;
    text-shadow: 1px 1px #CCCCCC;
}

h3 {
    font-family: Georgia, 'Times New Roman', serif;
    color: #006646;
}

/* style nav bar */
nav {
    font-weight: bold;
    font-size: 120%;
    float: left;
    width: 160px;
    padding: 1.5em;
}

nav a {
    text-decoration: none;
}

nav a:link {
    color: #003300;
}

nav a:visited {
    color: #7A7A52;
}

nav a:hover {
    color: #FFFFFF;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding-left: 0;
    font-size: 1.2em;
}

/* style list */
dt {
    color: #00664D;
}

/* Style the un-ordered list */
main ul {
    list-style-image: url(assets//marker.gif);
}

/* style footer */
footer {
    font-size: 75%;
    font-style: italic;
    font-family: Georgia, 'Times New Roman', serif;
    text-align: center;
    padding: 15px;
    margin-left: 190px;
    background-color: #FFFFFF;
}

/* style the main */
main {
    padding: 1px 20px 20px 30px; /* top right bottom left*/
    display: block;
    margin-left: 190px;
    background-color: #FFFFFF;
}

/* style class */
.barn {
    color: #5C7FA3;
}

/* style id */
#contact {
    font-size: 90%;
}

#wrapper {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    background-color: #0C5442;
    background-image: linear-gradient(to bottom, #FFFFFF, #0C5442);
    min-width: 900px;
    max-width: 1000px;
    box-shadow: 4px 4px 4px #133926;
    border: 1.5px solid #003300;
}

#heroHome {
    height: 300px;
    background-image: url(assets/sunsetHorse.png);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    margin-left: 190px;
}

#heroBoard {
    height: 300px;
    background-image: url(assets/fenceline.png);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    margin-left: 190px;
}

#heroTraining {
    height: 300px;
    background-image: url(assets/BayBella.png);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    margin-left: 190px;
}

#contact {
    font-size: 90%;
}

#mobile {
    display: none;
}

#desktop {
    display: inline;
}

/* table */
table {
    border: 1.5px solid #006600;
    border-collapse: collapse;
    width: 80%;
    border-spacing: 0;
}

td, th {
    padding: 5px;
    border: 1px solid #006600;
}

td {
    text-align: center;
}

tr:nth-of-type(odd) {
    background-color: #ECF9EC;
}

/* label */
label {
    float: left;
    display: block;
    text-align: right;
    width: 125px;
    padding-right: 2em;
}

input, textarea {
    display: block;
    margin-bottom: 20px;
}

input[type="submit"] {
    margin-left: 135px;
}



/* media query for the screen size */

/* tablet-size */
@media only screen and (max-width: 64em) {
    /* general set-up */
    body {
        margin: 0;
        background-color: #FFFFFF;
    }

    header {
        padding-top: 0.5em;
        padding-bottom: 0.5em;
        padding-left: 0;
        height: auto;
    }

    h1 {
        letter-spacing: 0.1em;
    }

    main {
        margin-left: 0;
    }

    nav {
        float: none;
        width: auto;
        text-align: center;
        padding: 0.5em;
    }

    nav li {
        display: inline;
        padding: 0.25em 0.75em 0.25em 0.75em;
    }

    footer {
        margin-left: 0;
    }

    /* id set-up */
    #wrapper {
        min-width: 0;
        width: auto;
        box-shadow: none;
        border: none;
    }

    #heroHome, #heroBoard, #heroTraining {
        margin-left: 0;
        height: 200px;
    }

}

/* smartphone size */
@media only screen and (max-width: 37.5em) {
    /* general set up */
    main {
        padding: 0.1em 1em 0.1em 1em;
        font-size: 90%;
    }

    h1 {
        font-size: 2em;
    }

    nav {
        padding: 0;
    }

    nav li {
        display: block;
        margin: 0;
        border-bottom: 2px solid #330000;
    }

    nav a {
        display: block;
    }

    /* id set-up */
    #homehero, #yurthero, #trailhero {
        background-image: none;
        height: 0;
    }

    #mobile {
        display: inline;
    }

    #desktop {
        display: none;
    }

    label {
        float: none;
        text-align: left;
    }

    input[type="submit"] {
        margin-left: 0;
    }
}