@charset "utf-8";

body
{
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

h1
{
    text-align: center;
    text-shadow: 1.5px 1.5px 1.5px rgb(62, 62, 62);
    font-size: 3em;
    color: brown;
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

h2
{
    color: rgb(183, 128, 70);
    font-size: 2em;
    text-align: center;
    text-shadow: 1.5px 1.5px 1.5px rgb(62, 62, 62);
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

p
{
    text-align: center;
    font-size: 1.1em;
    width: 75%;
    margin-left: auto;
    margin-right: auto;
}

form p
{
    text-align: left;
}

header
{
    background-color: rgb(199, 183, 162);
    text-align: center;
    padding-bottom: 15px;
    color: aliceblue;
    text-shadow: 1.5px 1.5px 1.5px rgb(62, 62, 62);
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

main
{
    clear: both;
    background-color: aliceblue;
    padding-bottom: 10px;
    padding-top: 0.25px;
}

main img
{
    width: 25%;
}

footer
{
    clear: both;
    background-color: brown;
    color: rgba(255, 255, 255, 0.6);
    font: bold 0.9em/3em;
    text-align: center;
    padding: 10px;
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

footer a
{
    color: deepskyblue;
}

nav li
{
    float: left;
    width: 25%;
    height: 75px;
    display: block;
    background-color: brown;
    text-align: center;
    text-shadow: 1.5px 1.5px 1.5px rgb(62, 62, 62);
    box-shadow: 1.5px 1.5px 1.5px rgb(62, 62, 62);
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    margin-bottom: 10px;
}

nav a
{
    color: aliceblue;
    font-size: 1.25em;
    line-height: 3.75em;
    transition: font-size 0.25s;
}

a#title, a#title:hover
{
    padding: 2px;
    text-decoration: none;
    font-size: 2.25em;
    line-height: 2em;
    color: aliceblue;
    border: solid 5px white;
}

nav a:hover
{
    color: black;
    font-size: 1.40em;
}

a#attribution
{
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.6);
}

img#icon
{
    width: 70px;
    margin-right: 275px;
}

div.headerGallery
{
    display: flex;
    border: inset 35px brown;
}

div.productGallery
{
    padding-top: 30px;
    display: flex;
    flex-flow: wrap;
    background-color: aliceblue;
}

div.productPhoto
{
    width: 40%;
    flex: 25%;
    margin: 20px;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 1.4em;
}

div.productPhoto img
{
    width: 90%;
    border-radius: 20px;
    border: solid 5px brown;
    box-shadow: 2px 2px 2px rgb(62, 62, 62);
}

div.previewGallery
{
    padding-top: 30px;
    display: flex;
    flex-flow: wrap;
    background-color: aliceblue;
}

div.previewPhoto
{
    width: 25%;
    margin: 0px;
}

div.previewPhoto img
{
    width: 90%;
    border-radius: 20px;
    border: solid 5px brown;
    box-shadow: 2px 2px 2px rgb(62, 62, 62);
}

/* Form Style Rules */
form
{
    text-align: left;
    width: 90%;
    padding: 5px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
}

input:focus, select:focus, textarea:focus
{
    background-color: rgba(11, 176, 247, 0.153);
}

input:focus:valid, select:focus:valid, textarea:focus:valid
{
    background: rgba(7, 223, 119, 0.553);
}

input:focus:invalid, select:focus:invalid, textarea:focus:invalid
{
    background: rgba(247, 11, 11, 0.482);
}

input, select
{
    display: block;
    position: relative;
    left: 30%;
    padding: 5px;
    height: auto;
    width: 65%;
}

label
{
    display: block;
    position: absolute;
    padding: 5px;
    width: 30%;
}

input[type="radio"]
{
    display: inline;
    position: inherit;
    left: 0px;
    width: auto;
}

label.radio
{
    display: inline;
    position: inherit;
}

textarea
{
    padding: 10px;
    margin: 10px;
}

input[type="submit"], input[type="reset"]
{
    display: block;
    float: left;
    background-color: brown;
    color: aliceblue;
    left: 0px;
    text-align: center;
    width: 40%;
    padding: 10px;
    margin-left: 5%;
    margin-right: 5%;
    margin-bottom: 10px;
}
/* End of Form Style Rules */

/* Mobile Devices: Screen Sizes = 0px-768px */
@media only screen and (max-width: 768px)
{
    html
    {
        background-color: blanchedalmond;
    }

    body
    {
        width: 100%;
        margin: 0px;
    }

    a#title
    {
        font-size: 1.50em;
        line-height: 2.25em;
    }

        nav
    {
        padding: 0px;
    }

    nav li
    {
        float: none;
        font-size: 1.25em;
        width: 100%;
        display: block;
    }

    nav a
    {
        line-height: 2.5em;
    }

    div.headerGallery
    {
        display: flex;
    }

    form
    {
        width: 100%;
        font-size: large;
    }

    fieldset
    {
        width: 100%;
        padding: 5px;
        margin: 0px;
    }

    input, select
    {
        position: inherit;
        display: block;
        height: 50px;
        padding: 5px;
        width: 90%
    }

    select#state
    {
        padding-top: 25px;
    } 
    
    select#referrer
    {
        padding-top: 50px;
        height: 140px;
    }

    input[type="radio"]
    {
        height: 10px;
    }

    input[type="submit"], input[type="reset"]
    {
        float: none;
        width: 90%;
        margin: 10px;
        font-size: 1.2em;
    }

    div.productPhoto
    {
        flex: 40%;
    }
}

/* Computers: Screen Sizes >= 768px */
@media only screen and (min-width: 769px)
{
    html 
    {
        background-color: blanchedalmond;
        background-image: url(images/backgrounds/fabricBackground.jpg);
        background-repeat: repeat;
        background-size: 400px auto;
    }

}