
/* reset selector */
* {
	margin: 0;
	padding: 0;
}

/* the styles for the html element; sets background color */
html {
	background: white;
}

/* style for the body; sets font-family, width, padding, background-color,
 and grid display */
body {
    font-family: Arial, Helvetica, sans-serif;
    width: 99%;
	margin: .5em auto;
    display: grid;
    grid-template: repeat(3, auto) / 100%;
    background-color: #b0b0b0;
}

/* the styles for the header */
/* sets background and and padding. Also centers text */
header {
    background: linear-gradient(
    20deg, black 0%, black 20%, #666362 45%, #666362 50%,
    #666362 55%, black 80%, black 100% );
    text-align: center;
    padding: 1em 0;
}
/* adds text shadow */
header h1 {
    text-shadow: 2px 2px 2px #a89e14;
}

/* style for the nav */
/* sets grid display and background-color. also removes bullets */
nav ul {
    display: grid;
    grid-template: 100% / repeat(4, 25%);
    list-style-type: none;
    background-color: #626566;
}
/* centers text and sets position to relitive */
nav ul li {
    text-align: center;
    position: relative;
}
/* sets display to block, adds padding on top and bottem, removes underline, and
text is bolded and set to black */
nav ul li a {
	display: block;
	padding: 1em 0;
	text-decoration: none;
	color: black;
	font-weight: bold;
}
/* hides submenu, sets position to absolute, and sets top and width to 100% */
nav ul li ul {
	display: none;
	position: absolute;
	top: 100%;
	width: 100%;
}
/* changes the look of the nav menu when hovering */
nav ul li a:hover {
    background: black;
    color: #626566;
    font-style: italic;
}
/* displays submenu when hovering */
nav ul li:hover > ul {
	display: block;
}
/* adjusts nav menu to displays current location */
li.current > a {
    color: #a89e14;
}
li.current > a:hover {
    background: black;
    color: #a89e14;
    font-style: italic;
}
/* adds content an the end of the nav */
nav > ul::after {
	content: "";
	display: block;
}

/* stlye for the main */
/* adds padding between nav and main */
main {
    padding: .5em 1em 1em 1em;
    display: grid;
    grid-template-columns: .5fr 2fr;
}
/* sets image width */
img {
    width: 93%;
}
/* sets padding and grid area for p#content */
p#content {
    grid-column: 2 / 3;
    padding: 0 0 0 .5em;
}
/* sets padding and grid area for p */
p {
    grid-column: 1 / 3;
    padding: 1em 0 0 0;
}

/* the styles for the footer */
/* sets background. Also centers text */
footer {
    background: linear-gradient(
    20deg, black 0%, black 20%, #666362 45%, #666362 50%,
    #666362 55%, black 80%, black 100% );
    text-align: center;
    text-shadow: 2px 2px 2px #a89e14;
}
/* h3: adds padding */
h3 {
    padding: 1em 0;
}

/* media query at 582px; changes font size */
@media screen and (max-width: 582px) {
	body {font-size: 56%;}
}
