/* navigation panes */
.nav_tiles
{
	display: block;
	margin: 0 auto 2em auto;
	padding: 0 1em;
}

.nav_tiles a
{
	display: inline-block;
	position: relative;
	margin-bottom: 10px;
	padding: 5px;
	background-color: #FEC;
	background-image: url("assets/paper.jpg");
	border-radius: 4px;
	box-shadow: 0 8px 5px -5px black, 1px 1px 0 0.5px gray, 0 0 4px 0 gray inset;
	transition: all .1s;
}

.hover .nav_tiles a:hover, .touch .nav_tiles a:active
{
	top: 2px;
	box-shadow: 0 6px 5px -5px black, 1px 1px 0 0.5px gray, 0 0 4px 0 gray inset;
	cursor: pointer;
}

.nav_tiles img
{
	display: inline-block;
	max-height: 33vw;
	height: 150px;
	padding: 5px;
	background-color: white;
	box-shadow: -1px -1px 0 0.5px gray, 0 0 4px 0 gray inset;
	border-radius: 3px;
	vertical-align: top;
}

.nav_tiles span
{
	display: block;
	margin-bottom: .5em;
	font-weight: bold;
}

.nav_tiles p
{
	display: inline-block;
	position: absolute;
	margin: .75em .6em;
}

/* keep nav tile text to a reasonable size */
@media screen and (max-width: 400px)
{
	.nav_tiles p { font-size: 0.8em; }
}

@media screen and (min-width: 401px)
{
	.nav_tiles p { font-size: 0.95em; }
}


.hover .nav_tiles a:hover span, .touch .nav_tiles a:active span
{
	color: red;
	text-decoration: underline;
}


/* keep navigation panes looking tidy */

@media screen and (max-width: 800px)
{
	.nav_tiles { max-width: 450px; }
	.nav_tiles a { width: calc(100% - 10px); }
}


/* keep navigation panes looking tidy on large screens*/

@media screen and (min-width: 799px) and (max-width: 1299px)
{
	.nav_tiles { max-width: 900px; }
	.nav_tiles a { width: calc(50% - 13px); }
}

@media screen and (min-width: 1300px)
{
	.nav_tiles { max-width: 1450px; }
	.nav_tiles a { width: calc(33% - 10px); }
}

/* stop nav tiles overflowing on very small screens */

@media screen and (max-width: 350px)
{
	.nav_tiles { padding: 0 .5em; }
	.nav_tiles p { margin: .3em .4em; }
}
