/*#region Base elements (all, html, head, body)*/
@font-face
{
	font-family: "Cascadia Code";
	src: url("CascadiaCode.ttf");
}
@font-face
{
	font-family: "skyseract";
	src: url("skyseract.ttf");
}
@font-face
{
	font-family: "Inter Variable";
	src: url("InterVariable.ttf");
}
:root
{
	--RedXLight: #EFBFBF;
	--RedLight: #DF7F7F;
	--Red: #BF0000;
	--RedDark: #5F0000;
	--RedXDark: #2F0000;
	--YellowXLight: #FFEFBF;
	--YellowLight: #FFDF7F;
	--Yellow: #FFBF00;
	--YellowDark: #7F5F00;
	--YellowXDark: #3F2F00;
	--GreenXLight: #BFEFBF;
	--GreenLight: #7FDF7F;
	--Green: #00BF00;
	--GreenDark: #005F00;
	--GreenXDark: #002F00;
	--BlueXLight: #BFDFFF;
	--BlueLight: #7FBFFF;
	--Blue: #007FFF;
	--BlueDark: #003F7F;
	--BlueXDark: #001F3F;
	--VioletXLight: #FFBFEF;
	--VioletLight: #FF7FDF;
	--Violet: #FF00BF;
	--VioletDark: #7F005F;
	--VioletXDark: #3F002F;
	--GrayXLight: #DFDFDF;
	--GrayLight: #BFBFBF;
	--Gray: #7F7F7F;
	--GrayDark: #3F3F3F;
	--GrayXDark: #1F1F1F;
	--Black: #000000;
	--White: #FFFFFF;

	--FontCode: "Cascadia Code", monospace;
	--FontDesign: "skyseract", "Inter Variable", sans-serif;
	--FontText: "Inter Variable", sans-serif;
}
*
{
	all: unset;
	box-sizing: border-box;
	border: 0px solid transparent;
	overflow: hidden;
	margin: 0px;
	padding: 0px;
	transition: all 0.2s ease;
}
html
{
	-webkit-font-smoothing: antialiased;
	background: var(--Black);
	color: var(--GrayXLight);
	font-family: var(--FontText);
	font-feature-settings: "tnum" 1, "zero" 1;
	font-size: 18px;
	font-weight: 400;
	height: 100%;
	tab-size: 4;
	width: 100%;
}
html.NoSelect *
{
	user-select: none;
}
head, script
{
	display: none;
}
body
{
	height: 100%;
	width: 100%;
}
.NoTransitions, .NoTransitions *
{
	transition: none !important;
}
/*#endregion*/

/*#region Core elements (div, img, h1, ...)*/
div
{
	display: block;
}
img
{
	-webkit-user-drag: none;
	display: block;
	user-drag: none;
}
h1, h2
{
	color: var(--White);
	display: block;
	font-family: var(--FontDesign);
	padding-bottom: 0.5em;
	padding-left: 1em;
	position: relative;
}
h1:not(:first-child), h2:not(:first-child)
{
	padding-top: 1em;
}
h1
{
	font-size: 1.6rem;
}
h2
{
	font-size: 1.3rem;
}
h1::before, h2::before
{
	color: var(--Red);
	content: "#";
	left: 0px;
	position: absolute;
}
hr
{
	display: block;
	height: 2rem;
}
[draggable]
{
	-webkit-user-drag: element;
	user-drag: element;
	user-select: none;
}
audio
{
	display: block;
}
video
{
	display: block;
}
/*#endregion*/

/*#region Inputs*/
form
{
	display: block;
}
input, select, textarea
{
	background: var(--White);
	border-radius: 0.25em;
	color: var(--Black);
	display: block;
	padding: 0.4em;
	width: 100%;
}
input::selection
{
	background: var(--Red);
	color: var(--White);
}
input[type="file"]
{
	cursor: pointer;
}
input[type="file"]::file-selector-button
{
	cursor: pointer;
	font-family: var(--FontText);
	text-overflow: ellipsis;
	white-space: nowrap;
}
input[type="email"], input[type="number"], input[type="password"], input[type="text"], textarea
{
	cursor: text;
	user-select: text;
}
input:hover, textarea:hover
{
	background: var(--GrayXLight);
}
input::-webkit-datetime-edit-year-field:focus, input::-webkit-datetime-edit-week-field:focus, input::-webkit-datetime-edit-month-field:focus, input::-webkit-datetime-edit-day-field:focus, input::-webkit-datetime-edit-hour-field:focus, input::-webkit-datetime-edit-minute-field:focus, input::-webkit-datetime-edit-second-field:focus, input::-webkit-datetime-edit-millisecond-field:focus, input::-webkit-datetime-edit-ampm-field:focus
{
	background: var(--Red);
	color: var(--White);
}

