@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;
}
p {
  margin: 1rem 0;
}
b, th {
  color: #333;
}
h1 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 500;
  color: #397368;
  font-size: 300%;
}
h1,h2,h3 {
	line-height: 0.8;
}
h2, h3 {
	color: #397368;
}
h2 {
  font-size: 140%;
  font-weight: 300;
  margin-top: 2.5rem;
  margin-bottom: -0.25rem;
}
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;}

.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;
}


@media (max-width: 422px){

	h1 {font-size: 12.6vw;}
}


@media (max-width: 500px) {

	.rullattu #alkuun {
		right: 6px;
	}
	#alkuun img {
		width: 100%;
		height: auto;
	}
	pre {
		white-space: pre-wrap;
	}

}
