body {
	font-family: sans-serif;
	margin: 0;
}

#content {
	margin: 16px auto;
	max-width: 100%;
	padding: 0 16px;
	position: relative;
}

#navWrapper {
	display: flex;
	align-items: center;
	position: relative;
	left: -16px;
	margin-top: 16px;
	width: 100%;
	overflow: hidden;
	z-index: 1111;
	-ms-overflow-style: none;
	/* IE and Edge */
	scrollbar-width: none;
	/* Firefox */
	box-sizing: border-box;
}

.nav-scroll {
	display: flex;
	gap: 9px;
	overflow-x: auto;
	scroll-behavior: smooth;
	padding: 15px 16px 15px 28px;
	margin: 0;
	z-index: 2;
	transition: max-height 0.3s ease, max-width 0.3s ease, opacity 0.3s ease;
	-ms-overflow-style: none;
	/* IE and Edge */
	scrollbar-width: none;
	/* Firefox */
}

.nav-scroll::-webkit-scrollbar {
	display: none;
}

.fade {
	content: "";
	position: absolute;
	top: 0;
	right: 0px;
	width: 60px;
	height: 100%;
	background: linear-gradient(to right, transparent, white);
	pointer-events: none;
	z-index: 3;
}

.fade.left {
	left: 0;
	background: linear-gradient(to left, transparent, white);
	width: 26px;
}

.nav-item {
	white-space: nowrap;
}

.nav-item a,
.toggle-btn {
	display: block;
	color: #000;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	padding: 10px 15px;
	transition: transform 0.3s ease, background-color 0.2s ease;
	background: rgba(255, 255, 255, 0.7);
	backdrop-filter: blur(5px);
	box-shadow: rgba(0, 0, 0, 0.692) 1px 1px 4px 0px;
	border-radius: 20px;
	-webkit-border-radius: 20px;
	-moz-border-radius: 20px;
	-ms-border-radius: 20px;
	-o-border-radius: 20px;
}

.nav-item a[data-letter="К"]:hover {
	background-color: #d16966;
}

.nav-item a[data-letter="Г"]:hover {
	background-color: #f7ddb4;
}

.nav-item a[data-letter="5"]:hover {
	background-color: #fef1c4;
}

.nav-item a[data-letter="Б"]:hover {
	background-color: #b8986c;
}

.nav-item a[data-letter="Е"]:hover {
	background-color: #e0d9b4;
}

.nav-item a[data-letter='УБ']:hover {
	background-color: #FFB370;
}

.nav-item a[data-letter='Ф']:hover {
	background-color: #99B5DE;
}

:root {
	--primary: #f7ddb4 !important;
}

.nav-item a:active,
.nav-item a:focus,
.nav-item a:hover {
	outline: none;
	text-decoration: none;
}

.nav-item.active {
	/* order: -1; */
}

.nav-item.active a {
	color: #636363;
	background-color: var(--primary);
}

#moreInfo {
	width: 0;
	height: 0;
	position: absolute;
	top: -100px;
	left: -100px;
	padding: 0;
	margin: 0;
}

#moreInfo:checked~.info-container {
	backdrop-filter: blur(5px) opacity(1);
	width: 100%;
	height: 100%;
}

.info-container {
	display: flex;
	position: fixed;
	width: 0;
	height: 0;
	overflow: hidden;
	top: 0;
	left: 0;
	z-index: 1112;
	background: rgb(255 255 255 / 50%);
	backdrop-filter: blur(5px) opacity(0);
	transition: backdrop-filter 0.3s;
	-webkit-transition: backdrop-filter 0.3s linear;
	-moz-transition: backdrop-filter 0.3s linear;
	-ms-transition: backdrop-filter 0.3s linear;
	-o-transition: backdrop-filter 0.3s linear;
	justify-content: center;
	align-items: center;
}

.info-text {
	display: flex;
	flex-direction: column;
	width: 500px;
	max-height: 70vh;
	overflow-y: auto;
	border-radius: 15px;
	-webkit-border-radius: 15px;
	-moz-border-radius: 15px;
	-ms-border-radius: 15px;
	-o-border-radius: 15px;
	color: #333;
	font-weight: 500;
	font-size: 1.2em;
	line-height: 1.5em;
	text-decoration: none;
	padding: 40px 20px;
	margin: 30px;
	background: rgba(255, 255, 255, 0.8);
	box-shadow: rgba(0, 0, 0, 0.692) 1px 1px 4px 0px;
	position: relative;
}

.info-text p {
	margin: 5px 0;
}

.info-text h1 {
	margin-bottom: 0.3em;
}

.info-text small {
	font-size: small;
	color: #999;
	margin-bottom: 1em;
	line-height: 1.5;
}

.info-text code {
	font-size: 0.9em;
	line-height: 0.9em;
}

label.close {
	position: absolute;
	right: 0px;
	top: 0px;
	left: 0;
	bottom: 0;
	text-align: right;
	padding: 20px;
	cursor: pointer;
}

#preloader {
	min-height: calc(-120px + 100dvh) !important;
}

#preloader.loading {
	background-color: var(--neutral-050);
	border-radius: 12px;
	animation: skeleton-loading 1s linear infinite alternate;
}

@keyframes skeleton-loading {
	0% {
		opacity: 0.3;
	}

	100% {
		opacity: 0.95;
	}
}

@media (max-width: 528px) {
	#navWrapper {
		margin-top: 0;
	}
}