textarea
{
	height: 8.8em;
}

label
{
	cursor: pointer;
	display: block;
	padding-left: 1.2em;
	position: relative;
	user-select: none;
}
label:hover > input[type="checkbox"] ~ span.Sa562a597b0ba42378a65f0ab475db53d, label:hover > input[type="radio"] ~ span.S5a106094dfae4701b5a420f2c0128eab
{
	background: var(--GrayXLight);
	border: 0.2em solid var(--GrayXLight);
	transition-duration: 0s;
}
label:hover > input[type="checkbox"]:checked ~ span.Sa562a597b0ba42378a65f0ab475db53d, label:hover > input[type="radio"]:checked ~ span.S5a106094dfae4701b5a420f2c0128eab
{
	background: var(--Red);
	transition-duration: 0s;
}
input[type="checkbox"]
{
	height: 0px;
	opacity: 0.0;
	position: absolute;
	width: 0px;
}
input[type="checkbox"]:checked ~ span.Sa562a597b0ba42378a65f0ab475db53d
{
	background: var(--Red);
}
span.Sa562a597b0ba42378a65f0ab475db53d
{
	background: var(--White);
	border-radius: 0.25em;
	border: 0.2em solid var(--White);
	height: 0.9em;
	left: 0.05em;
	position: absolute;
	top: 0.05em;
	width: 0.9em;
}
input[type="radio"]
{
	height: 0px;
	opacity: 0.0;
	position: absolute;
	width: 0px;
}
input[type="radio"]:checked ~ span.S5a106094dfae4701b5a420f2c0128eab
{
	background: var(--Red);
}
span.S5a106094dfae4701b5a420f2c0128eab
{
	background: var(--White);
	border-radius: 50%;
	border: 0.2em solid var(--White);
	height: 0.9em;
	left: 0.05em;
	position: absolute;
	top: 0.05em;
	width: 0.9em;
}

select
{
	text-overflow: ellipsis;
	white-space: nowrap;
}
select, option
{
	cursor: pointer;
}
select:hover
{
	background: var(--GrayXLight);
}
option
{
	background: var(--White);
}
/*#endregion*/

/*#region Buttons*/
button
{
	background: var(--Black);
	border-radius: 0.25em;
	border: 2px solid var(--Red);
	color: var(--White);
	cursor: pointer;
	display: block;
	padding: 0.4em;
	position: relative;
	text-align: center;
	text-overflow: ellipsis;
	white-space: nowrap;
	width: 100%;
}
button:active:not(:disabled)
{
	transform: scale(0.96);
}
button:hover:not(:disabled)
{
	opacity: 0.8;
}
button:focus:not(:disabled)
{
	border: 2px solid var(--White);
}
button:disabled
{
	cursor: not-allowed;
	opacity: 0.5;
}

button.Toggled
{
	background: var(--Red) !important;
	color: var(--White) !important;
}

button img
{
	pointer-events: none;
}
/*#endregion*/

/*#region Tables*/
table
{
	border-collapse: collapse;
	display: table;
	table-layout: fixed;
	width: 100%;
}
table.Dynamic
{
	table-layout: auto;
}

table thead
{
	display: table-header-group;
}
table thead td
{
	border-bottom: 0.12em solid var(--Red);
	color: var(--White);
	padding-bottom: 0.25em;
	padding-left: 0.25em;
	padding-right: 0.25em;
}

table tbody
{
	display: table-row-group;
}
table tbody tr:nth-of-type(even) td
{
	color: var(--White);
}
table tbody td
{
	padding-bottom: 0.25em;
	padding-left: 0.25em;
	padding-right: 0.25em;
	padding-top: 0.25em;
	vertical-align: top;
}
html.NoSelect table tbody td
{
	user-select: all;
}

table tfoot
{
	display: table-footer-group;
}
table tfoot td
{
	border-top: 0.12em solid var(--Red);
	color: var(--White);
	padding-left: 0.25em;
	padding-right: 0.25em;
	padding-top: 0.25em;
	vertical-align: top;
}
html.NoSelect tfoot tbody td
{
	user-select: all;
}

