/* yleiset */

@font-face {
	font-family: 'Open Sans';
	src: url('fontit/OpenSans-Regular-webfont.woff') format('woff'),
	url('fontit/OpenSans-Regular-webfont.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;	
}

@font-face {
	font-family: 'Open Sans';
	src: url('fontit/OpenSans-Bold-webfont.woff') format('woff'),
	url('fontit/OpenSans-Bold-webfont.ttf') format('truetype');
	font-weight: 700;
	font-style: normal;	
}

@font-face {
	font-family: 'Ubuntu Condensed';
	src: url('fontit/ubuntu-c.woff2') format('woff2'),
	url('fontit/ubuntu-c.woff') format('woff'),
	url('fontit/ubuntu-c.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
}

* {box-sizing: border-box;}

a:link, a:visited, a:hover, a:active {text-decoration: none; color: inherit;}

html, body {
	min-height: 100%;
	color: #000;
	font-family: 'Open Sans', Arial, sans-serif;
	font-size: 110%;
	line-height: 1.5;
	letter-spacing: 1px;
	scroll-behavior: smooth;
	padding: 0;
	margin: 0;
}

.etusivu {
	background: #6425ab;
	background:
	-webkit-gradient(linear, left bottom, right top, from(#6425ab), color-stop(transparent), color-stop(90%, #1da78f)),
	-webkit-gradient(linear, left top, right bottom, color-stop(10%, #6425ab), color-stop(#333), to(#1da78f)) no-repeat;
	background:
	-webkit-linear-gradient(bottom left, #6425ab, transparent, #1da78f 90%),
	-webkit-linear-gradient(top left, #6425ab 10%, #333, #1da78f) no-repeat;
	background:
	-o-linear-gradient(bottom left, #6425ab, transparent, #1da78f 90%),
	-o-linear-gradient(top left, #6425ab 10%, #333, #1da78f) no-repeat;
	background:
	linear-gradient(to top right, #6425ab, transparent, #1da78f 90%),
	linear-gradient(to bottom right, #6425ab 10%, #333, #1da78f) no-repeat;
	background-blend-mode: screen;
	background-size: 100% 100%;
}

.ajo {background-color: #aad400;}

.pet {background-color: #ff6600;}

h1, h2, h3 {
	font-family: 'Ubuntu Condensed', 'Open Sans', sans-serif;
	font-weight: 400;
	margin: 0.2em 0 0.5em;
}

h1 {text-align: center; text-transform: uppercase; font-size: 2.5em;}

h2 {font-size: 1.8em;}

h3 {font-size: 1.5em;}

main {display: block;}

.otsikko {padding: 0 1.5em;}

.ylos {
	text-align: center;
	text-transform: uppercase;
	font-size: 0.8em;
	margin-bottom: 2em;
}

.ylos span {font-size: 2.5em; position: relative; top: 0.3em;}

.ajo .ylos span {color: #6425ab;}

.pet .ylos span {color: #00a287;}


/* jaetut */

.flex-kehikko {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	padding: 0;
	margin: 0;
}

.flex-direction-column {
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
}

.flex-wrap {-ms-flex-wrap: wrap; flex-wrap: wrap;}

.flex-justify-content{
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
}

.flex-space-evenly {
	-webkit-box-pack: space-evenly;
	-ms-flex-pack: space-evenly;
	justify-content: space-evenly;
}

.flex-space-between {
	-webkit-box-pack: justify;
	-ms-flex-pack: justify;
	justify-content: space-between;
}

.flex-align-items_center {
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
}


/* header + nav */
	
header {
	width: 100%;
	background: rgb(170,212,0);
	background: -moz-linear-gradient(left, rgba(170,212,0,1) 0%, rgba(170,212,0,1) 49%, rgba(255,102,0,1) 49%, rgba(255,102,0,1) 100%);
	background: -webkit-gradient(left top, right top, color-stop(0%, rgba(170,212,0,1)), color-stop(49%, rgba(170,212,0,1)), color-stop(49%, rgba(255,102,0,1)), color-stop(100%, rgba(255,102,0,1)));
	background: -webkit-linear-gradient(left, rgba(170,212,0,1) 0%, rgba(170,212,0,1) 49%, rgba(255,102,0,1) 49%, rgba(255,102,0,1) 100%);
	background: -o-linear-gradient(left, rgba(170,212,0,1) 0%, rgba(170,212,0,1) 49%, rgba(255,102,0,1) 49%, rgba(255,102,0,1) 100%);
	background: -ms-linear-gradient(left, rgba(170,212,0,1) 0%, rgba(170,212,0,1) 49%, rgba(255,102,0,1) 49%, rgba(255,102,0,1) 100%);
	background: linear-gradient(to right, rgba(170,212,0,1) 0%, rgba(170,212,0,1) 49%, rgba(255,102,0,1) 49%, rgba(255,102,0,1) 100%);
}

.poro_yhtiot_logo {
	background: #000;
	border-radius: 50%;
	padding: 1.5em;
}

.poro_yhtiot_logo img {position: relative; top: 0.3em;}


/* etusivu */

.yritys_esittely {
	width: 90%;
	max-width: 50em;
	background-color: rgba(255, 255, 255, 0.3);
	padding: 1em 2em 7em;
	margin: 12em auto;
}


/* Pörö Ajo */

.taustakuva_ajo {
	height: 30em;
	background: #161616 url("kuvat/pörö_ajo/taustakuva_ajo.png") no-repeat center bottom;
	background-size: contain;
}

.poro_ajo_esittely {
	background-color: #6425ab;
	color: #fff;
	text-align: center;
	padding: 1em 1em 1.5em;
}

.palvelu_ajo {background-color: #e3f98f;}

.tilaa_kuljetus {
	background-color: #6425ab;
	color: #fff;
	text-transform: uppercase;
	text-align: center;
	font-size: 1.1em;
	padding: 1em 2em;
}

.kuljetus_yht {font-size: 3em; font-weight: 700;}


/* Pörö Ajo & Pörö Pet */

.ajo h1, .pet h1 {margin: 1.5em 0;}

.poro_ajo_esittely p, .poro_pet_esittely p {width: 90%; max-width: 50em; margin: 1em auto;}

.palvelut {width: 90%; max-width: 60em; margin: 1.5em auto 3em;}

.palvelut h2 {width: 100%; text-align: center; margin-bottom: 1.5em;}

.palvelu {width: calc(100% / 2 - 1em); margin-bottom: 2em;}

.palvelu img {width: 100%; height: auto; -o-object-fit: cover; object-fit: cover;}

.palvelut_esittely {padding: 0 1em 1em;}

.yhteystiedot {width: 90%; max-width: 60em; margin: 5em auto 3em;}

.kartta {
	width: calc(60% - 0.2em);
	height: 25em;
	display: inline-block;
	vertical-align: top;
}

.kartta iframe {width: 100%; height: 100%;}

.yhteystiedot_ajo {
	width: calc(40% - 0.2em);
	display: inline-block;
	vertical-align: top;
	padding-left: 1em;
}

.yhteystiedot_ajo h2, .yhteystiedot_pet h2 {margin-top: 0;}



/* Pörö Pet */

.taustakuva_pet {
	height: 30em;
	background: #161616 url("kuvat/pörö_pet/taustakuva_pet.jpg") no-repeat center center;
	background-size: cover;
}

.poro_pet_esittely {
	background-color: #00a287;
	color: #fff;
	text-align: center;
	padding: 1em 1em 1.5em;
}

.palvelu_pet {background-color: #ffb380;}

.yhteystiedot_pet {
	width: 100%;
	background-color: #00a287;
	color: #fff;
	text-transform: uppercase;
	text-align: center;
	font-size: 1.1em;
	padding: 1em 2em;
}

.aika {
	width: calc(100% / 2 - 0.5em);
	display: inline-block;
	vertical-align: top;
	margin-bottom: 2em;
}

.aika:first-of-type {text-align: right; margin-right: 0.2em;}

.aika:nth-of-type(2) {text-align: left; margin-left: 0.2em;}


/* footer */

footer {
	background-color: #000;
	color: #fff;
	margin: 0;
}

.footer_yhteystiedot {width: calc(100% / 4 - 2em); padding: 2em;}

.footer_yhteystiedot:first-of-type {text-align: center; padding-top: 3em;}


/* media */

@media screen and (max-width: 75em) /*1200px*/ {
	/* yleiset */
	
	html, body {font-size: 100%;}
	
	
	/* header */
	
	header img {width: auto; height: 70px;}
	
	.poro_yhtiot_logo img {width: auto; height: 60px;}
	
	.poro_yhtiot_logo {padding: 1em;}
	
	
	/* etusivu */
	
	.yritys_esittely {padding: 1em 2em 6em; margin: 10em auto;}
	
	
	/* Pörö Ajo & Pörö palvelu_pet */
	
	.taustakuva_ajo, .taustakuva_pet {height: 25em;}
	
	
	/* footer */
	
	footer {-ms-flex-wrap: wrap; flex-wrap: wrap;}
	
	.footer_yhteystiedot {width: calc(100% / 3 - 2em);}
	
	.footer_yhteystiedot:first-of-type {width: 100%;}
	
	.footer_yhteystiedot:first-of-type img {width: auto; height: 120px;}
}

@media screen and (max-width: 56.25em) /*900px*/ {
	/* etusivu */
	
	.yritys_esittely {margin: 6em auto;}
	
	
	/* footer */
	
	.footer_yhteystiedot {width: 100%; text-align: center;}
}

@media screen and (max-width: 37.5em) /*600px*/ {
	h1 {font-size: 2em;}
	
	/* Pörö Ajo & Pörö palvelu_pet */
	
	.taustakuva_ajo, .taustakuva_pet {height: 20em;}
	
	.palvelu {width: 100%;}
	
	.kartta, .yhteystiedot_ajo {
		width: 100%;
		display: block;
		text-align: center;
		padding-left: 0;
	}
	
	.yhteystiedot_ajo h2 {margin-top: 2em;}
}

@media screen and (max-width: 30em) /*480px*/ {
	
	/* header */
	
	nav {-ms-flex-wrap: wrap; flex-wrap: wrap;}
	
	nav a:first-of-type {
		width: calc(100% / 2);
		text-align: center;
		-webkit-box-ordinal-group: 3;
		-ms-flex-order: 2;
		order: 2;
		padding: 0.5em 0.5em 0.2em;
	}
	
	nav a:nth-of-type(2) {order: 1; }
	
	nav a:nth-of-type(3) {
		width: calc(100% / 2);
		text-align: center;
		-webkit-box-ordinal-group: 4;
		-ms-flex-order: 3;
		order: 3;
		padding: 0.5em 0.5em 0.2em;
	}
	
	.poro_yhtiot_logo {
		width: 100%;
		border-radius: 0;
		text-align: center;
		padding: 0.5em;
	}
	
	.ajo header {background: #ff6600;}
	
	.ajo nav a:first-of-type {background-color: #aad400; border-radius: 0 20px 0 0;}
	
	.kuljetus_yht {font-size: 2em;}
	
	.pet header {background: #aad400;}
	
	.pet nav a:nth-of-type(3) {background-color: #ff6600; border-radius: 20px 0 0 0;}
	
	
	/* Pörö Ajo & Pörö palvelu_pet */
	
	.taustakuva_ajo, .taustakuva_pet {height: 15em; background-size: cover;}

}
