
/* 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) / 15% 15% 70%;
}
/* h2: adds padding and border, and sets grid area */
h2 {
    padding: 2em 0 1em 0;
    grid-column: 1 / 4;
    border-top: .2em solid black;
    text-align: center;
}
/* h2#start: removes border */
h2#start {
    border: none;
}
/* p: adds padding, centers text, and sets grid area */
p {
    padding: 0 0 1em 0;
    grid-column: 1 / 4;
}
/* p#description: adds padding */
p#description {
    padding: 0 0 3em 0; 
}
/* figcaption: sets bold font, display to black, top and bottom borders, and margin */
figcaption {
    font-weight: bold;
    margin: .5em 0 0 0;
    display: block;
    border-top: .15em solid black;
    border-bottom: .15em solid black;
}

/* makes the img element fluid */
img {
    width: 100%;
}

/* sets grid area for the text of each area description */
article {
    grid-column: 2 / 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; changes font size */
@media screen and (max-width: 582px) {
	body {font-size: 56%;}
}
