/*
 *
 *
 * 	CSS, by Joonatan Tola, 2022, v1.1, last updated: 20.10.2022
 *
 *
 *
 * */


* {
	margin: 0;
	padding: 0;
}

*, *:after, *:before {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

:root {
	--yellow: yellow;
	--white: #f0f0f0;
	--red: red;
	--blue: blue;
	--background: green;
	--background2: #0099dd;
	--keskio_vali: 40px;
	--pohja_vali: 10px;
	--sininen_ympyra: #00B0FF;
	--black: #000022;
	--orange: #d4a600;
}


html.nuolet {
	background-color: #050505;
}

html.opettaja {
	background-color: yellow;
}

html, body {
    overflow: visible;
}

html.lapset, body.lapset {
	overflow: visible;
}

html, body{min-height:100vh;}
body{height:100%;}

body {
	width: 100%;
	font-size: 14px;
	font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
	/* etusivu */
	/* This text is in Book Antiqua */
	font-family: Book Antiqua,Palatino,Palatino Linotype,Palatino LT STD,Georgia,serif; 
}

body.nuolet {
	background-color: #fff;
}

body.opettaja, body.lapset {
	background-color: #ffe83d;
	font-family: Book Antiqua, Palatino, Palatino Linotype, Palatino LT STD, Georgia, serif; 
}

p {
	font-size: 1em;
	letter-spacing: .1rem;
	text-align: left;
	line-height: 1.2em;
}

a {
    text-decoration: none;
}

a:hover, a:focus {
    text-decoration: none;
	text-decoration: underline;
	text-decoration-color: var(--sisallysluettelon_fontti);
    outline: 0;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
	font-family: Book Antiqua,Palatino,Palatino Linotype,Palatino LT STD,Georgia,serif; 
    line-height: 1.6em;
    color:inherit;
}

h2, .h2 {
    font-family: Book Antiqua,Palatino,Palatino Linotype,Palatino LT STD,Georgia,serif; 
    font-size: 24px;
	font-size: 1.95em;
	line-height: 1.6em;
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 0;
    padding-top: 0;
	text-align: center;
	word-wrap: break-word;
}


.draw {
	display: inline-block;
	width: 100%;
	height: 100%;
	margin-top: 2em;
}

.draw_page {
	height: 100%;
	margin-left: 2.5em;
	margin-right: 2.5em;
	display: flex;
	flex-flow: row wrap;
	/* flow==> combines flex-direction + flex-wrap */
  	/*flex-direction: row;
	flex-wrap: wrap; */
}

.draw_page.opettaja {
	margin: 0 auto;
	padding-left: 2em;
	width: 100%;
    height: 100%;
}

.draw_page.opettaja .content {
	display: block;
	width: 80%;
	margin: 0 auto;
	margin-top: 5em;
}


.draw_page.lapset .content {
	display: block;
	width: 70%; /*ennen 50 */
	margin: 0 auto;
	margin-top: 5em;
	text-align: center;
}




.draw_page.kiitokset .content {
	display: block;
	width: 75%;
	margin: 0 auto;
	margin-top: 0;
	padding-bottom: 3em;
}



@media all and (max-width: 480px) {

	p { font-size: 1em;
		line-height: 1.1em;
	}
}

@media all and (min-width: 800px) { p {
		font-size: 26px;
		font-size: 1.4em;
		line-height: 1.4em;
} }


@media all and (min-width: 1200px) { p {
		font-size: 26px;
		font-size: 1.4em;
		line-height: 1.5em;
} }


@media all and (min-width: 1400px) { p {
		font-size: 29px;
		font-size: 1.5em;
		line-height: 1.5em;
	} }

@media all and (min-width: 1800px) { p {
		font-size: 22px;
		font-size: 2em;
		line-height: 1.6em;
	} }


@media all and (min-width: 900px) and (min-height: 1800px) { 
	p {
		font-size: 26px;
		font-size: 2em;
		line-height: 1.7em;
	} 
}

@media all and (min-width: 1800.001px) and (max-width: 2400px) { 
	p {
		font-size: 30px;
		font-size: 1.7em;
		line-height: 1.9rem;
	} 
	.column_header {
		padding-top:1em;
	}
	.draw_page.opettaja .content {
		margin-top:2em;
	}
}

@media all and (min-width: 2400.001px) and (max-width: 3000px) { 
	p {
		font-size: 30px;
		font-size: 2.1em;
		line-height: 1.7em;
	} 
	.column_header {
		padding-top:3em;
	}
	.column_header.opettaja {
		padding-top:0.5em;
	}

}


@media all and (min-width: 3000.001px) and (max-width: 4000px) { 
	p {
		font-size: 30px;
		font-size: 2.8em;
		line-height: 2.2em;
	} 
}





.main-container {
	background-position: 50% 0%; /* always center face */
}
.main-container.style-6 {}

a {
    text-decoration: none;
}

a:hover, a:focus {
    text-decoration: none;
    outline: 0;
}

a .etusivu-linkki1:hover {
	text-decoration: underline;
}

h1 {
 font-size: 1.5em;
}



/* CIRCLES: https://stackoverflow.com/questions/4801181/vertically-and-horizontally-centering-text-in-circle-in-css-like-iphone-notific */
/*https://www.w3schools.com/cssref/css_selectors.asp*/

@media all and (min-width: 1333px) {
	.main-container {
		background-position: 50% 90%; /* always center face */
	}
}

@media all and (max-width: 838px) {
	.main-container {
		background-position: 70% 50%; /* always center face */
	}
}


@media all and (max-width: 666px) {
	.main-container {
		background-position: 73% 50%; /* always center face */
	}
}

@media all and (max-width: 480px) {
	.main-container {
		background-position: 76% 50%; /* always center face */
	}
}

@media all and (max-width: 360px) {
	.main-container {
		background-position: 70% 50%; /* always center face */
	}
}


/* circles */
/*        */

.circle {
	display: flex; /* or inline-flex */
	align-items: center; 
	justify-content: center;
}

.circle, .ie-circle {
	-moz-border-radius: 50%;
    -webkit-border-radius: 50%;
    border-radius: 50%;
	text-align: center; 
	line-height: 50px;
	-webkit-transition: all 0.2s ease-in-out;
	-moz-transition: all 0.2s ease-in-out;
	-o-transition: all 0.2s ease-in-out;
	-ms-transition: all 0.2s ease-in-out;
	transition: all 0.2s ease-in-out;
}

.circle, .ie-circle {
	background-color: var(--yellow);
	margin: auto;
}

.circle:hover, .circle:focus, .ie-circle:hover, .ie-circle:focus {
	transform: scale(0.97);
	-webkit-transition: all 0.2s ease-in-out;
	-moz-transition: all 0.2s ease-in-out;
	-o-transition: all 0.2s ease-in-out;
	-ms-transition: all 0.2s ease-in-out;
	transition: all 0.2s ease-in-out;
	cursor: pointer;
}

.ie-circle span, .ie-circle p {
   display: inline-block; 
   zoom: 1; 
   *display: inline; 
   vertical-align: middle; 
 }


.circle:after, .ie-teksti:after {
	width: 80%;
	text-align: center;
}

.circle:after, .ie-teksti:after {
	font-size: 1.2em;
	font-weight: 600;
	line-height: 1.4em;
}

.js_block.tehtava_7:after {
	content: attr(data-text_value);
	white-space: pre-line;
}

.js_block.tehtava_7.left:after {
	content: attr(data-text_value);
	white-space: pre-line;
}

.right-block.style-6 { color: #fff; }

.right-block.style-9, .left-block.style-9 { color: #fff; }

@media all and (max-width: 480px) {
	.draw_page {
		margin-left: 0.2em;
		margin-right: 0.2em;
	}
}


.left-block {
	height: 100%;
	width: 48%;
	background: var(--green);
	margin:0;
	padding:0;
}

.left-block:after {
	content: "";
	display: table;
	clear: both;

}
.right-block {
	height: 100%;
	width: 52%;
	background: var(--green);
	margin:0;
	padding:0;
	position: relative;
}

.right-block.content, .left-block.content {
	margin-top: 1.5em;
	margin-bottom: 1.5em;
	padding: 2em;
}


.content {
	margin-top:3em;
}

h1.kiitokset {
	font-size: 48px;
}

.content.kiitokset p {
	text-align: center;
	font-size: 1em;
	color: inherit;
}

.column {
	user-select: none;
}

.column_header, .column {
	margin-left: 0;
	padding-bottom: 15px;
	text-align: left;
}

.column_header.kiitokset {
	text-align: center;
}

.column.tehtava {
	margin-left: 0;
}


.circle, .ie-circle { width: 190px; height: 190px;}
.sum_container { width: 88%; } /* main column */
.text_in_circle { width: 190px; height: 190px; }

@media all and (max-width: 480px) {

	.right-block {
		padding-top:2em;
	}
	
	.right-block .content {
		padding-left: 1em;
	}

	.column_header, .column {
		margin-left: 0;
		margin-bottom:0.5em;
	}

	.content {
		margin-top:0.2em;
	}


	.back {
		display:none !important;
	}

}


.mid-container.ci7 {
	position: absolute;
	z-index: 999;
	bottom: 5%;
	right: 5%;
}

.mid-container.ci7.left {
	left: 3%;
	right: unset;
	bottom: 5%;
	padding-bottom: 0;
	padding-left:1em;
}

.left-block {
	/*flex-basis: 100%;*/
	flex: 1 1 42%;
	order: 1;
}

.right-block {
	padding-left: 2em;
	flex: 1 1 58%;
	order: 2;
}

@media screen and (max-width: 1200px) {
	.right-block.style-7 {
		color: #fff !important;
	}
}

.right-bottom-block {}


/* iphone XR + little, smaller*/
@media screen and (max-width: 899px) and (max-height: 450px) and (orientation: landscape) {
	.right-bottom-block { 
		order: 3;
		position: absolute;
		bottom: 5%;
		right: 2%;
	}

	.right-bottom-block.force_left {
		right: unset;
		left: 2%;
	}
	.mid-container.ci7.left {
		width: unset;
		left: 0%;
		right: unset;
		padding-left: 0.6em;
	}

	.right-block .content, .left-block .content {
		padding: 0.5em;
		margin: 0;
		margin-left:0 !important;
	}
	p {
		font-size: 1em;
	}
	h1 { font-size: 1.1em;}

}

@media screen and (min-width: 500px) and (max-width: 568px) and (max-height: 450px) and (orientation: landscape) {
	.right-bottom-block {right: 1% !important;}
	.right-bottom-block.force_left { right:unset !important;}
}


@media (min-width: 1024px) and (min-height: 1366px) {
	.right-bottom-block {
		right: 0;
		
	}

	.right-bottom-block.force_left {
		left: 1%;
		right: unset;
	}



}



@media (min-width: 1250px) and (min-height: 600px) {
	.right-bottom-block { 
		position: absolute;
		bottom: 1%;
		right: 2%;
	}
	.right-bottom-block.force_left {
		position: absolute;
		bottom: 1%;
		left: 2%;
		right: unset;
	}
}


/* no-HD*/
@media (min-width: 1280px) and (min-height: 720px) {
	.right-bottom-block { 
		position: absolute;
		bottom: 0;
		right: 2%;
	}
	.right-bottom-block.force_left {
		position: absolute;
		bottom: 0;
		left: 2%;
		right: unset;
	}
}

@media (min-width: 1280px) and (min-height: 800px) {
	.right-bottom-block { 
		position: absolute;
		bottom: 0;
		right: 0.2%;
	}
	.right-bottom-block.force_left {
		position: absolute;
		bottom: 0;
		left: 0.2%;
		right: unset;
	}
}


@media (min-width: 1280px) and (min-height: 950px) {
	.right-bottom-block {
		right: 2%;
	}

	.right-bottom-block.force_left {
		left: 2%;
		right: unset;
	}

}

@media (min-width: 1366px) and (min-height: 768px) {
	.right-bottom-block {
		right: 0.3%;
	}

	.right-bottom-block.force_left {
		left: 0.3%;
		right: unset;
	}
}



@media (min-width: 1440px) and (min-height: 900px) {
	.right-bottom-block { 
		position: absolute;
		bottom: 0;
		right: 1%;
	}
	.right-bottom-block.force_left {
		position: absolute;
		bottom: 0;
		left: 1%;
		right: unset;
	}
}

@media (min-width: 1500px) and (min-height: 700px) {

	.right-bottom-block { 
		position: absolute;
		bottom: 0;
		right: 2.5%;
	}
	.right-bottom-block.force_left {
		position: absolute;
		bottom: 0;
		left: 2.5%;
		right: unset;
	}

}

@media (min-width: 1536px) and (min-height: 864px) {
	.right-bottom-block { 
		position: absolute;
		bottom: 0;
		right: 0.5%;
	}
	.right-bottom-block.force_left {
		position: absolute;
		bottom: 0;
		left: 0.5%;
		right: unset;
	}
}



@media (min-width: 1600px) and (min-height: 900px) {
	.right-bottom-block { 
		position: absolute;
		bottom: 0;
		right: 1%;
	}
	.right-bottom-block.force_left {
		position: absolute;
		bottom: 0;
		left: 1%;
		right: unset;
	}
}

@media (min-width: 1700px) and (min-height: 800px) {
	.right-bottom-block { 
		position: absolute;
		bottom: 0;
		right: 2.5%;
	}
	.right-bottom-block.force_left {
		position: absolute;
		bottom: 0;
		left: 2.5%;
		right: unset;
	}

}

@media (min-width: 1920px) and (min-height: 1000px) {
	.right-bottom-block { 
		position: absolute;
		bottom: 0;
		right: 2%;
	}
	.right-bottom-block.force_left {
		position: absolute;
		bottom: 0;
		left: 2%;
		right: unset;
	}


}

/* HD_cinema */
@media (min-width: 2020px) and (min-height: 1040px) and (orientation: landscape) {
	.right-bottom-block { 
		position: absolute;
		bottom: 1.5%;
		right: 0.70%;
	}
	.right-bottom-block.force_left {
		position: absolute;
		bottom: 1.5%;
		left: 0.70%;
		right: unset;
	}
}



@media (min-width:2049px) and (min-height: 990px) {
	.right-bottom-block { 
		position: absolute;
		bottom: 3;
		right: 2.5%;
	}
	.right-bottom-block.force_left {
		position: absolute;
		bottom: 3;
		left: 2.5%;
		right: unset;
	}

}




/* 2K */
@media (min-width: 2400px) and (min-height: 1400px) {
	.right-bottom-block { 
		position: absolute;
		bottom: 0;
		right: 2.25%;
	}
	.right-bottom-block.force_left {
		position: absolute;
		bottom: 0;
		left: 2.25%;
		right: unset;
	}
}

@media (min-width: 2560px) and (min-height: 1400px) {
	.right-bottom-block { 
		position: absolute;
		bottom: 0;
		right: 0.1%;
	}
	.right-bottom-block.force_left {
		position: absolute;
		bottom: 0;
		left: 0.2%;
		right: unset;
	}
}

/*2.5K --> 4K */
@media (min-width: 2700px) and (min-height: 1300px) {
	.right-bottom-block { 
		position: absolute;
		bottom: 0;
		right: 1.5%;
	}
	.right-bottom-block.force_left {
		position: absolute;
		bottom: 0;
		left: 1.5%;
		right: unset;
	}

}


@media (min-width: 3800px) and (min-height: 2100px) {
	.right-bottom-block { 
		position: absolute;
		bottom: 0;
		right: 1.8%;
	}
	.right-bottom-block.force_left {
		position: absolute;
		bottom: 0;
		left: 1.8%;
		right: unset;
	}

}


/* iphone X* and smaller*/
@media screen and (max-width: 812px) and (max-height: 414px) and (orientation: landscape) {
	/*ympyrä oikeaan reunaan*/
	p {
		font-size: 0.85em;
	}
	h1 { font-size: 1em;}

	.right-bottom-block.force_left {
		right: unset;
		left: 0;
		width: unset;
		bottom: 0;
		margin-bottom: 0;
		padding-bottom: 0;
	}

	.right-bottom-block { 
		order: 3;
		text-align: right;
		padding-bottom: 1em;
		position: absolute;
		bottom: 0;
		right: 2%;
		margin-bottom: 0;
		padding-bottom: 0;
	}

	.mid-container.ci7 {
		position: relative;
		right: 0;
	}
	.mid-container.left {
		right: unset;
	}
	
	.draw_page {
		margin-left: 1em;
	 	margin-right: 1em;
	}

}

/*ohuempi*/
@media screen and (max-width: 929px) and (max-height: 299px) and (orientation: landscape) {

	p {
		font-size: 0.75em;
	}
	h1 { font-size: 0.9em;}

}




/*ohuempi*/
@media screen and (max-width: 812px) and (max-height: 333px) and (orientation: landscape) {
	p {
		font-size: 0.75em;
	}
	h1 { font-size: 0.8em;}

}

/*kapeampi */
@media screen and (max-width: 555px) and (max-height: 333px) and (orientation: landscape) {
	p {
		font-size: 0.65em;
	}
	h1 { font-size: 0.7em;}



}





/* isohko kännykkä 3. on ==samsung galaxy Tab s4 yms. small width */

@media screen and (min-height: 600px) and (max-height: 950px) and (orientation: portrait),
	screen and (min-height: 400px) and (max-height: 599.99px) and (orientation: portrait),
	screen and (min-width: 700px) and (max-width: 850px) and (max-height: 1200px) and (orientation: portrait) {
	
	p {
		line-height: 1.4em;
		font-size: 0.89em;
	}
	.left-block, .right-block {
		width: 100%;
	}

	.right-bottom-block {
		text-align: right;
		bottom: 0;
		right: 1%;
		position: absolute;
	}

	.right-bottom-block.force_left {
		text-align: left;
		padding-bottom: 1em;
		bottom: 0;
		position: absolute;
		right: unset;
		left: 0.3%;
	}
	.mid-container.ci7 {
		right: 0.3%;
	}
	.mid-container.ci7.left {
		right: unset;
		margin-left:0;
		padding-left:0.2em;
	}

	.right-block {
	    padding-left: 0.2em;
	}

	.logo_oikea, .text_in_circle, .circle, .ie-circle { width: 115px !important; height: 115px !important;}
	.draw_page.opettaja { padding-left:0.1em;}
	.tehtava_7:after {font-size: 1.3em; line-height: 1.2rem !important;}

}
@media screen and (min-width: 220px) and (max-width: 700px) and (min-height: 680px) and (max-height: 777px) {
	.tehtava_7:after { font-size: 1.2em; line-height: 1.2rem !important;}

}


/* tarkennuksia pienelle näytölle edelliseen */
@media	screen and (min-height: 450px) and (max-height: 599.99px) and (orientation: portrait) {
	.right-bottom-block  {
		position:relative;
	}

	.mid-container.ci7 {
		justify-content: center;
		display: flex;
	}

	.right-bottom-block.force_left {
		text-align: left;
		padding-bottom: 1em;
		bottom: 0;
		position: absolute;
		right: unset;
		left: 0%;
	}
	.mid-container.ci7 {
		right: 0.1%;
	}
	.mid-container.ci7.left {
		right: unset;
		margin-left:0;
		padding-left:0.2em;
	}

	.right-block {
	    padding-left: 0.2em;
	}

	.text_in_circle, .circle, .ie-circle { width: 70px !important; height: 70px !important;}
	
	.tehtava_7:after {font-size: 0.85em; line-height:0.7rem !important;}
}



/* pieni känny */
@media screen and (max-width: 449.2px) and (max-height: 700px) {

	.right-bottom-block {
		padding-bottom: 1.2em;
		bottom: 0;
		position: absolute;
		right: 0%;
	}
	p { font-size: 0.75em;}
	p.opettaja { font-size: 1em;}
	p.margin_up { margin-top:1.5em !important;}
	p.column_header.opettaja {font-size:1.2em;}
	.draw_page.opettaja .content {width:90%;}
		.mid-container.ci7 {
		justify-content: center;
		display: flex;
	}

	.right-bottom-block.force_left {
		text-align: left;
		padding-bottom: 1.2em;
		bottom: 0;
		position: absolute;
		right: unset;
		left: 0%;
	}
	.mid-container.ci7 {
		right: 0%;
	}
	.mid-container.ci7.left {
		right: unset;
		margin-left: 0;
		padding-left: 0;
	}

}

.mid-container {
	display: inline-block;
	text-align: center;
	position: relative;
}

.sum_container {
	margin: auto;
	display: block;
}

.sum_container {
	margin-bottom: 1.5em;
}

.title {
	text-align:center;
	color: var(--white);
	margin-bottom: 1.5em;
}

.title:hover, .title:focus, .etusivu_teksti1:hover, .etusivu_teksti1:active {
	cursor: default;
}


.vertical-sum {
	height: 100%;
	height: 100vh;
	margin: 0 auto;
	width: 500px;
}


.title-container {}

.mid-container.ci2, .mid-container.ci4, .mid-container.ci6 {
	margin-left: var(--keskio_vali);
	padding-left: var(--keskio_vali);
}

.mid-container.ci1, .mid-container.ci2, .mid-container.ci3, .mid-container.ci4 {
	margin-bottom: var(--pohja_vali);
}

@media all and (max-height: 665.9999px) {
	.text_in_circle, .circle, .ie-circle { width: 100px; height: 100px;}
	.text_in_circle {
		font-size: 0.65em;
	}
}

@media all and (max-width:568px) and (max-height: 665.9999px) {
	.logo_oikea, .text_in_circle, .circle, .ie-circle { width: 75px !important; height: 75px !important; margin: 0;}
	.opettaja .logo_oikea, .opettaja .text_in_circle, .opettaja .circle, .opettaja .ie-circle { width:100px; height: 100px; margin: 0;}
	.tehtava_7:after {
		font-size: 1em;
		line-height: 0.8rem !important;
	}
	.text_in_circle { padding: 1em;}
}


@media all and (min-height: 666px) and (max-height: 699px) {
	.text_in_circle, .circle, .ie-circle { width: 125px; height: 125px;}
	.ie-circle span { height: 180px; } /* cirlce */
	.sum_container { width: 88%; } /* main column */
}

@media screen and (max-width: 555px) and (max-height: 555px) and (orientation: landscape) {
	.text_in_circle, .circle, .ie-circle { width: 80px; height: 80px;}
	.tehtava_7:after {font-size:1.1em; line-height: 0.8rem !important;}
	.text_in_circle {padding: 1em;}
}


@media all and (min-height: 800px) and (max-height: 1020px) {
	.text_in_circle, .circle, .ie-circle {}
	.ie-circle span { height: 230px; } /* cirlce */
	.sum_container { width: 88%; } /* main column */
	.title {
		font-size: 1.2em;
	}
}


/* isot näytöt? */
@media all and (min-width: 1600px) {
	.mid-container.ci7 {
		right: 3%;
	}
}

@media all and (min-width: 1800px) {
	.mid-container.ci7 {
		right: 8%;
	}
}

@media  screen and (min-width: 1000px) and (max-width: 1300px) {
	.mid-container.ci7, {
    	bottom: 0.5%;
	}
}



/* samsung tablet s4 */
@media screen and (min-width: 700px) and (max-width: 850px) and (max-height: 1200px) and (orientation: portrait) {
	p {
		font-size: 1.5em; 
		line-height: 1.75em;
	}
	.right-block {
		padding-top: 2.5em;
	}

	.right-block.style-2 {
		padding-top:0;
	}

	.right-block.style-2 .content {
		margin-top: 1em;
	}
	.mid-container.ci7 {
		right: 10%;
		margin-bottom: 2em;
	}
	.logo_oikea, .text_in_circle, .circle, .ie-circle { width: 150px !important; height: 150px !important; margin:0;}
	.tehtava_7:after {font-size: 1.24em; line-height: 1.5rem !important;}
	.text_in_circle {padding:1em;}

}


/* ipad normal */
@media screen and (min-width: 768px) and (orientation: portrait) {
	.text_in_circle, .circle, .ie-circle { width: 175px; height: 175px;}
	p {
		font-size: 1.5em; 
		line-height: 1.25em;
	}
	.mid-container.ci7 {
		margin-bottom: 2em;
	}
	.mid-container.ci7.left {
		margin-bottom: 2em;
	}
	.style-9 .mid-container.ci7, .style-5 .mid-container.ci7{
	    right: 2%;
		margin-bottom: 1em;
		position: fixed;
		bottom: 1.1%;
	}


}

/* ipad normal:landscape */
@media screen and (min-width: 1000px) and (orientation: landscape) {
	.text_in_circle, .circle, .ie-circle { width: 105px; height: 105px;}

	.right-block {
    	padding-left: 4em;
	}

	.mid-container.ci7 {
		right: 2%;
		margin-bottom: 1em;
	}

	.mid-container.ci7.left {
		left: 1%;
		right: unset;
		bottom:0;
		padding-bottom: 0.2em;
		padding-left:1em;
	}
	.mid-container.ci7 {
		padding-bottom: 0.2em;
		bottom:0;
	}
	.text_in_circle {padding:1em;}
	.tehtava_7:after {font-size:1.15em;}

}


@media screen and (min-height: 700px) and (min-width: 866px) and (max-width: 966px) and (orientation: landscape) {
	.tehtava_7:after {font-size: 1.1em; line-height: 1.3rem;}
	.mid-container.ci7 {bottom:0;}
	.mid-container.ci7.left{bottom:0;}
	.logo_oikea, .text_in_circle, .circle, .ie-circle { width: 125px; height: 125px;}
}

@media screen and (min-width: 1200px) and (max-width: 1365.99999999999px) and (orientation: landscape) {

	.left-block.style-4, .right-block.style-4 {
		color: #fff;
	}

	/* rakas-opettaja logot */
	p.opettaja {
		font-size: 1.55em; 
		line-height: 1.5em;
	}
	.opettaja .logojen_container { 
		/*bottom: 2% !important;*/
		right: 4%;
		width: 300px;
		min-width: 300px;
		bottom: 0;
	}
	.opettaja .tehtava_7:after {font-size:1.5em;}
	.opettaja .logo_vasen {
		width: unset !important;
	}

}

@media screen and (min-width: 1000px) and (max-width: 1199px) and (orientation: landscape) {
	.opettaja .logojen_container { 
		/*bottom: 2% !important;*/
		right: 4%;
		width: 340px;
		min-width: 340px;
		margin-bottom: 4em;
	}
	.opettaja .tehtava_7:after {font-size:1.5em;}
}



	 
	 

/* ipad pro */
@media screen and (min-width: 1024px) and (orientation: portrait) {
	.text_in_circle, .circle, .ie-circle { width: 200px; height: 200px;}
	p {
		font-size: 2em; 
		line-height: 1.5em;
	}
	.right-block {
    	padding-left: 4em;
	}
	.mid-container.ci7 {
		right: 3%;
		margin-bottom: 1.5em;
	}
	.right-block.style-6 {
		flex: unset;
		width: 100%;
		margin-left:0;
		padding-left:0;
	}

	.main-container.style-3 {
		background-position: 100% 100%;
	}

	.left-block.style-7, .left-block.style-3 {
		color:#fff;
	}
	.right-block.style-7 {
		width: 100%;
		flex-flow: column wrap;
	}
	.right-block.style-4 {
		width: 90%;
		flex-flow: column wrap;
	}
	.draw_page.style-5 {
		margin-left:2em;
		padding-top:2em;

	}
	.draw_page.style-5 .content {
		margin: 0 auto;
	}

	.draw_page.style-9 {
		height:100%;
	}
	.draw_page.style-7 {
	}

	.right-block.style-9 {
		width: 100%;
		flex-flow: column wrap;
	}



}

/* ipad pro macbook ar 2015*/

@media screen and (min-width: 1366px) and (max-width: 1666px) and (orientation: landscape) {
	.draw_page.style-2 { padding-top: 4em; }
	.draw_page.style-4 { padding-top: 4em; }
	.draw_page.style-5 { padding-top: 4em; }
	.left-block.style-2 .content {
		margin-top:0.5em;
	}
	.right-block.style-2 .right_column{
		margin-top:0.5em;
	}

	.left-block.style-6 .content {
		margin-top:0.5em;
	}
	.right-block.style-6 .right_column{
		margin-top:0.5em;
	}

}


@media screen and (min-width: 1366px) and (orientation: landscape) and (max-width: 1920px) {

	.text_in_circle, .circle, .ie-circle { width: 180px; height: 180px;}

	/*
	p {
		font-size: 1.5em; 
		line-height: 1.5em;
	}
*/
	p.opettaja {
		font-size: 1.75em; 
		line-height: 1.80em;
	}

	.mid-container.ci7 {
	    right: 2.5%;
	}

	.mid-container.ci7.left {
	    left: 2.5%;
		right:unset;
	}
	.tehtava_7:after {
		font-size: 1.4em;
	}

}

@media all and (max-width: 1441px) and (max-height: 901px) and (min-height: 800px) and (min-width: 1333px) {
	.tehtava_7:after {
		font-size: 1.1em;
	}
}





@media screen and (min-width: 1366px) and (max-width:1920px) and (orientation: landscape) {
	p.opettaja {
		font-size: 1.55em; 
		line-height: 1.5em;
	}
	.logo_oikea, .text_in_circle, .circle, .ie-circle { width: 120px !important; height:120px !important;}
	.logojen_container { 
		bottom: 2% !important;
		width: 370px;
	}
	.logo_vasen {
		width: unset !important;
	}
}


@media screen and (min-width: 1366px) and (max-width:1920px) and (orientation: landscape) and (min-height: 800px) {
	.logo_oikea, .text_in_circle, .circle, .ie-circle { width: 180px !important; height:180px !important;}
}

@media all and (min-width:1440px) and (min-height:900px) {
	.logo_oikea, .text_in_circle, .circle, .ie-circle { width: 170px !important; height:170px !important;}
}


@media all and (min-width:1920px) and (min-height:1080px) {
	.logo_oikea, .text_in_circle, .circle, .ie-circle { width: 200px !important; height:200px !important;}
	.style-7 p {font-size: 1.8em; }
}

@media (min-width: 1024.9px) and (min-height: 400px) {
	.logo_oikea, .text_in_circle, .circle, .ie-circle { width: 120px !important; height:120px !important;}

	.mid-container.ci7.left {
		left: 1%;
		right: unset;
		bottom:0;
		padding-bottom: 0.2em;
		padding-left:1em;
	}
	.mid-container.ci7 {
		padding-bottom: 0.2em;
		bottom:0;
	}

	.tehtava_7:after {
		font-size: 1.3em;
	}
	.text_in_circle {padding:1em;}

}

/*defaul*/
@media (min-width: 1024px) and (min-height: 768px) {
	.logo_oikea, .text_in_circle, .circle, .ie-circle { width: 105px !important; height:105px !important;}
	.opettaja .logo_oikea, .opettaja .text_in_circle, .opettaja  .circle, .opettaja  .ie-circle { width: 140px !important; height:140px !important;}

	.mid-container.ci7.left {
		left: 1%;
		right: unset;
		bottom:0;
		padding-bottom: 0.2em;
		margin-left: 0;
		padding-left: 0;
	}

	.mid-container.ci7 {
		padding-bottom: 0.2em;
		bottom:0;
	}

	.text_in_circle: {padding:0.5em;}

	.tehtava_7:after {
		font-size: 1.1em;
	}
}

/* pädi pystyssä */
@media (min-width: 1024px) and (min-height: 1366px) {
	.logo_oikea, .text_in_circle, .circle, .ie-circle { width: 180px !important; height:180px !important;}
	.mid-container.ci7.left {
		left: 2%;
		right: unset;
		bottom:2%;
		padding-bottom: 0.2em;
		margin-left: 0;
		padding-left: 0;
	}

	.mid-container.ci7 {
		padding-bottom: 0.2em;
		bottom:2%;
		right: 2%;
	}
	.tehtava_7:after {
		font-size: 1.9em;
	}
}



@media (min-width:1439.999px) and (min-height:899.9px) and (max-width: 1550px) and (max-height: 999px) {
	.logo_oikea, .text_in_circle, .circle, .ie-circle { width: 170px !important; height:170px !important;}

	.tehtava_7:after {
		font-size: 1.2em;
	}

}


@media (min-width: 1111px) and (min-height: 500px) and (max-width: 1439px) {
	.logo_oikea, .text_in_circle, .circle, .ie-circle { width: 115px !important; height:115px !important;}

	.mid-container.ci7.left {
		left: 1%;
		right: unset;
		bottom:0;
		padding-bottom: 0.2em;
		margin-left:0.5em;
		padding-left: 0;
	}
	.mid-container.ci7 {
		padding-bottom: 0.2em;
		bottom:0;
		padding-left:0.5em;
	}

	.tehtava_7:after { font-size: 1.3em; }
}

/*pad air*/
@media (min-width: 1111px) and (min-height: 800px) and (max-width: 1200px) {
	.tehtava_7:after { font-size: 1.0em; }
}



@media (min-width: 1250px) and (min-height: 600px) {
	.logo_oikea, .text_in_circle, .circle, .ie-circle { width: 125px !important; height:125px !important;}

	.mid-container.ci7.left {
		left: 1%;
		right: unset;
		bottom:0;
		padding-bottom: 0.2em;
		margin-left: 0;
		padding-left: 0;
	}
	.mid-container.ci7 {
		padding-bottom: 0.2em;
		bottom:0;
	}

	.tehtava_7:after {
		font-size: 1.55em;
		line-height:1.4rem !important;
	}

	.text_in_circle { padding:1em;}

}


/* no-HD*/
@media (min-width: 1280px) and (min-height: 720px) and (orientation: landscape) {
	.logo_oikea, .text_in_circle, .circle, .ie-circle { width: 125px !important; height:125px !important;}

	.mid-container.ci7.left {
		left: 1%;
		right: unset;
		padding-bottom: 2em;
		margin-left: 0;
		padding-left: 0;
	}
	.mid-container.ci7 {
		padding-bottom: 2em;
	}

	.tehtava_7:after {
		font-size: 1.2em;
	}
	.text_in_circle { padding: 1em;}
}

@media (min-width: 1280px) and (min-height: 800px) {
	.logo_oikea, .text_in_circle, .circle, .ie-circle { width: 100px !important; height:100px !important;}
}

@media (min-width: 1280px) and (min-height: 950px) {

	.logo_oikea, .text_in_circle, .circle, .ie-circle { width: 100px !important; height:100px !important;}

	.mid-container.ci7.left {
		left: 2%;
		right: unset;
		bottom:0.2%;
		padding-bottom: 0.2em;
		margin-left: 0;
		padding-left: 0;
	}
	.mid-container.ci7 {
		padding-bottom: 0.2em;
		bottom:0.2%;
		right:2%;
	}


	.tehtava_7:after {
		font-size: 1em;
	}

}

@media (min-width: 1366px) and (min-height: 768px) {
	.logo_oikea, .text_in_circle, .circle, .ie-circle { width: 100px !important; height:100px !important;}
}


@media (min-width: 1366px) and (min-height: 1024px) {
	.logo_oikea, .text_in_circle, .circle, .ie-circle { width: 120px !important; height:120px !important;}
	.mid-container.ci7 {margin-bottom:0;}

}


@media (min-width: 1500px) and (min-height: 700px) {
	.logo_oikea, .text_in_circle, .circle, .ie-circle { width: 145px !important; height: 145px !important;}
	.tehtava_7:after {
		font-size: 1.25em;
	}
	.text_in_circle {padding: 0.5em;}

}


@media (min-width: 1700px) and (min-height: 800px) {
	.logo_oikea, .text_in_circle, .circle, .ie-circle { width: 160px !important; height: 160px !important;}
	.tehtava_7:after {
		font-size: 1.5em;
	}

}



@media (min-width: 1920px) and (min-height: 1000px) {
	.logo_oikea, .text_in_circle, .circle, .ie-circle { width: 160px !important; height: 160px !important;}

	.mid-container.ci7.left {
		left: 5px;
		right: unset;
		padding-bottom: 3em;
		margin-left: 0;
		padding-left: 0;
	}

	.mid-container.ci7 {
		right:5px;
		padding-bottom: 3em;
	}

	.tehtava_7:after {
		font-size: 1.44em;
	}
}


/* hd*/
@media (min-width:2020px) and (min-height: 1040px) {
	.text_in_circle, .circle, .ie-circle { width: 195px !important; height:195px !important;}
	.logo_oikea { width: 195px !important; height: 195px !important;}
	.style-7 p {font-size: 1.8em; }
	.mid-container.ci7.left {
		left: 1%;
		padding-bottom: 3em;
		right: unset;
		margin-left: 0;
		padding-left: 0;
	}
	.text_in_circle {padding:1em;}
	.mid-container.ci7 {
		right:1%;
		padding-bottom: 3em;
	}
	.tehtava_7:after {
		font-size: 1.95em;
	}

}


@media (min-width:2020px) and (min-height: 900px) {
	.style-7 p {font-size: 1.8em; }
	.mid-container.ci7.left {
		padding-bottom: 3em;
		right: unset;
		margin-left: 0;
		padding-left: 0;
	}

	.mid-container.ci7 {
		padding-bottom: 3em;
	}

}
@media (min-width:2049px) and (min-height: 990px) {
	.logo_oikea, .text_in_circle, .circle, .ie-circle { width: 190px !important; height:190px !important;}
	.tehtava_7:after {
			font-size: 1.75em;
		}

}


/* hd*/
@media (min-width:2400px) and (min-height: 1400px) {
	.logo_oikea, .text_in_circle, .circle, .ie-circle { width: 190px !important; height:190px !important;}
	.style-7 p {font-size: 1.8em; }
	.mid-container.ci7.left {
		left: 1%;
		margin-left: 0;
		padding-left: 0;
	}
	.mid-container.ci7 {
		right:1%;
	}

}

@media (min-width: 2560px) and (min-height: 1400px) {
	.logo_oikea, .text_in_circle, .circle, .ie-circle { width: 220px !important; height:220px !important;}

	.tehtava_7:after {
		font-size: 2.3em;
		line-height: 2.3rem !important;
	}

	.mid-container.ci7.left {
		padding-bottom:5em;
		margin-left: 0;
		padding-left: 0;
	}
	.mid-container.ci7 {
		padding-bottom:5em;
		margin-right: 0.25em;
	}

	.logo_vasen {
		width: unset !important;
	}
	.text_in_circle { padding: 1em;}

}

@media (min-width: 2700px) and (min-height: 1300px) {

	.logo_oikea, .text_in_circle, .circle, .ie-circle { width: 225px !important; height:225px !important;}

	.tehtava_7:after {
			font-size: 2em;
		}


}


@media (min-width: 3800px) and (min-height: 2100px) {
	.logo_oikea, .text_in_circle, .circle, .ie-circle { width: 350px !important; height:350px !important;
	}
	.tehtava_7:after {
		font-size: 3.5em;
		line-height: 3rem !important;
	}
	.text_in_circle {padding: 1em;}

	.mid-container.ci7.left {
		padding-bottom: 4em;
		margin-left: 0;
		padding-left: 0;
	}

	.text_in_circle {
		padding: 1em;
	}
	.mid-container.ci7 {
		padding-bottom: 4em;
	}

}



.etusivu-container {
	position:relative;
	width: 100%;
	width: 100vw;
	height: 100%;
	height: 100vh;
}

.etusivu_title {
	position: absolute;
	bottom: 30%;
	left: 10%;
}

.etusivu_teksti1 {
	color: var(--blue);
	font-size: 2.9em;
}

.etusivu-linkki1 {
	margin-top: 0.6em;
	color: var(--white);
	font-size: 2em;
}

.white {
	color: var(--white);
}


.back {
	position: absolute;
	right: 6.6%;
	top: 3%;
	background: #27651F;
	width: 50px;
	display: table;
	padding: 1em;
	text-align: center;
    border-radius: 30px;
	z-index:999;
	white-space: nowrap;
	cursor: pointer;
	-webkit-transition: all 0.2s ease-in-out;
	-moz-transition: all 0.2s ease-in-out;
	-o-transition: all 0.2s ease-in-out;
	-ms-transition: all 0.2s ease-in-out;
	transition: all 0.2s ease-in-out;

	&:hover {
		box-shadow: inset 0 -4px 0 rgba(0,0,0,0.45);
	}

	&:active {
		transform: translateY(1px);
		box-shadow: inset 0 3px 0 0 rgba(0,0,0,0.15);
	}
	
	&:focus {
		outline: none;
	}
}

.back_center {
	display: table-cell;
	vertical-align: middle;
}


.back_center:after {
	font-size: 0.8em;
	color: var(--white);
	content: "Etusivulle \2191"
}

.back:hover, .back:focus {
	transform: scale(0.97);
	-webkit-transition: all 0.2s ease-in-out;
	-moz-transition: all 0.2s ease-in-out;
	-o-transition: all 0.2s ease-in-out;
	-ms-transition: all 0.2s ease-in-out;
	transition: all 0.2s ease-in-out;
	cursor: pointer;
}



.text_in_circle {
	transform: scale(1);
	-webkit-transition: all 0.2s ease-in-out;
	-moz-transition: all 0.2s ease-in-out;
	-o-transition: all 0.2s ease-in-out;
	-ms-transition: all 0.2s ease-in-out;
	transition: all 0.2s ease-in-out;
}


.text_in_circle:hover + .circle {
	transform: scale(0.973);
	-webkit-transition: all 0.2s ease-in-out;
	-moz-transition: all 0.2s ease-in-out;
	-o-transition: all 0.2s ease-in-out;
	-ms-transition: all 0.2s ease-in-out;
	transition: all 0.2s ease-in-out;
	cursor: pointer;
}

.text_in_circle:hover {
	z-index: 999;
	position: relative;
	-webkit-transition: all 0.2s ease-in-out;
	-moz-transition: all 0.2s ease-in-out;
	-o-transition: all 0.2s ease-in-out;
	-ms-transition: all 0.2s ease-in-out;
	transition: all 0.2s ease-in-out;
	cursor: pointer;
	text-decoration: underline;
	text-decoration-color: #fff;	
}


.right_column {
	margin-right: 3em;
}


.kysymys, .tehtava {
	text-transform: uppercase;
	letter-spacing: 0.2rem;
	font-style: bold;
}

.column_last {
	margin-bottom: 1em;
}

.column_last_double {
	margin-bottom: 2em;
}


.italic {
	font-style: italic;
}

.column_header {
	text-transform: uppercase;
}

.column_header.opettaja{
	text-transform: none;
	font-weight: 600;
}


p.margin_up {
	margin-top: 0.8em;
}

p.margin_bottom {
	padding-bottom: 2.8em;
}

p.teksti {
	margin-top: 0.2em;
}

.nappi {
	text-transform: uppercase;
	font-style: italic;
}

.text_in_circle {
	z-index:999;
	position: absolute !important;
	top:0;
	display: flex; /* or inline-flex */
	align-items: center; 
	justify-content: center;
	text-align: center;
}

@media all and (max-width: 1441px) and (max-height: 901px) and (min-height: 800px) and (min-width: 1333px) {
	.draw_page.style-5 {
		height: 100vh;
		padding-top:2em;
		padding-left:1em;
		margin-left:3em;
	}

	.draw_page.style-4{
		height: 100vh;
		padding-top:1em;
		padding-left:1em;
		margin-left:4em;
	}

	.right-block.style-5 .right_column {
		width: 60%;
	}

	.right-block.style-4 .right_column, .right-block.style-5 .right_column{
		color: #fff;
	}

}


@media all and (min-width: 1920px) {
	.right-block.style-5 .right_column {
		width: 60%;
	}

	.draw_page.opettaja .content {
		padding-top: 0.1em;
		margin-top: 1em;
	}
	.draw_page.style-5 {
		height: 100vh;
	}
	.right-block.style-4 .right_column, .right-block.style-5 .right_column{
		color: #fff;
	}


}

.linkki {
	text-decoration: underline;
	font-weight: 600;
	font-style: italic;
	color: #fff;
}

.inline_plus {
	display: inline;
}


