@charset "utf-8";



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

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

h2 {
    font-size: 1.3em;
text-shadow: 4px 6px 5px gray;
}

nav {
    background-color:lightcoral;
    padding: 15px;
    text-align: center;
}

nav a {
    padding: 0 10px;
    text-decoration: none;
    color: rgb(0, 0, 139);
}

    nav a:hover {
    text-decoration: underline;
    color: rgb(0, 0, 255);
}


nav ul{
    list-style: none;
    list-style-image: none;
    margin: 0;
    padding: 0;
}

nav li{
    float: left;
    width: 20%;
    display: block;
}
nav a{
    text-decoration: none;
    display: block;
    background-color:lightcoral;
    line-height: 2.8em;
    text-align: center;
}

nav a:hover {
    background-color: rgb(0, 0, 255);
    color: ivory;
}

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


main > img{
    float: right;
    width: 25%;
    padding: 25px;
    margin-left: 20px;
    margin-bottom: 10px;

}

header img {
    width: 100%;
    height: auto;
    display: block;
}

body > footer {
    background-color: rgba(0, 0, 139, 0.336);
    color: rgba(140, 47, 47, 0.6);
    font-weight: bold;
    font-size: 0.9em;
    line-height: 3em;
    text-align: center;
    margin-top: 10px;
    padding: 10px;
    clear: both;

    
}

/*flexbox styles for Vacation section*/
div.gallery {
    display: flex;
    flex-flow: wrap;
    
}
div.gallery-item {
    flex: 23%;
    max-width: 25%;
    padding: 0 4px;
}
div.gallery-item img {
    width: 100%;
    height: auto;
    padding: 5px;
}


/*---Table styles---*/ 
table {
    border-collapse: collapse;
    width: 100%;
    border: 10px inset rgb(0, 0, 139); 
}
th, td {
    border: 1px solid black;
    padding: 10px;
    height: 35px;
}

thead, tfoot {
    background-color: rgb(0, 0, 139);
    color: ivory;
    font-weight: bold;
    text-align: center;
}

tbody tr:nth-of-type(even) {
    background-color: rgb(204, 0, 255);
    color: ivory;
}

input:focus, select:focus, textarea:focus { 
  background-color: rgb(220, 255, 220); 
} 

input#name:focus:valid, input#email:focus:valid, input#phone:focus:valid, input#zip:focus:valid { 
  background: rgb(220, 255, 220); 
} 

input#name:focus:invalid, input#email:focus:invalid, input#phone:focus:invalid, input#zip:focus:invalid { 
  background: rgb(255, 232, 233); 
} 


@media only screen and (max-width:1100px) {
     div.gallery-item {
    flex: 48%;
    max-width: 50%;
     }
}

@media only screen and (max-width:768px) {  
    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;
    }
    
    body {
        width: 100%;
        margin: 0;
    }

    main > img{
        float: none;
        width: 90%;
        padding: 0;
        margin: 20px 0;
    }

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

    nav a {
        border-bottom:solid black 1px;
    }

    div.gallery-item {
    flex: 100%;
    max-width: 100%;
}
    table, tbody, tr, td, th{
    display:block;
}
thead, tfoot{
    display:none;
}

tbody td {
    position: relative;
    padding-left: 40%;
    height: auto;
}
td::before {
    content: attr(data-label);
    position: absolute;
    top: 0px;
    left: 0px;
    padding: 10px;
    width: 40%;
}
}


@media only screen and (min-width:769px) {
    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"] {
        display: block;
        float: left;
        left: 0;
        text-align: center;
        width: 40%;
        padding: 10px;
        margin-left: 5%;
        margin-right: 5%;
        margin-bottom: 10px;
     }
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;
     }
     
    
    html {
    background-color:lightskyblue;
    background-image: url("mountain-range.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100%;
    }
}

ul {
    list-style-type: square;
}


