:root {
	/* Chrome-only for now but this will allow smooth size transitions */
	interpolate-size: allow-keywords;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 0;

	/* hide burger menu off to the left of the viewport */
	overflow-x: hidden;

	font-family: "Avenir Next", "Avenir", sans-serif;

	main {
		/* leave room for the fixed site-header */
		padding-top: 5.5em;
	}

	&>footer {
		text-align: center;
		background-color: bisque;
		border-top: 1px groove slategrey;
		display: block;
		position: fixed;
		bottom: 0;
		width: 100vw;
		margin-top: 3em;
		padding: 1em;
	}
}

header {
	display: flex;
	flex-direction: row;
	align-items: center;
	padding-left: 0.5em;
	padding-right: 0.5em;

	border-bottom: 2px inset;

	&>* {
		flex: 1 1 auto;
	}
}

/* util classes */
.flex {
	display: flex;
	flex-wrap: wrap;
}

.flex-column {
	flex-direction: column;
}

.flex-centered {
	align-items: center;
	justify-content: center;
}

.hidden {
	display: none !important;
}

/* global button styles */
button.bouncy {
	background: none;
	border: 2px solid;
	font: inherit;
	line-height: 1;
	margin: 0.5em;
	padding: 1em 2em;
	cursor: pointer;

	--color: #000;
	--hover: #333;
	--active: #222;
	--disabled: #999;
	color: var(--color);
	transition: 0.25s;

	&:hover:not(:disabled),
	&:focus:not(:disabled) {
		border-color: var(--hover);
		box-shadow: 0 0.5em 0.5em -0.4em var(--hover);
		transform: translateY(-0.25em);
	}

	&:disabled {
		color: var(--disabled);
		cursor: not-allowed;
	}

	&:active:not(:disabled) {
		border-color: var(--active);
		box-shadow: 0 -0.5em -0.5em 0.4em var(--active);
		transform: translateY(0.25em);
	}

	&.primary {
		--color: #4CAF50;
		--hover: #66BB6A;
		--active: #4CAF50;

		&:hover:not(:disabled) {
			background-color: var(--active);
			color: white;
		}
	}
}

button.icon {
	background: none;
	border: none;
	width: 32px;
	height: 32px;
	padding: 8px;
	border-radius: 12px;
	cursor: pointer;

	background-size: 24px;
	background-repeat: no-repeat;
	background-position: center;

	&:hover:not(:disabled),
	&:focus:not(:disabled) {
		outline: 1px dashed tomato;
	}
}

/* hide un-initialized burger menu, fade it in when ready */
burger-menu:not(:defined) {
	opacity: 0;
}

burger-menu {
	transition: opacity 0.55s ease;
}