@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@500&display=swap");

:root {
	--maincolor: green;
	--fontcolor: #2aac2a;
	--warncolor: red;
	--bgcolor: black;
	--border: 2px solid var(--maincolor);
	--default-padding: 1em;
}

body {
	background-color: var(--bgcolor);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='100%25' width='100%25'%3E%3Cdefs%3E%3Cpattern id='doodad' width='40' height='40' viewBox='0 0 40 40' patternUnits='userSpaceOnUse' patternTransform='rotate(45)'%3E%3Crect width='100%25' height='100%25' fill='rgba(0, 0, 0,1)'/%3E%3Ccircle cx='20' cy='20' r='1' fill='rgba(236, 201, 75,1)'/%3E%3Ccircle cx='20' cy='-20' r='1' fill='rgba(236, 201, 75,1)'/%3E%3Ccircle cx='0' cy='20' r='1' fill='rgba(236, 201, 75,1)'/%3E%3Ccircle cx='20' cy='0' r='1' fill='rgba(236, 201, 75,1)'/%3E%3Ccircle cx='40' cy='20' r='1' fill='rgba(236, 201, 75,1)'/%3E%3Ccircle cx='20' cy='40' r='1' fill='rgba(236, 201, 75,1)'/%3E%3C/pattern%3E%3C/defs%3E%3Crect fill='url(%23doodad)' height='200%25' width='200%25'/%3E%3C/svg%3E");
	color: var(--fontcolor);
	background-attachment: fixed;
	background-repeat: no-repeat;
	background-size: cover;
	font-family: Verdana, sans-serif;
	line-height: 1.5;
	/* letter-spacing: 0.05em; for all caps */
	font-feature-settings: "kern";
	text-rendering: optimizeLegibility;
	max-width: 10in;
	margin: 2em auto;
	hyphens: auto;
}

header,
main,
footer {
	background-color: var(--bgcolor);
	text-align: center;
	margin: 1.5em auto;
	border: var(--border);
	padding: var(--default-padding);
}

img {
	max-width: 100%;
	image-rendering: pixelated;
	image-rendering: -moz-crisp-edges;
	image-rendering: crisp-edges;
}

hr {
	margin: 1em auto;
	border-color: var(--maincolor);
}
blockquote {
	border-left: var(--border);
	padding: 0 1em;
	font-style: italic;
	margin: 1em auto;
}
blockquote > p {
	display: inline;
	white-space: pre-line;
	margin: 0;
}
blockquote > p::before {
	content: "“";
}
blockquote > p::after {
	content: "”";
}
aside {
	border: var(--border);
	padding: 1em;
	margin: 1em auto;
}
lite-youtube {
	margin: 1em auto;
}
/* codeblocks */
code,
code pre,
div.code {
	font-family: "Roboto Mono", "Courier New", monospace;
	background-color: green;
	color: black;
	max-width: min-content;
	padding: 0.2em;
	overflow: scroll;
}

code pre,
div.code {
	margin: 1em auto;
}

/* links */
a:link {
	color: Yellow;
	transition: all 200ms;
	will-change: color;
}

a:visited {
	color: Orange;
}

a:active {
	color: YellowGreen;
}

a:hover {
	color: white;
}

/* lists and nav */
ul,
dd,
dt {
	list-style-type: none;
	margin: 0;
	padding: 0;
}

ul#menu > li,
ul#nav > li,
.btn > a,
.btn > .disabled,
.block > a {
	display: inline-block;
}

ul#menu > li,
ul#nav > li,
.btn > a,
.btn > .disabled {
	padding: 5px;
}

ol,
ol > ul {
	text-align: left;
}

ol ul {
	list-style-type: initial;
}

.btn > a,
.btn > .disabled {
	background-color: var(--maincolor);
	border-radius: 25px;
	margin: 3px auto;
	text-decoration: none;
}

.btn > a:link {
	color: black;
	text-decoration: none;
}
.btn > a:hover {
	background-color: yellow;
}
.btn > a:active {
	background-color: yellowgreen;
}
.btn > a:visited {
	color: black;
}

/* disabled buttons */
.btn > .disabled {
	background-color: #6e6e6e;
	color: black;
	cursor: not-allowed;
}

/* table */
table {
	margin: auto;
	padding: var(--default-padding);
}
table tr td,
table tr th {
	border: var(--border);
}
table tr td,
tbody tr th {
	padding: var(--default-padding);
}