table tr
{
	display: table-row;
}
table td
{
	display: table-cell;
}
table td:first-child
{
	padding-left: 0px;
}
table td:last-child
{
	padding-right: 0px;
}
table.Slim td
{
	padding-bottom: 0px;
	padding-top: 0px;
}
/*#endregion*/

/*#region Lists*/
ul
{
	display: block;
	list-style-type: none;
}
ul li
{
	display: block;
	padding-left: 1.5em;
	position: relative;
}
ul li::before
{
	color: var(--Red);
	content: "■";
	left: 0px;
	position: absolute;
	text-align: right;
	width: 1.25em;
}
ol
{
	counter-reset: ListCounter;
	display: block;
	list-style-type: none;
}
ol li
{
	counter-increment: ListCounter;
	display: block;
	padding-left: 1.5em;
	position: relative;
}
ol li::before
{
	color: var(--Red);
	content: counter(ListCounter, decimal);
	left: 0px;
	position: absolute;
	text-align: right;
	width: 1.25em;
}
/*#endregion*/

/*#region Animation declarations*/
@keyframes PulseAnimation
{
	from
	{
		opacity: 0;
	}
}
/*#endregion*/

/*#region Width and height*/
/*
Additional default styles.
*/
div.UserBorder
{
	padding: 1em;
}
div.VerticalSpace
{
	height: 1.5em;
	width: 0px;
}
div.VerticalGap
{
	height: 0.5em;
	width: 0px;
}
div.HorizontalSpace
{
	height: 0px;
	width: 1.5em;
}
div.HorizontalGap
{
	height: 0px;
	width: 0.5em;
}
/*#endregion*/

/*#region Text attributes*/
/*
Aligns text according to the direction.
*/
.Left
{
	text-align: left;
}
.Center
{
	text-align: center;
}
.Right
{
	text-align: right;
}
/*
Applies font families.
*/
.Code
{
	font-family: var(--FontCode);
}
.Design
{
	font-family: var(--FontDesign);
}
.Text
{
	font-family: var(--FontText);
}
/*
Applies a pulse effect.
*/
.Pulse
{
	animation: PulseAnimation 2s ease-out infinite alternate;
}
/*
Allows the content to overflow.
*/
.Overflow
{
	overflow: visible;
}
/*
Prevents the text from overflowing and ends with "...".
*/
.Ellipsis
{
	text-overflow: ellipsis;
	white-space: nowrap;
}
/*
Prevents the text from overflowing and cuts-off the end.
*/
.CutOff
{
	white-space: nowrap;
}
/*
Allows text to wrap.
*/
.Wrap
{
	white-space: normal;
	overflow-wrap: break-word;
}
/*
Makes the text bold.
*/
.Bold
{
	font-weight: bold;
}
/*
Displays a vertical scrollbar.
*/
.Scroll
{
	overflow-y: scroll;
}
/*
Displays a vertical scrollbar when necessary.
*/
.ScrollAuto
{
	overflow-y: auto;
}
/*
Displays a horizontal scrollbar.
*/
.HScroll
{
	overflow-x: scroll;
}
/*
Displays a horizontal scrollbar when necessary.
*/
.HScrollAuto
{
	overflow-x: auto;
}
/*
Highlights the text's container.
*/
.Highlight
{
	background: #FFFFFF1F;
}
/*
Renders the text plainly including its line-breaks and white-spaces.
*/
.Plain
{
	white-space: pre;
}
/*#endregion*/

/*#region Content alignment*/
/*
Centers the content in its parent and makes sure that the whole picture is visible.
<img class="Contain" src="..." alt="..."/>
*/
.Contain
{
	height: 100%;
	object-fit: contain;
	width: 100%;
}
/*
Centers the content in its parent and makes sure that the whole area is covered with it.
<img class="Cover" src="..." alt="..."/>
*/
.Cover
{
	height: 100%;
	object-fit: cover;
	width: 100%;
}
/*
Aligns the content according to the value.
*/
.Left
{
	object-position: left;
}
.Right
{
	object-position: right;
}
.Top
{
	object-position: top;
}
.Bottom
{
	object-position: bottom;
}
/*#endregion*/

