:root {
	--bg: #3c3836;
	--text: #d79921;
	--link: #458588;
	--accent1a: #8ec07c;
	--accent1b: #7fac6f;
	--accent2: #cc241d;
}
[data-theme="light"] {
	--bg: #d4be9a;
	--text: #4b4441;
	--link: #458588;
	--accent1a: #979e6c;
	--accent1b: #8c945c;
	--accent2: #b63833;
}

body {
	margin: 0;
	background-color: var(--bg);
	color: var(--text);

	font-family: "Inconsolata", monospace;
	font-optical-sizing: auto;
	font-weight: 400; /* fixed invalid value */
	font-style: normal;
	font-variation-settings: "wdth" 100;

	transition:
		background-color 0.3s ease,
		color 0.3s ease;
}
main {
	margin: 8px 25%;
}
hr {
	height: 2px;
	border-width: 0;
	color: gray;
	background-color: var(--accent2);
	width: 110%;
	position: relative;
	left: 50%;
	transform: translateX(-50%);
}
main a,
footer a {
	color: var(--link);
	text-decoration: none;
	transition: background-color 0.3s ease;
}
main a:hover,
footer a:hover {
	color: var(--bg);
	background-color: var(--link);
}

.navbar {
	position: sticky;
	top: 0;
	z-index: 1000;
}
.navbar ul {
	list-style: none;
	margin: 0;
	padding: 5px;
	display: flex;
	justify-content: center;
	font-size: large;
	background-color: var(--bg);

	transition:
		background-color 0.3s ease,
		color 0.3s ease;
}
.navbar li {
	margin-right: 20px;
}
.navbar a {
	display: block;
	padding: 10px 15px;
	text-decoration: none;

	color: var(--link);
	transition:
		background-color 0.3s ease,
		color 0.3s ease;
}
.navbar a:hover {
	background-color: var(--link);
	color: var(--bg);
}

.theme-toggle {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: none;
	cursor: pointer;
	background-color: var(--link);
	color: var(--bg);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	transition:
		background-color 0.3s ease,
		transform 0.2s ease;
	position: fixed;
	right: 2.5%;
	top: 2.5%;
	z-index: 1001;
}
.theme-toggle:hover {
	transform: scale(1.1);
}
.theme-toggle .sun {
	display: none;
}
[data-theme="light"] .theme-toggle .sun {
	display: inline;
}
[data-theme="light"] .theme-toggle .moon {
	display: none;
}

.title {
	justify-content: center;
	text-align: center;
	font-size: xx-large;
	color: var(--accent1b);
}
.title h1 {
	cursor: default;
}
.letter {
	display: inline-block;
	transition:
		color 0.3s ease,
		transform 0.3s ease;
}
@keyframes colorWave {
	0% {
		color: var(--accent1b);
		transform: translateY(0);
	}
	50% {
		color: var(--accent1a);
		transform: translateY(-5px);
	}
	100% {
		color: var(--accent1b);
		transform: translateY(0);
	}
}
.title:hover .letter {
	animation: colorWave 0.6s ease forwards;
}

.socials {
	display: flex;
	gap: 15px;
	justify-content: center;
	align-items: center;
	margin: 10px 0;
}
.socials a {
	color: var(--link);
	font-size: 1.5rem;
	transition:
		color 0.3s ease,
		transform 0.2s ease;
}
.socials a:hover {
	color: var(--text);
	transform: scale(1.2);
	text-shadow: 0 0 10px var(--link);
}
.socials-floating {
	position: fixed;
	top: 50%;
	right: 1rem;
	transform: translateY(-50%);
	flex-direction: column;
	gap: 1rem;
	z-index: 1000;
}

.text-content {
	border-left: 4px solid var(--accent1b);
	padding-left: 16px;
	scroll-margin-top: 50px;
}
.text-content img {
	max-width: 50%;
	height: auto;
	display: block;
	margin: auto;
}

footer {
	margin-top: 25px;
	text-align: center;
}
footer hr {
	width: 100%;
}

.webrings {
	border-collapse: separate;
	border-spacing: 0;
	width: 100%;
}
.webrings tbody {
	display: flex;
	gap: 16px;
	justify-content: center;
}
.webrings tr {
	display: flex;
	flex-direction: column;
	width: 150px;
	border: 1px solid var(--accent1b);
	border-radius: 6px;
	padding: 8px;
	background-color: var(--bg);
}
.webrings th {
	padding: 4px 8px;
	display: block;
	text-align: center;
}
.webrings th + th {
	border-top: 1px solid var(--accent1b);
}
.webrings th:nth-child(1) {
	padding-bottom: 8px;
}
.webrings th:nth-child(2) {
	padding-top: 8px;
	padding-bottom: 2px;
}
.webrings th:nth-child(2) a {
	color: var(--link);
	font-size: 1.5rem;
	background-color: #00000000;
	transition:
		color 0.3s ease,
		transform 0.2s ease;
}
.webrings th:nth-child(2) a:hover {
	color: var(--text);
	transform: scale(1.2);
	text-shadow: 0 0 10px var(--link);
}

.siema img {
	height: 300px;
	width: auto;
	object-fit: cover;
}
.sb {
	margin: 8px;
	padding: 6px 12px;
	background: var(--accent1b);
	color: var(--bg);
	cursor: pointer;
	border: none;
	border-radius: 6px;
}

.login-form {
}
.login-form button {
	background-color: var(--bg);
	color: var(--text);
}
.login-form input {
	background-color: var(--bg);
	color: var(--text);
}

.code-container {
	position: relative;
	background-color: #2d2d2d;
	color: #f8f8f2;
	padding: 1rem;
	border-radius: 8px;
	font-family: "Courier New", monospace;
	overflow-x: auto;
}

.badges {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1%;
	padding: 0;
	margin: 0;
	list-style: none;
}
.badges a:hover {
	background-color: #00000000;
}
