@import url("https://f.pmo.ee/fonts/GTEesti.css");

html {
	--webbg: #fff;
	--text: #141414;
	--bg: #eaedf1;
	--line: #d5d8dd;
	--line2: #dadee3;
	--lightest: #eef3f5;
	--whiteorblack: #eff3f5;
	--whiteorblack2: #fff;
	--white: #eff3f5;
	--white2: #fff;
	--black: #141414;
	--sectioncolor: #000099;
	--sectioncolor2: #3399ff;
	--sectioncolor3: #66ccff;
	--buttonBG: #eef3f6;
	--buttonBGhover: #eaedf1;
	--background: none;
	--greytext: #858585;
	--button-hover-filter: brightness(120%);
	--disabledbuttoncolor: #d9dee2;
	--disabledbuttonarrowcolor: #b8bdc6;
	--activebuttoncolor: #c0eaff;
	--spacing-3XS: 2px;
	--spacing-2XS: 4px;
	--spacing-XS: 6px;
	--spacing-S: 8px;
	--spacing-M: 12px;
	--spacing-L: 16px;
	--spacing-XL: 20px;
	--spacing-2XL: 24px;
	--spacing-3XL: 32px;
	--radius-XS: 4px;
	--radius-S: 6px;
	--radius-M: 8px;
	--radius-L: 12px;
	--radius-XL: 16px;
	--chart-margins: var(--spacing-3XL);
	--light-border: 1px solid var(--line2);
}
html.dark-theme {
	--webbg: #141414;
	--text: #eff3f5;
	--bg: #202124;
	--line: #717c8e;
	--line2: #717c8e;
	--lightest: #393e47;
	--whiteorblack: #141414;
	--whiteorblack2: #141414;
	--background: #292c33;
	--sectioncolor: #3399ff;
	--buttonBG: #2d3239;
	--buttonBGhover: #363c45;
	--disabledbuttoncolor: #2a2c32;
	--disabledbuttonarrowcolor: #737c8c;
	--activebuttoncolor: #10316c;
	--button-hover-filter: brightness(120%) saturate(74%);
}

body {
	background: var(--webbg);
}
div {
	box-sizing: border-box !important;
}

* {
	-webkit-font-smoothing: grayscale;
	-moz-osx-font-smoothing: grayscale;
	font-family: "GT Eesti", "Arial", sans-serif;
	font-weight: 400;
	font-size: 15px;
	line-height: 1.05;
	color: var(--text);
	margin: 0;
}

.illustration {
	position: relative;
	padding-bottom: 8px;
}

.illustration-pic {
	display: block;
	width: 100%;
	max-width: 800px;
	margin: auto;
	height: auto;
	min-height: 176px;
	object-fit: cover;
	margin-top: 0px;
}

.dark-theme .illustration-pic {
	opacity: 0.9;
	filter: brightness(0.8);
}

.left {
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	align-items: center;
	gap: var(--spacing-M);
	z-index: 99;
}
.left .section-logo {
	--logosize: 32px;
	width: var(--logosize);
	height: var(--logosize);
	min-width: var(--logosize);
	background: var(--sectioncolor);
	mask-image: url("./assets/section-logo.svg");
	display: block;
	mask-position: center center;
	mask-size: contain;
}
.left h1 {
	font-size: 24px;
	line-height: 1.17;
	font-weight: 600;
}

a.button {
	font-size: 16px;
	line-height: 1.5;
	position: absolute;
	right: 0;
	bottom: 0;
	background: var(--sectioncolor);
	color: var(--whiteorblack);
	font-weight: 600;
	padding: var(--spacing-S) var(--spacing-2XL);
	border-radius: var(--radius-L);
	text-decoration: none;
	box-sizing: border-box;
}
a.button:hover {
	filter: var(--button-hover-filter);
}

@media only screen and (max-width: 600px) {
	.left h1 {
		font-size: 20px;
	}
	.left .section-logo {
		--logosize: 28px;
	}
	.left {
		left: var(--spacing-M);
	}
	a.button {
		right: var(--spacing-M);
	}
}

@media only screen and (max-width: 450px) {
	* {
		font-size: 15px;
	}
}
