@charset "utf-8";
html{
    background-color: red;
    background-image: url("background.jpeg");
    background-repeat: repeat-y;
    background-position: center;
    background-size: cover;
}
body{
    font-family: Arial;
    color: rgb(0, 0, 0);
    background-color: rgb(250, 250, 250);
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}
header{
    text-align: center;
    padding: 20px;
}
nav ul{
    list-style:none;
    list-style-image:none;
    margin:0;
    padding:0;
}
nav li{
    float:left;
    width: 33.33%;
    display: block;
}
nav a{
    text-decoration: none;
    display: block;
    background-color: rgb(218, 164, 164);
    line-height: 2.8em;
    text-align: center;
    color: rgb(250, 250, 250);
}
nav a:hover{
    background-color: rgb(199, 82, 15);
    color:rgb(25, 238, 6);
    font-size: 1.2em;
    transition: background-color 0.5s ease-in 0.2s, color 0.5s ease-in 0.2s, font-size 1s ease;
}
h1, h2{
    text-shadow: 4px 6px 5px rgb(231, 243, 124);
}
h2{
    font-size:1.9em;
}
main{
    padding-left: 20px;
    margin-top: 70px;
}
main > img{
    width: 25%;
    padding: 25px;
    float: right;
}
header img{
    float: right;
    width: 100px;
    padding: 0;
    margin-top: -100px;
    margin-right: -20px;
}
body > footer {
    background-color:rgb(218, 164, 164);
    color: rgba(0, 0, 0, 0.6);
    font-weight: bold;
    font-size: 0.9em;
    line-height: 3em;
    text-align: center;
    margin-top: 10px;
    padding: 10px;
    clear: both;
}
ol{
    list-style-type: lower-roman;
}
/*Flexbox styles for Item images */
div.gallery{
    display: flex;
    flex-flow:wrap;
    
}

div.imgGallery{
    flex:23%;
    max-width:25%;
    padding: 0 4px;

}

div.imgGallery img{
    width:100%;
}

input#name:focus:valid,
input#zip:focus:valid,
input#phone:focus:valid
input#mail:focus:valid{
    background: rgb(220, 255, 220); 
}
input#name:focus:invalid,
input#zip:focus:invalid,
input#phone:focus:invalid
input#email:focus:invalid{
    background: rgb(255, 232, 233); 
}
form{
    width: 90%;
}
fieldset{
    width: 90%;
    padding: 5px;
    margin-right: 10px;
    margin-bottom: 10px;
}
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;
}
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;
}
/* Media Query for Flexbox 50% width*/
@media only screen and (max-width:1100px){
  div.imgGallery{
    flex:48%;
    max-width:50%;
    }
}
/* Media Query for Styles for Desktops - screen sizes 0px - 768px */
@media only screen and (max-width:768px){
    html{
        background-color:hsl(200, 20%, 47%);
    }
    body{
        width:100%;
        margin:0;
    }
    main > img{
        float:none;
        width:90%;
    }
    nav li{
        float:none;
        width:100%;
        display:block;
    }
    nav a{
        border-bottom: solid black 1px;
    }
    div.imgGallery{
    flex:100%;
    max-width:100%;
    }
    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-color:hsl(12, 86%, 80%);
    }
}