header, nav, main, footer {
    display: block;
}

html, body {
    height: 100%;
}

body, header, nav, footer {
    width: 100%;
    margin: 0;
}

body {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    background-color: #3f3f3f;
    background-image: url('images/background.png');
    background-repeat: repeat;
}

header {
    background: white;
}

header img {
    margin-left: 10px;
}

iframe {
    padding: 10px;
    border:  1px solid grey;
    background-color: #efefef;
    margin: 0 40px;
}

a {
    text-decoration: none;
    color: #3972aa;
}

a:active { 
    color: #737c86;
}

nav {
    background-color: orange;
}

nav .content, header .content, footer .content {
    max-width: 1500px;
    margin: 0 auto;
}

nav a {
    text-transform: uppercase;
    color: black;
    font-size: 1.2em;
    display: inline-block;
    padding: 10px;
}

nav a:hover {
    background-color: #27efd3;
}

footer {
    background-color: #131313;
    color: #dfdfdf;
}
footer .content {
    padding: 10px;
}

main {
    width: 800px;
    min-height: 100%;
    margin: 0 auto;
    padding: 20px;
    background: #e0e0e0;
}

h1, h2, h3, h4 {
    font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
    font-weight: normal;
}

h1 {
    text-align: center;
}

h4 {
    margin-top: 0;
    margin-bottom: 10px;
}

p {
    font-size: 1.1em;
}

dl, table {
    margin-left: 1em;
}

dt {
    font-weight: bold;
}

dd {
    color: #474747;
    font-style: italic;
    margin-left: 2em;
    margin-bottom: 1em;
}

.featured {
    width: 800px;
    height: 450px;
    position: relative;
}

.overlay {
    background: rgba(0,0,0,0.6);
    float: right;
    text-align: right;
    padding: 10px;
    position: absolute;
    bottom: 0;
    right: 0;
}

.overlay .title {
    color: #24c8fd;
    font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
    font-size: 2em;
    padding: 5px;
}

.overlay .desc {
    color: #eaeaea;
    font-size: 1.2em;
    padding: 3px;
}

.box {
    width: 220px;
    height: 180px;
    display: inline-block;
    vertical-align: top;
    margin: 10px;
    padding: 10px;
    border:  1px solid grey;
    background-color: #efefef;
}

.box p {
    font-size: 14px;
    margin-left: 10px;
}

.social {
    margin: 10px;
    margin-left: 30px;
    color: black;
    font-size: 1.2em;
}

.social img {
    vertical-align: middle;
    margin-right: 5px;
}

.contactform {
    display: inline-block;
    width: 454px;
    vertical-align: top;
    padding: 10px;
    border:  1px solid grey;
    background-color: #efefef;
    margin-left: 40px;
}

.contactinfo {
    display: inline-block;
    width: 220px;
    vertical-align: top;
    padding: 10px;
    border:  1px solid grey;
    background-color: #efefef;
}

fieldset {
    border: none;
    padding-left: 0;
    margin-left: 1em;
}

legend {
    font-weight: bold;
}

label {
    width: 70px;
    text-align: right;
    display: inline-block;
    vertical-align: top;
}

td {
    padding: 5px;
}