/* CSS reset */
* {
	margin: 0;
	padding: 0;
	border: 0;
}
 /* responsive images */
img {
   display: block;
   max-width: 100%;
}

/* centering block level elements that are less than 100% of the screen */
p {
    width: 80%;
    margin: 0 auto;
}

.mobile {
	display: block;
}

/* #menu-links only needed for a hamburger menu */
.tablet-desktop, #menu-links {
	display: none;
}

#menu-links {
    background-color: #94BE38;
}

html {
    background: #5D9421;
    font-family: "Comic Sans MS", "Comic Sans", cursive;
}

#silver {
    color: grey;
}

#gold {
    color: gold;
}

#platinum {
    color: #703BE7
}

.grid h2 {
        grid-column: 1 / span 2;
}

.grid p {
        grid-column: 1 / span 2;
}

.line {
    border-bottom: 1px solid black;
    padding-bottom: 1.5em;
}

/* List styles */
ul {
    margin: 2em;
    justify-content: center;
}

/* Header styles */
header {
	background-color: #5D9421;
	position: relative;
	height: 83px;
}

header img {
    margin: 1em auto;
    height: 65px;
}

#submit {
    color: white;
    background-color: #5D9421;
    padding: 1em;
    border-radius: 1em;
    font-family: Comic Sans MS;
}

/* Navigation styles */
nav {
	font-size: 1.2em;
    background-color: #5D9421;
}

nav ul {
	margin: 0;
	padding: 0;
	list-style-type: none;
	background-color: #5D9421;
}

nav li {
	text-align: center;
}

nav a {
    display: block;
    padding: 0.5em;
    color: white;
    text-decoration: none;
}

/* Style rules for hamburger menu */
.mobile-nav a {
    text-align: center;  
    font-size: 1.5em;
    display: block;
}

a {
    color: #94BE38;
}

.mobile-nav a.menu-icon {
    display: block;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

/* Smooth Icon Transition Styling */
#nav-icon {
	width: 35px;
	height: 35px;
	position: relative;
}

#nav-icon span {
	display: block;
	position: absolute;
	height: 5px;
	width: 100%;
	background: white; /* Color of the hamburger lines */
	border-radius: 9px;
	opacity: 1;
	left: 0;
	transition: .21s ease-in-out; /* Controls transition speed */
}

/* Positioning individual bars in default hamburger state */
#nav-icon span:nth-child(1) { top: 0px; }
#nav-icon span:nth-child(2) { top: 9px; }
#nav-icon span:nth-child(3) { top: 18px; }

/* Morph bars into an X when .open class is active */
#nav-icon.open span:nth-child(1) {
	top: 9px;
	transform: rotate(135deg);
}
#nav-icon.open span:nth-child(2) {
	opacity: 0;
	left: -60px; /* Slides the middle bar out of view */
}
#nav-icon.open span:nth-child(3) {
	top: 9px;
	transform: rotate(-135deg);
}

.mobile-nav a:active {
    background-color: #94BE38;
}

/* Style rules for main content */
main {
    background-color: #fff;
    padding: 2%;
    font-size: 1.15em;
}

/* Footer styles */
footer {
	text-align: center;
	font-size: .75em;
	color: white;
	margin: 1em;
	
}

footer p a {
    color: #fff;
    text-decoration: none;
}

/* Styles for tablet sizes and larger */
@media screen and (min-width: 600px) {
    
    /* .mobile-nav style makes hamburger menu disappear in larger screen sizes */
	.mobile, .mobile-nav {
		display: none;
	}
	
	.tablet-desktop {
		display: block;
	}
	
	.grid {
        display: grid;
        grid-template-columns: auto auto;
        grid-gap: 20px;
    }
    

	/* Navigation styles for tablet/desktop */
	nav ul {
		display: grid;
		grid-template-columns: auto auto auto auto auto auto auto auto;
	}
	
	nav a:hover {
	background-color: #94BE38;
	}
	
	nav ul li:hover > ul {
		display: block;
		width: inherit;
	}
	
	nav ul ul {
		display: none;
		position: absolute;
	}
	
	nav ul ul li {
		width: auto;
	}
}