@charset "UTF-8";

/* fonts */

@font-face {
	font-family: Helveesti;
	src: url(EduHelveestiPlusVariable.woff) format('woff-variations'), url(EduHelveestiPlusVariable.woff2) format('woff2-variations');
	font-weight: normal;
	font-style: normal;
}


/* variables */

:root {
	--xl-space: 44px;
	--big-space: 30px;
	--mid-space: 13px;
	--little-space: 6px;
	--red: orangered;
	--brown: #444;
	--green: #888;
	--bg: lightgrey;
}


/* reset */

* {
	margin:  0px;
	padding:  0px;
	box-sizing: border-box;
}

body {
	font-family: 'Helveesti', system-ui;
	font-size: 24px;
	line-height: 30px;
	font-weight: 400;
	color: var(--brown);
	background-color: var(--bg);
	font-variation-settings: "wght" 400, "SPKE" 0;
	overflow-x: hidden;

}


h1 span {
	font-variation-settings: "wght" 550, "SPKE" 0;
}

h1 span.slow {
  /*animation-name: spikes;
  animation-duration: 7s;
  animation-direction: alternate;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;*/
}

h1 span.normal {
	font-variation-settings: "wght" 550, "SPKE" .5;	
  /*animation-name: spikes;
  animation-duration: 3.5s;
  animation-direction: alternate;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;*/
}

h1 span.fast {
	font-variation-settings: "wght" 550, "SPKE" 1.00;	
  /*animation-name: spikes;
  animation-duration: 1.5s;
  animation-direction: alternate;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;*/
}


@keyframes spikes {
  from {
    font-variation-settings: "wght" 550, "SPKE" 0;
  }
  to {
    font-variation-settings: "wght" 550, "SPKE" 1.00;
  }
}

a {
	color: rgb(255,0,0);
/*	text-shadow: 0px 0px 3px rgb(0,0,255);*/
}

h1 {
	font-size: 100px;
	line-height: 120px;
	color: rgb(255, 255, 255);
	margin-bottom: var(--mid-space);
	font-weight: 100;
	-webkit-text-fill-color: var(--bg);
	-webkit-text-stroke-width: 2.5px;
	-webkit-text-stroke-color: var(--brown);

}

h1.fill {
	-webkit-text-fill-color: var(--red);
	-webkit-text-stroke-width: 0px;
	-webkit-text-stroke-color: none;	
}

h2 {
	font-size: 36px;
	line-height: 42px;
	font-size: 24px;
	line-height: 30px;
	margin-bottom: var(--mid-space);
	color: var(--brown);
}

h3 {
	font-size: 24px;
	line-height: 30px;
	font-weight: 400;
	text-decoration: underline;
}

p {
	margin-bottom: var(--big-space);
}

ul {
	margin-bottom: var(--big-space);
}

li {
	margin-left: 20px;
	list-style-type: disc;
	margin-bottom: var(--little-space);
}

header {
	position: relative;
	margin: var(--xl-space);
	padding-bottom: var(--xl-space);
	z-index: 1;
}

main {
	position: relative;
	max-width: 960px;
	margin: auto;
	z-index: 1;
	width: auto;
}

section {
	border: 12px inset;
	/*	background-color: white;*/
	padding: var(--big-space);
	border-radius: var(--big-space);
	margin-bottom: calc(var(--big-space) * 2);
	/*	box-shadow: 0px 0px 30px rgb(0,0,255);*/
}

#topics ul {
	text-align: center;
}

#topics li {
	display: inline-block;
	padding: var(--big-space);
	border: 2px solid var(--brown);
	border-radius: 100%;
}

figure {
	background-color: rgb(255,0,0);
	background-color: orangered;
	z-index: 0;
	mix-blend-mode: multiply;

}

img {
	max-width: 100px;
	height: auto;
	filter: grayscale(1);
	
	mix-blend-mode: screen;
	margin: 0px;
	padding: 0px;
	display: block;
}

figure:hover, img:hover {
	filter: grayscale(0);
	mix-blend-mode: normal;
	z-index: 10;
}


@media only screen and (max-width: 1000px) { 
	:root {
		--xl-space: 36px;
		--big-space: 24px;
		--mid-space: 10px;
		--little-space: 4px;
	}

	body, h2, h3 {
		font-size: 18px;
		line-height: 24px;
	}

	h1 {
		font-size: 80px;
		line-height: 100px;
		-webkit-text-stroke-width: 2px;		
	}

	section {
		width: calc(100% - var(--xl-space));
		margin-left: auto;
		margin-right: auto;
	}

}


@media only screen and (max-width: 812px) { 
	:root {
		--xl-space: 36px;
		--big-space: 24px;
		--mid-space: 10px;
		--little-space: 4px;
	}

	body, h2, h3 {
		font-size: 15px;
		line-height: 20px;
	}

	h1 {
		font-size: 45px;
		line-height: 54px;
		-webkit-text-stroke-width: 1.5px;
	}

}

@media only screen and (max-width: 600px) { 
	:root {
		--xl-space: 24px;
		--big-space: 20px;
		--mid-space: 8px;
		--little-space: 3px;
	}

	body, h2, h3 {
		font-size: 15px;
		line-height: 20px;
	}

	h1 {
		font-size: 32px;
		line-height: 40px;
		-webkit-text-stroke-width: 0px;
		-webkit-text-fill-color: var(--brown);	
	}

}
