
/* Japheth Hurlbut*/
/* JAP20138492*/
/* Class:CIS233DA*/
/* Section:23141*/
/* Lesson:12*/

* {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/background.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: #90C7E3; /*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;
}
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-image: url(image/sunset.jpg);
    background-repeat: no-repeat;
    background-position: right;
    padding-left: 20px;
    height: 72px;
    margin-bottom: 0;
}
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: #90C7E3; 
    
}
nav a:link/*selector designates font color for unvisited links*/{
    color: #000033;
    text-decoration: none;
    background-color: #90C7E3;
}
nav a:visited/*selector designates font color for unvisited links*/{
    color: #344873;
}
nav a:hover/*selector designates hover color for links*/{
    color:#ffffff;
}
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;
}
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;
}
.resort/*Selector designates a font color and changes the text to a specific size within the element that has the class selector*/{
    color:#000033;
    font-size: 1.2em;
}
#homehero /*id selector designates a margin left distance, height, image, size and the image will not repeat*/{
    height: 300px;
    background-image: url(image/coast.jpg);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    margin-left: 170px;
}
#yurthero /*id selector designates a margin left distance, height, image, size and the image will not repeat*/{
    height: 300px;
    background-image: url(image/yurt.jpg);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    margin-left: 170px;
}
#trailhero /*id selector designates a margin left distance, height, image, size and the image will not repeat*/{
    height: 300px;
    background-image: url(image/trail.jpg);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    margin-left: 170px;
}
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*/
}
@media only screen and (max-width: 1024px)/* media query creates a screen width and displays of website's elements for tablets*/
{
    body{
        background-image:none;
    }
    #wrapper{
        width: auto;
        min-width: 0;
        margin: 0;
        box-shadow: none;
    }
    h1{
        margin: 0;
    }
    nav{
        float: none;
        width: auto;
        padding: 1em;
    }
    nav li{
        display: inline-block;
    }
    nav a{
        padding: 1em;
    }
    main{
        padding: 1em;
        margin-left: 0;
        font-size: 90%;
    }
    footer{
        margin: 0;
    }
    #homehero{
        margin-left: 0;
    }
    
    #yurthero{
        margin-left: 0;
    }
    #trailhero{
        margin-left: 0;
    }
}
@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;
    }
    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;
    }
    #homehero{
        display: none;
    }
    #trailhero{
        display: none;
    }
    #yurthero{
        display: none;
    }
    
    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*/
}
.text/*class created to left align only the cells within the description column*/{
    text-align: left;/*Style aligns the text left*/
}
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;
}
#rezhero/*id selector designates a margin left distance, height, image, size and the image will not repeat*/{ 
    height: 300px;
    background-image: url(image/reserved.jpg);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    margin-left: 170px;   
}
video/*selector designates the video to float right and have a margin of 2em*/{
    float: right;
    margin: 2em;
}
embed/*selector designates the video to float right and have a margin of 2em*/{
    float: right;
    margin: 2em;    
}
.leftfloat/*class selector is used to float shop pics to the left with a margin*/{
    float: left;
    margin: 1em;
}
.clear/*class selector is used to clear all floats with the break*/{
    clear: both;
}
#shophero/*id selector designates a margin left distance, height, image, size and the image will not repeat*/{ 
    height: 300px;
    background-image: url(image/spashop.jpg);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    margin-left: 170px;   
}
#promohero/*id selector designates a margin left distance, height, image, size and the image will not repeat*/{ 
    height: 300px;
    background-image: url(image/sale.jpg);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    margin-left: 170px;   
}