/*#region Content coloring*/
/*
Converts a black image to the accent color.
*/
.BlackToAccent
{
	filter: invert(1) sepia(1) saturate(100) hue-rotate(-60deg) saturate(100) brightness(0.75);
}
/*
Converts a black image to the gray color.
*/
.BlackToGray
{
	filter: invert(1) brightness(0.75);
}
/*#endregion*/

/*#region Anchors*/
a
{
	color: var(--Red);
	cursor: pointer;
	font-weight: bold;
}
a:hover
{
	color: var(--White);
}
/*#endregion*/

/*#region Scrollbars*/
::-webkit-scrollbar
{
	height: 0.5rem;
	width: 0.5rem;
}
::-webkit-scrollbar-track
{
	background: #7F7F7F1F;
}
::-webkit-scrollbar-corner
{
	background: #7F7F7F1F;
}
::-webkit-scrollbar-thumb
{
	background: var(--Red);
}
/*#endregion*/

/*#region Pointers*/
.Busy
{
	cursor: wait;
}
.Forbidden
{
	cursor: not-allowed;
}
.Hand
{
	cursor: pointer;
}
/*#endregion*/

/*#region Notifications*/
/*
Displays a notification with different severity levels.
This is mostly used for error messages.
<div class="Notification" data-severity="Notice">
<div>
<div>This is the notification title</div>
<div><div>This is the message</div></div>
</div>
</div>
*/
div.Notification > div > div:nth-of-type(1)
{
	color: var(--Red);
	font-family: var(--FontDesign);
	font-size: 2rem;
	margin-bottom: 1.2rem;
	text-align: center;
}
div.Notification[data-severity="Warning"] > div > div:nth-of-type(1)
{
	color: var(--Yellow);
}
div.Notification > div > div:nth-of-type(2)
{
	border-bottom: 0.2rem solid var(--Red);
	border-top: 0.2rem solid var(--Red);
	padding: 0.4rem 0.4rem;
}
div.Notification[data-severity="Warning"] > div > div:nth-of-type(2)
{
	border-bottom: 0.2rem solid var(--Yellow);
	border-top: 0.2rem solid var(--Yellow);
}
div.Notification > div > div:nth-of-type(2) > div
{
	animation: PulseAnimation 2s ease-out infinite alternate;
	font-family: var(--FontDesign);
	font-size: 2rem;
	text-align: center;
}
/*#endregion*/

/*#region Popup messages*/
#PopupMessageContainer
{
	align-items: center;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	background: #0000007F;
	bottom: 0px;
	cursor: progress;
	display: none;
	left: 0px;
	position: fixed;
	right: 0px;
	top: 0px;
	z-index: 1000;
}
#PopupMessageContent
{
	background: #000000BF;
	box-shadow: 0px 0px 0.5rem #0000007F;
	padding: 0.6rem 0.4rem;
	position: relative;
	text-align: center;
	width: 100%;
}
#PopupMessageProgress
{
	height: 100%;
	left: 0px;
	position: absolute;
	top: 0px;
	transition: all 0.1s ease;
	width: 0%;
}
#PopupMessageText
{
	font-family: var(--FontDesign);
	font-size: 2rem;
	mix-blend-mode: difference;
}
#PopupMessageInputs
{
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	margin-top: 1.2rem;
}
#PopupMessageInputs > input
{
	margin: 0px auto;
	max-width: 48rem;
	position: relative;
}
#PopupMessageButtons
{
	display: flex;
	gap: 0.2rem;
	justify-content: space-evenly;
	margin-top: 1.2rem;
}
#PopupMessageButtons > button
{
	font-size: 1.5rem;
	width: auto;
}
#PopupMessageBorder
{
	border-bottom: 0.2rem solid var(--Red);
	border-top: 0.2rem solid var(--Red);
	height: 100%;
	left: 0px;
	position: absolute;
	top: 0px;
	width: 100%;
	pointer-events: none;
}
/*#endregion*/

/*#region Icon tiles*/
div.IconTileContainer
{
	align-content: flex-start;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin: -0.5em;
}
div.IconTileContainer > div
{
	align-items: center;
	background: var(--White);
	border-radius: 0.25em;
	color: var(--Black);
	cursor: pointer;
	display: flex;
	margin: 0.5em;
	width: 16em;
}
div.IconTileContainer > div:active
{
	transform: scale(0.96);
}
div.IconTileContainer > div:hover
{
	opacity: 0.8;
}
div.IconTileContainer > div > img
{
	filter: invert(1);
	height: 2.6em;
	margin: 0.2em;
	width: 2.6em;
}
div.IconTileContainer > div > div
{
	flex: 1;
	margin: 0px 0.5em;
	text-overflow: ellipsis;
}
/*#endregion*/

