:root {
	--ifm-color-primary: #2563eb;
	--ifm-color-primary-dark: #1554e0;
	--ifm-color-primary-darker: #1350d4;
	--ifm-color-primary-darkest: #1042ae;
	--ifm-color-primary-light: #3e75ed;
	--ifm-color-primary-lighter: #4a7eee;
	--ifm-color-primary-lightest: #7098f2;
	--ifm-code-font-size: 95%;
	--ifm-font-family-monospace:
		'Fira Code', 'Meslo NGF', 'JetBrains Mono', 'Menlo', SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;

	--discord_api_types-paper-drop-shadow-4: rgb(0 0 0 / 20%) 0px 2px 4px -1px, rgb(0 0 0 / 14%) 0px 4px 5px 0px, rgb(0 0 0 / 12%) 0px 1px 10px 0px;

	/* discord.js themeing */
	--ifm-link-color: hsl(235, 85%, 65%);
	--ifm-footer-link-color: hsl(235, 85%, 82%);
	--ifm-navbar-background-color: #4752c4;
	--ifm-menu-link-sublist-icon-filter: invert(100%) sepia(94%) saturate(17%) hue-rotate(223deg) brightness(104%) contrast(98%);
	--ifm-navbar-height: 64px;
	--ifm-navbar-link-color: #e5e7eb;
	--ifm-navbar-link-active-color: #e5e7eb;
	--ifm-navbar-link-hover-color: #e5e7eb;
	--ifm-font-weight-semibold: 700;
	--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);

	@media screen and (max-width: 997px) {
		--ifm-menu-color: var(--ifm-navbar-link-color);
		--ifm-menu-color-active: var(--ifm-navbar-link-hover-color);
		--ifm-menu-color-background-active: rgba(255, 255, 255, 0.05);
	}
}

html[data-theme='dark'] {
	--ifm-color-primary: #81d4fa;
	--ifm-color-primary-dark: #5dc8f9;
	--ifm-color-primary-darker: #4ac1f8;
	--ifm-color-primary-darkest: #14aff6;
	--ifm-color-primary-light: #a5e0fb;
	--ifm-color-primary-lighter: #b8e7fc;
	--ifm-color-primary-lightest: #eef9fe;
	--discord_api_types-paper-drop-shadow-4: rgb(0 0 0 / 20%) 0px 2px 4px -1px, rgb(0 0 0 / 14%) 0px 4px 5px 0px, rgb(0 0 0 / 12%) 0px 1px 10px 0px;

	/* discord.js themeing */
	--ifm-background-color: #1d1d1d;
	--ifm-navbar-background-color: #4752c4;
	--ifm-link-color: hsl(235, 85%, 82%);
	--docusaurus-highlighted-code-line-bg: rgba(255, 255, 255, 0.1);
}

.footer--dark {
	--tw-text-opacity: 1;
	--ifm-footer-color: rgba(229, 231, 235, var(--tw-text-opacity));
	--ifm-footer-title-color: rgba(229, 231, 235, var(--tw-text-opacity));

	--ifm-footer-background-color: #4752c4;
}

footer > .container {
	display: grid;
	place-content: center;

	> :first-child {
		text-align: center;

		> :last-child {
			margin-bottom: calc(var(--ifm-spacing-vertical) * 0.5);
		}
	}
}

.footer__item {
	padding: 0.5em 0;
}

.markdown__logo {
	max-height: 12rem;
	margin-top: 1rem;
	margin-bottom: 2rem;
}

.navbar__logo {
	margin: 0;
}

.navbar__logo > img {
	height: 64px;
	width: 64px;
	margin-top: -25%;
}

.navbar__link {
	line-height: 1.25rem;
	display: inline-flex;
	align-items: center;
}

.dropdown {
	line-height: 1.25rem;
	display: inline-flex;
	font-size: 14px;
	align-items: center;
}

.navbar__link--active {
	background-color: rgba($color: #000000, $alpha: 0.2);
	border-radius: 0.375rem;
}

.navbar__inner {
	height: 100%;
	padding-left: 1rem;
}

.navbar__item,
.navbar__brand {
	margin-right: 2rem;
	font-size: 14px;
	height: 100%;
	align-items: center;
	border-radius: 0.375rem;
}

.navbar__item:hover,
.navbar__brand:hover {
	background-color: rgba($color: #000000, $alpha: 0.3);
	border-radius: 0.375rem;
}

// Inspired from docusaurus - see THIRD_PARTY_LICENSE.md
.header-github-link {
	position: relative;
	padding-left: 2.5rem;
}

.header-github-link::before {
	content: '';
	width: 24px;
	height: 24px;
	display: flex;
	background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='white' d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E")
		no-repeat;
	position: absolute;
	left: 0.5rem;
	margin-right: 2rem;
}

@media (max-width: 1500px) {
	.navbar__item {
		margin-right: 1rem;
	}
}

@media (max-width: 996px) {
	// Hide navbar branding
	.navbar__brand {
		display: none;
	}

	// Hide navigation items when in mobile view
	.navbar__item {
		display: none;
	}
}
