/* the styles for the elements */
:root {
	--clr-1: #490043;
	--clr-2: #ff7300;
	--border-color-1: #3cff00bb;
	--border-color-2: #ff0000;
	--2ndry-text-color: #5e0056;
}
* {
	margin: 0;
	padding: 0;
}
html {
	background-image: linear-gradient(to bottom, var(--clr-1) 0%, var(--clr-1) 20%, black 33%, black 66%, var(--clr-2) 100%);
}
body {
	font-family: Arial, Helvetica, sans-serif;
    font-size: 100%;
    width: 99%;                     /* changed from 800 pixels */
    max-width: 960px;
    margin: 0 auto;
    border: 3px solid var(--border-color-1);
    background-color: #dadada7e;
}
a:focus, a:hover {
	font-style: italic;
}
/* the styles for the header */
header {
	padding: 1.5em 0 2em 0;
	color: whitesmoke;
	text-shadow: 3px 3px 2px black ;
	border-bottom: 3px solid var(--border-color-1);
	background-image: linear-gradient(88deg, var(--clr-2) 0%, var(--clr-2) 33%, black 34%, black 66%, var(--clr-1) 67%, var(--clr-1) 100%);
}
header h2 {
	font-size: 175%;
}
header h3 {
	font-size: 130%;
	font-style: italic;
}
header img {
	float: left;
	padding: 0 3.75%;            /* 30 / 800 x 100 */
}
.shadow {
	text-shadow: 2px 2px 2px var(--clr-2);
}
/* the styles for the navigation menu */
#nav_menu ul {
	display: flex;
	flex-basis: 100%;
	justify-content: space-between;
	list-style-type: none;
	margin: 0;
	padding: 0;
	position: relative;
}
#nav_menu ul li {
	/* float: left; */
    flex-basis: 20%;                 /* 160 / 800 x 100 */
}
#nav_menu ul li a {
    display: block;
    text-align: center;
    padding: 1em 0;
    text-decoration: none;
    background-color: var(--border-color-1);
    color: white;
    font-weight: bold;
}
#nav_menu a.current {
	color: yellow;
}
#nav_menu ul ul {
	width: 100%;
    display: none;
    position: absolute;
    top: 100%;
}
#nav_menu ul li:hover > ul {
	display: block;
}
#nav_menu > ul::after {
    content: "";
    clear: both;
    display: block;
}
/* the styles for the main content */
main {
	/* clear: left; */
	display: flex;
}

/* the styles for the section */
section {
	/* width: 65.625%; */ 			 /* 525 / 800 X 100 */
	flex-basis: 70%;      
	order: 2;           
	/* float: right; */
	padding: 0 2.5% 20px 2.5%;       /* 20 / 800 x 100 */
}
section h1 {
	font-size: 150%;
	padding: .5em 0 .25em 0;
	margin: 0;
}
section h2 {
	color: var(--2ndry-text-color);
	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 var(--border-color-2);
	border-bottom: 2px solid var(--border-color-2);
}
article h2 {
	padding-top: 0;
}
article h3 {
	font-size: 105%;
	padding-bottom: .25em;
}
article img {
	float: right;
	max-width: 40%;
	min-width: 150px;
	margin: .5em 0 1em 1em;
	border: 1px solid black;
}

/* the styles for the aside */
aside {
	width: 26.875%;
	flex-basis: 30%;                    /* 215 / 800 x 100 */
	order: 1;
	/* float: right; */
	padding: 0 0 20px 2.5%;             /* 20 / 800 x 100 */
}
aside h2 {
	color: var(--2ndry-text-color);
	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: var(--border-color-1);
	clear: both;

}
footer p {
	text-align: center;
	color: white;
	padding: 1em 0;
}
#mobile_menu {
	display: none;
}

@media only screen and (max-width: 734px) {
	section h1 {
		font-size: 125%
	}
	section h2, aside h2 {
		font-size: 110%;
	}
	aside h3 a {
		font-size: 85%;
	}
}

@media only screen and (max-width: 648px) {
	header img { float: none; }
	header { text-align: center; }
	main { 
		flex-direction: column; 
	}
	section {
		/* float: none; */
		width: 95%;
		order: 1;
	}
	aside {
		/* float: none; */
		padding-right: 2.5%;
		width: 95%;
		order: 2;
	}
	article img { max-width: 30%; }
	#speakers {
		column-count: 2;
	}
	#nav_menu {
		display: none;
	}
	#mobile_menu {
		display: block;
	}
	.slicknav_menu {
		background-color: var(--border-color-1) !important;
	}
}

@media only screen and (max-width: 414px) {
	body { font-size: 90%; }
}
