/* global styles */

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

html {
	box-sizing: border-box;
}

*,
*:before,
*:after {
	box-sizing: inherit;
}

body {
	display: flex;
	flex-direction: column;
	padding: 0;
	margin: 0;
	background-color: #f0f0f0;
	color: #303030;
	
	font-family: Futura, "Trebuchet MS", Arial, sans-serif;
	font-style: normal;
	font-variant: normal;
}

footer,
header {
	flex: 0;
	min-height: 50px;
	height: 50px;
	display: flex;
	align-items: center;
}

header#main-head {
	justify-content: space-between;
	padding: 0 8px;
	border-bottom: 1px solid #7c0028;

	h1 {
		font-family: 'rieslingregular', "Arial Narrow", Arial, sans-serif;
		font-size: 3rem;
		font-variant-caps: small-caps;
		color: #7c0028;
	}
}

.header-identity {
    text-decoration: none;
    color: inherit;
}

#main-head > * {
	display: flex;
	flex-direction: row;
	align-items: center;
}

#logo {
	height: 40px;
	margin: 0 10px 0 5px;
}

#main-foot {
	border-top: 1px solid #7c0028;
	justify-content: center;
}

main {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
    height: 80vh;
	max-width: 100vw;
	overflow: hidden;

	padding: 8px;
	overflow-y: auto;
	background-color: #fafafa;
}

.btn, button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	padding: 0.25em 1em;
	border-radius: 5px;
	background: transparent;
	cursor: pointer;
	font-family: Futura, "Trebuchet MS", Arial, sans-serif;
	font-size: 1rem;
	font-weight: 400;

	img {
		height: 2em;
		width: 2em;
	}

	&:hover,
	&:focus-visible {
		outline: 2px double #7c0028;
		background-color: #ddbfc67a;
	}
}

a.btn {
	text-decoration: none;
	color: inherit;
}

/* util classes */

.u-hidden {
	display: none !important;
}

.u-flex {
	display: flex;
}

.fill-height {
	height: -webkit-fill-available;
    height: 100vh;
}

/* view transitions */

@view-transition {
	navigation: auto;
	types: slide, forwards;
}

