@import url('https://fonts.googleapis.com/css?family=Arvo:400,700');
@import url('https://fonts.googleapis.com/css?family=Work+Sans:200,400,700');





/********** Yleiset hommelot **********/

html, body {
	height: 100%;
	margin: 0 auto;
	font-family: 'Work Sans', sans-serif;
	line-height: 2rem;
	font-weight: 300;
}





/********** Sisältöön liittyvät jutskat **********/

.omakuva{
	max-width: 50%;
	margin: 2rem;
}

#alkukuva {
	background: url("../img/taustis3_1_1b.png") no-repeat center center fixed; 
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
	width: 100%;
	display: -webkit-flex;
	display: flex;
	height: 100vh;
	height: 100%; 
}

#alkuruutu{
	height: 100vh;
	height: 100%;
	background: linear-gradient(134deg, #04a777, #7f036a, #f9a326, #e1442e);
	background-size: 800% 800%;
	-webkit-animation: AnimationName 20s ease infinite;
	-moz-animation: AnimationName 20s ease infinite;
	-o-animation: AnimationName 20s ease infinite;
	animation: AnimationName 20s ease infinite;
}

@-webkit-keyframes AnimationName {
    0%{background-position:0% 10%}
    50%{background-position:100% 91%}
    100%{background-position:0% 10%}
}

@-moz-keyframes AnimationName {
    0%{background-position:0% 10%}
    50%{background-position:100% 91%}
    100%{background-position:0% 10%}
}

@-o-keyframes AnimationName {
    0%{background-position:0% 10%}
    50%{background-position:100% 91%}
    100%{background-position:0% 10%}
}

@keyframes AnimationName {
    0%{background-position:0% 10%}
    50%{background-position:100% 91%}
    100%{background-position:0% 10%}
}

#sisalto{
	display: block;
	margin: 0 auto;
    top: 20%;
    width: 90%;
    height: 100%;
}

#sisalto h1 {

	text-align: center;
	font-family: 'Arvo', serif;
	font-weight: 900;
	font-size:calc(16px + 6vw);
	color: #fff;
	
}

#sisalto h2 {

	text-align: center;
    font-family: 'Work Sans', sans-serif;
	font-weight: 300;
	font-size:calc(16px + 2vw);
	color: #fff;
}

#sisalto h3 {

	text-align: center;
    font-family: 'Work Sans', sans-serif;
	font-weight: 300;
	font-size:calc(16px + 0.5vw);
	color: #fff;
	width: 80%;
	display: block;
	margin: 0 auto;
}

#sisalto img{
	margin: 0 auto;
	display: -webkit-flex;
	display: flex;
	height: 45vh;
	height: 45%; 
	padding: 10px;
}

a {
	text-decoration: none;
	background-color: #F9A326;
	padding: 2px 6px;
	color: #ffffff;
	-webkit-transition: all ease 0.5s;
	-moz-transition: all ease 0.5s;
	transition: all ease 0.5s;

}

a:hover{
 box-shadow: inset 0 100px 0 0 #E1442E;
    color: #ffffff;	

}





/* tabletit & mobsukat */

@media only screen and (max-width: 860px) and (orientation: portrait) {

	html, body {
		height: 100%;
		margin: 0 auto;
		font-size: 1.1rem;
		line-height: 1.3rem;
	 }
	 
	#sisalto h1 {
		font-size:calc(12px + 7vw);
	
	}

	#sisalto h2 {
		font-size:calc(12px + 3vw);
		line-height: 1;
	}

	#sisalto h3 {
		font-size:calc(12px + 1.5vw);
		line-height: 1.2;
	}

	#sisalto img{
	margin: 0 auto;
	display: -webkit-flex;
	display: flex;
	height: auto;
}
	
}

@media screen and (max-width: 860px) and (orientation: landscape) {

	html, body {
		height: 100%;
		margin: 0 auto;
		font-size: 1.1rem;
		line-height: 1.3rem;
	 }

	 #sisalto{
	 	width: 85%;
	 }
	 
	#sisalto h1 {
		font-size:calc(12px + 4vw);
	
	}

	#sisalto h2 {
		font-size:calc(12px + 2.5vw);
		line-height: 1;
	}

	#sisalto h3 {
		font-size:calc(12px + 0.85vw);
		line-height: 1.2;
		text-align: left;
	}

	#sisalto img{
	float: left;
	display: -webkit-flex;
	display: flex;
	height: 50%;
	padding: 0 10px;

}
	
}






