@charset "UTF-8";

/* 4. HTML — background color + background image */
html {
    background-color: hsl(205, 25%, 18%);
    background-image: url("bg-pattern.svg");
    background-repeat: repeat;
    background-position: top left;
    background-attachment: fixed;
}

/* 5. Body — no 25px margin, 90% width, centered horizontally */
body {
    font-family: Verdana, Geneva, sans-serif;
    color: rgb(91, 91, 91);
    background-color: ivory;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

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

/* 2.a.ii — header image fills the header */
header img {
    width: 100%;
}

/* 6. Text shadow on h1 and h2 — gray, 4px X, 6px Y, 5px blur */
h1, h2 {
    text-shadow: 4px 6px 5px gray;
}

h2 {
    font-size: 1.3em;
}

/* 7.a.iii — original nav rules commented out
nav {
    background-color: hsl(205, 35%, 25%);
    padding: 15px;
    text-align: center;
}

nav a {
    padding-left: 10px;
    padding-right: 10px;
    text-decoration: none;
    color: hsl(40, 60%, 88%);
}

nav a:hover {
    text-decoration: underline;
    color: hsl(35, 80%, 65%);
}
*/

/* 7.a.iv — nav ul */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 7.a.v — nav li (5-column float layout) */
nav li {
    display: block;
    width: 20%;
    float: left;
}

/* 7.a.vi — nav a (links display as blocks across the row) */
nav a {
    display: block;
    background-color: hsl(205, 35%, 25%);
    line-height: 2.8em;
    text-decoration: none;
    text-align: center;
    color: hsl(40, 60%, 88%);
}

/* 7.a.vii — nav a hover state */
nav a:hover {
    background-color: hsl(15, 65%, 55%);
    color: hsl(40, 90%, 96%);
}

/* 9. Main element — 20px padding all around, 35px top margin */
main {
    padding: 20px;
    margin-top: 35px;
}

/* 2.a.i + 8. — img rule scoped to children of main; float right */
main > img {
    width: 25%;
    padding: 25px;
    float: right;
}

/* 10. Footer — clear both so the floated image doesn't spill in */
body > footer {
    clear: both;
    background-color: hsl(205, 35%, 25%);
    color: rgba(102, 102, 102, 0.6);
    font-weight: bold;
    font-size: 0.9em;
    line-height: 3em;
    text-align: center;
    margin-top: 10px;
    padding: 10px;
}

/* List marker change (carried over from previous assignment) */
ul {
    list-style-type: square;
}
