@import url('https://fonts.googleapis.com/css2?family=Rock+Salt&family=Jura:wght@300..700&family=Shantell+Sans:ital,wght@0,300..800;1,300..800&display=swap');

* {
	box-sizing: border-box;
}

html, body {
	height: 100%;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	background: #121212;
	color: #eee;
	font-family: "Jura", sans-serif;
	text-align: center;
}

h1 {
	font-size: 3rem;
	font-family: "Rock Salt", cursive;
	font-weight: 400;
	font-style: normal;
	color: #39FF14;
	margin: 0.5em 0;
}

p {
	color: #aaa;
	margin: 1em 0;
	font-family: "Jura", sans-serif;
	font-weight: 400;
	font-style: normal;
}

header {
	position: sticky;
	top: 0;
	background-color: #1e1e1e;
	padding: 1em 2em;
	z-index: 10;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
	width: 100%;
}

.header-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1em;
	max-width: 1200px;
	margin: 0 auto;
}

.header-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5em;
}

.header-left,
.header-center,
.header-right {
	display: flex;
	align-items: center;
	gap: 1em;
}

.header-center {
	justify-content: center;
	flex: 1;
}

.header-bottom {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5em;
}

@media (max-width: 768px) {
	.header-content {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}

	.header-left,
	.header-center,
	.header-right {
		justify-content: center;
	}
}

.logo-link {
	font-family: "Rock Salt", cursive;
	font-size: 1.5rem;
	text-decoration: none;
	color: #39FF14;
	white-space: nowrap;
}

.main-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.8em;
	justify-content: center;
	font-size: 1.2rem;
}

.main-nav a,
.main-nav span.separator {
	text-decoration: none;
	color: #eee;
	font-family: "Jura", sans-serif;
}

.main-nav a:hover {
	color: #39FF14;
}

.separator {
	user-select: none;
	font-weight: bold;
	padding: 0 0.3em;
}

/* Auth Buttons */
.auth-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	justify-content: flex-end;
}

.auth-button {
	background-color: #39ff14;
	color: #121212;
	padding: 0.5em 1em;
	border-radius: 5px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.2s ease-in-out;
}

.auth-button:hover {
	background-color: #69d454;
	color: #000000;
}

/* Main content area */
main {
	flex: 1;
	display: block;
	padding: 2em;
	text-align: center;
}

footer {
	position: sticky;
	bottom: 0;
	background-color: #1e1e1e;
	text-align: center;
	font-family: "Jura", sans-serif;
	padding: 0.5em;
	color: #aaa;
	font-size: 0.85rem;
	width: 100%;
}

.lang-toggle {
	display: flex;
	align-items: center;
	margin-right: 1rem;
}

.toggle-button {
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
}

.toggle-track {
	width: 60px;
	height: 30px;
	background-color: #39FF14;
	border-radius: 30px;
	position: relative;
	display: flex;
	align-items: center;
	padding: 3px;
	box-sizing: border-box;
}

.toggle-thumb {
	width: 24px;
	height: 24px;
	background-color: #121212;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	color: #39FF14;
	transition: transform 0.25s ease;
}

.toggle-thumb.ru {
	transform: translateX(30px);
}
