/* Perusmaaritykset */

body {
  margin-right: 16.5em;
  margin-top: 4em;
  margin-left: 2em;
  margin-bottom: 1em;
  min-width: 510px;
  max-width: 950px;
  line-height: 155%;
  font-family: Lato, Verdana, Helvetica, Arial, sans-serif;
}

p, ul {
  text-align: justify;
  line-height: 1.8;
}

code {
	white-space: pre;
}

ol {
	line-height: 1.8;
}

ul.sisaltoalueen_lista li {
  text-align: justify;
}

h1, h2, h3, h4 {
  color: #0d404f;
}

h5 {
  font-size: 12pt;
}

tr.viiva td {
	padding-right:10px !important;
	padding-bottom:10px !important;
	border-bottom:1pt solid black;
}

h1 {
  text-align: center;
}

h4 {
  margin-bottom: 5px;
}

h4 > span {
	vertical-align:7px;
	padding-left:0.4em;
}

h3.tehtavaotsikko > span {
	padding-left:0.4em;
	vertical-align:4px;
}

strong {
  color: #373738;
  font-weight: bold;
}

strong.lihavointi {
  color: #FFA29B;
}

mark {
  /* background-color: #CAEBF2; */
  background-color: #d7f2f8;
}

p.korostettu {
  color: red;
  font-weight: bold;
}

p.sisennetty {
  margin-left: 0.5em;	
}

img {
  max-width: 99%;
}

img.oikea {
	max-width:15em;
	float:right;
	margin: 0px 0px 10px 20px;
}

img.oikea2 {
  max-width:20em;
  float:right;
  margin: 0px 0px 10px 20px;
}

img.vasen {
	max-width:15em;
	float:left;
	margin: 0px 20px 10px 0px;
}

img.divikuva {
    width: 45em;
	max-width: 100%;
    margin: 0 auto;
    margin-top: 1em;
}

img.divikuva2 {
    width: 60em;
	max-width: 100%;
    margin: 0 auto;
    margin-top: 1em;
}

img.esimerkkikuva {
    width: 60em;
	max-width: 80%;
    margin: 0 auto;
    margin-top: 1em;
}

img.esimerkkikuva2 {
    width: 60em;
	max-width: 100%;
    margin: 0 auto;
    margin-top: 1em;
}

img.keskikohta {
	vertical-align: -20px;
	margin-left: 5px;
}

span.t{
	margin-left: 5px;
	vertical-align: 10px;
}

span.linkki{
	color:blue;
}

p.t{
	line-height: 1.5;
	padding-left: 2px !important;
}

p.perusteksti {
  margin-left: 0.5em;
}

p.perusteksti a, ul.sisaltoalueen_lista a {
  font-style: italic;
}

p.editoi {
  font-weight: bold;
  text-align: center;
  font-size: 1.1em;
}

span.editoi_tarkennus {
  font-size: 0.9em;
  font-weight: normal;
}

