@charset "utf-8";
/* CSS Document for Moxon's Journey */

body {
	max-width: 60em;
	margin: 1em auto;
	background-color: #1E90FF;		
}

@media (min-width: 30em) { 
	#summary {
	  display: grid;
	  grid-template-columns: 1fr 15em;
	}

	#summary h2 {
	  grid-column: 1 / -1;
	}
}

#upnext {
	background-color: firebrick;
	margin: 1em 3em;
	padding: 1em;
	width: 10em;
	text-align: center;
	border-radius: 0.5em 0.5em 0.5em 0.5em;
}

#upnext h3 {
	font-size: 2em;
	font-variant: small-caps;
	color: lightyellow;
}

#upnext p {
	color: white;
}

h1 {
	font-size: 2.5em;
	background-color: #00BFFF;
	border: thin solid transparent;
	text-align: center;
	font-family: cursive;
	border-radius: 0.25em 0.25em 0.25em 0.25em;
}

h2 { 
	font-size: 2.2em;
	color: #DCDCDC;
	background-color: #00BFFF;
	border: thin solid;
	text-align: center;
	font-family: cursive;
	border-radius: 0.5em 0.5em 0.5em 0.5em;
}

p, table, ul {
	color: #B0C4DE;
	font-size: 1.3em;
	text-align: justify; 
	font-family: sans-serif; 
}

ul ul {
	font-size: inherit;
}

header {
	height: 13em;
	padding: 0 1em;
	margin-bottom: 1em;
  	display: grid;
  	grid-template-columns: 1fr 1fr 1fr;
}

header p:first-of-type{
	font-size: 2em;
	font-weight: bold;
}

header p:last-of-type {
    transform: rotate(-10deg);
    border: thin solid;
    padding: 0.5em;
    border-radius: 0.2em;
    align-self: end;
    width: 16em;
}
header #backlink {
	display:inline-block;
	text-shadow: none; 
	color: transparent;
	background: transparent;
	background-size: contain;
	width: 5em;
	height: 3em;
}

footer {
  	display: grid;
  	grid-template-columns: 1fr 16em;
	text-align: right;
}

footer > * {
	grid-column: -2 / -1;
	text-align: right;
}
