/* Universal selector */
* {
    box-sizing: border-box;
}

/* Wrapper styles */
#wrapper {
    background: linear-gradient(to bottom, #FFFFFF, #0C5442);
    border: 1.5pt solid #003300;
    margin: 0 auto;
    width: 80%;
    min-width: 900px;
    max-width: 2050px;
    box-shadow: 0 0 4px #133926;
}

/* Body styles */
body {
    background-color: #FFFFFF;
    background-image: none;
    background-repeat: no-repeat;
    color: #666666;
    font-family: Arial, Helvetica, sans-serif;
}

/* Header styles */
header {
    height: 175px;
    padding-top: 30px;
    padding-left: 3em;
    background-color: #00B386;
    color: #FFFFFF;
    background-image: url('pasture.png');
    background-repeat: no-repeat;
    background-position: right;
    text-align: center;
}

/* H1 styles */
h1 {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 3em;
    letter-spacing: 0.25em;
    font-family: Georgia, 'Times New Roman', serif;
}

/* H2 styles */
h2 {
    color: #00664D;
    font-family: Georgia, 'Times New Roman', serif;
    text-shadow: 1px 1px #CCCCCC;
}

/* H3 styles */
h3 {
    color: #006646;
    font-family: Georgia, 'Times New Roman', serif;
}

/* DT styles */
dt {
    color: #00664D;
}

/* Barn class styles */
.barn {
    color: #70DBDB;
    font-weight: bold;
}

/* Main UL styles */
main ul {
    list-style-image: url('marker.gif');
    list-style-type: none;
    margin: 0;
    padding-left: 0;
    font-size: 1.2em;
}

/* Footer styles */
footer {
    font-size: 75%;
    font-style: italic;
    text-align: center;
    font-family: Georgia, 'Times New Roman', serif;
    padding: 15px;
    margin-left: 190px;
    background-color: #FFFFFF;
}

/* Contact ID styles */
#contact {
    font-size: 90%;
}

/* Hero section styles */
#heroHome, #heroBoard, #heroTraining {
    height: 300px;
    margin-left: 190px;
}

#heroHome {
    background: url('sunsetHorse.png') no-repeat;
    background-size: 100% 100%;
}

#heroBoard {
    background: url('fenceline.png') no-repeat;
    background-size: 100% 100%;
}

#heroTraining {
    background: url('BayBella.png') no-repeat;
    background-size: 100% 100%;
}

/* Nav styles */
nav {
    padding: 1.5em;
    font-size: 120%;
    float: left;
    width: 160px;
}

/* Nav UL styles */
nav ul {
    list-style-type: none;
    margin: 0;
    padding-left: 0;
    font-size: 1.2em;
}

/* Nav link styles */
nav a:link {
    color: #00664D;
}

nav a:visited {
    color: #7A7A52;
}

nav a:hover {
    color: #FFFFFF;
}

/* Main content styles */
main {
    background-color: #FFFFFF;
    margin-left: 190px;
    padding-left: 30px;
}

/* Mobile and Desktop ID styles */
#mobile {
    display: none;
}

#desktop {
    display: inline;
}

/* Media queries for tablet display */
@media only screen and (max-width: 64em) {
    body {
        margin: 0;
        background-color: #FFFFFF;
    }
    #wrapper {
        min-width: 0;
        width: auto;
        box-shadow: none;
        border: none;
    }
    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-top: 0.25em;
        padding-bottom: 0.25em;
        padding-left: 0.75em;
        padding-right: 0.75em;
    }
    #heroHome, #heroBoard, #heroTraining {
        margin-left: 0;
        height: 200px;
    }
    footer {
        margin-left: 0;
    }
}

/* Media queries for smartphone display */
@media only screen and (max-width: 37.5em) {
    main {
        padding-top: 0.1em;
        padding-bottom: 0.1em;
        padding-left: 1em;
        padding-right: 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;
    }
    #heroHome, #heroBoard, #heroTraining {
        display: none;
        background-image: none;
        height: 0;
    }
    #mobile {
        display: inline;
    }
    #desktop {
        display: none;
    }
}

/* Step 3: Modify the External Style Sheet to Add CSS for the Table */
table {
    border: 1.5px solid #006600;
    border-collapse: collapse;
}

td, th {
    padding: 0.5em;
    border: 1px solid #006600;
}

tr:nth-of-type(odd) {
    background-color: #ECF9EC;
}

/* Step 5: Modify the External Style Sheet to Add CSS for the Form */
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;
}

/* Optimize for Smart Phone display */
@media (max-width: 37.5em) {
    label {
        float: none;
        text-align: left;
    }
    input[type="submit"] {
        margin-left: 0;
    }
}