@charset "utf-8";
html{
    background-image: url(vintage-textured-paper-vector.jpg);
    background-position: center center;
    background-size: 100% 100%;
}
body{
    font-family: Verdana, Geneva, sans-serif;
    color: rgb(91, 91, 91);
    background-color: #fffff0;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}
header img{
    width: 100%;
}
h2{
    font-size: 1.3em;
}
/*nav{
    background-color: rgb(226, 176, 176);
    padding: 15px;
    text-align: center;
}*/
nav ul{
    list-style: none;
    margin: 0px;
    padding: 0px;
}
nav li{
    display: block;
    width: 20%;
    float: left;
}
nav a{
    display: block;
    background-color: rgb( 226, 176, 176);
    line-height: 2.8em;
    padding-left: 10px;
    padding-right: 10px;
    text-decoration: none;
    color: #353333;
    text-align: center;
}
nav a:hover{
    background-color: black;
    text-decoration: underline;
    color: rgb(255, 255, 255);
}
main{
    padding: 20px;
    margin-top: 35px;
}
main >img{
    width: 25%;
    
    padding: 25px;
    float: right;
}
body > footer{
    background-color: rgb(226, 176, 176);
    color: rgba(53, 51, 51, 0.6);
    font-weight: bold;
    font-size: 0.9em;
    line-height: 3em;
    text-align: center;
    margin-top: 10px;
    padding: 10px;
    clear: both;
}
h1 h2{
    text-shadow: grey 4px 6px 5px;
}
ul{
    list-style-type: square;
}
div.gallery{
    display: flex;
    flex-flow: wrap;
    

}
div.imgGallery{
flex: 23%;
max-width: 25%;
padding: 0 4px;
}
div.imgGallery img{
    width: 100%;
}
table{
   border: rgb(226, 176, 176) solid 10px;
   border-collapse: collapse;
   width: 90%;
}
th, td{
   border: black solid 1px;
   padding: 5px;
   text-align: left;
}
caption{
   text-align: center;
   font-size: 2.5em;
}

#firstcolumn{
   column-width: 75px;
}
thead{
   background-color: pink;
} 
main >img{
        width: 90%;
        float: none;
    }

    input:focus, select:focus, textarea:focus {
        background-color: rgb(220, 225, 220);
    }
@media only screen and (max-width: 1100px){
    div.imgGallery{
        flex: 48%;
        max-width: 50%;
    }
}

@media only screen and (max-width: 768px) {
    body{
        width: 100%;
        margin: 0;
}
nav li{
        float: none;
        font-size: x-large;
        width: 100%;
    }
nav a{
        border-bottom: black solid 1px;
    }

    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: 10px;
    width: 40%;
    white-space: nowrap;
}
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: 1100px){
   html{
    background: red url(vintage-textured-paper-vector.jpg) center center / cover no-repeat fixed;
   } 
   body{
    width:90%
   }
   form{
    width: 90%;
   }
   fieldset{
        width: 90%;
        padding: 5px;
        margin-right: 10px;
        margin-bottom: 10px;
    }
    input, select{
        left: 30%;
        padding: 5px;
        height: auto;
        width: 60%;
        display: block;
        position: relative;
    }
    label{
        display: block;
        position: absolute;
        padding: 5px;
        width: 30%;
    }
    input[type="radio"]{
        display: inline;
        position: inherit;
        left: 0;
        width: auto;
    }
    label [type="radio"]{
        display: inline;
        position: inherit;
    }
    input [submit], input[reset]{
        display: block;
        float: left;
        position: left;
        text-align: center;
        width: 40%;
        padding: 10px;
        margin-left: 5%;
        margin-right: 5%;
        margin-bottom: 10px;
    }
    footer{
        clear: both;
    }
}