@charset "UTF-8";

:root {
	--text-light: #fafaff;

	--socket-connected: #2be851;
	--socket-disconnected: #8e8181;
	--socket-text: #b09999;
}



* {
	text-decoration: none;
	outline: none;
	border: none;
	font-family: "DejaVu";
	color: var(--tg-theme-text-color);
	transition: 0.1s ease-out;
}

a {
	cursor: pointer;
	color: var(--tg-theme-link-color);
}

body {
	--gap: 16px;
	--width: calc(100% - var(--gap) * 2);
	--offset-x: 2%;
	width: 100%;
	height: 100%;
	margin: 0;
	min-height: 100vh;
	padding: 0;
	display: flex;
	flex-direction: column;
	overflow-x: clip;
	background-color: var(--tg-theme-bg-color);
}


aside {}

header {
	container-type: inline-size;
	container-name: header;
	margin: 2rem 0 1rem;
	padding: 0 var(--offset-x);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 26px;
}

main {
	container-type: inline-size;
	container-name: main;
	padding: 0 var(--offset-x);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 26px;
	transition: 0s;
}

main>section:last-child {
	margin-bottom: 5rem;
}

main>*[data-section] {
	width: var(--width);
}

main>section[data-section]>p {
	margin: 0;
}

main>search {
	--gap: 16px;
	--border-width: 1px;
	width: var(--width);
	display: flex;
	flex-flow: row;
	border-radius: 1.375rem;
	backdrop-filter: contrast(0.8);
	border: 2px solid transparent;
	overflow: clip;
}

search:has(input:is(:focus, :active)) {
	border-color: var(--tg-theme-accent-text-color);
	transition: unset;
}

search>label {
	margin-inline-start: 0.75rem;
	width: 1.5rem;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-shrink: 0;
}

search>label>i.icon {
	color: var(--tg-theme-subtitle-text-color);
}

search:has(input:is(:focus, :active))>label>i.icon {
	color: var(--tg-theme-accent-text-color);
	transition: unset;
}

search>input {
	width: 100%;
	max-width: calc(100% - 3.25rem);
	height: 2.5rem;
	touch-action: manipulation;
	padding: calc(.4375rem - var(--border-width)) calc(.625rem - var(--border-width)) calc(.5rem - var(--border-width)) calc(.75rem - var(--border-width));
	background-color: transparent;
}

search>input:disabled {
	cursor: progress;
	color: var(--tg-theme-subtitle-text-color);
}

search:has(input:disabled) {
	backdrop-filter: contrast(0.5);
}

*[type="button"] {
	cursor: pointer;
}

:is(button, :is(a, label)[type="button"]) {
	padding: 8px 16px;
	display: flex;
	justify-content: center;
	align-items: center;
	color: var(--tg-theme-button-text-color);
	background-color: var(--tg-theme-button-color);
}

button {
	height: 33px;
}

a[type="button"] {
	height: 23px;
}

:is(button, :is(a, label)[type="button"]):is(:hover, :focus) {
	filter: brightness(120%);
}

:is(button, :is(a, label)[type="button"]):active {
	filter: brightness(80%);
	transition: 0s;
}

h1,
h2 {
	margin: 1rem 0 0;
}

footer {}

.unselectable {
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
