:root {
	--black: #050505;
	--dark-shade-900: #0a0a0a;
	--dark-shade-800: #0f0f0f;
	--dark-shade-700: #1f1f1f;
	--dark-shade-600: #272727;
	--dark-shade-500: #2b2b2b;
	--dark-shade-400: #333333;
	--dark-shade-300: #3b3b3b;
	--dark-shade-200: #9e9e9e;
	--dark-shade-100: #c4c4c4;
	--white: #ffffff;
	--primary: rgba(162, 37, 227, 1);
	--primary-accent: rgba(185, 91, 234, 1);
	--red-glass: rgba(255, 0, 0, 0.1);
	--danger-red: red;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Oakes Grotesk', sans-serif;
}

html,
body {
	background: var(--black);
	color: white;
	scroll-padding-top: 80px;
}

/* remove phone tap highlight */
* {
	-webkit-tap-highlight-color: transparent;
	font-size-adjust: 0.5;
}

@font-face {
	font-family: 'Oakes Grotesk';
	src: url('/font/Oakes Grotesk Bold.ttf');
	font-weight: 900;
	font-style: normal;
}

@font-face {
	font-family: 'Oakes Grotesk';
	src: url('/font/Oakes Grotesk SemiBold.ttf');
	font-weight: 700;
	font-style: normal;
}

@font-face {
	font-family: 'Oakes Grotesk';
	src: url('/font/Oakes Grotesk Medium.ttf');
	font-weight: 600;
	font-style: normal;
}

@font-face {
	font-family: 'Oakes Grotesk';
	src: url('/font/Oakes Grotesk Regular.ttf');
	font-weight: 500;
	font-style: normal;
}

@font-face {
	font-family: 'Oakes Grotesk';
	src: url('/font/Oakes Grotesk Light.ttf');
	font-weight: 300;
	font-style: normal;
}

.markdown-wrapper ul {
	list-style: disc;
	margin-left: 20px;
	margin-bottom: 12px;
}

.relative {
	position: relative;
}

.flex {
	display: flex;
}

.flex.inline {
	display: inline-flex;
}

.flex.wrap {
	flex-wrap: wrap;
}

.flex-1 {
	flex: 1;
}

.col {
	flex-direction: column;
}

.row {
	flex-direction: row;
}

.wrap {
	flex-wrap: wrap;
}

.justify-center {
	justify-content: center;
}

.align-center {
	align-items: center;
}

.justify-stretch {
	justify-content: stretch;
}

.justify-between {
	justify-content: space-between;
}

.align-stretch {
	align-items: stretch;
}

.gap-4 {
	gap: 4px;
}

.gap-8 {
	gap: 8px;
}

.gap-16 {
	gap: 16px;
}

label:has(input[type='checkbox']) {
	display: inline-flex;
	gap: 8px;
	user-select: none;
	cursor: pointer;
	font-size: clamp(12px, 1.2vw, 16px);
	color: rgba(255, 255, 255, 1);
	transition: all 0.3s ease;
}

label .text {
	display: inline-block;
	align-self: center;
}

label:has(input[type='checkbox']:checked) {
	color: rgba(255, 255, 255, 0.5);
}

input[type='checkbox'] {
	appearance: none;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	background-color: var(--dark-shade-900);
	border: 1px solid var(--dark-shade-200);
	border-radius: 4px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

input[type='checkbox']:checked {
	background-color: #333;
	border: 1px solid var(--dark-shade-500);
	position: relative;
}

input[type='checkbox']:checked::after {
	content: '✓';
	color: white;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

input[type="range"] {
	accent-color: var(--primary);
	height: 4px;
	background: var(--dark-shade-700);
	border-radius: 2px;
	outline: none;
	margin-right: 12px;
}

.primary-color-text {
	color: var(--primary-accent);
}

.danger-text {
	color: red;
}

.light-text {
	color: rgba(255, 255, 255, 0.5);
}

.white-text {
	color: white;
}

button {
	border: none;
	background: none;
	cursor: pointer;
	color: inherit;
	text-align: inherit;
}

.text-align-center {
	text-align: center;
}

.banner-text {
	font-size: clamp(16px, 2vw, 24px);
	font-weight: 300;
	color: rgba(255, 255, 255, 0.5);
}

.banner-text .highlighted {
	color: white;
}

h1 {
	font-size: clamp(28px, 3vw, 36px);
	margin-bottom: 12px;
}

h2 {
	font-size: clamp(22px, 1.5vw, 28px);
	margin-bottom: 12px;
}

h3 {
	font-size: clamp(18px, 1.2vw, 24px);
	margin-bottom: 12px;
}

p {
	margin-bottom: 12px;
	line-height: 1.5;
}

a {
	color: inherit;
	cursor: pointer;
}

.error-message {
	color: red;
	font-size: 12px;
	margin-top: 8px;
	border: 1px solid rgba(255, 0, 0, 0.5);
	background: rgba(255, 0, 0, 0.1);
	padding: 8px 16px;
	border-radius: 4px;
}

.success-message {
	color: #0a0;
	font-size: 12px;
	margin-top: 8px;
	border: 1px solid #0a08;
	background: #0a01;
	padding: 8px 16px;
	border-radius: 4px;
}

.loading-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid #fff2;
	border-top: 2px solid #fff;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(calc(2 * 360deg));
	}
}

.disabled {
	filter: brightness(0.7) grayscale(0.3);
	pointer-events: none;
}

.hidden {
	visibility: hidden;
}

label {
	display: block;
	font-size: clamp(12px, 1vw, 14px);
	color: var(--dark-shade-200);
}

*::-webkit-scrollbar {
	scrollbar-width: thin;
	position: absolute;
	width: 10px;
}

*::-webkit-scrollbar-thumb {
	background-color: var(--dark-shade-500);
	border-radius: 12px;
}

*::-webkit-scrollbar-track {
	background-color: transparent;
}

*::-webkit-scrollbar-thumb:hover {
	background-color: var(--dark-shade-600);
}

.tags-container {
	display: flex;
	flex-direction: column;
	min-height: 80px;
	max-height: 200px;
	border-radius: 8px;
	border: 1px solid var(--dark-shade-700);
	box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.2) inset;
	padding: 8px 16px;
	overflow-y: auto;
}

.tags-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}