.keskitys {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.hakusana {
  font-style: italic;
  color: #aac618;
}

.lahde {
  text-align: right;
  font-style: italic;
}

span.lihavointi {
  font-weight: bold;
}

span.kursivointi {
  font-style: italic;
}

span.alleviivaus {
  text-decoration: underline;
}

span.koodi {
  font-weight: bold;
  color: #aac618;
  font-family: "Courier New", Courier, monospace;
  font-size: 1em;
}

.nofloat {
  clear: both;
}

.esittely{
  margin: auto;
  display: block;
}

ol.kirjaimet {
  list-style-type: lower-alpha;
}

div.css{
  background-color: #f7f7f9;
  padding: 0.8em 0em 0.8em 1.5em;
  color: #373738;
  overflow: auto;
}

iframe.h5p {
  border: 0;	
}

/* Kuviin liittyvat tyylit */

div.kuva {
  margin-top: 0.5em;
  margin-left: 0em;
  margin-bottom: 0.5em;
  text-align: center;
  clear: both;
}

div.kuvaoikea {
  float: right;
  clear: right;
  margin: 0.5em;
  margin-left: 1em;
  margin-right: 0em;
  text-align: center;
}

div.kuvavasen {
  float: left;
  clear: left;
  margin: 0.5em;
  margin-right: 1em;
  text-align: center;
}

p.kuvateksti {
  margin: 0;
  margin-left: 0.3em;
  margin-bottom: 0.5em;
  text-align: center;
  font-weight: bold;
}

p.kuvateksti2 {
  margin: 0;
  margin-left: 0.3em;
  margin-bottom: 0.5em;
  text-align: center;
  font-weight: bold;
  width: 80%;
}

p.kuvateksti3 {
  margin: 0;
  margin-left: 0.3em;
  margin-bottom: 0.5em;
  text-align: center;
  font-weight: bold;
  width: 60em;
  max-width: 100%;
}

p.kuvateksti4 {
  margin: 0;
  margin-left: 0.3em;
  margin-top: 0.5em;
  text-align: center;
  font-weight: bold;
  width: 45em;
  max-width: 100%;
}

td > img{
	 display: block;
    margin-left: auto;
    margin-right: auto;
	padding-top: 5px;
}

div.kuvaoikea p.kuvateksti, div.kuvavasen p.kuvateksti {
  margin: 0;
}

img.maksimi50 {
	max-width: 50%;
}

/* Ohjelmavalikkojen komentojen tyylit */

span.valikkofi {
  color: #9e803e;
  font-weight: bold;
  font-style: italic;
}

span.valikkoen {
  font-style: italic;
  color: #9c889a;
}

/* Ylatunnisteen tyylit */

div.ylatunniste {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 3em;
  background-color: #9BBFDD;
  color: #EFEFEF;
  letter-spacing: 1.5px;
  font-weight: normal;
  font-size: 0.9em;
}

p.ylaotsikko {
  float: left;
  margin: 0.5em 0.1em 0.5em 1em;
}

p.ylatekija {
  float: right;
  margin: 0.5em 1em 0.5em 0.1em;
}

p.ylatekija span.teksti {
  margin-right: 0.5em;
  vertical-align: top;
  color: black;
  /* color: #fff; */
}

p.ylatekija span.tekijat {
  margin-right: 0.5em;
  vertical-align: top;
  color: white;
  /* color: #fff; */
}

p.ylaotsikko a, p.ylatekija a {
  color: #000;
  text-decoration: none;
  vertical-align: top;
}

/* Paavalikon tyylit */

div.paavalikko {
  position: fixed;
  top: 4em;
  right: 1em;
  width: 13em;
  padding: 0.5em;
  border: 2px solid #0d404f;
  border-radius: 12px;
  /*box-shadow: 6px 6px 6px #0d404f;*/
  color: #111e28;
  background-color: #9BBFDD;
  /*background-color: #59C3C3;*/
}

div.paavalikko a {
  text-decoration: none;
  color: #000;
}

a.aktiivinen, li.aktiivinen {
	color: #373738 !important;
	font-weight:bold;
}

p.lukuvalikko_otsikko {
  font-size: 1.1em;
  font-weight: bold;
  color: #111e28;
  margin: 0 0 0 0.3em;
  text-align: left;
}

ul.vakiovalikko {
  font-weight: bold;
  /*margin-left: 0.5em;*/
  margin-bottom: 0.7em;
}

ol.lukuvalikko, ul.lukuvalikko {
	display: inline-block;
	line-height: 1.6;
  margin-top: 0.3em;
  /* margin-left: 0.5em; */
}

.paavalikko h2{
margin-left:0.8em;
}

/* Osaamistavoitteiden tyylit */

div.luvun_alku {
  padding: 0.5em;
  border: 2px solid #000;
  border-radius: 10px;
  background-color: #CAEBF2;
}

p.oppimistavoitteet_otsikko {
  color: #000;
  font-size: 1.1em;
  font-weight: bold;
  margin: 0.5em;
}

ul.oppimistavoitteet {
  margin-top: 0em;
}

/* HOX-lohkon tyylit */

div.hox {
  font-size:0.8em;
  float: right;
  clear: right;
  width: 16em;
  padding: 0.5em;
  margin: 1em 0 1em 2em;
  border: 1px solid black;
  border-radius: 10px;
  /*box-shadow: -6px 6px 6px LightGrey;*/
  background-color: #FFA29B;
}

div.word_online {
  font-size:0.8em;
  float: right;
  clear: right;
  width: 16em;
  padding: 0.5em;
  margin: 0.5em 0 1em 2em;
  border: 1px solid black;
  border-radius: 10px;
  /*box-shadow: -6px 6px 6px LightGrey;*/
  background-color: #42a8f0;
  /*background-color: #9BBFDD;*/
}

div.excel_online {
  font-size:0.8em;
  float: right;
  clear: right;
  width: 16em;
  padding: 0.5em;
  margin: 0.5em 0 1em 2em;
  border: 1px solid black;
  border-radius: 10px;
  /*box-shadow: -6px 6px 6px LightGrey;*/
  background-color: #3bc37e;
  /*background-color: #8FBC8B;*/
}

div.pp_online {
  font-size:0.8em;
  float: right;
  clear: right;
  width: 16em;
  padding: 0.5em;
  margin: 0.5em 0 1em 2em;
  border: 1px solid black;
  border-radius: 10px;
  /*box-shadow: -6px 6px 6px LightGrey;*/
  background-color: #fe8d68;
}

.hox code {
	font-size: 1.2em;
}

.hox h4, .online h4, .word_online h4, .excel_online h4 {
	margin-top: 10px;
	margin-left: 10px;
}

div.hox p, div.online p, div.word_online p, div.excel_online p {
  margin: 0.5em;
  text-align: justify;
}

div.hox ol {
  text-align: justify;
}

div.hox ul {
  margin-left: 1em;
  padding-left: 0.5em;
}

div.hox strong {
  color: #0d404f;
}

div.hox p.hox-otsikko {
  color: #0d404f;
  font-weight: bold;
  text-align: left;
}

div.hox p.keskitys {
  text-align: center;
}

div.hox p.kuvateksti {
  text-align: center;
}

div.show {
  display: block;
}

div.hidden {
  display: none;
}

/* Yhteenvedon tyylit */

div.yhteenveto {
  margin-top: 1.5em;
  padding: 0.5em;
  padding-right: 1em;
  border: 2px solid #111e28;
  border-radius: 10px;
  background-color: #CAEBF2;
  color: black;
  text-align: justify;
  clear: both;
}

div.yhteenveto h2 {
  color: black;
  margin-left: 1em;
}

/* Tehtavat-lohkon tyylit */

div.tehtavat {
  margin-top: 1.5em;
  padding: 0.5em;
  padding-right: 1em;
  border: 3px dashed #FF3B3F;
  border-radius: 10px;
  background-color: transparent;
  text-align: justify;
}

div.tehtavat_sisa {
  margin-top: 1.5em;
  padding: 0.5em;
  padding-right: 1em;
  border: 2px dashed #9BBFDD;
  border-radius: 10px;
  background-color: #F0FFFF;
  text-align: justify;
}

div.tehtavat h3, div.tehtavat h4{
  padding-top: 10px;
  padding-left: 20px;
  margin: 0;
}

div.tehtavat > p{
	padding-left:20px;
}

div.tehtavat table{
	margin-left:1em;
	margin-bottom:2em;
	border-collapse: collapse;
  border: #fff 0px;
  padding-left:20px;
}

div.tehtavat input{
	margin: 0px 20px;
}

input.tavu {
	margin: 0 !important;
}

input.tavut {
	margin: 10px 10px 0px 0px !important;
}

input.tavureset {
	margin: 10px 0px 0px 10px !important;
}

div.tehtavat td, div.tehtavat th {
  padding: 5px;
}

div.tehtavat h2 {
  margin-left: 0.5em;
}

div.tehtavat ol ol {
  list-style-type: lower-latin;
}

div.tehtavat ol ol ol {
  list-style-type: lower-roman;
}

div.tehtavat li{
	line-height:1.7;
}

div.tehtavat p.harkka, div.tehtavat p.ohje {
  margin-left: 1em;
}

div.tehtavat strong {
  color: black;
}

div.tehtavat ol ol.numero {
  font-size: 0.9em;
  list-style-type: decimal;
  margin-left: 1em;
  padding-left: 1em;
}

table.normitehtava td, table.normitehtava th {
  text-align: center;
}

table.normitehtava td:first-child, table.normitehtava th:first-child {
  text-align: left;
}

table.normitehtava {
  border: 0px solid black;
  margin-top: 0.5em;
  margin-bottom: 0.2em;
}

table.normitaulukko, table.normitaulukko tr, table.normitaulukko th, table.normitaulukko td {
border: 1px solid black;
text-align: center;
padding: 5px;
width: 50%;
border-collapse: collapse;
}

#sahkopostinetiketti td:first-child{
	text-align:left;
	font-weight: bold;
}

