@font-face {
	font-family: dos;
	src: url(ModernDOS9x14.ttf);
}

* {
	padding: 0;
	letter-spacing: 0;
	word-spacing: 0;
	font-weight: normal;
	line-height: 1em;
	font-size: 1em;
	::selection {
		color: white;
		background: blue;
}
}

body {
	background: darkblue;
	font-family: dos, monospace;
	font-size: 20px;
}

h1, h2, h3, h4 {
	font-weight: normal;
	line-height: 1em;
	font-size: 1em;
	background: brown;
	color: white;
	margin: 1em 0;
}

strong {
	font-weight: normal;
	background: gray;
}

ul {
	list-style-type: square;
	padding-left: 1ch;
}

.menu {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 1em;
	background: lightgray;
	user-select: none;
	.item {
		padding: 0 1ch 0 1ch;
		display: inline-block;
		&:hover {
			background: blue;
			color: white;
			cursor: pointer;
		}
	}
	span {
		position: absolute;
		right: 1ch;
		color: darkgray;
	}
}

.window {
	display: flex;
	flex-direction: column;
	background: lightgray;
	position: absolute;
	left: 2ch;
	top: 3em;
	width: 50ch;
	height: 20em;
	box-shadow: 1ch 1em rgba(0, 0, 0, 0.75);
	.titlebar {
		position: relative;
		cursor: grab;
		user-select: none;
		text-align: center;
		height: 1em;
		background: white;
		.close {
			position: absolute;
			right: 0;
			width: 1ch;
			cursor: pointer;
		}
	}
	.body {
		position: relative;
		overflow: hidden;
		display: flex;
		flex-direction: row;
		.contents {
			overflow-y: scroll;
			overflow-x: hidden;
			scrollbar-width: none;
			padding: 0 2ch 0 1ch;
			user-select: text;
		}
		.scrollbar {
			user-select: none;
			position: absolute;
			right: 0;
			top: 0;
			width: 1ch;
			text-align: center;
			background: gray;
			height: 100%;
			display: flex;
			flex-direction: column;
			justify-content: space-between;
			color: white;
			a {
				padding-left: 1px;
				cursor: pointer;
			}
		}
	}
}

.measure {
	width: 1ch;
	height: 1em;
	position: fixed;
	visibility: hidden;
	top: 0;
	left: 0;
}

.hidden { display: none; }
