@font-face {
	font-family: Quicksand;
	src: url(/tredu-fontit/Quicksand/Quicksand-VariableFont_wght.ttf);
	font-weight: 300 700;
}
@font-face {
	font-family: Overpass;
	src: url(/tredu-fontit/Overpass/Overpass-VariableFont_wght.ttf);
	font-weight: 100 900;
}
@font-face {
	font-family: Overpass;
	src: url(/tredu-fontit/Overpass/Overpass-Italic-VariableFont_wght.ttf);
	font-weight: 100 900;
	font-style: italic;
}
@font-face {
	font-family: "Caveat Brush";
	src: url(/tredu-fontit/Caveat_Brush/CaveatBrush-Regular.ttf);
	font-weight: 400;
}
@font-face {
	font-family: "Overpass Mono";
	src: url(/tredu-fontit/Overpass_Mono/OverpassMono-VariableFont_wght.ttf);
	font-weight: 300 700;
}

html {
  background: #042546;
}
body {
  font-family: 'Overpass', sans-serif;
  font-size: 1.1em;
  line-height: 1.2;
  max-width: 900px;
  margin: auto;
  padding: 1px 7%;
  line-height: 1.35;
  background: white;
  position: relative;
}
nav {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: stretch;
  border-bottom: 3px solid hsla(169, 34%, 34%, 1);
  padding: 0.4em;
}
nav a {
  text-decoration: none;
}
nav a:hover {
  text-decoration: underline;
}
main {
  min-height: 70vh;
}
p {
  margin: 1rem 0;
}
b, th {
  color: #333;
}
h1 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 500;
  color: #397368;
  font-size: 300%;
}
h1,h3 {
	line-height: 0.8;
}
h2, h3 {
	color: #397368;
	scroll-margin-top: 10px;
}
h2 {
  line-height: 0.85;
  font-size: 140%;
  font-weight: 400;
  margin-top: 2.5rem;
  margin-bottom: 0;
/*  border-bottom: 3px solid hsla(169, 34%, 34%, 50%); */
}
h3 {
  font-size: 120%;
  font-weight: 400;
  margin-top: 2rem;
  margin-bottom: -0.25rem;

}

pre {
	font-family: "Overpass Mono", monospace;
	font-size: 90%;
}

ul {
  padding-left: 1.3em;
}
a {
  color: #0099CC
}
a:hover {text-decoration: none;}

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

iframe {max-width: 100%;}


table.viivat {
	margin: 1em 0;
	border-collapse: collapse;
}

table.viivat th, 
table.viivat td {
	padding: 0.3em 0.4em 0.2em 0.4em;
	border: 2px solid #397368;

}

table.viivat th {
	text-align: left;
	background: #397368;
	color: #fff;
	vertical-align: bottom;
	line-height: 1;
}
table.viivat td {
	line-height: 1.1;
}


footer {font-size: small;
        border-top: 2px solid #dfdfdf;
        margin-top: 3rem;
	padding: 0.2rem;
        text-align: center;
        color: #aaa;
/*  EI SITTENKÄÄN TARPEEN:
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translate(-50%,0);
	width: 85%;
	box-sizing: border-box;
*/
}

.small {font-size: 85%;
	line-height: 1.3;}


#alkuun {
	opacity: 0.8;
	width: 40px;
	position: fixed;
	right: -100px;
	bottom: 0px;
	transition: right 0.4s ease;
}


img.valk {
        border: 1px solid #888;
        box-shadow: 10px 10px 0px #eee;
}


@media (max-width: 422px){

	h1 {font-size: 12.6vw;}
}


@media (max-width: 500px) {
	body {	padding-left: 0.7em;
		padding-right: 0.7em;
	}
	.rullattu #alkuun {
		right: 6px;
	}
	#alkuun img {
		width: 100%;
		height: auto;
	}
	pre {
		white-space: pre-wrap;
	}

}