#sahkopostinetiketti input[type=radio]{
	float: left;
	margin: 10px 0px;
}

#sahkopostinetiketti label{
	margin-left:10px;
	padding-right: 5px;
}

#sahkopostinetiketti td{
	text-align: left;
	width:25% !important;
}

div.tehtavat form {
  margin-bottom: 0.2em;
}

table.tiedostotehtava td {
  min-width: 5em;
}

.esittely{
	width: 80%;
	margin-top:3%;
	margin-left:auto;
	margin-right:auto;
}

/* Lisatieto-osion tyylit */

div.lisatieto {
  margin-top: 1.5em;
  padding: 0.5em;
  padding-right: 1em;
  border: 2px solid #9c889a;
  border-radius: 10px;
  background-color: #b8a8b8;
  color: white;
  text-align: justify;
}

div.lisatieto_laatikko {
  float: right;
  border: 3px solid #9c889a;
  border-radius: 30px;
  background-color: #9c889a;
  color: white;
  margin: 0.5em;
  margin-right: 0;
  padding: 1em;
  font-weight: bold;
}

div.lisatieto h2 {
  margin-left: 0.5em;
  color: black;
  text-align: left;
}

div.lisatieto p, div.lisatieto ul {
  margin: 0.5em;
  margin-right: 0.1em;
  color: black;
}

