
/* reset selector */
* {
	margin: 0;
	padding: 0;
}

/* the styles for the html element; sets background color */
html {
	background: #202020;
}

/* style for the body; sets font-family, width, padding, background-color,
 and grid display */
 body {
    font-family: Arial, Helvetica, sans-serif;
    width: 95%;
	margin: .5em auto;
    display: grid;
    grid-template: repeat(3, auto) / 100%;
    background-color: #b0b0b0;
}

/* the styles for the header */
/* sets background 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;
}

/* imported font */
@font-face {
    font-family: O_font;
    src: url(../OptimusPrincepsSemiBold.ttf);
}
/* adds text shadow to headings */
h1, h2, h3, h4 {
    font-family: O_font;
}

/* 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: rgb(170, 170, 170);
}
li.current > a:hover {
    background: black;
    color: rgb(170, 170, 170);
    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 creats a grid */
main {
    padding: .5em 1em 1em 1em;
    display: grid;
    grid-template: repeat(11, auto) / 11% 15% 74%;
}
/* h2: sets padding, grid area, and centers text */
h2 {
    padding: 1.5em 0 .25em 0;
    grid-column: 1 / 4;
    text-align: center;
}
/* p: adds padding and sets grid area */
p {
    grid-column: 1 / 4; 
    padding: 1em 0;
}
/* iframe: sets padding and grid area */
iframe {
    width: 90%;
    height: auto;
    grid-column: 3/4;
}
/* figure: sets padding, grid area, and creats a grid */
figure {
    padding: 5.5em 0 0 0;
    grid-column: 1/4;
    display: grid;
    grid-template: repeat(2, auto) / 33% 33% 33%;
}
/* figcaption: sets bold font, display to black, top and bottom borders,
text-align to center, grid area, and margin */
figcaption {
    font-weight: bold;
    margin: 1em 35% 0 35%;
    display: block;
    border-top: .15em solid black;
    border-bottom: .15em solid black;
    grid-row: 2/3;
    text-align: center;
}

/* img: sets width to 30% and centers the images */
img {
    width: 30%;
    justify-self: center;
    align-self: center;
}
/* img#blue: sets width to 35% 
img#blue {
    width: 35%;
}*/
/* sets grid area for the text of each area description */
article {
    grid-column: 1 / 4;
    padding: 0 0 2em 1em;

}

/* the styles for the footer */
/* sets background and padding. Also centers text */
footer {
    background: linear-gradient(
    20deg, black 0%, #666362 45%, #666362 50%,
    #666362 55%, black 100% );
    text-align: center;
    padding: 0;
}
/* footer h3: sets padding, font-family, and removes margin */
footer h3 {
    padding: 1em 0;
    border: none;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}

/* media query at 582px; ch