body{
  background-color: #edf5fc;
  line-height: 155%;
  font-family: Lato, Verdana, Helvetica, Arial, sans-serif;
}

p{
  text-align: justify;
  line-height: 1.8;
}

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: 3em;
  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;
}


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;
}


.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.kuvateksti{
	color: black;
	text-align: center;
	font-size: 115%;
}
td.kuva{
    text-align: center;
}

div.ylatunniste {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: auto;
  height: 3em;
  background-color: #9BBFDD;
  color: #fff;
  letter-spacing: 2px;
  font-weight: normal;
  min-width: 770px;
  font-size: 0.9em;
}

p.ylaotsikko {
  float: left;
  margin-left: 1em;
  color: #fff;
}

p.ylatekija {
  float: right;
  margin-right: 1em;
  color: #fff;
}

.center{
  width: 50%;
  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: 15em;
  padding: 0.6em 0em;
}

.center p a:hover {
  display: inline-block;
  color: #e87c74;
  width: 15em;
  padding: 0.6em 0em;
  background-color: lightgrey;
}

p.ylaotsikko a, p.ylatekija a {
  color: #000;
  text-decoration: none;
}

h2.vasen a:link, h2.vasen a:visited{
	color: #3b566d;
}

.logo{
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
}


/* 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: 799px) {

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.8em;
    }
	
	h2{
		font-size: 0.8em;
	}
	
	td.kuvateksti{
		font-size: 0.8em;
	}
	
	.center p a:link {
		font-size: 0.8em;
    display: inline-block;
    width: 10em;
    padding: 0.6em 0em;
	
	}

}
