/* Ben Collins */

html {
	scroll-behavior: smooth;
}

main {
	margin: 5% 2%;
}

main h2 {
	font-size: 1.25em;
}

article {
	margin: 5% 2% 0 2%;
}

article h2 {
	text-align: center;
	margin: 0;
	clear: left;
}

article section {
	display: flex;
	flex-direction: row;
	width: 100%;
	overflow-x: scroll;
	margin-left: 0;
}

iframe {
	width: 560px;
	height: 315px;
}

aside {
	background-color: white;
	color: #24004a;
	padding: 0 2% 2% 2%;
	margin: 0 5% 5% 2%;
	border-radius: 25px;
	float: left;
}

aside a {
	color: #24004a;
	font-weight: bold;
	text-decoration: none;
}

aside a:hover, aside a:focus {
	color: #d15a00;
	text-decoration: underline;
}

aside h2 {
	text-align: center;
}

aside h3 {
	font-size: 1em;
}

aside p {
	text-align: center;
	margin: 2% 0;
}

section {
	display: grid;
	grid-template-areas:
		"h2 h2"
		"p p"
		"table1 img1"
		"img2 table2";
	place-items: center;
}

section h2 {
	grid-area: h2;
	margin: 2em 0 0 0;
}

section p {
	grid-area: p;
	margin-bottom: 5%;
}

section img {
	grid-area: img1;
	float: none;
	margin: 0;
	width: 50%;
	max-width: 100%;
	height: auto;
	border: 3px solid white;
}

table {
	grid-area: table1;
	color: white;
	border: 3px solid white;
	border-collapse: collapse;
	width: 100%;
	margin: 5%;
}

table:nth-of-type(2) {
	grid-area: table2;
	margin: 10%
}

section img:nth-of-type(2) {
	grid-area: img2;
}

main header {
	margin: 5% 2%;
	font-size: 1.25em;
}

th, td {
	border: 3px solid white;
	text-align: center;
}

@media screen and (max-width: 768px) {
	section {
		grid-template-areas:
		"h2 h2"
		"p p"
		"table1 table1"
		"table2 table2";
	}
}