/*#region Common shell*/
#AppData
{
	display: none;
}
#Background
{
	background: #000000 center center / cover no-repeat;
	height: 100lvh;
	position: absolute;
	transition: none;
	width: 100lvw;
}
#Website
{
	display: flex;
	flex-direction: column;
	height: 100%;
	width: 100%;
}
#Header
{
	-webkit-app-region: drag;
	align-items: center;
	app-region: drag;
	background: var(--Black);
	box-shadow: 0px 0px 0.5em #000000BF;
	display: flex;
	gap: 1rem;
	height: 2rem;
	justify-content: space-between;
	padding-left: calc(env(titlebar-area-x, 0px) + 1em);
	padding-right: calc(100% - env(titlebar-area-x, 0px) - env(titlebar-area-width, 100%) + 1em);
	z-index: 1;
}
#Header > *
{
	-webkit-app-region: no-drag;
	app-region: no-drag;
}
#Header img
{
	height: 2rem;
}

#Body
{
	flex: 1;
	position: relative;
}
#BodyContent
{
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	bottom: 16px;
	box-shadow: 0px 0px 0.5em #0000007F;
	color: var(--GrayXLight);
	left: 16px;
	opacity: 0.0;
	position: absolute;
	right: 16px;
	top: 16px;
}
#BodyContent > div
{
	height: 100%;
}
#BodyContent .Glass
{
	background: #000000BF;
}
/*#endregion*/

/*#region Adaptive UI*/
@media screen and (max-width: 768px)
{
	html
	{
		font-size: 0.9rem;
	}
}
@media screen and (max-width: 640px)
{
	html
	{
		font-size: 0.8rem;
	}
}
@media screen and (max-width: 512px)
{
	html
	{
		font-size: 0.7rem;
	}
}
@media screen and (max-width: 384px)
{
	html
	{
		font-size: 0.6rem;
	}
}
@media screen and (max-width: 256px)
{
	html
	{
		font-size: 0.5rem;
	}
}
@media screen and (max-width: 128px)
{
	html
	{
		font-size: 0.4rem;
	}
}

@media screen and (orientation: portrait)
{
	#BodyContent
	{
		bottom: 8px !important;
		left: 8px !important;
		right: 8px !important;
		top: 8px !important;
	}
}
/*#endregion*/

/*#region Theming*/
@media (prefers-color-scheme: light)
{
	/*#region Core elements (div, img, h1, ...)*/
	body[data-support-light-theme='true'] h1, body[data-support-light-theme='true'] h2
	{
		color: var(--Black);
	}
	/*#endregion*/

	/*#region Buttons*/
	body[data-support-light-theme='true'] button
	{
		background: var(--White);
		color: var(--Black);
	}
	body[data-support-light-theme='true'] button:focus:not(:disabled)
	{
		border: 2px solid var(--Black);
	}
	/*#endregion*/

	/*#region Tables*/
	body[data-support-light-theme='true'] table thead td
	{
		color: var(--Black);
	}

	body[data-support-light-theme='true'] table tbody tr:nth-of-type(even) td
	{
		color: var(--Black);
	}

	body[data-support-light-theme='true'] table tfoot td
	{
		color: var(--Black);
	}
	/*#endregion*/

	/*#region Text attributes*/
	body[data-support-light-theme='true'] .Highlight
	{
		background: #0000001F;
	}
	/*#endregion*/

	/*#region Anchors*/
	body[data-support-light-theme='true'] a:hover
	{
		color: var(--Black);
	}
	/*#endregion*/

	/*#region Icon tiles*/
	body[data-support-light-theme='true'] div.IconTileContainer > div
	{
		background: var(--Black);
		color: var(--White);
	}
	body[data-support-light-theme='true'] div.IconTileContainer > div > img
	{
		filter: invert(0);
	}
	/*#endregion*/

	/*#region Common shell*/
	body[data-support-light-theme='true'] #BodyContent
	{
		box-shadow: 0px 0px 0.5em #FFFFFF7F;
		color: var(--GrayXDark);
	}
	body[data-support-light-theme='true'] #BodyContent .Glass
	{
		background: #FFFFFFBF;
	}
	/*#endregion*/
}
/*#endregion*/
