/* reset selector */
* {
	margin: 0;
	padding: 0;
}

/* the styles for the html element */
/* html: sets background color to white */
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: 95%;
	margin: .5em auto;
    display: grid;
    background-color: #BEFAF6;
}

/* the styles for the header */
/* sets padding, border, and background */
header {
	border-bottom: .2em solid black;
	padding: 1em 0;
	background: linear-gradient(
		20deg, #0072E0 20%, #0DC8FC 50%, #0072E0 80% );
}
/* header h1: aligns text */
header h1 {
	text-align: center;
}

/* the styles for the main */
/* sets padding */
main {
	padding: .5em 1em 0 .5em;
}
/*  */
main h2 {
	padding: .5em 0 .25em 0 ;
	text-align: center;
}
/* sets padding and font-size */
main p {
	padding: .5em 0 .5em 0;
	font-size: 120%;
}
/* main p.note:  */
main p.note {
	font-weight: bold;
	padding: .5em 0;
}

/* style for the nav */
/* sets grid display and background-color. also removes bullets */
nav ul {
    display: grid;
    grid-template: 100% / repeat(3, 33.33%);
    list-style-type: none;
    background-color: #09D0DE;
}
/* 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: #56AAF0;
    color: white;
    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: white;
}
li.current > a:hover {
    background: #56AAF0;
    color: white;
    font-style: italic;
}
/* adds content an the end of the nav */
nav > ul::after {
	content: "";
	display: block;
}

/* the styles for the footer */
/* footer p: sets padding and background. Also sets text color and alignment */
footer p {
	text-align: center;
	padding: 1em 0;
	background: linear-gradient(
		20deg, #0072E0 10%, #0DC8FC 50%, #0072E0 90% );
	color: black;
}

/* media code at 582px */
@media screen and (max-width: 582px) {
	body {font-size: 50%;}
}

/* media code at 300px */
@media screen and (max-width: 300px) {
	body {font-size: 30%;}
	main p {font-size: 170%;}
}