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

body {
    
    background-image: url(../images/val-background.jpg);
    background-attachment: fixed;
}

#wrapper {
    width: 940px;
    margin: 200px auto 20px auto;
    /* margin 20px auto will center your wrapper */
    background: rgba(240, 240, 240, .9);
}

header {
    padding-top: 20px;
    padding-bottom: 20px;
    background: white;
    position: fixed;
    width: 100%;
    height: 164px;
    top: 0;
    left: 0;
}

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

#logo {
    display: inline;
    margin-bottom: 40px;
    height: auto;
    width: 100px;
}

#primary {
    height: 50px;
    line-height: 50px;
    background: lightgray;
    width: 940px;
    margin: 0 auto;
}

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

#primary li {
   list-style-type: none;
   float: left;
   /* 100 divided by list items */
   width: 50%;
   text-align: center;
}

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

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

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

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


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;
    margin-left: 15px;
    color: #666;
}

footer a {
    color: #666;
}

figure {
    margin-bottom: 15px;
}

figure img {
    margin: 0 auto;
}

figcaption {
    background: #000;
    color: #ccc;
    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;
}

.center {
    /* NO FLOAT CENTER */
    margin: 20px auto;
    /* centering the image */
    display: block;
    /* we must change the inline image to a block level image */
    text-align: center;
}

img {
    max-width: 100%;
    display: block;
}

img.right {
    float: right;
    margin-left: 30px;
    margin-bottom: 10px;
}

img.left {
    float: left;
    margin-right: 30px;
    margin-bottom: 10px;
}


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

/* TYPOGRAPHY */

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

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

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

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

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