@charset "utf-8";
body{
    font-family: Verdana, Geneva, sans-serif;
    color: rgb(91, 91, 91);
    background-color: ivory;
}
footer{
    background-color: lightsalmon;
    color: rgba(73, 26, 117, 0.6);
    font-weight: bold;
    font-size: 0.9em;
    line-height: 3em;
    text-align: center;
    margin-top: 10px;
    padding: 10px;
    clear: both;
}
header{
    text-align: center;
    padding: 20px;
}
header img{
    width: 100%;
}
h2{
    font-size: 1.3em;
}
/*nav{
    background-color: lightsalmon;
    padding: 15px;
    text-align: center;
}
nav a{
        padding-left: 10px;
        padding-right: 10px;
        text-decoration: none;
        color: blueviolet;
}
nav a:hover{
        color: darkcyan;
        text-decoration: underline;
}*/
nav ul{
    list-style: none;
    margin: 0;
    padding: 0;
}
nav li{
    display: block;
}
nav a{
    display: block;
    background-color: lightsalmon;
    line-height: 2.8em;
    text-decoration: none;
    text-align: center;
}
nav a:hover{
    background-color: darkred;
    color: ivory;
    font-size: 1.2em;
    transition: background-color 0.5s ease-in 0.2s, color 0.5s ease-in 0.2s, font-size 1s ease;
}
main{
    padding: 20px;
    margin-top: 70px;
}
main >img{
    width: 25%;
    padding: 25px;
    float: right;
}
ul{
    list-style-type: square;
}
a#navicon{
    display: none;
}
/*Flexbox styles for Vacation images*/
div.gallery{
    display: flex;
    flex-flow: wrap;
}
div.imgGallery{
    flex: 23%;
    max-width: 25%;
    padding: 0 4px;
}
div.imgGallery img{
    width: 100%;
}
/*Media query styles for Flexbox 50% width*/
@media screen and (max-width: 1100px) {
    div.imgGallery{
        flex: 48%;
        max-width: 50%;
    }
}
/*Table Styles*/
table{
    width: 100%;
    border: 5px solid darkolivegreen;
    border-collapse: collapse;
}
th, td{
    height: 30px;
    border: 1px solid gray;
    padding: 10px;
}
thead, tfoot{
    background-color: darkolivegreen;
    color: white;
}
tbody{
    background-color: lightyellow;
}
tbody tr:nth-of-type(even){
    background-color: wheat;
}
input:focus, select:focus, textarea:focus{
    background-color: rgb(205, 229, 249);
}
input#name:focus:valid,
input#address1:focus:valid,
input#address2:focus:valid,
input#city:focus:valid,
input#zip:focus:valid,
input#phone:focus:valid,
input#bdate:focus:valid{
    background: rgb(220, 255, 220);
}
input#name:focus:invalid,
input#address1:focus:invalid,
input#address2:focus:invalid,
input#city:focus:invalid,
input#zip:focus:invalid,
input#phone:focus:invalid,
input#bdate:focus:invalid{
    background: rgb(255, 232, 233);
}
iframe {
    border: none;
}
/*Media query styles for tablets - screen sizes 0px-768px*/
@media screen and (max-width: 768px) {
    html{
        background-color: darkgreen;
    }
    body{
        width: 100%;
        margin: 0;
    }
    nav li{
        font-size: x-large;
        width: 100%;
        float: none;
    }
    nav a{
        border-bottom: 1px solid black;
    }
    main >img{
        width: 90%;
        float: none;
    }
    a#navicon{
        display: block;
    }
    nav ul{
        display: none;
    }
    a#navicon:hover+ul, nav ul:hover{
        display: block;
    }
    div.imgGallery{
        flex: 100%;
        max-width: 100%;
    }
    table, tbody, tr, td, th {
        display: block;
    }
    thead, tfoot {
        display: none;
    }
    tbody td {
        position: relative;
        padding-left: 40%;
        overflow: visible;
        height: auto;
    }
    td::before {
        content: attr(data-label);
        position: absolute;
        top: 0px;
        left: 0px;
        padding: 5px;
        width: 40%;
    }
    /*Form Styles*/
    form{
        width: 100%;
        font-size: large;
    }
    fieldset{
        width: 100%;
        padding: 5px;
        margin: 0;
    }
    input, select{
        display: block;
        position: inherit;
        padding: 5px;
        height: 50px;
        width: 90%;
    }
    label{
        display: block;
        position: inherit;
        height: 50px;
        width: 90%;
    }
    input[type="submit"], input[type="reset"]{
        float: none;
        width: 90%;
        margin: 10px;
        font-size: 1.2em;
    }
}
/*Media query styles for desktops - screen sizes greater than 768px*/
@media screen and (min-width: 769px) {
    html{
        background-color: darkgreen;
        background-image: url(background-image1.jpg);
        background-repeat: no-repeat;
        background-attachment: fixed;
        background-position: center center;
        background-size: cover;
    }
    body{
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    nav li{
        width: 20%;
        float: left;
    }
    article{
        margin-top: 15px;
        column-count: 2;
        column-gap: 30px;
        column-rule: 2px solid gray;
        widows: 3;
        orphans: 3;
    }
    article h2{
        column-span: all;
    }
    footer{
        clear: both;
    }
    /*Form Styles*/
    form{
        width: 90%;
    }
    fieldset{
        width: 90%;
        padding: 5px;
        margin: 0px 10px 10px 0px;
    }
    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: 0;
        width: auto;
    }
    label.radio{
        display: inline;
        position: inherit;
    }
    textarea{
        padding: 10px;
        margin: 10px;
    }
    input[type="submit"], input[type="reset"]{
        display: block;
        float: left;
        left: 0;
        text-align: center;
        width: 40%;
        padding: 10px;
        margin: 0 5% 10px 5%;
    }
}