@keyframes ingame-errors {
	0% { background-color: #000208 }
	100% { background-color: #150202 }
}
@-webkit-keyframes ingame-errors {
	0% { background-color: #000208 }
	100% { background-color: #150202 }
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;600&display=swap');

* {
	box-sizing: border-box;
}

a {
	color: #006eaf;
	font-weight: 600;
	text-underline-offset: .3em;
}
body.x86 a {
	text-decoration: none;
}

body, html {
	width: 100%;
	height: 100%;
	margin: 0;

	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	color: #fff;
	font-family: 'Inter', sans-serif;
	background-color: #000105;
	user-select: none;
	line-height: 1;
}

#background {
	background-image: url('../media/background.png');
	background-position: center center;
	background-size: cover;
	z-index: -9999;
}
#background {
	position: fixed;
	width: 100%;
	height: 125%;
	top: 0;
	left: 0;

	-webkit-mask-image: -webkit-gradient(linear, left top, left bottom, from(rgba(0,0,0,1)), to(rgba(0,0,0,0)));
	mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0));
}
section#landing #background {
	position: absolute;
}

body > section {
	width: 100%;
	margin: auto;
}
section#landing {
	position: relative;
	display: table;
	height: 100vh;
}
section#landing > div:first-child {
	display: table-cell;
	vertical-align: middle;
	text-align: center;
}

section#faq > section:not(:last-child) {
	margin-bottom: 3rem;
}

body > section:not(#landing) {
	padding: 2rem;
	width: 55%;
	max-width: 1000px;
}
body > section#faq > h1 {
	font-size: 3em;
	text-align: center;
	margin-bottom: 2rem;
}

p {
	line-height: 1.8;
	white-space: pre-line;
}

#faq p {
	user-select: text;
}

#logo {
	font-size: 6em;
	font-weight: 300;
	font-family: 'Uni Sans', sans-serif;
	line-height: .73;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0;
}

#content {
	display: table;
	width: 100%;
	height: 100%;
}
#content > div {
	display: table-cell;
	vertical-align: middle;
	text-align: center;
}
#content > div > div {
	display: inline-block;
}

#error {
	margin-bottom: 1.5rem;
	font-size: 3em;
}

#download-btn {
	width: 20rem;
	margin: auto;
}
#my-servers-btn {
	width: 17rem;
	margin-top: 1rem;
	font-size: .8em;
}
.btn {
	padding: .9rem;
	background-color: #006eaf;
	border-radius: 100vw;
	font-size: .9em;
	font-weight: 600;
	text-shadow: 0 1px 0 #000;
	cursor: pointer;
	display: inline-block;
	color: inherit;
	text-decoration: inherit;
}

@media (max-width: 1300px) {
	body > section:not(#landing) {
		width: 75%;
	}
}
@media (max-width: 1000px) {
	body > section:not(#landing) {
		width: 100%;
	}
}

/* PLATFORMS */

#platforms {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 2rem;
	text-align: center;
}
#platforms h1 {
	font-size: 2em;
}

/*
#platforms .platform {
	cursor: pointer;
	padding: 1rem;
	border-radius: .5rem;
	font-size: .9em;
	border: 2px solid #030304;
	background-color: #08090c;
	justify-content: center;
	align-items: center;
	text-align: center;
	font-weight: 600;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: #fff;
	transition: background-color .25s, color .25s;
	line-height: 1.6;
	width: 10rem;
	height: 10rem;
}
#platforms .platform:hover {
	background-color: #dadadb;
	color: #000;
}
#platforms .platform > .icon {
	width: 4rem;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	flex: 1;
}
#platforms .platform > .icon > img {
	width: 100%;
	padding: .25rem;
}
#platforms #platform-select {
	display: grid;
	margin-bottom: 3rem;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	grid-template-rows: 1fr;
	grid-gap: 1rem;
}
*/

#platforms #platform-select {
	display: flex;
	flex-direction: column;
	margin-bottom: 3rem;
}
#platforms #platform-select label {
	font-size: .9em;
	flex: 1;
	flex-basis: 50%;
}
#platforms #platform-select label:first-child {
	margin-right: .5rem;
}
#platforms #platform-select label:last-child {
	margin-left: .5rem;
}
#platforms #platform-select label select {
	margin-top: .8rem;
	font-size: inherit;
	background-repeat: no-repeat;
	background-size: auto calc(100% - .8rem);
	background-position: .4rem .4rem;
}
#platform-select-container {
	display: flex;
}

#platforms > section:first-child > h1 {
	margin-bottom: 1em;
}
#platforms code {
	padding: 1rem;
	user-select: all;
	word-break: break-all;
	display: inline-block;
	width: min-content;
	min-width: 100%;
}

#download-selected-module {
	border-radius: 4px;
	padding: .7rem;
	color: #fff;
	font-size: .85em;
	font-weight: 600;
	text-shadow: 0 1px 0 #000;
	width: 100%;
	cursor: pointer;
	text-align: center;
	text-align-last: center;
	box-shadow: inset 0 0 4px #0000004f;
	background-color: #006eaf;
	cursor: pointer;
	display: inline-block;
	color: inherit;
	text-decoration: inherit;
	margin-top: 1rem;
}
#download-selected-module.disabled {
	cursor: default;
	background-color: #6b6b6b;
}

