html {
	font-size: 16px;
}

@media (min-width: 2300px) {
	html {
		font-size: 18px;
	}
}

@media (min-width: 3100px) {
	html {
		font-size: 19px;
	}
}

@media (max-width: 1680px) {
	html {
		font-size: 15.5px;
	}
}

@media (max-width: 1430px) {
	html {
		font-size: 14px;
	}
}

@media (max-width: 500px) {
	html {
		font-size: 12px;
	}
}

/* PAGE FADE OUT AND FADE IN ON LINK CLICK
   ========================================================================== */

@keyframes enter {
	0% {
		top: -10px;
		opacity: 0;
	}

	5% {
		top: 0;
		opacity: 1;
	}

	50.9% {
		top: 0;
		opacity: 1;
	}

	55.9% {
		top: 10px;
		opacity: 0;
	}
}

@keyframes loader-fade-in {
	0% {
		opacity: 0;
	}

	100% {
		opacity: 1;
	}
}

@keyframes loader-fade-out {
	0% {
		opacity: inherit;
	}

	100% {
		opacity: 0;
	}
}

.page-loader {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	flex-direction: column;
	justify-content: center;
	box-sizing: border-box;
	padding-bottom: 54px;
	overflow-x: hidden;
	opacity: 0;
	pointer-events: none;
}

body[data-touch="true"] .page-loader {
	right: auto;
	width: 100vw;
}

body.scrolling-disabled {
	overflow: hidden;
}

body.loading .page-loader {
	animation-delay: 0.1s;
	animation-duration: 0.7s;
	animation-name: loader-fade-in;
	animation-fill-mode: forwards;
}

body.loading-done .page-loader {
	display: none;
}

.page-loader .loader {
	display: flex;
	flex-wrap: wrap;
	width: 55px;
}

.page-loader .square {
	position: relative;
	top: -10px;
	flex-grow: 0;
	flex-shrink: 0;
	width: 13px;
	height: 13px;
	margin-top: 6px;
	margin-right: 6px;
	background: var(--color-dark-snow);
	opacity: 0;
	animation: enter 6s infinite;
}

.page-loader .enter {
	top: 0;
	opacity: 1;
}

.page-loader .square:nth-child(1) {
	animation-delay: 1.8s;
}

.page-loader .square:nth-child(2) {
	animation-delay: 2.1s;
}

.page-loader .square:nth-child(3) {
	margin-right: 0;
	background: var(--color-primary);
	animation-delay: 2.4s;
}

.page-loader .square:nth-child(4) {
	-webkit-animation-delay: 0.9s;
	        animation-delay: 0.9s;

	   -moz-animation-delay: 0.9s;
}

.page-loader .square:nth-child(5) {
	animation-delay: 1.2s;
}

.page-loader .square:nth-child(6) {
	margin-right: 0;
	animation-delay: 1.5s;
}

.page-loader .square:nth-child(8) {
	animation-delay: 0.3s;
}

.page-loader .square:nth-child(9) {
	margin-right: 0;
	animation-delay: 0.6s;
}

.page-loader .loading-texts {
	margin-top: 40px;
	color: var(--color-dark-smoke);
	text-align: center;
}

.fade {
	z-index: 2;
	width: 100%;
	transform-origin: center;
	transition: opacity 0.35s cubic-bezier(0, 0.39, 0.15, 0.97), margin 0.65s cubic-bezier(0, 0.57, 0, 0.99);
}

body.loading-start .fade {
	transition: opacity 0.14s ease-in-out, margin 0.14s ease-in-out;
}

/* fadein */
body.loading .fade {
	margin-left: 70px;
	opacity: 0;
	transition: opacity 0s, margin 0s;
}

/* fadeout */
body.loading-start .fade {
	margin-left: -30px;
	opacity: 0;
}

body.loading-done .fade {
	transform-origin: center;
}


