/* styles for travel website */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: beige;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

/* header is placed outside of wrapper, where originally all of containers were placed inside the wrapper */
#wrapper {
    width: 940px;
    /* margin: 20px auto; */
    /* float wrapper new value: */
    margin: 160px auto 20px auto;
}

header {
    padding-top: 20px;
    background: #fff;
    /* declare width for header, if you are positioning header fixed (infront of content) */
    position:fixed;
    width: 100%;
    top: 0;
    left: 0;
}

.inner-header {
    padding-bottom: 16px;
    width: 940px;
    margin: 0 auto;
}

.social {
    position: fixed;
    top: 300px;
    right: 5px;
    list-style-type: none;
}

.social li {
    margin-top: 8px;
    margin-right: 4px;
}

.social img {
    height: 50px;
}

#logo {
    display:inline;
    /* padding-bottom: 16px; */
}

#primary {
    height: 50px;
    line-height: 50px;
    background: #eee;
}

#primary ul {
    width: 1000px;
    /* to center call */
    margin: 0 auto;
}

#primary li {
    list-style-type: none;
    float: left;
    /* to create nav; 100 divided by menu items eg, 100/5 =20 */
    width: 20%;
    text-align: center;
}

#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;
    font-weight: bold;
    color: white;
}

/* wrong way to resize img */
/* hero img {
    width:940px;
} */

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

.eastwa #secondary li:nth-child(1) a,
.westwa #secondary li:nth-child(2) a,
.idaho #secondary li:nth-child(5) a,
.alaska #secondary li:nth-child(4) a,
.oregon #secondary li:nth-child(3) a {
    background: #79a5d3;
    color: white;
}

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

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

#secondary a:hover {
    background: #d9961ae7;
    color: white;
}

main {
    width: 580px;
    /* background:lightgreen; */
    float: left;
    /* margin top to help us align our headlines across containers */
    margin-top: 23px;
}

/* padding will break, old method: double padding (eg 15x2) and minus from width in pixels (340-30) */
aside {
    width: 340px;
    padding: 15px;
    background: #d9961ae7;
    float:right;
    margin-top: 20px;
}

/* body class ID */
.tours aside,
.alaska aside,
.eastwa aside,
.westwa aside,
.idaho aside,
.oregon aside {
    background: none;
    /* border: 1px solid #D9961A; */
    padding: 15px 0 0 0;
}

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

.row {
    clear: both;
    margin-bottom: 20px;
    /* boxes were floating; corrects */
    overflow: hidden;
}

.third {
    width: 300px;
    /* remove height after adding image */
    /* height: 300px; */
    /* background: pink; */
    float: left;
    margin-right: 20px;
}

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

.col-8 {
    width: 460px;
    /* inserted image; remove height */
    /* height: 400px;
    background: yellow; */
    float: left;
}

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

footer {
    height: 50px;
    line-height: 50px;
    /* background:#666; */
    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: 12px;
}

footer a {
    color:#666;
}

figure {
    margin-bottom: 15px;
}

figure img {
    /* center */
    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;
}

/* images are in-line elements, all images have max 100% width */
img {
    max-width: 100%;
    display:block;
}

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

/* typography */

/* thinning visual of font */
h1 {
    font-weight:200;
    font-size:2.44em;
}

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

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

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

.tours h3,
.alaska h3,
.eastwa h3,
.westwa h3,
.idaho h3,
.oregon h3 {
    color: #555;
}

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

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;
}