.ui {
	display: flex;
	height: 100vh;
}

nav {
	background: #F6F6F6;
	width: 350px;
	font-size: 16px;
	flex-shrink: 0;
	padding-bottom: 40px;
	overflow-y: auto;
}

nav .pad,
nav h2,
nav li a {
	padding-left: 20px;
	padding-right: 20px;
}

nav li a {
	display: block;
	line-height: 1.5em;
}

nav li a:hover {
	color: rgb(3, 99, 163);
	background: #EFEFEF;
}

nav li.nested a {
	padding-left: 3em;
}

nav .vpad {
	padding-top: 20px;
	padding-bottom: 20px;
}

nav a {
	text-decoration: none;
}

#logo {
	width: 300px;
	margin: 0 auto 20px;
	display: block;
}

.site-nav {
	font-size: 14px;
	text-align: center;
}

.site-nav a {
	display: inline-block;
	margin: 0 10px;
}

nav ul {
	list-style-type: none;
	color: #555;
}

nav ul ul {
	margin-left: 1em;
}

nav h2 {
	font-size: 14px;
	font-weight: bold;
}

nav .img-link {
	padding-top: 6px;
	padding-bottom: 6px;
}

nav a.selected {
	background-color: #DDD;
	color: #000;
}

nav a.selected:hover {
	background-color: #D0D0D0;
	color: #000;
}

main {
	box-shadow: 0 -10px 30px rgba(0, 0, 0, .2);
	flex-grow: 1;

	display: flex;
	flex-direction: column;
	/* height: 100vh; */
}

#showcase-image {
	/* max-width: 100%;
	max-height: calc(100vh - 150px);
	object-fit: contain; */
	display: block;
	max-width: 100%;
	object-fit: contain;
	/* flex: 0 1 auto; */
	min-height: 0;
}

#showcase-footer {
	padding: 40px;
	/* flex: auto; */
	display: flex;
}

.box + .box {
	margin-left: 50px;
}

.order {
	padding: .5em 2em .5em 3.5em;
	font-size: 14px;
	text-transform: uppercase;
	vertical-align: middle;
	font-weight: bold;
	text-align: center;
	background-color: #36a2ff;
	background-image: url('../images/cart.svg');
	background-position: 1.5em center;
	background-size: 1.5em;
	background-repeat: no-repeat;
	color: white;
	border-radius: 2em;
	text-decoration: none;
	margin-right: 1em;
	margin-bottom: 5px;
	display: inline-block;
	transition: all .2s;
	position: relative;
}

.order:hover {
	background-color: #53afff;
	transform: scale(1.1);
}

.order:active {
	transform: scale(1.05);
}

.browse {
	flex-grow: 1;
	text-align: right;
}

.browse a {
	text-decoration: none;
	color: #555;
	padding: 5px 15px;
	display: inline-block;
	white-space: nowrap;
}

.browse a:hover {
	background: #EEE;
	color: #222;
}

.browse a.disabled {
	color: #AAA;
	cursor: default;
}

.browse a.disabled:hover {
	background: none;
}

h1 {
	font-family: 'Montserrat', 'Inter UI', sans-serif;
	font-size: 20px;
	font-weight: bold;
	margin-bottom: 0;
	line-height: 1em;
	margin-bottom: 10px;
}

.credit {
	font-size: 12px;
	line-height: 1em;
}

footer {
	margin-top: 50px;
}

@media (max-width: 1200px) {
	#showcase-footer {
		padding: 20px;
	}
}

@media (max-width: 800px) {
	.ui {
		flex-direction: column-reverse;
		height: auto;
	}

	nav {
		width: auto;
		flex-grow: 1;
		overflow: auto;
	}

	main {
		height: auto;
		flex-direction: column-reverse;
		flex-grow: 0;
		box-shadow: none;
	}

	#showcase-image {
		width: 100%;
		max-height: 600px;
		margin: 0 auto;
	}

	.box {
		padding: 5px 0;
	}

	.box + .box {
		margin-left: 25px;
	}
}

@media (max-width: 600px) {
	#showcase-footer {
		text-align: center;
		flex-wrap: wrap;
	}

	#showcase-footer > div {
		flex-grow: 1;
	}

	.box + .box {
		margin-left: 0;
	}

	.order-container {
		text-align: right;
	}

	.browse {
		text-align: center;
	}
}
