body {
	background-color: #111;
	color: #eee;
	margin: 0;
	overflow: hidden;

	font-family: sans-serif;
}

.parallax-inner {
	background: url("/assets/bg.png");
}

.flex-maybe-row {
	display: flex;
	flex-direction: row;
	flex-grow: 0;
}

body {
	display: flex;
	justify-content: center;
}

body>div {
	max-width: 177vh; /* Max 16:9 aspect ratio, approx */
}

@media screen and (max-width: 1100px) {
	body {
		font-size: 14px;
	}

	.display-big {
		display: none;
	}

	.thought {
		--pad: calc(var(--pad-chars) * 8px / 2);
	}

	.thought-bubble {
		font-size: 8px;
	}

	.flex-maybe-row {
		flex-direction: column;
		font-size: 14px;
	}
}

@media screen and not (max-width: 1100px) {
	body {
		font-size: 10px;
	}

	.display-small {
		display: none;
	}

	.thought {
		--pad: calc(var(--pad-chars) * 10px / 2);
	}

	.thought-bubble {
		font-size: 10px;
	}

	.flex-maybe-row {
		justify-content: center;
		align-items: flex-start;
	}
}

.flex-column {
	display: flex;
	flex-direction: column;
}

.center {
	text-align: center;
}

fieldset {
	flex-grow: 0;
	flex-shrink: 1;
	border: 2px solid #ddd;
}

fieldset fieldset {
	margin: 0;
}

a:visited {
	color: #bbe;
}

a {
	color: #eee;
}

.inverted.a-dark, .inverted.a-dark:visited {
	text-decoration: none;
}

.a-dark, .a-dark:visited {
	color: #333;
	text-decoration: none;
}

.nowrap {
	display: flexbox;
}

img {
	height: 14pt;
	min-width: 14pt;
}

table {
	border-collapse: collapse;
}

tr:nth-child(even) {
	background: #222;
}

.fieldset-table {
	padding-left: 0;
	padding-right: 0;
}
.fieldset-table legend {
	margin-left: 8px;
}
.fieldset-table td:nth-child(1) {
	padding-left: 4px;
	padding-right: 3px;
}
.fieldset-table td:nth-child(3) {
	padding-right: 4px;
}

textarea,
input[type="text"] {
	background: #333;
	border: 1px solid var(--id-color);
	color: #eee;
}

input[type="text"] {
	border-top: unset;
	border-right: unset;
	border-left: unset;
}

textarea {
	min-width: calc(100% - 6px);
}

.chat-form {
	display: flex;
	flex-direction: column;
}

.wedge-up {
	margin-top: -2px;
	display: flex;
}

.wedge-up code {
	padding: 2px 3px;
	margin-top: 1px;
}

input[type="submit"] {
	background: #333;

	border: 1px solid var(--id-color);
	border-left: unset;
	border-top: unset;

	color: #eee;
	text-decoration: underline;
	cursor: pointer;
}

.posts {
	padding: 3px 0;
	margin-bottom: -2px;
}

.invis {
	opacity: 0;
}

.pid-color,
.talk .pid-color{
	background: var(--id-color);
	color: #333;
}

.pid-color.inverted,
.talk .pid-color.pid-color.inverted{
	background: transparent;
	color: var(--id-color);
}

.post:nth-child(1) {
	margin-top: unset;
}

.post {
	background: #333;
	margin-top: 12px;
	padding: 5px;
}

.post-header {
	margin-bottom: 3px;
}

code {
	background: #333;
	padding: 0 3px;
}

.talk code {
	background: #eee;
	color: #333;
	padding: 0 3px;
	font-family: monospace;
}

code.inverted,
.talk code.inverted {
	background: transparent;
	padding: 0;
	color: #eee;
}

.pid-fail,
.talk .pid-fail {
	background: #000;
	color: #eee;
}

.post-body {
	white-space: pre-wrap;
}

:target {
	background: #555;
}

.thought {
	left: 0;
	right: 0;
	top: calc(min(max(var(--y), var(--pad)), 100% - var(--pad)));

	position: absolute;
	min-width: 30pt;
	min-height: 30pt;
	pointer-events: none;
}

.thought>button {
	left: calc(min(max(var(--x), var(--pad)), 100% - var(--pad)));
	opacity: 1;
	transition: opacity 1s;

	background: transparent;
	border: unset;

	rotate: var(--a);
	width: 30pt;
	height: 30pt;
	position: absolute;
	pointer-events: all;
}

.thought>button>img {
	width: 100%;
	height: 100%;
	filter: blur(calc(var(--z) * 1px));
}

.thought:hover>button,
.thought:active>button {
	opacity: 0;
}

.tooltip-reference {
	width: 30pt;
	height: 30pt;
	left: calc(min(max(var(--x), var(--pad)), 100% - var(--pad)));
	position: relative;
}

.thought-bubble {
	opacity: 0;
	transition: opacity 1s;

	white-space: pre-wrap;
	font-family: monospace;
	pointer-events: none;

	position: absolute;
	left: 50%; 
	top: 50%;
	margin-inline: auto; 
	width: max-content;
}

.thought-bubble-contents {
	position: relative;
	left: -50%;
	top: -50%;

	background: black;
	border: 1px solid white;
	outline: 1px solid grey;

	padding: 2px 4px;
}

.thought:hover .thought-bubble,
.thought:active .thought-bubble{
	opacity: 1;
}

.thought:hover .thought-bubble-contents,
.thought:active .thought-bubble-contents {
	pointer-events: all;
}

.parallax {
	scroll-behavior: smooth;
	perspective: 100px;
	overflow-x: hidden;
	overflow-y: auto;
	height: 100vh;
}

.parallax-inner {
	position: relative;
	transform-style: preserve-3d;
}

