@charset "utf-8";

/* ===============================
   HTML – Background Image
   =============================== */
html {
    background-image: url("background.jpg"); /* replace with your image name */
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

/* ===============================
   Body Styles
   =============================== */
body {
    font-family: Verdana, Geneva, sans-serif;
    color: rgb(91, 91, 91);
    background-color: ivory;

    /* Assignment requirements */
    margin: 0;              /* remove 25px margin */
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

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

/* Header image full width */
header img {
    width: 100%;
    display: block;
}

/* ===============================
   Headings
   =============================== */
h1,
h2 {
    text-shadow: 4px 6px 5px gray;
}

h2 {
    font-size: 1.3em;
}

/* ===============================
   Navigation
   =============================== */

/* OLD nav styles commented out per assignment */
/*
nav {
    background-color: rgb(180, 180, 180);
    padding: 15px;
    text-align: center;
}
*/

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

nav a {
    display: block;
    background-color: rgb(180, 180, 180);
    line-height: 2.8em;
    text-decoration: none;
    text-align: center;
    color: rgb(50, 50, 50);
    font-weight: bold;
}

nav a:hover {
    background-color: rgb(140, 140, 140);
    color: white;
}

/* ===============================
   Main Content
   =============================== */
main {
    padding: 20px;      /* updated padding */
    margin-top: 35px;
}

/* Only images directly inside main get 25% width */
main > img {
    width: 25%;
    float: right;       /* image float requirement */
    padding: 25px;
}

/* ===============================
   Lists
   =============================== */
main ul {
    list-style-type: square;
}

/* ===============================
   Footer
   =============================== */
body > footer {
    background-color: rgb(180, 180, 180);
    color: rgba(50, 50, 50, 0.6);
    font-weight: bold;
    font-size: 0.9em;
    line-height: 3em;
    text-align: center;
    margin-top: 10px;
    padding: 10px;

    clear: both;   /* prevents image overlap */
}
