body {
  background-color: #edf5fc;
  line-height: 155%;
  font-family: Lato, Verdana, Helvetica, Arial, sans-serif;
}

p {
  text-align: justify;
  line-height: 1.8;
}

p.uusiversio {
  margin-right: auto;
  margin-left: auto;
  margin-top: 10px;
  margin-bottom: 10px;
  border: 3px solid red;
  padding: 0.5em;
  text-align: center;
  min-height: 40px;
  max-width: 700px;
  color: black;
  background-color: white;
}

h1 {
    font-weight:normal;
    text-align: center;
    letter-spacing: 2px;
}

h2 {
	font-weight:normal;
	text-align: center;
	color: #3b566d;
}

hr {
  width: 50%;
  background-color: lightgrey;
  height: 1px;
  margin-top: 2em;
  margin-bottom: 2em;
}

h2.vasen {
	font-weight: normal;
	margin-top: 2em;
	text-align: left;
	padding-left: 2em;
}

h2.vasen:first-child {
	margin-top:1.2em;
}

#linkit {
	width: 75%;
	margin-left: auto;
	margin-right: auto;
}

ol.margin {
	padding-left: 4em;
	line-height: 1.7;
	margin-left: 1.5em;
}

h1.fancy {
  text-align: center;
	position: relative;
  z-index: 1;
	margin-top:3em;
  color: #1b2833;
  margin-bottom: 1em;
}

h1.fancy:after, h1.fancy:before {
	border-top: 2px solid #FFA29B;
	content:"";
	margin: 0 auto; /* this centers the line to the full width specified */
	position: absolute; /* positioning must be absolute here, and relative positioning must be applied to the parent */
	top: 50%; left: 0; right: 0; bottom: 0;
	width: 95%;
	z-index: -1;
}

h1 > span {
        /* to hide the lines from behind the text, you have to set the background color the same as the container */
        background: #edf5fc;
		padding: 0px 15px;
    }

img {
	max-width:100%;
	height: auto;
	/* padding: 15px; */
}

.content {
	width: 50%;
	margin-left: auto;
	margin-right: auto;
}

p.valiotsikko {
	font-size: 1.4em;
	font-style: italic;
	color: #FFA29B;
	margin-bottom: 0;
}

.etusivu {
  margin-right: auto;
  margin-left: auto;
  margin-top: 3em;
  display: block;
  width: 90%;
}

.esit {
	margin-left:auto;
	margin-right:auto;
	width:60%;
}

table.center {
	margin-left: auto;
	margin-right: auto;
}

td {
	width: 33%;
}

td.kuvateksti {
	color: black;
	text-align: center;
	margin-left: auto;
	margin-right: auto;
	font-size: 115%;
	padding-bottom: 1em;
	letter-spacing: -0.5px;
}

td.kuva {
    text-align: center;
	margin-left: auto;
	margin-right: auto;
	padding-top: 1em;
}

div.ylatunniste {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 3em;
  background-color: #9BBFDD;
  color: #EFEFEF; /* #fff */ 
  letter-spacing: 1.5px;
  font-weight: normal;
  /* min-width: 770px; */
  font-size: 0.9em;
}

p.ylaotsikko {
  float: left;
  margin: 0.5em 0.1em 0.5em 1em;
  /* color: #fff; */
}

p.ylatekija {
  float: right;
  margin: 0.5em 1em 0.5em 0.1em;
  /* color: #fff; */
}

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; */
}

.center {
  width: 80%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto; 
  font-size: 1.2em;
}

.center p {
  text-align: center;
  padding: 0;
  margin: 0;
}

.center p a:link {
  display: inline-block;
  width: 20em;
  padding: 0.6em 0em;
}

.center p a:hover {
  display: inline-block;
  color: #e87c74;
  width: 20em;
  padding: 0.6em 0em;
  background-color: lightgrey;
}

p.ylaotsikko a, p.ylatekija a {
  color: #000;
  text-decoration: none;
  vertical-align: top;
}

h2.vasen a:link, h2.vasen a:visited {
	color: #3b566d;
}

.logo {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
}

p.keskitys {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
} 

p.ylamarginaali {
  margin-top: 2em;
} 

/* unvisited link */
a:link {
    color: #e87c74;
	text-decoration: none;
}

/* visited link */
a:visited {
    color: #e87c74;
}

/* mouse over link */
a:hover {
    color: grey;
}

/* selected link */
a:active {
    color: grey;
}

blockquote {
  border-left: 10px solid #ccc;
  margin: 1.5em 10px;
  padding: 0.5em 10px;
  quotes: "\201C""\201D""\2018""\2019";
}

blockquote:before {
  color: #ccc;
  content: open-quote;
  font-size: 4em;
  line-height: 0.1em;
  margin-right: 0.25em;
  vertical-align: -0.4em;
}

blockquote p {
  color: grey;
  display: inline;
  font-style: italic;
}

@media screen and (max-width: 830px) {

h1 > span {
        /* to hide the lines from behind the text, you have to set the background color the same as the container */
        background: #edf5fc;
		padding: 0px 15px;
		font-size: 0.9em;
    }
	
	/* h2 {
		font-size: 0.8em;
	} */
	
	td.kuvateksti {
		font-size: 0.9em;
		padding-bottom: 0.5em;
	}
	
	td.kuva {
		padding-top: 0.5em;
	}
	
	table.center {
		width: 90%;
	}
	
	.center p a:link {
		font-size: 0.9em;
		display: inline-block;
		width: 10em;
		padding: 0.6em 0em;
	}
	
	div.content {
		width: 95%;
	}
	
	div#linkit {
		width: 95%;
	}
	
	ol.margin {
		padding-left: 2em;
	}
	
	h2.vasen{
		font-weight: normal;
		margin-top: 1.5em;
		text-align: left;
		padding-left: 0.5em;
		margin-left: 0;
	}

}
