html {
	--side: max(100vw, 100vh);
}

html,
body {
	width: 100%;
	height: 100%;
}

a {
	background-color: transparent;
	user-select: none;
	text-decoration: none;
	color: #FFF;
	margin: 15px 0;
	position: relative;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding-left: 20px;
	font-family: Inconsolata, monospace;
}

body {
	margin: 0;
	overflow: hidden;
	position: fixed;
	font-family: Inconsolata;
	background-color: #111;
}

canvas {
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: calc(var(--side) * 1.5);
	height: var(--side);
	position: fixed;
	z-index: 0;
}

.content-container,
#tree-container,
.topbar,
#page-container,
#filter-container {
	position: relative;
	z-index: 10;
}

#page-container {
	width: 80%;
	margin: 0 auto;
	background-color: rgba(36, 36, 36, 0.9);
	padding: 10px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
	color: rgba(255, 255, 255, 0.9);
	font-family: Inconsolata, monospace;
	display: flex;
	justify-content: center;
	align-items: center;
}

#page-container button,
#filter-container button {
	background-color: transparent;
	border: none;
	color: rgba(255, 255, 255, 0.9);
	font-family: Inconsolata, monospace;
	font-size: 17px;
	cursor: pointer;
	padding: 5px 10px;
}

#page-container button:disabled,
#filter-container button:disabled {
	color: rgba(255, 255, 255, 0.5);
	cursor: not-allowed;
}

#page-container span {
	margin: 0 10px;
	font-size: 17px;
}

#filter-container {
	width: 80%;
	margin: 0 auto 10px;
	background-color: rgba(36, 36, 36, 0.9);
	padding: 10px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
	color: rgba(255, 255, 255, 0.9);
	font-family: Inconsolata, monospace;
	display: flex;
	justify-content: center;
	align-items: center;
}

#filter-container input {
	background-color: rgba(36, 36, 36, 0.6);
	border: none;
	color: white;
	font-family: Inconsolata, monospace;
	font-size: 17px;
	padding: 5px 10px;
	margin: 0 10px;
	width: 80px;
	outline: none;
}

#tree-container {
	margin: 0 auto;
	max-height: 500px;
	overflow-y: auto;
	width: 80%;
	background-color: rgba(36, 36, 36, 0.9);
	padding: 10px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
	color: rgba(255, 255, 255, 0.9);
	font-family: Inconsolata, monospace;
}

.tree {
	list-style-type: none;
	padding-left: 0;
	text-align: center;
	font-family: Inconsolata;
	font-size: 17px;
}

.tree li {
	margin: 15px 0;
	position: relative;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding-left: 20px;
	font-family: Inconsolata, monospace;
	color: #FFF;
}

.tree li::before {
	content: "▶";
	position: absolute;
	left: 0;
	cursor: pointer;
	display: inline-block;
	margin-right: 5px;
}

.tree li.expanded::before {
	content: "▼";
}

.tree ul {
	display: none;
	margin-left: 20px;
	list-style-type: none;
	padding-left: 0;
}

.tree li.expanded>ul {
	display: block;
}

.topbar {
	display: inline-block;
	width: 100%;
	margin: 0;
	background-color: rgba(36, 36, 36, 0.9);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
	margin-bottom: 20px;
	color: white;
	font-weight: bold;
}

.topbar p {
	text-align: center;
	font-family: Inconsolata, monospace;
	font-size: 20px;
	user-select: none;
}

.topbar a {
	font-size: 15px;
	text-decoration: none;
	color: white;
}

.topbar a:hover {
	text-decoration: underline;
}

.content-container {
	display: block;
	margin: auto;
	width: 80%;
	word-wrap: break-word;
	background-color: rgba(36, 36, 36, 0.8);
	overflow-x: hidden;
	overflow-y: auto;
	margin-bottom: 20px;
	color: white;
}

.content-container input[type='text'] {
	width: 100%;
	outline: none;
	background-color: rgba(36, 36, 36, 0.6);
	border: none;
	font-family: Inconsolata, monospace;
	font-weight: 300;
	font-size: 15px;
	color: white;
	padding: 5px 10px;
}

.content-container a {
	display: block;
	background-color: transparent;
	padding: 5px 10px;
	margin: 0;
	font-family: Inconsolata, monospace;
	font-weight: 300;
	font-size: 15px;
	user-select: none;
	text-decoration: none;
	text-align: center;
	color: white;
}

.content-container a:hover {
	text-decoration: underline;
	background-color: #212121;
}

.content-container a:active {
	background-color: #1a1a1a;
}

footer p {
	text-align: center;
	font-family: Inconsolata, monospace;
	font-weight: 300;
	font-size: 15px;
	color: #c9c9c9;
	user-select: none;
}

@media screen and (max-width: 768px) {
	.content-container {
		width: 85%;
	}

	.content-container a {
		font-size: 12px;
	}
}

::-webkit-scrollbar {
	width: 5px;
	background-color: rgba(36, 36, 36, 0.9);
}

::-webkit-scrollbar-thumb {
	background-color: #FFFF;
}