table tr td:nth-child(1) {
	font-weight: bold;
}
table tr td:nth-child(1) > * {
	display: inline-block;
}
.tsection td,
.tsection th {
	font-size: larger;
}

/* classes */
.warn,
noscript {
	color: var(--warncolor);
}
.update {
	width: 200px;
	height: 200px;
	margin: 1em;
}
.zoom-in img,
.zoom-in-a-little img {
	will-change: transform;
	transition: 0.4s;
	transition-timing-function: ease;
}
.zoom-in img:hover {
	transform: scale(1.5);
}
.zoom-in-a-little img:hover {
	transform: scale(1.1);
}
.zoom-in img:active,
.zoom-in-a-little img:active {
	transition-timing-function: linear;
	transform: scale(1);
}
.zoom-in img:active {
	transition: 50ms;
}
.zoom-in-a-little img:active {
	transition: 100ms;
}
.dropdown:not(:hover, :focus, :focus-within) :not(.dropdown-hider) {
	position: absolute;
	left: -9999px;
}

/* flex */
.flex,
.flex-gridlike {
	display: flex;
	flex-flow: row wrap;
}
.flex {
	margin: 1em;
	justify-content: center;
	align-content: center;
	align-items: stretch;
}
.flex-gridlike {
	justify-content: space-around;
	align-content: space-around;
	align-items: center;
}
.flex > div {
	padding: var(--default-padding);
}
.flex-border > div {
	border: 1px solid var(--maincolor);
}
.flex-gridlike > div {
	margin: 0.5em;
	width: 45%;
}
.vertical {
	flex-direction: column;
}

.col-2,
.half {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	border: 0;
	background-color: transparent;
	padding: 0;
}
.left,
.right,
.half {
	background-color: var(--bgcolor);
	border: var(--border);
	padding: inherit;
	padding: var(--default-padding);
}
.left {
	flex-basis: 70%;
}
.right {
	flex-basis: 20%;
}
.half {
	flex-basis: 50%;
}

.post {
	text-align: left;
}

/* grid */
.grid {
	display: grid;
	gap: 1em;
	justify-content: space-evenly;
}

.grid > * {
	border: var(--border);
}

/* unfurl embed */
.unfurl {
	border-left: var(--border);
	display: grid;
	grid-template-columns: auto 3fr;
	grid-template-rows: 1fr 1fr auto;
	max-height: 10em;
}
.unfurl.no-media {
	grid-template-columns: 1em auto;
}
.unfurl > * {
	align-self: center;
}
.unfurl-image {
	grid-column: 1 / 1;
	grid-row: 1 / span 3;
	margin: 1em;
	max-width: 8em;
	height: auto;
}
.unfurl-meta,
.unfurl-title,
.unfurl-desc {
	grid-column: 2 / span 1;
}
.unfurl-meta {
	grid-row: 1 / span 1;
}
.unfurl-title {
	grid-row: 2 / span 1;
	margin: unset;
}
.unfurl-desc {
	grid-row: 3 / span 1;
	margin: unset;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.unfurl-logo {
	max-width: 16px;
	height: auto;
}

/* helper */
.separate {
	padding-top: 1em;
}
.hidden {
	visibility: hidden;
	display: none;
}

@media screen and (max-width: 720px) {
	main table {
		padding: var(--default-padding) 0;
		overflow-x: scroll;
	}

	/* classes */
	.hide-on-mobile {
		display: none;
	}

	.update {
		width: 90%;
	}

	/* flex */
	.flex-gridlike > div {
		width: 100%;
	}

	.col-2 {
		flex-wrap: wrap;
	}

	.left,
	.right {
		flex-basis: 100%;
		margin-left: auto;
		margin-right: auto;
	}

	.left {
		margin-bottom: 1em;
	}

	.right {
		margin-top: 1em;
	}

	.unfurl-image {
		max-width: 5em;
		height: auto;
	}
}

@media (prefers-reduced-motion) {
	*,
	::before,
	::after {
		animation: none !important;
		animation-delay: -1ms !important;
		animation-duration: 1ms !important;
		animation-iteration-count: 1 !important;
		background-attachment: initial !important;
		scroll-behavior: auto !important;
		transition: none !important;
		transition-duration: 0s !important;
		transition-delay: 0s !important;
	}
}
