html {
}

body {
	background: #f0f0f0;
	color: #404040;
	margin: 0px;
	min-height: 100vh;
	font-family: 'Segoe UI';
	font-size: 14pt;
	overflow-y: scroll;
	position: relative;
}

header {
	top: 0px;
	position: sticky;
	height: 50px;
	border-bottom: 1px solid black;
	z-index: 255;
	user-select: none;
	background-color: white;
	color: white;
}

header a.logo {
	grid-column-start: 2;
	font-weight: bold;
	font-size: 16pt;
	margin: 2px 2px;
	height: 46px;
}

header a.logo:hover {
	background-color: #fcfcfc;
}

header a.logo img {
	height: 46px;
}

header nav {
	grid-column-start: 3;
	display: flex;
	margin: 0px;
	margin-block: 11px 7px;
	height: 32px;
	font-size: 12pt;
}

header nav a {
	text-decoration: none;
	margin-right: 2px;
}

header div.menu {
	position: relative;
}

header nav div.menu > *:nth-child(1) {
	display: inline-block;
	padding: 4px 8px 4px 8px;
	border-left: 3px solid transparent;
	color: #808080;
}

header nav div.menu:hover > *:nth-child(1) {
	border-left: 3px solid #0094ff;
	border-bottom: 0px;
	color: black;
	background-color: #f0f0f0;
}

header .menu .dropdown {
	display: none;
	position: absolute;
	min-width: 160px;
	white-space: nowrap;
	box-shadow: 6px 6px 12px rgba(0,0,0,.3);
	z-index: 250;
	text-align: left;
	background-color: white;
	border: 1px solid #f0f0f0;
	left: -2px;
	top: 30px;
	padding-top: 0px;
	padding-bottom: 0px;
	font-size: 12pt;
}

header .menu:hover .dropdown {
	display: block;
}

header .menu .dropdownbutton {
	top: 42px;
	left: 0px;
}

header .menu .dropdown a {
	color: #808080;
	padding: 4px 12px 4px 12px;
	display: block;
	margin: 4px;
	border-left: 3px solid transparent;
	text-decoration: none;
}

header .menu .dropdown a:hover {
	color: black;
	border-left: 3px solid #0094ff;
	background-color: #f0f0f0;
}

header .menu .dropdown div.separator {
	height: 1px;
	background-color: #f0f0f0;
	margin: 4px;
	display: block;
}

header button {
	grid-column-start: 4;
	margin: 6px 0px;
	border: 0px;
	font-size: 12pt;
	position: relative;
	padding: 6px 12px;
	width: 220px;
	height: 36px;
}

header button i {
	margin-left: 8px;
}

/* hamburger */
#hamburger {
	display: inline-block;
	cursor: pointer;
	height: 23px;
	width: 25px;
	padding: 5px;
	margin-right: 6px;
}

#hamburger:hover {
	border-bottom: 3px solid white;
}

#hamburger .bar1, #hamburger .bar2, #hamburger .bar3 {
	width: 25px;
	height: 3px;
	background-color: #333333;
	margin: 3px 0;
	transition: 0.4s;
}

#hamburger.opened .bar1 {
	-webkit-transform: rotate(-45deg) translate(-9px, 6px);
	transform: rotate(-45deg) translate(-4px, 4px);
}

#hamburger.opened .bar2 {
	opacity: 0;
}

#hamburger.opened .bar3 {
	-webkit-transform: rotate(45deg) translate(-8px, -8px);
	transform: rotate(45deg) translate(-4px, -5px);
}

#mobile-menu {
	position: fixed;
	top: 51px;
	left: 0px;
	bottom: 0px;
	right: 0px;
	z-index: 256;
	display: none;
	grid-template-columns: 2fr 1fr;
}

#mobile-menu nav {
	position: sticky;
	top: 0px;
	grid-column-start: 1;
	background-color: white;
	border-right: 1px solid black;
	padding: 0px;
}

#mobile-menu div {
	grid-column-start: 2;
	background-color: white;
	opacity: .1;
	filter: brightness(0%);
}

#mobile-menu nav a, #mobile-menu nav a:visited {
	display: block;
	margin-block: 0px;
	padding: 12px;
	color: black;
	text-decoration: none;
	border-bottom: 1px solid #c0c0c0;
}

footer {
	margin: 6px auto 10px auto;
	padding: 0px 8px;
	color: #808080;
	font-size: 10pt;
	grid-column: 2;
	display: flex;
	justify-content: flex-end;
	box-sizing: border-box;
	align-items: flex-start;
	line-height: 1em;
}

footer span {
	display: inline-block;
	margin-top: 3px;
}

footer img {
	height: 14px;
	margin-top: 3px;
	margin-right: 4px;
}

main {
	border: 1px solid black;
	background-color: white;
	box-sizing: border-box;
}

main h1 {
	font-size: 20pt;
	color: #0094ff;
}

main h2 {
	font-size: 16pt;
}

main h3 {
	font-size: 14pt;
	color: #0094ff;
	margin-block: 0;
}

