@import "./fonts.scss";

body {
	margin: 0;
	padding: 0;
	min-width: 320px;
	font-family: $font;
	font-size: 18px;
	line-height: 1.28;
	color: $text-main;
	background-color: $bg-main;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;

	@media (max-width: $mobile) {
		font-family: $font-mobile;
	}
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

.page-content {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	padding-top: 90px;
	min-height: 100vh;
	min-height: calc(var(--vh, 1vh) * 100);

	@media (max-width: $mobile) {
		padding-top: 60px;
	}

	&.isAdminArea {
		min-width: 1280px;

		.page-header {
			position: absolute;
			min-width: 1280px;
		}
	}
}

.page-content__inner {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.readers-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	white-space: nowrap;
	clip-path: inset(100%);
	clip: rect(0 0 0 0);
	overflow: hidden;
}

.zero-wrapper {
	width: 100%;
}

.error-block {
	background: #194965;
	div {
		white-space: pre;
		font-family: monospace;
		padding: 0 32px 16px;
		color: #ccdde8;
		font-size: 16px;
	}
}

.log-block {
	background: #ccdde8;
	div {
		white-space: pre;
		font-family: monospace;
		padding: 0 32px 16px;
		color: #194965;
		font-size: 14px;
	}
}

.test-request-block {
	padding: 0 32px 16px;

}

.tmp {
	display: contents;
}

.onerror {
	animation-name: shake;
	animation-duration: 1s;
	animation-fill-mode: both;
}

	input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

@keyframes shake {
	from, to {
		transform: translate3d(0, 0, 0);
	}

	10%, 30%, 50%, 70%, 90% {
		transform: translate3d(-10px, 0, 0);
	}

	20%, 40%, 60%, 80% {
		transform: translate3d(10px, 0, 0);
	}
}

.highlighted {
	background: rgba($accent-main, 0.5);
}


