/* Global */
* {
	box-sizing: border-box;
}

html {
	overflow-y: scroll;
}

header {
	position: fixed;
	width: 100%;
	top: 0;
	left: 0;
	z-index: 1000;
}

body {
	color: #FFF;
	background: #333;
	z-index: 1;
}

a {
	color: #FFF;
}

/* Variable */
:root {
	--header_position: 100px;
}


/* Header */
nav a, header a {
	text-decoration: none;
}

header nav {
	background-color: #111;
	border-bottom: 1px solid ;
	color: white;
	font-size: 120%;
	padding: 0.5em;
}

header h1 {
	background-color: #333;
	border-bottom: 1px solid;
	color: white;
	font-size: 233%;
	font-weight: normal;
	margin: 0;
	padding: 0.5ex;
}

header a:hover {
	text-decoration: none;
}

.menu-right {
	float: right;
	margin: 0;
	padding: 0;
}

.menu-right a {
	margin-left: 8px;
}

/* Side */
.sidebar {
	background-color: #222;
	height: 100vh;
	left: 0;
	overflow-y: auto;
	position: fixed;
	top: var(--header_position);
	width: 250px;
	z-index: 999;
}

.sidebar a {
	display: block;
	padding: 0.5em 1em;
}

.sidebar ul {
	display: flex;
	flex-direction: column;
	list-style-position: outside;
	list-style-type: none;
	padding-left: 0;
}

.sidebar li:hover {
	background-color: black;
	color: white!important;
	text-decoration: none;
}

/* Body */
article {
	margin: 0 0 0 260px;
	max-width: 50em;
	padding: 2em;
	position: absolute;
	top: var(--header_position);
}

h1 {
	font-size: 2.0em;
	margin: 2em 0 0 0;
}

h2 {
	margin: 2.0em 0 0 0;
}

/*
h2 {
	font-size: 1.5em;
	margin: 1.5em 0 0 0;
}

h3 {
	font-size: 1.0em;
	margin: 1.3em 0 -0.5em 0;
}
*/

/* Code */
code {
	border: none;
	padding: 0;
	background-color: #222;
}

pre {
	border: none;
	padding: 0;
	background-color: #222;
}

/* Table */
table {
	border-collapse: collapse;
	width: 100%;
}
th, td {
	border: 1px solid #aaa;
	padding: 8px;
}
