@charset "utf-8";
html{
    
    background-color: rgb(233, 221, 207);
    background-image:
            linear-gradient(
                rgba(233, 221, 207, 0.25),
                rgba(233, 221, 207, 0.25)
            ), url(Renaissance_Background.jpg);
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
}

body{
    /*this is still the ivory color, just slightly transparent */
    background-color:rgba(255, 255, 240, 0.705);
    color: rgb(91,91,91);
    font-family:verdana, geneva, sans-serif;
    width: 90%;
    margin-right: auto;
    margin-left: auto;
}
    
header{
    color: rgb(99, 137, 160);
    text-align: center;
   /* padding: 20px;*/
}

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

nav a{
    text-decoration: none;
    display: block;
    background-color: rgb(99, 137, 160);
    line-height: 2.8em;
    text-decoration: none;
    text-align: center;
    color:rgb(233, 221, 207);
}

nav a:hover{
    text-decoration: underline;
    background-color:rgb(91,91,91);
    color: ivory;
}

h1{
    text-shadow:gray 4px 6px 5px;
}

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

main>img{
    display: block;
    width: 25%;
    padding: 25px;
    margin-right: auto;
    margin-left: auto;
    float: right;
}

header>img{
    display:block;
    width: 100%;
    margin: 0;
    max-height: 500px;
    object-fit: cover;
    
}

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

body > footer {
    background-color:  rgb(99, 137, 160);
    color:rgba(233, 221, 207, 0.74);
    font-weight: bold;
    font-size: .9em;
    text-align: center;
    line-height: 3em;
    margin-top: 10px;
    padding: 10px;
    clear:both;
}

body > footer a {
    color:rgba(233, 221, 207, 0.74);
}

body > footer a:hover{
    color:black;
}

ul{
    list-style-type:square;
}

ol{
    list-style-type:upper-roman;
}

ol li::marker{
    font-weight: bold;
}
a#navicon{
        display: none;
    }

/*Flexbox Styles for Images on Vacations Page*/
div.gallery {
    display: flex;
    flex-flow: wrap;
}

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

div.imageGallery img {
    width: 100%;
    
}
/*Media Query for Flexbox 50%*/
@media only screen and (max-width:1100px){
   div.imageGallery {
    flex: 48%;
    max-width: 50%;
    padding: 0 4px;
    } 
}
/*MOBILE DEVICE STYLES*/
@media only screen and (max-width: 768px){
    body{
        width: 100%;
        margin: 0;
    }
    main > img{
        width: 90%;
        float: none;
    }
    nav li{
    float: none;
    width: 100%;
    display: block;
    font-size: x-large;
    }
    a#navicon{
        display: block;
    }
    nav.horizontal ul{
        display:none;
    }
    a#navicon:hover+ul, nav.horizontal ul:hover{
        display:block;
    }
    nav a{
        border-bottom: solid black 1px;
    }
    a#navicon img {
        width: 30px;
        height: auto;
    }
    div.imageGallery {
    flex: 100%;
    max-width: 100%;
    padding: 0 4px;
    }
    tbody, 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;
    }
}

/*DESKTOP STYLES*/
/*
I left in the background image because I have my body background slightly transparent so that the html
shows through, can adjust if necessary
*/
@media only screen and (min-width: 769px){
    nav li{
        float: left;
        width: 20%;
        display: block;
    }
    article >h2 {
        text-align: center;
    }
    article{
        margin-top: 30px;
        column-count: 2;
        column-gap: 30px;
        column-rule: 2px solid rgb(119, 85, 21);
        widows: 2;
        orphans: 2;
    
}
}

/*TABLE STYLES*/
table{
    width:100%;
    border: 5px dotted rgb(119, 85, 21);
    border-collapse: collapse;
}

thead{
    background-color: #ffffeda6

}
th, td{
    height: 25px;
    border: 3px solid rgb(119, 85, 21);
    padding:10px;
    
}
tfoot{
    background-color: #ffffeda6;
    text-align: center;
}

tbody tr:nth-of-type(even){
    background-color: rgba(99, 137, 160, .25);
}