main a, main a:visited {
	color: #0094ff;
	text-decoration: none;
}

main a:hover {
	text-decoration: underline;
	text-decoration-color: #0094ff;
}

main li a, main li a:visited {
	color: #404040;
}

main label {
	cursor: pointer;
}

main label:hover {
	text-decoration: underline;
}

table.table {
	border-spacing: 0px;
	border-collapse: collapse;
}

table.table td {
	vertical-align: top;
	padding: 4px;
}

table.table thead td {
	background-color: #f0f0f0;
	color: #404040;
	font-weight: bold;
}

table.table tbody td {
	border-bottom: 1px solid #f0f0f0;
}

table.table tbody td a {
	color: #000000;
}

table.table tbody td a:hover {
	text-decoration-color: black;
}

table.table td.right {
	text-align: right;
}

table.table tr.separator td {
	height: 8px;
	border-bottom: 0px;
}

table.table tr.unselected {
	opacity: 0.3;
}

table.metadata {
	border-spacing: 0px;
	margin-top: 16pt;
	border-collapse: collapse;
}

table.metadata > * > tr > td {
	vertical-align: top;
	padding: 8px;
}

table.metadata > thead > tr > td {
	background-color: #f0f0f0;
	color: #404040;
	font-weight: bold;
}

table.metadata > thead > tr > td div {
	font-weight: normal;
	font-size: 10pt;
}

table.metadata > tbody > tr > td {
	border: 1px solid #f0f0f0;
}

table.metadata > * > tr > td:nth-child(2n+1) {
	width: 40%;
	max-width: 100px;
	overflow-x: auto;
}

table.metadata > * > tr > td:nth-child(2n+2) {
	width: 60%;
	max-width: 60%;
	overflow-x: auto;
}

table.metadata > tbody > tr:nth-child(2n+2) {
	font-size: 10pt;
}

table.metadata > tbody > tr.separator {
	height: 40px;
}

.paper {
	font-family: Arial;
	line-height: 2em;
}

.paper span.spacer {
	display: inline-block;
	width: 16px;
}

#pages > div {
	display: none;
}

button {
	background-color: #0094ff;
	color: white;
	border: 1px solid black;
	cursor: pointer;
	padding: 4px;
	font-family: 'Segoe UI';
	font-size: 14pt;
	transition-duration: 0.1s;
}

button:hover {
	background-color: #3fafff;
}

button:active:not(:disabled) {
	color: black;
}

button:disabled {
	background-color: #c0c0c0;
	cursor: default;
}

#hoofdstuk-selector {
	border: 1px solid black;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	min-height: 500px;
	background-color: white;
	font-size: 12pt;
}

#hoofdstuk-selector td {
	max-width: 200px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-size: 10pt;
}

#hoofdstuk-selector td.selected {
	background-color: #0094ff;
}

.paging {
	position: fixed;
	left: 0px;
	right: 0px;
	text-align: center;
	user-select: none;
}

.paging > div {
	grid-column-start: 2;
	background-color: white;
}

.paging button {
	width: 100px;
	margin: auto;
}

input[type=checkbox] {
	accent-color: #0094ff;
	cursor: pointer;
}

.tag {
	display: inline-block;
	font-size: 9pt;
	background-color: #0094ff;
	color: white;
	padding: 0px 3px 2px 3px;
	border-radius: 4px;
	vertical-align: top;
	margin-top: 4px;
	cursor: default;
}

div.title {
	width: 100%;
	box-sizing: border-box;
	position: sticky;
	top: 50px;
	z-index: 254;
	background-color: white;
	color: #0094ff;
	padding: 0px 0px 0px 8px;
	margin: 0px;
	margin-block: 0px 8px;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
	border-bottom: 1px solid #0094ff;
	display: flex;
	align-items: center;
}

div.title * {
	margin-block: 0px;
	margin-right: 6px;
	display: inline-block;
}

div.title h1 {
	font-size: 20pt;
	font-weight: bold;
}

div.title h2 {
	font-size: 16pt;
	font-weight: bold;
	color: black;
	transform: translateY(2px);
}

div.title img.logo {
	height: 20pt;
	margin-top: 3px;
	transform: translateX(-4px);
	margin-right: 0px;
}

#title {
	width: calc(100% + 30px);
	position: sticky;
	top: 51px;
	z-index: 2;
	background-color: white;
	color: #0094ff;
	font-weight: bold;
	padding: 0px;
	margin-block: 0px 8px;
	margin-left: -30px;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
}

#title h1 {
	margin-block: 4px 8px;
	border-bottom: 1px solid #0094ff;
	font-size: 20pt;
	padding: 0px 8px;
	margin-left: 30px;
}

#title h1 > span {
	color: #404040;
	font-size: 16pt;
}

