/* the styles for the elements */
* {
	margin: 0;
	padding: 0;
}
html {
	background-color: rgb(255, 255, 255);
}

body {
	font-family: Arial, Helvetica, sans-serif;
    font-size: 100%;
	color:aliceblue;
    width: 98%;
	max-width: 960px;
    margin: 0 auto;
    border: 3px solid #7bc4f5;
    background-color: #07051a;
}
a:link, a:visited {
	color: #ffffae;
}
a:focus, a:hover {
	font-style: italic;
}
/* the styles for the header */
header {
	padding: 1.5em 0 2em 0;
	border-bottom: 3px solid #7bc4f5;
	background-image: linear-gradient(
	    30deg, #73cdf6 0%, #0b2024 30%, #0b0a1f 50%, #0b2024 80%, #73cdf6 100%);
}
header h2 {
	font-size: 175%;
	color: #aff5f5;
}
header h3 {
	font-size: 130%;
	font-style: italic;
}
header img {
	float: left;
	padding: 0 3.125%;
}
.shadow {
	text-shadow: 2px 2px 2px #aff5f5;
}
/* the styles for the navigation menu */
#nav_menu ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
	position: relative;
}
#nav_menu ul li {
	float: left;
	width: 20%;
}

#nav_menu ul li a {
    display: block;
    /*width: 16.66%; */
    text-align: center;
    padding: 1em 0;
    text-decoration: none;
    background-color: #1c304e;
    color: white;
    font-weight: bold;
}
#nav_menu a.current {
	color: #ffffae;
}
#nav_menu ul ul {
    display: none;
    position: absolute;
    top: 100%;
	width: 100%;
}
#nav_menu ul ul li {
	float: none;
}
#nav_menu ul li:hover > ul {
	display: block;
}
#nav_menu > ul::after {
    content: "";
    clear: both;
    display: block;
}

/* the styles for the section */
section {
	width: 54.6875%;
	float: right;
	padding: 0 2.0833% 20px 2.0833%;
}
section h1 {
	font-size: 150%;
	padding: .5em 0 .25em 0;
	margin: 0;
}
section h2 {
	color: #aff5f5;
	font-size: 130%;
	padding: .5em 0 .25em 0;
}
section p {
	padding-bottom: .5em;
}
section blockquote {
	padding: 0 2em;
	font-style: italic;
}
section ul {
	padding: 0 0 .25em 1.25em;
	list-style-type: circle;
}
section li {
	padding-bottom: .35em;
}

/* the styles for the article */
article {
	padding: .5em 0;
	border-top: 2px solid #aff5f5;
	border-bottom: 2px solid #aff5f5;
}
article h2 {
	padding-top: 0;
}
article h3 {
	font-size: 105%;
	padding-bottom: .25em;
}
article img {
	float: right;
	margin: .5em 0 1em 1em;
	border: 1px solid black;
	max-width: 40%;
	min-width: 150px;
}

/* the styles for the aside */
aside {
	width: 22.395833%;
	float: left;
	padding: 0 0 20px 2.0833%;
}
aside h2 {
	color: #aff5f5;
	font-size: 130%;
	padding: .5em 0 .25em 0;
}

aside h3 {
	font-size: 105%;
	padding-bottom: .25em;
}
aside img {
	padding-bottom: 1em;
}

/* the styles for the footer */
footer {
	background-color: #1c304e;
	clear: both;

}
footer p {
	text-align: center;
	color: white;
	padding: 1em 0;
}
#mobile_menu {display: none;}

/* media queries, I had to google to know to put them at the bottom of the css ;w; */
@media only screen and (max-width: 766px){
	aside h2 a {font-size: 85%;}
	section h1 {font-size: 125%;}
	section h2 {font-size: 110%;}
	aside h2 {font-size: 110%;}
}
@media only screen and (max-width: 660px){
	header img {float:none;}
	header {text-align: center;}
	section {float: none; width: 95.8334%;}
	aside {float: none; padding-right: 2.0833%; width: 95.8334%;}
	article img { max-width: 30%;}
	#speakers {column-count: 2;}
	#nav_menu {display:none;}
	#mobile_menu {display: block;}
	#slicknav_menu {background-color: #aff5f5 !important;} /* the background color isnt changing here and I don't quite know why... I'm doing it as the book says.*/
}
@media only screen and (max-width: 433px){
	body {font-size: 90%;}
}