@charset "utf-8";
header img
    {
        width: 100%;
    }
body > footer
    {
        background-color: rgb(139, 104, 56);
        color: rgba(255, 255, 240, 0.6);
        font-weight: bold;
        font-size: 0.9em;
        line-height: 3em;
        text-align: center;
        margin-top: 10px;
        padding: 10px;
        clear: both;
    }
main > img
    {
        width: 25%;
        padding: 25px;
        float: right;
    }
    hr
    {
        clear: both;
    }
body
    {
        font-family: Verdana, Geneva, sans-serif;
        color: rgb(91, 91, 91);
        background-color: ivory;
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    header
    {
        text-align: center;
        padding: 20px;
    }
    h2
    {
        font-size: 1.3em;
    }
    h1, h2
    {
        text-shadow: grey 4px 6px 5px;
    }
    table
    {
        width: 100%;
        border-collapse: collapse;
        text-align: center;
        border: 10px double rgb(139, 104, 56);
    }
    tbody tr:nth-of-type(even) 
    {
        background-color: lightgrey;
        color: black;
    }
        tbody tr:nth-of-type(odd) 
    {
        background-color: whitesmoke;
        color: black;
    }
    tfoot, thead
    {
        background-color: ivory;
    }
    th, td
    {
        border: 1px solid black;
        height: 25px;
    }
    /*
    nav
    {
        background-color: rgb(139, 104, 56);
        padding: 15px;
        text-align: center;
    }
    nav a
    {
        padding-left: 10px;
        padding-right: 10px;
        text-decoration: none;
        color: ivory;
    }
    nav a:hover
    {
        text-decoration: underline;
        color: tan;
    }
    */
    div.gallery
    {
        display: flex;
        flex-flow: wrap;
        
    }
    div.imagegallery
    {
        flex: 23%;
        max-width:25%;
        padding: 0 4px;
        
    }
    div.imagegallery img
    {
        width: 100%;
   
    }
    nav ul
    {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    nav li
    {
        display: block;
        width: 20%;
        float: left;
    }
    nav a
    {
        display: block;
        background-color: rgb(139, 104, 56);
        line-height: 2.8em;
        text-decoration: none;
        text-align: center;
        color: ivory;
    }
    nav a:hover
    {
        background-color: ivory;
        color: black;
        font-size: 1.2em;
        transition: background-color 0.5s ease-in 0.2s,
                    color 0.5s ease-in 0.2s,
                    font-size 1s ease;
    }
    iframe
    {
        max-width: 100%;
    }
    main
    {
        padding: 20px;
        margin-top: 70px;
    }
    .education-list
    {
        list-style-type: "✎ ";
    }
input:focus, select:focus, textarea:focus
{
    background-color: rgb(220, 255, 220);
}

input:focus:valid, select:focus:valid, textarea:focus:valid
{
    background: rgb(220, 255, 220) bottom right / contain no-repeat;
}
@media only screen and (min-width: 641px) {

    form
    {
        width: 90%;
    }

    fieldset
    {
        width: 90%;
        padding: 5px;
        margin-right: 10px;
        margin-bottom: 10px;
    }

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

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

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

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

    input[type="submit"], input[type="reset"]
    {
        display: block;
        float: left;
        left: 0;
        text-align: center;
        width: 40%;
        padding: 10px;
        margin-left: 5%;
        margin-right: 5%;
        margin-bottom: 10px;
    }

    footer
    {
        clear: both;
    }
}
input:focus:invalid, select:focus:invalid, textarea:focus:invalid
{
    background: rgb(255, 232, 233) bottom right / contain no-repeat;
}

@media only screen and (max-width: 1100px)
{
    div.imagegallery
    {
        flex: 48%;
        max-width: 50%;
    }
}
@media only screen and (max-width: 768px)
{
    div.imagegallery
    {
        flex: 100%;
        max-width: 100%;
    }
    body
    {
        width: 100%;
        margin: 0;
    }
    nav li
    {
        float: none;
        font-size: x-large;
        width: 100%;
    }
    nav a 
    {
        border-bottom: solid black 1px;
    }
    main > img
    {
        width: 90%;
        float: none;
    }
    tbody, table, th, td, tr
    {
        display: block;
    }
    thead, tfoot
    {
        display: none;
    }
    tbody
    {
        position: relative;
        width: 100%;
    }
    td
    {
        position: relative;
        padding-left: 40%;
        height: auto;
    }
    td::before
    {
        content:attr(data-label);
        position: absolute;
        top: 0%;
        left: 0%;
    }
        form
    {
        width: 100%;
        font-size: large;
    }

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

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

    label
    {
        position: inherit;
        display: block;
        height: 50px;
        width: 90%;
    }

    input[type="submit"], input[type="reset"]
    {
        float: none;
        width: 90%;
        margin: 10px;
        font-size: 1.2em;
    }
}
@media only screen and (min-width: 769px)
{
    html
    {
        background-image: url(brick.jpg);
        background-size:cover;
        background-repeat:repeat-y;
        background-position:center;
    }
}