html {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-size: 16px;
    color: #292929;
    margin: 0;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 1200px;
    margin: auto;
    line-height: 1.5em;
}

.red {
	color: #9f0000;
}

h1 {
	font-size: 2rem;
	margin-bottom: 3rem;
}

h2 {
	font-size: 1.5rem;
}

h3 {
	font-size: 1.2rem;
}

nav {
	margin: 1rem 0 3rem 0;
	display: flex;
	justify-content: flex-end;
	flex-wrap: wrap;
}

nav a {
	display: block;
}

nav a:after {
	content: ' | ';
	display: inline-block;
	padding: 0 .5rem;
}

nav a:last-child:after {
	content: '';
}

iframe {
	margin: 2rem 0;
}

.center {
	text-align: center;
}

.accessibility {
	text-align: center;
	padding-top: 2rem;
	margin-top: 2rem;
	border-top: 1px solid #CCC;
}

.tutors {
	display: flex;
	flex-wrap: wrap;
	margin-bottom: 2rem;
}

.tutors div {
	width: 50%;
	display: grid;
	grid-template-columns: 200px 1fr;
	grid-template-rows: 2rem 1fr;
	column-gap: 1rem;
	margin: .5rem 0;
	align-items: start;
}

.tutors .image {
	grid-column-start: 1;
	grid-column-end: 2;
	grid-row-start: 1;
	grid-row-end: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 .5rem;
}

.tutors img {
	box-sizing: border-box;
	width: 100%;
	padding: 2px;
	border: 1px solid #CCC;
}

.tutors .name {
	font-weight: bold;
}

.subject-button {
	text-align: center;
	margin-bottom: 3rem;
}

.subject-button a {
	text-decoration: none;
	font-weight: bold;
	font-size: 1.2rem;
}

.subjects {
	display: grid;
    grid-template-columns: repeat(auto-fill, 232px);
    justify-content: space-between;
    flex-wrap: wrap;
}

.subjects div {
	padding: 1rem;
	width: 200px;
	border: 1px solid #e0e0e0;
    margin-bottom: 10px;
    min-height: 100px;
}

.subjects h3 {
	text-align: left;
	margin-bottom: 5px;
	margin-top: 0;
}

.subjects ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

ul.archive {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
}

.archive li {
	width: 150px;
}

.archive a {
	display: block;
	padding: 1rem;
}

a.button {
	padding: .5rem;
	text-align: center;
	display: inline-block;
	margin: 1rem auto;
	background: #551b8b;
	color: white;
	text-decoration: none;
	width: auto;
	border-radius: 5px;
	font-weight: bold;
}

a.button:hover {
	background: #410d6c;
	text-decoration: none;
}

@media screen and (max-width: 800px) {
	.tutors div {
		width: 100%;
	}
}
