/*--------------------------------------------------------------
Typography
--------------------------------------------------------------*/

body {
	margin: 0;
	min-height: 100vh;
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: auto 1fr auto;
	grid-template-areas:
		'header'
		'main'
		'footer';
}

body,
button,
input,
select,
textarea {
	font-family: 'Tinos', 'Times', serif;
	font-size: 18px;
	line-height: 1.2;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: 'Libre Franklin', 'Helvetica', 'Arial', sans-serif;
	clear: both;
}

p {
	margin-bottom: 1.5em;
}

b,
strong {
	font-weight: bold;
}

dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
    display: inline-block;
    font-family: "Courier 10 Pitch", Courier, monospace;
    color: #ddca7e;
    background: #282c34;
		padding: .5em .8em;
    border-radius: .2em;
}

code,
kbd,
tt,
var {
	font: 15px Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	background: #fff9c0;
	text-decoration: none;
}

sup,
sub {
	font-size: 75%;
	height: 0;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sup {
	bottom: 1ex;
}

sub {
	top: .5ex;
}

small {
	font-size: 75%;
}

big {
	font-size: 125%;
}

figure {
	margin: 0;
}


/*--------------------------------------------------------------
General styling
--------------------------------------------------------------*/


/* Header */
.masthead {
	/*text-align: center;
	grid-area: header;
	display: grid;
	grid-template-rows: minmax(70px, 100px);*/
	grid-template-columns: 200px 1fr 75px;
	/*grid-template-areas:
		'logo title buttons';
	background-color: #012169;
	color: white;*/
}



/*--------------------------------------------------------------
Cards:
--------------------------------------------------------------*/

.cards {
	display: grid;
	grid-template-columns:  200px;
	margin-left: auto;
	margin-right: auto;
	justify-content: center;
	grid-gap: 1em;
	height: 0; /*stops grid rows from growing*/
}

.cards {
	margin: 1em;
	padding: 0;
	list-style-type: none;
}

.cards a {
	display: block;
	/*margin-bottom: 1em;*/
	text-decoration: none;
}

.caption {
	padding: .4em;
	color: #012169;
	font-size: 1.2em;
	transition: all .4s;
	opacity: 0.4;
}

a:focus .caption,
a:hover .caption,
a:hover .card img {
	opacity: 1;
}

.caption-title {
	margin: 0;
	font-size: .8em;
	line-height: 1.1em;
	text-align: center;
}

.card img{
	opacity: 0.6;
}


.main-content {
	grid-area: main;
  overflow: auto;
	display: flex;
	/*align-items: center; */
	justify-content: center;
}

img.notice {
	padding-top: 25px;
	max-width: 600px;

}

/*--------------------------------------------------------------
CSS Grid layout for wider screens, when browser supports grid:
--------------------------------------------------------------*/

@supports (grid-area: auto) {

	@media screen and (min-width: 500px) {

		.cards {
			display: grid;
			grid-template-columns: repeat(2, 200px);
			grid-gap: 1em;
		}


		/*
		.cards a {
			margin-bottom: 0;
		}

		.card {
			display: grid;
		}

		.card img,
		.caption {
			grid-column: 1;
			grid-row: 1;
		}

		.caption {
			display: flex;
			align-items: flex-end;
			opacity: 0;
		}

		a:focus .caption,
		a:hover .caption {
			background: hsla(246, 40%, 30%, .6);
			opacity: 1;
		}

	}
	*/

	@media screen and (min-width: 690px) {

		.cards {
			grid-template-columns: repeat(2, 200px);
			/*grid-template-columns: repeat(3, 200px);  <-- uncomment if you add a third tree */
		}


	}

}