div.lisatieto p.kuvateksti {
  margin-top: 0;
}

div.lisatieto strong {
  color: black;
}

div.lisatieto span.valikkofi {
  color: black;
  font-style: normal;
}

div.lisatieto span.valikkoen {
  color: black;
  font-style: italic;
}

div.lisatieto pre {
  margin: 0.5em;
  margin-right: 0.1em;
  margin-left: 1.5em;
  color: black;
}

/* Koodi-lohkon tyylit */

div.koodilohko {
  padding-left: 0.5em;
  padding-right: 0.5em;
  margin-left: 1em;
  margin-right: 1em;
  border: 3px solid black;
  color: #aac618;
  margin-bottom: 1em;
}

pre {
  font-family: "Courier New", Courier, monospace;
  font-size: 1em;
}

/* HTML-esimerkkitaulukkojen tyylit */

table.html-esimerkit {
  border: 3px solid black;
  border-collapse: collapse;
  margin: 0.5em;
  margin-bottom: 1em;
}

table.html-esimerkit th {
  border: 1px solid black;
  border-right: 2px solid black;
  font-weight: bold;
  background-color: #b8a8b8;
  padding: 0.2em 0.5em 0.2em 0.5em;
}

table.html-esimerkit th.ekarivi {
  background-color: #586c4d;
  border-bottom: 2px solid black;
}

table.html-esimerkit td {
  border-bottom: 1px solid black;
  border-right: 2px solid black;
  padding: 0.2em 0.5em 0.2em 0.5em;
}

table.html-esimerkit td p {
  margin-top: 0.2em;
  margin-bottom: 0.2em;
}

