/* styles for my travel website */

*{
    margin: 0;
    padding: 0;
    box-sizing:border-box;
    /*Use box-sizing to limit large text from breaking the box and moving to another area in the page*/
}

body{ 
    background: beige;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}
/* HINT FOR PRACTICAL TEST!!!!!!!
my header is palced OUTSIDE of my wrapper, were originally all of our containers were placed INSIDE the wrapper*/

#wrapper{
    width:940px;
    margin:130px auto 20px auto;
    /* margin 20px auto will center your wrapper */
}

header{
  background :white;
  padding-top:20px;
  padding-bottom:auto;
  position: fixed;
  width:100%;
  /*do not forget to ALWAYS declare a WIDTH for your header if you are positioning your header if you are positioning your header fixed*/
  top:0;
  left:0;
  /*whenever position fixed declare coordinates 
  top:0; 
  left:0;   Also declare a width use 100% to diplay across 100% of the browser window*/
}

.inner-header{
    background:white;
    width:940px;
    margin: 0 auto;
}

.social{
    position:fixed;
    top: 200px;
    right:5px;
    list-style-type:none;
}
/* remember to always declcare where to sit the element in this case top and right */
.social li{
    margin-bottom:8px;
}
#logo{
    display: inline;
}
#primary { 
    height: 50px;
    line-height: 50px;
    background: #eee;
    
}

#primary ul{
    width: 1000px;
    margin: 0 auto;
}

#primary li{
    list-style-type: none;
    float: left;
    width: 20%; /* use the percentage that represents each list item divided by 100, examnple we have 5 list items,5 divided by 100 = 20% */
    text-align: center; /* use to align text in the space*/

}

#primary a{
    text-decoration: none;
    color: #d9961a;
    display:block;
}

#primary a:hover{
    background:#79a5d3;
    color: white;
}

.home #primary li:nth-child(1) a,
.about #primary li:nth-child(2) a,
.tours #primary li:nth-child(3) a,
.promos #primary li:nth-child(4) a,
.contact #primary li:nth-child(5) a
 
{
    background: #79a5d3;
    color: white;
}

#secondary{
    margin-top:18px;
    margin-bottom:20px;
}

#secondary li{
    height:40px;
    line-height:40px;
    background:#fff;
    list-style-type:none;
    margin-bottom:10px;
}

#secondary a{
    display:block;
    padding-left:20px;
    text-decoration:none;
    color:#79a5d3;
}

#secondary a:hover{
    background:#d9961a;
    color:#fff;
}

/*#hero{
    background:red;
}*/
/* THE BAD way to resize your image*/
/* #hero img{
    width:940px;
}
*/

main{
    width:580px;
    /*background: lightgreen;*/
    float:left;
    margin-top:27px;
}

aside{
    width:340px;
    padding:15px;
    background:#d9961a;
    float:right;
    margin-top:20px;
}

.tours aside{
    background:none;
    /*border:1px solid #d9961a;*/
    padding:15px 0 0 0;
}

.specials{
    background:#eee;
    padding:15px;
}

.third{
    width:300px;
    float:left;
    margin-right:20px;
}

.third:last-of-type{
    margin-right:0px;

}
/* use last-of-type to differentiate/overwrite between settings in a row and you want the last element to have a different margin etc..*/

.row{
    clear:both;
    margin-bottom:20px;
    overflow:hidden; /* overflow:hidden; will place the margin at bottom or under the row, without overflow:hidden the margin-bottom will appear at top of row because the boxes in the row are floating*/
}

.col-8{
    width:460px;
    float:left;
}

.col-8:last-of-type{
    float:right;
}

footer{
    height:50px;
    line-height: 50px;
    border-top: 1px dotted #666;
    clear:both;
    font-size: .9em;

}

footer li{
    list-style-type: none;
    float: left;
    margin-right: 30px;  
    color: #666;
}

footer img{
    margin-top:3px;
}

/*Use this to change the anchor color*/
footer a {
    color: #666;
}


figure{
    margin-bottom:15px;
}

figure img{
    margin: 0 auto;
}

figcaption {
    background: #000;
    color: #fff;
    font-size: .875em;
    padding: 8px;
    font-style: italic;

}

.about figcaption{
    text-align:center;
    background: none;
    padding: 8px 0;

}

img + p{
    margin: 15px 0 20px 0;

}

/* all of your images will have a max width of 100%*/
img{
    max-width:100%;
    display: block;
}

h1{
    font-weight:200;
    font-size:2.44em;
}
/* typography*/

h1, h2, h3{
    margin-bottom:8px;
    font-family:Georgia, 'Times New Roman', Times, serif;
    line-height:1.2;
    color: #d9961a;
}

h2{
    color: #555;
    font-size:2em;
}

h3{
    color: white;
    font-size:1.78em;
    font-weight:200;
    /*text-transform: uppercase;*/
}

.tours h3{
    color:#555;
}

 p{
    margin-bottom: 20px;
    line-height:1.5;
 }

 aside p{
    font-size:.9em;
 }

 .third h3{
    color:#555;
    font-size:1.5em;
    text-align:center;
 }
 
 .col-8 h3{
    color:#555;
    font-size:1.5em;
}

 .third img + h3, 
 .col-8 img + h3{
    margin:10px 0 8px 0;
 }
 
 .third p{
    font-size:.9em;
    text-align:center;
 }

 span{
    display:block;
    text-align:center;
    font-style:italic;
 }

 span a{
    color:#79a5d3;
    font-size:1.2em;
}