@charset "utf-8";

/* HTML background */
html {
    background-image: url("background.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/* Body styling */
body {
    font-family: Verdana, Geneva, sans-serif;
    color: rgb(91, 91, 91);
    background-color: ivory;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* Header image */
/* Header image */
header img {
    width: auto;          /* maintain original width ratio */
    max-width: 800px;     /* limit maximum width */
    height: auto;         /* maintain aspect ratio */
    max-height: 200px;    /* limit height so it doesn't take whole screen */
    display: block;       /* allows centering */
    margin-left: auto;    /* center horizontally */
    margin-right: auto;   /* center horizontally */
    padding: 10px 0;      /* optional padding top & bottom */
}


/* Header text */
header {
    text-align: center;
}

/* Text shadow for headings */
h1, h2 {
    text-shadow: 4px 6px 5px gray;
}

/* NAVIGATION STYLES */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav li {
    display: block;
    width: 20%;
    float: left;
}

nav a {
    display: block;
    background-color: hsl(210, 30%, 60%);
    line-height: 2.8em;
    text-decoration: none;
    text-align: center;
    color: white;
}

nav a:hover {
    background-color: hsl(210, 40%, 40%);
    color: ivory;
}

/* Main content */
main {
    padding: 20px;
    margin-top: 35px;
}

/* Images inside main */
main > img {
    width: 25%;
    padding: 25px;
    float: right;
}

/* Footer */
body > footer {
    clear: both;
    background-color: hsl(210, 30%, 60%);
    color: rgba(102, 102, 102, 0.6);
    font-weight: bold;
    font-size: 0.9em;
    line-height: 3em;
    text-align: center;
    padding: 10px;
}
