body {
	background: black;
}

#background, #background-placeholder {
	position: fixed;
	top: 0;
	bottom: 0;
	left: -64px;
	right: -64px;
	width: calc(100% + 2*64px);
	height: 100%;
	opacity: 60%;

	transition: opacity 2s;
}

#background {
	z-index: -10;
	overflow: hidden;

	opacity: 0;
}

#background-placeholder {
	height: 120%;
	top: -10%;
	bottom: -10%;
	z-index: -11;
	background: url('https://alpha.factorio.sdore.me/thumbnail.png') no-repeat center;
	background-size: cover;
}

#background-cover {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	width: 100%;
	height: 100%;
	z-index: -10;

	backdrop-filter: blur(32px);
	transition: backdrop-filter 2s;
}

#right {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: auto;
	max-width: 20%;
	height: 100%;
	float: right;
	padding: 2em;
	padding-bottom: 0;
}

@media screen and (max-width: 1280px) {
	#right {
		display: none;
	}
}

#right #discord {
	position: fixed;
	bottom: -2px;
	right: 2em;
	height: 32px;
	overflow: hidden;
	transition: height 1.5s ease-out;
}

#right #discord.shown {
	height: 320px;
}

#right #discord-bar {
	position: absolute;
	bottom: 2px;
	left: 0;
	right: 0;
	width: 100%;
	height: 2px;
	z-index: -2;
	display: none;
	background: #202225;
}

#right #discord.shown #discord-bar {
	display: block;
}

#content-wrapper {
	width: 100%;
	float: left;
}

#content {
	margin-top: 4em;
}

.block {
	width: 50%;
	margin: auto;
	margin-bottom: 1em;
	padding-top: 0.5em;
	padding-bottom: 0.5em;
	padding-left: 2em;
	padding-right: 2em;
	border-radius: 16px;
	background: white;
	overflow-wrap: break-word;
	font-family: system-ui;
}

@media screen and (max-width: 768px) {
	.block {
		width: 80%;
	}
}

.block.main {
	margin-bottom: 2em;
	padding-bottom: 1em;
}

.block .metadata {
	position: relative;
	top: -1em;
	right: -1em;
	float: right;
	text-align: right;
}

a {
	color: inherit;
}

a:hover {
	text-decoration: none;
}

.block :not(span) > code {
	padding: 1px 4px;
	background: #efefef;
	border-radius: 2px;
	color: #22a6b3;
}

.large {
	font-size: large;
}

.semi {
	font-weight: 500;
}
