@charset "utf-8";

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

header img{
    width: 100%;
}

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

}
main{
    padding: 20px 20px 20px 20px;
    margin-top: 35px;
    color: black;
}
main > img{
    width: 25%;
    padding: 25px;
    float: right;
}

body{
font-family: Verdana, Geneva, sans-serif;
color: #00004c;
width: 90%;
margin-left: auto;
margin-right: auto;
}

/*nav{
    background-color: #00004c;
    padding: 15px;
    text-align: center;
    margin-left: 18px;
    margin-right: 18px;
}
nav a{
    padding-left: 10px;
    padding-right: 10px;
    text-decoration: none;
    color: white;
}
nav a:hover{
    text-decoration: underline;
    color: orangered;
}*/
nav {
    margin-top: 3px;
    padding:0;
}
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: #00004c;
    line-height: 2.8em;
    color: white;
    text-align: center;
}

nav a:hover{
    background-color: white;
    color: orangered;
}


body footer{
    background-color: #00004c;
    color:white;
    font-weight: bold;
    font-size: 0.9em;
    line-height: 3em;
    text-align:center;
    margin-top: 10px;
    padding: 10px;
    clear: both;
}

footer a{
    color: white;
}

footer a:hover{
    text-decoration: none;
    color: orangered;
}

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

/* 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%;
}

/* Table Styles */

table{
    width: 100%;
    border: 10px double white;
    background-color: rgb(16, 3, 247);

    color: white;
    border-collapse: collapse;
}

th,td{
    height: 15px;
    border: 2px solid white;
    padding: 15px;
    text-align: center;
}
thead,tfoot{
    background-color: #00004c;

}

/* Media Query for Flexbox 50% width */

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

/* Media Query for Smartphones and Tablets*/

@media only screen and (max-width: 768px) {
    html{
    background-color: #00004c;
    background-image: url("background.jpg");
    background-position: 100%;
    }

    body{
        width: 100%;
        margin: 0;
    }

    main > img
    {
        width: 90%;
        float: none;    
    }

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

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

    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%;
        height:auto;
    }

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

/* Media Query for Desktops */

@media only screen and (min-width: 769px){
    html{
    background-color: #00004c;
    background-image: url("background.jpg");
    background-position: 100%;
    }

}