@media (max-width: 630px) {
	#platform-select-container {
		flex-direction: column;
	}
	#platforms #platform-select label {
		margin-right: 0 !important;
		margin-left: 0 !important;
	}
	#platforms #platform-select label select {
		margin-bottom: 1rem;
	}
	#download-selected-module {
		margin-top: 0;
	}
}

/* INGAME ERRORS */

body.ingame-errors {
	animation: ingame-errors 1s cubic-bezier(0.76, 0, 0.24, 1) infinite alternate;
	-webkit-animation: ingame-errors 1s cubic-bezier(0.76, 0, 0.24, 1) infinite alternate;
}
#ingame-errors {
	padding: 2rem;
	width: 100%;
	height: 100%;
	max-width: 100%;
	position: absolute;
	top: 0;
	left: 0;
	margin: auto;
	text-align: center;
	display: table;
	table-layout: fixed;
}
#ingame-errors > div {
	display: table-cell;
	vertical-align: middle;
	text-align: center;
}
#ingame-errors a {
	display: block;
	margin-top: 2rem;
}
#error-list {
	padding: 1rem;
	border: 2px solid #030304;
	background-color: #08090c;
	width: 50rem;
	height: 27rem;
	max-width: 100%;
	max-height: 27rem;
	margin-top: 2rem;
	text-align: left;
	overflow: auto;
	font-family: monospace;
	font-size: 1.1em;
	user-select: text;
	line-height: 1.6;
	display: inline-block;
}
#error-list .error > span {
	color: red;
	font-weight: bold;
}

.server-id {
	position: absolute;
	padding: 1rem;
	text-shadow: 0 1px 0 #000;
	color: rgba(255, 255, 255, .3);
}

section:last-child > p:last-child {
	margin-bottom: 0;
}

/* SERVERS */

#my-servers {
	display: flex;
	flex-direction: column;
	height: 100%;
	width: 100%;
}
#my-servers > div:last-child {
	height: 100%;
	display: grid;
	grid-template-columns: 28% 1fr;
	width: 100%;
}
#server-list {
	width: 100%;
	border: 2px solid #030304;
	background-color: #060709;
	overflow: auto;
}
#server-list > table {
	border-collapse: collapse;
}
#server-list tr {
	font-family: monospace;
	cursor: pointer;

	transition: background-color .05s, color .05s;
}
#server-list tr:hover {
	background-color: #fff;
	color: #000;
}
#server-list td.expand, #server-list td.flag {
	width: 1px;
}
#server-list td.flag > img {
	vertical-align: middle;
}
#server-list td.name {
	width: 100%;
}
#server-list td.ip > div {
	display: grid;
	grid-template-columns: 1fr .5rem;
	grid-gap: .5rem;
	align-items: center;
}
#server-list td .status {
	width: .5rem;
	height: .5rem;
	border-radius: 50%;
}
#server-list td .status.green {
	background-color: green;
}
#server-list td .status.red {
	background-color: red;
}
#server-list td {
	padding: .5rem;
}
#server-list td:not(:last-child) {
	padding-right: 0;
}

#server-details {
	border: 2px solid #030304;
	background-color: #08090c;
	overflow: auto;
	border-left: none;
	position: relative;
}
#server-details > #no-server-selected {
	position: absolute;
	margin: auto;
	top: 0;
	right: 0;
	left: 0;
	bottom: 0;
	width: max-content;
	height: max-content;
	font-size: 2em;
	opacity: .25;
	font-weight: 600;
	max-width: 45%;
	text-align: center;
	line-height: 1.5;
}
#server-details.active > #no-server-selected {
	display: none;
}
#server-details:not(.active) > #server-selected {
	display: none;
}

#my-servers #toolbar {
	border: 2px solid #030304;
	background-color: rgba(8, 9, 12, .88);
	border-bottom: none;
}
#my-servers #toolbar #logo {
	font-size: 1.5em;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 200;
	font-family: inherit;
}
#my-servers #toolbar, #my-servers #toolbar #user {
	display: flex;
	align-items: center;
}
#my-servers #toolbar #user {
	margin-right: .5rem;
	display: flex;
	align-items: center;
}
#my-servers #toolbar #user > a {
	text-decoration: none;
	color: inherit;
	display: flex;
	align-items: center;
}
#my-servers #toolbar #user .avatar {
	border-radius: 50%;
	width: 2rem;
	margin-left: .5rem;
}
#my-servers #toolbar #user .logout {
	display: block;
	width: 1.5rem;
	height: 2rem;
	margin-left: .5rem;
	background-image: url('/static/media/logout.svg');
	background-size: 1rem auto;
	background-position: center center;
	background-repeat: no-repeat;
}

#my-servers #logo {
	flex: 1;
}
#my-servers .server-id {
	position: initial;
}

body.no-server-id > .server-id {
	display: none;
}

span.error {
	font-weight: 600;
	color: red;
}

#linking.waiting > div:last-child, #linking:not(.waiting) > div:first-child {
	display: none;
}

#reload-map {
	font-size: .9em;
}

/* select */

select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	font: inherit;
	border-radius: 4px;
	padding: .7rem;
	color: #fff;
	font-size: .85em;
	width: 100%;
	cursor: pointer;
	text-align: center;
	text-align-last: center;
	border: 2px solid #030304;
	background-color: #08090c;
}
select:focus {
	box-shadow: inset 0 0 0px 1.5px #127cff;
	outline: none;
}
option {
	background: #08090c;
	color: #fff;
}
option:hover {
	background: #CECECE;
	color: #08090c;
}