
/* Japheth Hurlbut*/

* {box-sizing: border-box;}/*Selector sets the box-sizing property to border-box*/


header, nav, main, footer /* selector creates a display block within all the main elements*/ {
    display:block;
}

body/* Selector designates a background color, font type and color for the element*/{
    background-color: #ffffff;
    color: #666666;
    font-family: "Arial", Helvetica, sans-serif;
    background-image: url(image/dark-wood.jpg);
}
#wrapper /* The selector designates the margins left/right to automatically adjust the width of 80% within any web browsers display*/{
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    background-color: white; /*background color changed*/
    min-width: 700px;
    max-width: 1024px;
    box-shadow: 5px 5px 5px #1e1e1e;
}
header/* Selector designates a background color, font type and color for the element*/{
    background-color: #000033;
    color: #ffffff;
    font-family: Georgia, 'Times New Roman', Times, serif;
    background-image: url(image/GrayHeader.jpg);
    
}
h1/*Selector designates the height of the element and contains the background picture "sunset". Also creates a left padding, height and a bottom margin*/{
    line-height: 200%;
    background-repeat: no-repeat;
    background-position: right;
    padding-left: 20px;
    height: 100px;
    margin-bottom: 0;
}
h1 img{
    margin-top:10px;
    margin-right: 10px;
    float: left;
    border: white solid;
    border-width: 2px;
}
h1 p{
    padding-top: 15px;
    padding-left: 10px;
    float: center;
}
nav/*Selector designates a  text to bold within the element. Padding was added to the selector and the underline was taken away.*/{
    font-weight: bold;
    float:left; /*creates the left column of the two-column layout*/
    width: 160px; /*creates the width of left column of the two-column layout*/
    padding-top: 20px;
    padding-right: 5px;
    padding-bottom: 0px;
    padding-left: 20px;
    text-decoration: none;
    background-color: white; 
    
}
nav a:link/*selector designates font color for unvisited links*/{
    color: #000033;
    text-decoration: none;
    background-color: white;
}
nav a:visited/*selector designates font color for unvisited links*/{
    color: #344873;
}
nav a:hover/*selector designates hover color for links*/{
    color:#0b4bd4;
}
nav ul/*Selector designates the list of links in an unordered list and sets no padding&margins*/{
   list-style-type: none;
   margin: 0;
   padding-left: 0;
}
nav ul ul{
	position: absolute;
	background-color:white;
	padding: 0;
	text-align: left;
	display:none;
}
nav ul ul li{
	border: 1px solid #00005D;
	display: block;
	width: 10em;
	padding-left: .5em;
	margin-left:0;
}
nav li:hover ul{
	display: block;
}
main/*Selector designates background-color, a padding and a display block*/{
    padding-right: 20px;
    padding-left: 20px;
    display: block;
    background-color: #ffffff;
    margin-left: 170px;
    padding-top: 1px;
    padding-bottom: 1px;
}
h2/*Selector designates a font color and type within the element*/{
    color: #3399cc;
    font-family: Georgia, 'Times New Roman', Times, serif;
}
dt/*Selector designates a font color and changes the text to bold within the element*/{
    color:#000033;
    font-weight: bold;
}
h3/*Selector designates a text color*/{
    color: #000033;
}
iframe{
    display: block;
    margin-left: auto;
    margin-right: auto;
}
footer/*Selector designates a left margin distance, different font size from default, aligns the text center, the text will be italic within the element, and 10px padding was added */{
    font-size: .70em;
    font-style: italic;
    text-align: center;
    padding-top: 10px;
    padding-right: 10px;
    padding-bottom: 10px;
    padding-left: 10px;
    margin-left: 170px;
    background-color: #ffffff;
}
#gallery ul{ /*id selector designates the list style to have no bullets*/
    list-style-type: none; 
}
#gallery li{ /*id selector allows the pictures to adjust to the screen size and creates the container&asthetic attributes*/
    display: inline-block;
    width: 225px;
    padding-bottom: 10px;
    margin: 10px;
    background-color: #EAEAEA;
    text-align: center;
    font-style: italic;
    font-family: Georgia, serif;
}
#mobile{
    display:none;/*id selector designates the display to be completely removed*/
}
#desktop{
    display:inline; /*id selector designates the display to not effect the height and width of the properties*/
}
#smallVid{
    display: none;
}

@media only screen and (max-width: 1024px)/* media query creates a screen width and displays of website's elements for tablets*/
{
    body{
        background-image: url(image/dark-wood.jpg);
    }
    #wrapper{
        width: auto;
        min-width: 0;
        margin: 0;
        box-shadow: none;
    }
    h1{
        margin: 0;
        height: 100px;
        
    }
    nav{
        float: none;
        width: auto;
        padding: 1em;
    }
    nav li{
        display: inline-block;
    }
    nav ul ul{
        position: absolute;
        background-color:white;
        padding: 0;
        text-align: left;
        display:none;
    }
    nav ul ul li{
        border: 1px solid #00005D;
        display: block;
        width: 18em;
        padding-left: .5em;
        margin-left:0;
    }
    nav a{
        padding: 0em 1em 0em 1em;
    }
    main{
        padding: 1em;
        margin-left: 0;
        font-size: 90%;
    }
    #smallVid{
        display: none;
    }

}
@media only screen and (max-width: 768px)/* media query creates a screen width and displays of website's elements for tablets*/{
    h1{
        height:100%;
        font-size: 1.5em;
        padding-left: 0.3em;
        background-image: none;
    }
    h1 img{
        display: none;
    }
    nav{
        padding: 0;
    }
    nav a{
        display: block;
        padding: 0.2em;
        font-size: 1.3em;
        border-bottom: 1px solid #330000;
    }
    nav ul{
        margin: 0;
        padding: 0;
    }
    nav li{
        display: block;
        margin: 0;
        padding: 0;
    }
    main{
        padding-top: 0.1em;
        padding-right: 0.6em;
        padding-bottom: 0.1em;
        padding-left: 0.4em;
    } 
    #bigVid{
        display: none;
    } 
    #smallVid{
        display: inline-block;
    }
    footer{
        /*padding: 0;*/
        margin: 0;
    }
    #mobile{
        display:inline;/*id selector designates the display to not effect the height and width of the properties*/
    }
    #desktop{
        display:none; /*id selector designates the display to be completely removed*/
    }
}   
table/*selector designates the margin and width while create a solid 1px border. Also the border is collapsed*/{
    margin:auto;/*Styles the margins to adjust to the size of the users screen*/
    width: 90%;/*Sets the width of the table*/
    border: 1px solid #3399cc;/*style creates an outside border 1px solid blue border*/
    border-collapse: collapse;/*style creates a shared border and doesn't require sizing*/
}
td,th/*selector designates the padding, border of the cells and centers the text*/{
    padding: 5px; /* creates a 5 px padding*/
    border: 1px solid #3399cc; /*style creates an inside border 1px solid blue border*/
    text-align: center;/*Centers the text within the cells of the table*/
}
tr:nth-of-type(even) /*pseudo class that is only applyied to the even rows in the table */{ 
    background-color: #f5fafc; /*Creates a background color for the even rows to create contrast between rows*/
}
label/*selector designates all form labels float/display/width/right padding*/{
    float: left;
    display: block;
    width: 8em;
    padding-right: 1em;
}
input,textarea/*selector designates a display block and a bottom margin for the input and text box*/{
    display:block;
    margin-bottom: 1em;
}
#mySubmit /*id selector designates a margin left for the submit*/{
    margin-left: 10em;
}

