:root {
	@each $name,
	$color in $colors-theme {
		@include color-variants($name, $color);
	}

	@each $name,
	$color in $colors-system {
		@include color-variants($name, $color);
	}

	--background-body: #{$color-body};
	--background-modal: #{$color-modal};
	--font-family-main: #{$font-family-main};
}

html {
	font-family: $font-family-main;
	font-size: 16px;
	scroll-behavior: smooth;

	&.is-dark-mode {
		background-color: var(--color-body-dark) !important;

		body{
			background-color: var(--color-body-dark) !important;
		}
	}

	@each $name,
	$color in $colors-system {
		@include colors-classes($name);
	}
}

body {
	color: var(--color-text);
	background-color: var(--color-body-light);

	&.is-dark-mode {
		background-color: var(--color-body-dark) !important;
		color: var(--color-text-light);
	}
}

hr {
	border: none;
	border-top: 1px solid var(--color-border-tinted);
	margin: 1.25rem 0px;
	padding: 0px;

	.is-dark-mode & {
		border-top: 1px solid var(--color-dark-tint);
	}
}

a.link {
	color: var(--color-link);
	border: none;
	text-decoration: none;
	padding-bottom: 1px;
	border-bottom: 1px dashed var(--color-link);
	background-color: transparent;

	.is-dark-mode & {
		color: var(--color-link-tint);
		border-bottom: 1px dashed var(--color-link-tint);
	}
}

.text-muted {
	color: var(--color-muted) !important;
}

.is-noscroll {
    position: fixed;
    overflow-y: hidden;
    width: 100%;
    bottom: 0;
}

/* total width */
html[custom-scroll] ::-webkit-scrollbar {
	background-color: transparent;
	width: 8px;
}

/* background of the scrollbar except button or resizer */
html[custom-scroll] ::-webkit-scrollbar-track {
	background-color: transparent
}
html[custom-scroll] ::-webkit-scrollbar-track:hover {
	background-color: transparent
}

/* scrollbar itself */
html[custom-scroll] ::-webkit-scrollbar-thumb {
	background-color: rgba(0,0,0,0.2);
	border-radius: 4px;
}
html[custom-scroll] ::-webkit-scrollbar-thumb:hover {
	background-color: rgba(0,0,0,0.3);
}

/* set button(top and bottom of the scrollbar) */
html[custom-scroll] ::-webkit-scrollbar-button {
	display:none
}

/* Icons aligment */
i[class*=icon-] {
	box-sizing: content-box;
	width: 1em;
	height: 1em;
	line-height: 1em;
	vertical-align: middle;
}

i[class*=logo-] {
	display: inline-flex;
	line-height: 1em;
	vertical-align: middle;
}

.clockwork-toolbar {
	transition: 0.3s;
	transform: translateY(22px);
	opacity: 0;

	&:hover {
		transform: translateY(0);
		opacity: 1;
	}
}
