:root {
	--players: 0;
}

body,
main::before {
	background: var(--bg) 0 / cover fixed;
	background-position: center;
}

main.container {
	background: hsla(var(--theme-color-main) / .65);
	position: absolute;
	inset: 75px;
	box-shadow: -5px 3px 30px black;
	overflow: hidden;
	transition: all .5s, color .3s;
}

main.container::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	filter: blur(20px);
}

#headerBar {
	height: 88px;
	background: hsl(var(--theme-color-main));	
	padding: 15px;
	transition: color .3s;
	display: flex;
}

#headerBar>span {
	font-family: 'El Messiri', serif;
	font-weight: 700;
	font-size: 24px;
	flex-grow: 1;
	padding: 8px 20px;
	font-size: 32px;
}

#headerBar>img {
	height: 56px;
	display: block;
	margin-bottom: 10px;
}

#flexBar {
	scroll-behavior: smooth;
	position: absolute;
	display: flex;
	flex-direction: column;
	overflow-y: hidden;
	top: 88px;
	right: 0px;
	width: 205px;
	height: calc(100% - 88px);
	transition: all .5s;
	background: hsl(var(--theme-color-main) / .4);
}

/*#flexBar .btn {
	background-color: transparent;
	color: hsl(var(--theme-text-main));
}*/

.flexContainer {
	height: 0px;
	overflow: hidden;
	transition: height .3s;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-inline: 8px;
}

.flexContainer.selected {
	height: 100% !important;
}

.flexContainer > *:first-child {
	margin-top: 10px;
}

#navBar {	
	padding-inline: 0px;
	background-color: #0001;
	gap: 7px;
}

#navBar > *:first-child {
	margin-top: 7px;
}

/*#signinInputs.selected, #chPassInputs.selected {
	padding: 10px;
}*/

#signinInputs:not(.selected) > input, #chPassInputs:not(.selected) > input {
	display: none;
}

#profile_skin {
	border-radius: 5px;
	width: 64px;
	position: absolute;
	right: 15px;
}

.nav_link {
	display: block;
	padding: 3px 0px 3px 7px;
	border-left: solid white;
	font-size: 15px;
	background: linear-gradient(90deg, hsla(0, 0%, 100%, 0.4) 50%, hsla(0, 0%, 0%, 0) 50%);
	background-size: 200%;
	background-position: right;
	transition: all 1s ease, color .3s, background-color .3s ease-in-out, border-color .3s ease-in-out;
}

.nav_link:hover {
	background-position: left;
}

.nav_link>img {
	height: 18px;
	position: relative;
	top: 2px;
	margin-right: 7px;
	image-rendering: pixelated;
	image-rendering: crisp-edges;
}

.nav_link.selected {
	border-color: hsl(var(--accent-color));
	background-color: hsla(var(--accent-color) / .4);
}

.content {
	position: absolute;
	inset: 88px 205px 0px 0px;
	width: calc(100% - 205px);
	height: calc(100% - 88px);
}

#loading {
	display: none;
	justify-content: center;
	align-items: center;
	font-size: 52px;
	inset: 0;
}

#profile {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
}

#profile.loggedin {
	padding-right: 79px;
}

#serverInfo {
	position: fixed;
	bottom: 75px;
	right: 75px;
	width: 205px;
	height: 102px;
	transition: all .5s;
	overflow: hidden;
}

#serverInfo > canvas {
	width: 100%;
}
	
#serverInfo:not(.w-historyLink):hover {
	height: calc(112px + (var(--players) * 24px));
}
#serverInfo.w-historyLink:hover {
	height: calc(143px + (var(--players) * 24px));
}
#serverInfo > span {
	position: absolute;
	top: 70px;
	left: 12px;
}
#serverInfo > div {
	background-color: hsla(var(--hue),100%,50%,.5);
}
#playerList {
	padding: 5px 0px;
}
#playerList img {
	border-radius: 3px;
	height: 20px;
	vertical-align: sub;
	margin: 0px 5px 0px 15px;
}

.swal2-popup iframe {
	position: unset !important;
	inset: unset !important;
	width: 100% !important;
	height: calc(100% - 25px) !important;
}

.toastStack {
	position: fixed;
	inset: 0px 0px 0px auto;
	width: 420px;
	display: flex;
	flex-direction: column-reverse;
	padding: 0px 120px 120px 0px;
	z-index: 10;
	pointer-events: none;
}

.toast {
	background-color: hsl(var(--theme-color-main));
	padding: 12px 24px 16px;
	border-left: solid 3px hsl(var(--accent-color));
	border-radius: 5px;
	color: hsl(var(--theme-text-second));
	position: relative;
	margin-top: 10px;
}

.toast::after {
	content: "";
	position: absolute;
	inset: auto auto 0px 0px;
	height: 4px;
	width: 0%;
	background-color: hsl(var(--theme-text-second));
	animation: toast-timer 3s forwards;
}

.toast > .title {
	font-weight: bold;
	font-size: 18px;
	color: hsl(var(--theme-text-main));
}

.toast.error {
	background-color: hsl(var(--theme-color-error));
	border-color: red;
}

@keyframes toast-timer {
	0% {
		width: 0%;
	}
	100% {
		width: 100%;
	}
}

.resetPassword {
	width: 360px;
}
.resetPassword input {
	font-size: 18px;
}
.resetToken input {
	font-size: 24px;
}
.resetPassword .swal2-html-container {
	font-size: 14px;
	text-align: inherit;
	padding-left: 5px;
}
.resetToken .invaild, .resetPassword .invaild {
	color: #e60101;
}
.tokenCommand {
	display: inline-block;
	padding: 2px 4px;
	background-color: rgba(0, 0, 0, .3);
	font-family: monospace;
	border-radius: 5px;
}
@keyframes shake {
	0% {
		margin-left: 0rem;
	}
	25% {
		margin-left: 0.5rem;
	}
	75% {
		margin-left: -0.5rem;
	}
	100% {
		margin-left: 0rem;
	}
}
.shakeAnim {
	animation: shake 0.1s 0s 2 !important;
}

.tooltip {
	padding: 15px;
	position: fixed;
	background: hsla(var(--theme-color-main) / .6);
	border-radius: 5px;
	backdrop-filter: blur(10px);
	max-width: 315px;
	z-index: 69;
	display: none;
	font-size: 14px;
}

.tooltip > .title {
	font-weight: bold;
	font-size: 16px;
	padding-bottom: 10px;
}

.tooltip > .title:only-child {
	padding-bottom: 0px !important;
}

.tooltip .row {
	position: relative;
	min-width: 200px;
}

.tooltip .row span {
	position: absolute;
	right: 0px;
}

.tooltip > .enchantment {
	color: var(--enchant-color);
}

#homePreview {
	display: none;
	z-index: 2000;
}

#remMe {
	font-size: 14px;
	text-align: center;
	user-select: none;
}