@charset "utf-8";

/* Body Style Rules */
body
{
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    font-family: Verdana, Geneva, sans-serif;
    color:rgb(91, 91, 91);
    background-color: ivory;
}

body footer
{
    clear: both;
    background-color: deepskyblue;
    color: rgba(255, 255, 255, 0.6);
    font: bold 0.9em/3em;
    text-align: center;
    margin-top: 10px;
    padding: 10px;
}

body h1
{
    text-align: center;
    margin-top: 2em;
    text-decoration: underline;
    color: forestgreen;
}

header
{
    text-align: center;
    padding: 0px;
}

header img 
{
    width: 100%;
}

main
{
    padding: 20px;
    margin-top: 35px;
}

/* End of Body Style Rules */

/* Text shadow
h1, h2 
{
    text-shadow: 4px 6px 5px gray ;
}
*/

h2
{
    font-size: 1.3em;
}

/*
nav
{
    background-color: deepskyblue;
    padding: 15px;
    text-align: center;
}
nav > ul > li > a
{
    padding: 0px 10px 0px 10px;
    text-decoration: none;
    color: black;
}
nav > ul > li > a:hover
{
    text-decoration: underline;
    color:red
}
*/

/* Nav Style Rules */
nav ul
{
    list-style: none;
    list-style-type: none;
    margin: 0px;
    padding: 0px;
}

nav li
{
    float: left;
    width: 20%;
    display: block;
}

nav a
{
    text-decoration: none;
    display: block;
    background-color: deepskyblue;
    line-height: 2.8em;
    text-align: center;
    color: black;
}

nav a:hover
{
    text-decoration: underline;
    background-color: forestgreen;
    color: white;
}
/* End of Nav Style Rules */

dl
{
    list-style-type: circle;
}

a#navicon
{
    display: none;
}

/* Flexbox styles for vacation images */
div.gallery
{
    display: flex;
    flex-flow: wrap;
    padding-left: 10px;
}

div.imgGallery
{
    padding: 5px;
    flex: 23%;
    max-width: 25%;
    align-content: flex-start;
    justify-content: flex-end;
}

div.imgGallery img
{
    width: 95%;
    border: solid deepskyblue 2px;
    box-shadow: 2px 2px 5px 1px black;
}
/* End of Flexbox styles for vacation images */



/* Table Style Rules*/
table
{
    border: 10px outset deepskyblue;
    border-collapse: collapse;
    box-shadow: 2px 2px 5px 1px black;
    margin-left: auto;
    margin-right: auto;
    width: 90%;
}

thead, tfoot
{
    background-color: forestgreen;
    color: white;
}

tbody
{
    background-color: white;
}

tbody td
{
    box-shadow: 1px 1px 1px 1px black inset;
}

tfoot
{
    text-align: right;
    font-size: small;
}

th, td
{
    padding: 5px;
}

td
{
    border-collapse: collapse;
    border: 1px solid forestgreen;
}
/* End of Table Style Rules */

/* Form Style Rules */
form
{
    width: 90%;
    padding: 5px;
    margin-right: 10px;
    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: 60%;
}

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;
    left: 0px;
    text-align: center;
    width: 40%;
    padding: 10px;
    margin-left: 5%;
    margin-right: 5%;
    margin-bottom: 10px;
}
/* End of Form Style Rules */

/* Media query for flexbox 50% width */
@media only screen and (max-width: 1100px)
{
    div.imgGallery
    {
        flex: 48%;
        max-width: 50%;
    }
}

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

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

    main img
    {
        width: 90%;
        float: none;
    }

    nav ul
    {
        display: none;
    }

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

    nav a
    {
        border-bottom: solid black 1px;
    }
    
    div.imgGallery
    {
        flex: 100%;
        max-width: 100%;
    }

    a#navicon
    {
        display: block;
    }

    /* Resize and move the navicon to the left-hand side of the screen */
        img.naviconImg
    {
        width: 12%;
        margin-right: 85%;
    }

    a#navicon:hover + ul, nav ul:hover
    {
        display: block;
    }

    /* Mobile Table Style */
    table, tbody, tr, td, th 
    {
        display: block;
    }

    thead, tfoot
    {
        display: none;
    }

    tbody td
    {
        position: relative;
        padding-left: 45%;
        height: auto;
    }

    tbody tr:nth-of-type(even)
    {
        background-color: rgb(219, 219, 219);
    }

    td::before
    {
        content: attr(data-label);
        position: absolute;
        top: 0px;
        left: 0px;
        padding: 5px;
        width: 40%;
        white-space: nowrap;
        font-weight: bold;
        color: forestgreen;
    }
    /* End of Mobile Table Style */

    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;
    }
}

/* Computers: Screen Sizes >= 768px */
@media only screen and (min-width: 769px)
{
    html 
    {
        background-color: blanchedalmond;
        background: url(background.png) repeat;
    }

    main img
    {
        width: 25%;
        padding: 25px;
        float: right;
    }
}