/* phone */
@media only screen and (max-width:599px) {
	header {
		display: grid;
		grid-template-columns: 0px 172px 1fr 5px;
		grid-gap: 0px;
	}

	header a.logo {
		margin: 8px 2px;
		height: 34px;
	}

	header a.logo img {
		height: 34px;
	}

	header nav {
		margin-left: auto;
	}

	footer {
		width: calc(100% - 20px);
		margin: 0px auto 70px auto;
	}

	main {
		margin: 10px auto 0px auto;
		padding: 10px 10px;
		width: calc(100% - 20px);
		min-height: calc(100vh - 140px);
	}

	.paging {
		border-top: 1px solid black;
		bottom: 0px;
		height: 66px;
		background-color: white;
	}

	.paging > div {
		margin-top: 15px;
	}

	.toolbar {
		bottom: 20px;
	}

	.tag {
		font-size: 8pt;
		padding: 0px 2px 1px 2px;
		margin-top: 6px;
	}

	.not-phone {
		display: none;
	}

	#title h1 {
		font-size: 16pt;
	}

	div.title h1 {
		font-size: 16pt;
	}

	div.title h2 {
		font-size: 12pt;
	}
}

/* tablet */
@media only screen and (min-width:600px) and (max-width:1299px) {
	header {
		display: grid;
		grid-template-columns: minmax(10px, 1fr) 230px minmax(0px, 950px) 150px minmax(10px, 1fr);
		grid-gap: 0px;
	}

	footer {
		width: calc(100%-400px);
	}

	main {
		margin: 10px auto;
		padding: 50px 100px;
		width: calc(100% - 20px);
		min-height: calc(100vh - 70px);
	}

	.paging {
		display: grid;
		grid-template-columns: 1fr auto 1fr;
		grid-gap: 0px;
		bottom: 20px;
	}

	.paging > div {
		border: 1px solid black;
		height: 33px;
		margin: auto;
		padding: 4px;
	}

	.toolbar {
		bottom: 32px;
	}

	#pages {
		font-size: 18pt;
	}

	.not-tablet {
		display: none;
	}

	div.title h1 {
		font-size: 16pt;
	}

	div.title h2 {
		font-size: 12pt;
	}
}

/* desktop */
@media only screen and (min-width:1300px) {
	header {
		display: grid;
		grid-template-columns: 1fr 230px 830px 220px 1fr;
		grid-gap: 0px;
	}

	footer {
		width: 1200px;
	}

	main {
		width: 1200px;
		margin: 10px auto 0px auto;
		padding: 50px 100px;
		min-height: calc(100vh - 70px);
	}

	.paging {
		display: grid;
		grid-template-columns: 1fr 1200px 1fr;
		grid-gap: 0px;
		bottom: 20px;
	}

	.paging > div {
		border: 1px solid black;
		height: 33px;
		margin: auto;
		padding: 4px;
	}

	.toolbar {
		bottom: 32px;
	}

	.not-desktop {
		display: none;
	}

	#pages {
		zoom: 1.2;
	}

	#pages svg {
		max-width: 100%;
	}
}

.toolbar {
	position: fixed;
	left: 0px;
	right: 0px;
	text-align: center;
	user-select: none;
	box-sizing: content-box;
}

.toolbar > div {
	margin: auto;
	height: 42px;
	padding: 0px;
}

.toolbar > div > div {
	height: 40px;
	box-shadow: rgb(0, 0, 0, 0.4) 3px 3px 4px;
	border-radius: 7px;
	color: black;
	background-color: black;
	display: inline-flex;
	gap: 1px;
	border: 1px solid black;
	margin: 0px 4px;
}

.toolbar > div > div > button {
	background-color: #e0e0e0;
	padding: 0px;
	width: 40px;
	height: 40px;
	border: 0px;
	position: relative;
}

.toolbar > div > div > button.x {
	background-color: #0094ff;
}

.toolbar > div > div > button.tonke {
	background-color: #f78b5f;
}

.toolbar > div > div > button:hover {
	filter: brightness(90%);
}

.toolbar > div > div > button:active {
	filter: brightness(110%);
}

.toolbar > div > div > button > img {
	height: 18px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%)
}

.toolbar > div > div > :first-child {
	border-bottom-left-radius: 6px;
	border-top-left-radius: 6px;
}

.toolbar > div > div > :last-child {
	border-bottom-right-radius: 6px;
	border-top-right-radius: 6px;
}

.toolbar > div > div > div {
	display: inline-block;
	padding: 0px 20px;
	font-size: 11pt;
	background-color: white;
	height: 40px;
}

.toolbar > div > div > div > div {
	margin: auto;
	font-weight: bold;
	line-height: 40px;
}

#tooltip {
	display: none;
	position: fixed;
	top: 0px;
	left: 0px;
	background-color: #404040;
	color: white;
	border-radius: 4px;
	z-index: 300;
	font-size: 10pt;
	padding: 4px 8px;
	user-select: none;
	line-height: 20px;
	max-width: 400px;
	text-align: center;
}

#tooltip b {
	color: #0094ff;
}

#tooltip tb {
	color: #f78b5f;
}

#tooltip::after {
	content: " ";
	position: absolute;
	bottom: 100%; /* At the top of the tooltip */
	left: 50%;
	margin-left: -5px;
	border-width: 5px;
	border-style: solid;
	border-color: transparent transparent #404040 transparent;
	z-index: 300;
}
