:root {
	--main-hue: 225;
	--main-lightness: 70%;
	--text-lightness: 33%;
	--second-lightness: 80%;
	--main-color: hsl(var(--main-hue), 100%, var(--main-lightness));
	--text-color: hsl(var(--main-hue), 100%, var(--text-lightness));;
	--second-color: #60D7FF;
	--bg: #fff;
	--error: #f00;
	--error-bg: #f9d8d8;
	--ok: #090;
	--ok-bg: #d2f3d2;
	--disabled: #eee;
	--bd-radius: 0.2em;
	--transition: 0.3s;
}

html {
	scrollbar-gutter: stable;
}

body {
	max-width: 	1650px;
	font-size: 18px;
	color: var(--text-color);
	padding: 0 1.2em 1.2em;
	margin: 0 auto;
}
body.lock-scroll {
	overflow: hidden;
}

*, *:before, *:after {
	box-sizing: border-box;
}

.main {
	padding: 2em 0;
}

.alert {
	color: var(--error);
	font-weight: bold;
}

.hover {
	cursor: pointer;
	transition: var(--transition);
}
.hover:hover {
	scale: 1.04;
}
.hover:active {
	scale: 0.98;
	filter: brightness(80%);
	transition: 0.1s;
}

.hover--box {
	box-shadow: 1px 1px 1px #777;
}
.hover--box:hover {
	box-shadow: 2px 2px 4px #777;
}
.hover--box:active {
	box-shadow: 0px 0px 0px #000;
}

.hover--text {
	text-shadow: 1px 1px 1px #777;
}
.hover--text:hover {
	text-shadow: 1px 2px 2px #777;
}
.hover--text:active {
	text-shadow: 0px 0px 0px #000;
}

.form, button {
	font-family: inherit;
	font-size: inherit;
}

.btn {
	display: block;
	font-family: inherit;
	font-size: inherit;
	color: #fff;
	text-align: center;
	text-decoration: none;
	background-color: var(--main-color);
	border: none;
	border-radius: var(--bd-radius);
	padding: 0.5em 1em;
	cursor: pointer;
	transition: var(--transition);
	box-shadow: 1px 1px 1px #777;
}
.btn:hover {
	scale: 1.04;
	box-shadow: 2px 2px 4px #777;
}
.btn:active {
	color: #fff;
	scale: 0.98;
	box-shadow: 0px 0px 0px #000;
	transition: 0.1s;
}
.btn--short {
	max-width: max-content;
	margin: 1em auto;
}
.btn--big {
	font-size: 1.15em;
	background-color: var(--second-color);
	/*border: 3px solid #ffffff;*/
	box-shadow:
		1px 1px 2px #777,
		inset -2px -2px 4px hsla(0, 0%, 0%, 0.3),
		inset 2px 2px 5px hsla(0, 100%, 100%, 0.9);
}
.btn--big:hover {
	box-shadow:
		2px 2px 4px #777,
		inset -2px -2px 5px hsla(0, 0%, 0%, 0.4),
		inset 2px 2px 5px hsla(0, 100%, 100%, 0.98);
}
.btn--big:active {
	box-shadow:
		0px 0px 0px #000,
		inset -2px -2px 4px hsla(0, 0%, 0%, 0.3),
		inset 2px 2px 5px hsla(0, 100%, 100%, 0.9);
	text-shadow: -1px -1px 1px hsla(0, 0%, 0%, 0.6);
}
.btn--center {
	display: block;
	font-size: 1.1em;
	text-transform: uppercase;
	margin: 1em auto;
}
.btn--red {
	background-color: var(--error);
}
.btn--disabled {
	pointer-events: none;
	opacity: 0.7;
}

a {
	display: inline-block;
	color: var(--main-color);
	text-shadow: 1px 1px 1px #777;
	cursor: pointer;
	transition: var(--transition);
}
a:hover {
	scale: 1.02;
	text-shadow: 1px 1px 2px #999;
}
a:active, a:focus {
	color: var(--main-color);
	text-shadow: 0px 0px 0px #000;
	scale: 0.98;
	filter: brightness(0.8);
	transition: 0.1s;
}

.no-hover {
	pointer-events: none;
}

.disabled {
	scale: 0.96;
	filter: grayscale(35%);
	cursor: auto;
	pointer-events: none;
}

.link--under {
	width: max-content;
	display: block;
	text-align: center;
	text-transform: uppercase;
	margin: 3em auto 1em;
}

.center {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.title {
	font-size: 2em;
	text-align: center;
	margin: 1em;
}

.subtitle {
	display: block;
	font-size: 1.3em;
	text-align: center;
	margin: 0.5em;
}

.flash-message {
	color: var(--error);
	text-align: center;
	text-decoration: underline;
}

.hidden {
	display: none;
}

.ok {
	color: var(--ok);
}

.loader {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	z-index: 2;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 1rem;
	background-color: inherit;
}
.loader.hidden {
	display: none;
}
.loader__img {
	height: 1em;
	width: 1em;
	max-height: 100%;
	max-width: 100%;
	object-fit: contain;
}


@media (max-width: 1600px) {
	body {
		font-size: 16px;
	}
}


@media (max-width: 900px) {
	body {
		font-size: 14px;
	}
}


@media (max-width: 600px) {
	body {
		font-size: 12px;
	}
}