table.html-esimerkit td p.yla {
  margin-bottom: 0.5em;
}

table.html-esimerkit td p.koodiesim {
  text-align: left;
}

table.html-esimerkit strong {
  color: black;
}

th.valikossa {
  text-align: left;
  border-bottom: 1px solid black;
}

.collapsible {
  background-color: #777;
  color: white;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 15px;
}

.active, .collapsible:hover {
  background-color: #555;
}

.collapsible:after {
  content: '\002B';
  color: white;
  font-weight: bold;
  float: right;
  margin-left: 5px;
}

.active:after {
  content: "\2212";
}

.content {
  padding: 0 18px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  background-color: #f1f1f1;
}

div.genially{
	position: relative;
	padding-bottom: 66.57381615598887%;
	padding-top: 0;
	height: 0;
}

div.genially2{
	position: relative;
	/*padding-bottom: 66.57381615598887%;
	padding-top: 0;*/
	height: 80%;
	width: 80%;
	border: none;
}


div.genially > iframe{
	position: absolute;
	top: 0;
	left: 0;
	border-width: 0px;
	width: 100%;
	height: 100%;
}

.videoWrapper {
  margin-top: 1em;
	position: relative;
	padding-bottom: 56.25%; /* 56.25% = 16:9 */
	padding-top: 0px;
	height: 0;
	clear: both;
	margin-bottom: 0.5em;
}

.videoWrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* unvisited link */
a:link {
    color: #0000b3;
}

/* visited link */
a:visited {
    color: #0000b3;
}

/* mouse over link */
a:hover {
	color: white;
	background-color: #0000b3;
}

div.ylatunniste a:hover, div.paavalikko a:hover {
	background-color: transparent;
	color: #000;
}

/* selected link */
a:active {
    color: #0000b3;
	background-color: transparent;
}

div.ylatunniste a:active, div.paavalikko a:active {
	color: #000;
}

.ohj{
	float: right;
}

.collapsible {
  background-color: #FFA29B;
  color: #3a3a3a;
  cursor: pointer;
  padding: 0.8em;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 15px;
  font-family: 'Lato';
  letter-spacing: 0.12em;
  font-weight: 700;
}

.active, .collapsible:hover {
  background-color: #FFA29B;
}

.collapsible:after {
  content: '\002B';
  color: white;
  font-weight: bold;
  float: right;
  margin-left: 5px;
}

.active:after {
  content: "\2212";
}

.content {
  padding: 0 2em;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  background-color: #f1f1f1;
}
.content p{
	font-size:90%;
	word-spacing:2px;
}


/* MOBIILIMUOTOILUT */
@media screen and (max-width: 830px) {

  body {
    margin: 5px;
    padding: 0;
	overflow-x: hidden;
    font-size: 1em;
    /*min-width: 550px;*/
	min-width: 0;
  }

  div.ylatunniste {
	  /*min-width: 480px;*/
	  min-width: 0;
	  height: auto;
	  position: static;
  }

  div.paavalikko {
    width: auto;
    height: auto;
    position: static;
    border: 1px solid black;
    box-shadow: none;
    margin-bottom: 1em;
    margin-top: 0.5em;
  }

  .paavalikko a {
    /*float: left;*/
  }

  div.paavalikko li{
    display: list-item;
  }

  ul.lukuvalikko, ul.vakiovalikko{
    margin: 0;
  }

  ul.lukuvalikko li:first-child{
    margin-top: 3em;
  }

  p.ylatekija, p.ylaotsikko{
    font-size: 0.9em;
    letter-spacing: 0px;
    margin: 0.1em;
	float: none;
  }
  
  p.ylatekija img {
	max-width: 60px;
  }

  div.luvun_alku{
    border: 1px solid #000 !important;
  }
  
  div.esittely {
	width: 95%;  
  }
  
  img.esimerkkikuva {
	max-width: 100%;
  }
  
  p.kuvateksti2 {
    width: 100%;
  }

}
