:root {
	font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 1em;
	font-weight: 400;
	line-height: 1.1;
}

body {
	margin: 0;

	height: 100%;
	overflow-y: hidden;

	display: flex;
	flex-direction: column;

	justify-content: stretch;
}

a {
	color: #0275d8;
	text-decoration: none;
}

p {
	margin-top: 0;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
	margin-bottom: .5rem;
	margin-top: 0;
	font-family: inherit;
	font-weight: 500;
	color: inherit;
}

h2 {
	font-size: 1.2em;
}

h3 {
	font-size: 1.1em;
}

#container {
	flex: 1;

	display: flex;
	flex-direction: row;
}

#header {
	flex: 0;

	display: flex;
	flex-direction: column;
	align-items: center;

	min-height: 80px;

	background-image: url("background.gif");

	div {
		flex: 1;
		align-items: center;
		flex-direction: row;
		display: flex;
	}

	a {
		flex: 0;

		text-decoration: none;
		color: #656363;
		font-weight: 600;
		text-shadow: 2px 2px #B3ACAC;
	}
}

#navi-content {
	flex: 1;

	display: flex;
	flex-direction: row;

	padding-top: 10px;
}

#navbar {
	display: flex;
	flex-direction: column;

	flex-basis: 30%;

	border-right: 2px solid #d8d8d8;
 	padding: 0 6px 0 10px;

	.justify-content-end {
		flex: 0;
	}
}
#navbar a {
	text-decoration:none;
	color: #4d4d4d;
}

.justify-content-end {
	text-align: right;
	padding-right: 14px;
}

.justify-content-center {
	text-align: center;
}

.subitem {
	font-style: italic;
	font-size: 0.9em;
}

.navi-scroll-content {
	max-height: calc(100vh - 260px);
	overflow-y: auto;

	padding: 10px 2px 10px 0;
	scrollbar-width: thin;
	scrollbar-gutter: stable;

	.justify-content-end {
		padding-right: 4px;
	}
}

#content {
	flex-basis: 70%;

	display: flex;
	flex-direction: column;

	padding: 0 10px 0 20px;
}

.scroll-content {
	max-height: calc(100vh - 140px);
	overflow-y: auto;
}

#footer {
	flex: 0;

	display: flex;
	flex-direction: column;
	align-items: center;

	clear: both;
	color: #4d4d4d;

	p {
		margin: 0 0 10px 0;
		font-weight: 500;
		font-size: smaller;
	}
}

#active {
	font-weight: 700;
}
