html,
body{
    min-width: 320px;
}
body{
	font-family: Arial, Helvetica, sans-serif;
	font-family: "proxima-nova", "Proxima Nova";
	font-style: normal;
	font-weight: normal;
	font-size: 20px;
	line-height: 1.5em;
	padding: 6.5em 0 0 0;
	margin: 0;
	color: #000000;
	-webkit-font-smoothing: antialiased !important;
}
img{
	border: none;
	outline: none;
}

a:link,
a:visited{
	color: #000000;
	text-decoration: underline;
}
a:hover,
a:active{
	text-decoration: none
}

h1{
	font-family: "fatfrank", "Fatfrank";
	font-size: 2em;
	line-height: 1.2em;
	font-weight: normal;
	font-weight: normal;
	margin: 1.5em 0 1.2em 0;
	padding: 0;
	text-transform: uppercase;
}
h1 span,
h1 span a:link,
h1 span a:visited,
#yritys h1 span{
	color: #ffcc00;
	text-decoration: none;
}
h2{
    font-family: "fatfrank", "Fatfrank";
	font-size: 1em;
	line-height: 1.2em;
	font-weight: normal;
	font-weight: normal;
	margin: 1.5em 0 1.2em 0;
	padding: 0;
	text-transform: uppercase;
}
h3{
    font-family: "fatfrank", "Fatfrank";
    font-size: 0.9em;
    line-height: 1.2em;
    font-weight: normal;
    text-transform: uppercase;
    display: table;
    margin: 0 auto 1.5em auto;
    clear: both;
    padding: 0.8em 0 0.6em 0;
    border-bottom: 5px #000000 solid;
    box-sizing: border-box;
}
h4{
	font-family: "fatfrank", "Fatfrank";
    font-size: 0.7em;
    line-height: 1.2em;
    font-weight: normal;
    text-transform: uppercase;
    display: table;
    margin: 0 auto 1.5em auto;
    clear: both;
    padding: 0.8em 0 0.6em 0;
}
.bg,
a.bg{
    clear: both;
    float: none;
    width: 100%;
    height: auto;
    margin: 0 auto;
    box-sizing: border-box;
    display: table;
}
.bg.etusivu{
	background: #FFFFFF;
	position: fixed;
	top: 0;
	z-index: 500;
	box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
	min-width: 320px;
	overflow-x: auto;
	overflow-y: hidden;
}
a.bg.call{
	display: none;
}
.bg.video{
	background: #f1f1f1;
}
.bg.palvelumme{
	background: #000000;
}
.bg.keskiarvo{
	background: #ffcc00;
}
.bg.ajankohtaista{
	background: #f1f1f1;
}
.bg.asiakkaitamme{
	background: #FFFFFF;
}
.bg.yritys{
	background: #3e3e3e;
}
.bg.yhteystiedot{
	background: #FFFFFF;
}
.element-center{
    clear: both;
    float: none;
    max-width: 984px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    box-sizing: border-box;
}
.table{
	width: 100%;
	display: table;
}
.table-row{
	display: table-row;
}
.table-cell{
	display: table-cell;
	vertical-align: top;
	box-sizing: border-box;
}


#etusivu{
	display: table;
}
.etusivu-child{
	display: table-cell;
	vertical-align: middle;
}

.etusivu-child.logo{
	width: 28.5%;
	height: auto;
	position: relative;
	padding-bottom: 6.5em;
}
#logo{
	display: block;
	position: absolute;
	width: 93%;
	height: 100%;
	text-decoration: none;
	background: url(../../images/2016/logo_tyopaikka.png) center center no-repeat;
	background-image: url(../../images/2016/logo_tyopaikka.svg);
	background-size: 100% auto;
}
#menu,
#menu ul,
#menu li{
	margin: 0;
	padding: 0;
	list-style: none;
}
#menu{
	margin: 0 auto;
	display: table;
}
#menu li{
	float: left;
	margin: 0 0.7em 0 0.6em;
}
#menu li a{
	display: block;
	text-decoration: none;
	font-size: 0.9em;
	line-height: 1.4em;
	padding: 1.3em 0 0.3em 0;
	color: #000000;
	font-family: "fatfrank", "Fatfrank";
	text-transform: uppercase;
	box-sizing: border-box;
	border-bottom: 0.3em transparent solid;
}
#menu li.current a,
#menu li a:hover{
	border-color: #000000;
}
.etusivu-child.facebook{
	width: 6.2%;
}
.etusivu-child.facebook a{
	display: block;
	width: 2em;
	height: 2em;
	text-decoration: none;
	background: #000000 url(../../images/2016/icon_facebook.png) center bottom no-repeat;
	margin-top: 0.5em;
	border-radius: 4px;
	background-size: auto 80%;
}

#video,
#video div{
	max-width: 1280px;
	height: 36em;
	height: 27em;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
}
#video p{
	margin: 0;
}

#palvelumme{
	color: #FFFFFF;
	text-align: center;
	padding: 1em 0 1em 0;
}
#palvelumme,
#palvelumme h3,
#yritys h3{
	color: #FFFFFF;
	border-color: #FFFFFF;
}
#palvelumme p strong{
	color: #ffcc00;
}
#place-stamp{
	float: right;
	height: 0px;
	position: relative;
	z-index: 200;
	top: -3.45em;
	right: 4.5em;
	font-size: 1em;
	pointer-events: none;
}
#place-stamp .stamp{
	width: 8.6em;
	height: 9.9em;
	box-sizing: border-box;
	padding: 3.6em 0 0 0;
	color: #000000;
	font-family: "fatfrank", "Fatfrank";
	text-transform: uppercase;
	text-align: center;
	background: url(../../images/2016/bg_stamp.png) center top no-repeat;
	background-size: contain;
}
#place-stamp .stamp p{
	margin: 0;
	font-size: 0.58em;
	line-height: 1.2em;
}
#place-stamp .stamp big{
	font-size: 2.3em;
	line-height: 1.2em;
}
p.buttons{
	display: table;
	margin: 2.91em auto 1.6em auto;
}
a.button{
	float: left;
	display: table;
	text-decoration: none;
	margin: 1em 0.46em;
}
a.button span{
	display: block;
	width: 15em;
	line-height: 2.2em;
	color: yellow;
	text-transform: uppercase;
	font-family: "fatfrank", "Fatfrank";
	font-size: 1.22em;
	box-sizing: border-box;
	cursor: pointer;
}
a.button.phone span{
	padding-left: 0.8em;
	background: #FFFFFF url(../../images/2016/icon_phone.png) 0.8em center no-repeat;
	color: #000000;
	background-size: auto 67%;
}
a.button.yellow span{
	background: #ffcc00;
	color: #000000;
}
a.button.phone:hover span{
	background-color: #ffcc00;
	color: #000000;
}
a.button.yellow:hover span{
	background-color: #FFFFFF;
	color: #000000;
}

#keskiarvo{
	text-align: center;
	font-size: 1em;
	line-height: 1.4em;
	color: #000000;
	font-family: "fatfrank", "Fatfrank";
	text-transform: uppercase;
}
#keskiarvo-banner{
	display: table;
	margin: 2.5em auto;
	width: 16.5em;
}
.keskiarvo-header,
.keskiarvo-footer{
	width: 100%;
	height: 0.667em;
	margin: 1.25em 0 2.3em 0;
	border: #000000 solid;
	border-width: 0 3px;
	background: url(../../images/2016/bg_keskiarvo_header.jpg) left center repeat-x;
}
.keskiarvo-footer{
	margin: 0;
}
.keskiarvo-header .keskiarvo-icon{
	display: block;
	width: 2.143em;
	height: 2.476em;
	margin: 0 auto;
	background: url(../../images/2016/icon_keskiarvo.png) center center no-repeat;
	position: relative;
	top: -1.38em;
	background-size: contain;
}
#keskiarvo-banner p{
	font-size: 1.33em;
	margin: 0;
}
#keskiarvo-banner big{
	font-size: 6em;
	line-height: 0.95em;
}
#keskiarvo-banner small{
	font-size: 0.6em;
	text-transform: none;
	font-family: "proxima-nova", "Proxima Nova";
}

#ajankohtaista,
#asiakkaitamme,
#yritys,
#yhteystiedot{
    padding: 1em 0 1em 0;
     /* Safari */
}
#ajankohtaista.element-center .table{
	margin: 1em 0;
	display: none;
}
#ajankohtaista .table-cell:first-child{
	padding-right: 1em;
}
#ajankohtaista.element-center .table.first,
#ajankohtaista.element-center.open .table{
	display: table;
	margin-top: 3em;
}
#ajankohtaista .table .table-cell:last-child{
	width: 15.1em;
}
#ajankohtaista .table .table-cell .facebook-image{
	width: 100%;
	height: auto;
	padding-bottom: 62%;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}
#ajankohtaista .table .table-cell:last-child p
	margin: 0.5em 0;
}
#ajankohtaista img {
	width: 100% !important;
	height: auto !important;
}
#ajankohtaista.open .button.openable,
#ajankohtaista .button.facebook{
	display: none;
}
#ajankohtaista.open .button.facebook{
	display: block;
}
#ajankohtaista .facebook-pvm{
	font-weight: bold;
}

.morecontent span {
	display: none;
}

p.button-clear{
	display: table;
	margin: 2em auto;
	text-align: center;
}
#ajankohtaista a.button{
	display: table;
	margin: 0 auto;
}
#ajankohtaista a.button span,
#asiakkaitamme a.button span{
	background: #000000;
	color: #FFFFFF;
	text-align: center;
	width: auto;
	padding: 0 0.6em;
}
#ajankohtaista a.button:hover span,
#asiakkaitamme a.button:hover span{
	background-color: #ffcc00;
	color: #000000;
}

#asiakkaitamme{
	text-align: center;
	padding-bottom: 2em;
}
#asiakkaitamme .asiakkaitamme-text{
	padding: 0 4em;
	margin: 0 0 2.5em 0;
}
#asiakkaitamme p.button-clear{
	margin-top:	-1em;
	position: relative;
	z-index: 50;
}

#logot,
#logot > div{
	width: 96%;
	height: 7.5em !important;
	margin: 0 auto;
}
#logot{
	display: block;
	overflow: hidden;
}
#logot > div{
	display: table !important;
	background: #FFFFFF !important;
	width: 100% !important;
}
#logot .table-row span{
	display: table-cell;
	box-sizing: border-box;
	padding: 0.250em 0.750em;
	position: relative;
}
#logot .table-row span span{
	display: block;
	width: 100%;
	height: auto;
	padding-bottom: 26%;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: contain;
}
#nav{
	display: table;
	width: auto;
	margin: 2em auto;
}
#nav a{
	display: block;
	float: left;
	text-decoration: none;
	width: 13px;
	height: 13px;
	border-radius: 100%;
	background: #000000;
	margin: 0 0.16em;
}
#nav a.activeSlide{
	background: #ffcc00;
}

#place-asiakaslista{
	position: relative;
}
#place-asiakaslista .overlay{
	width: 100%;
	height: 5em;
	background: yellow;
	position: absolute;
	bottom: 4em;
	background: -moz-linear-gradient(top,  rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
	background: -webkit-linear-gradient(top,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%);
	background: linear-gradient(to bottom,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#ffffff',GradientType=0 );
	pointer-events: none;
}
#asiakaslista{
	width: 100%;
	height: 20em;
	overflow: hidden;

	-webkit-column-count: 3;
    -moz-column-count: 3;
    column-count: 3;

    -webkit-column-gap: 1em;
    -moz-column-gap: 1em;
    column-gap: 1em;
}
#asiakaslista p{
	margin: 0;
}

#place-asiakaslista.open #asiakaslista{
	height: auto;
}
#place-asiakaslista.open .overlay{
	display: none;
}
#place-asiakaslista.open .button-clear {
	margin-top: 1em;
}

#yritys h1{
	text-align: center;
	color: #FFFFFF;
}
#yritys{
	color: #FFFFFF;
}
#yritys .table .table-cell.suomen-vahvimmat {
	background: url(https://www.tyop.fi/files/2016/sisaltokuvat/suomen_vahvimmat_tyopaikka_oy.jpg) left top no-repeat;
	width: 11em;
	background-size: contain;
}
#yritys .table .table-cell.teksti {
	padding-left: 1em;
}
#yritys .table .table-cell.map{
	width: 10.7em;
}
#map{
	width: 100%;
	height: 17.5em;
}
#yritys .table .table-cell.map img,
#yritys .table .table-cell.map .map-img{
	position: relative;
	top: -2.7em;
	width: 9.350em !important;
	height: 20.050em !important;
}
#yritys .table .table-cell.map .map-img{
	background: url(../../images/2016/bg_map.svg) center center no-repeat;
}

#yhteystiedot{
	text-align: center;
}
#yhteystiedot .table-cell{
	width: 33.3%;
	text-align: left;
	padding: 1em 1em 0 1em;
}
#yhteystiedot .table-cell p{
	margin: 0.6em 0 0 0;
}
#yhteystiedot .table .table-cell:first-child{
	padding-left: 0;
}
#yhteystiedot p.submit{
	margin-top: 0.1em;
}

form input[type=text],
form textarea,
form input[type=submit]{
	width: 100%;
	height: auto;
	line-height: 1.6em;
	background: none;
	padding: 0.9em 0.8em;
	box-sizing: border-box;
	border: 0;
	font-family: "fatfrank", "Fatfrank";
	color: #000000;
	font-size: 0.74em;
	background: #f1f1f1;
	-webkit-appearance: none;
	border-radius: 0;
}
form textarea{
	height: 11.8em;
	resize: none;
	margin: 0;
}
form input[type=text]:hover,
form textarea:hover,
form input[type=text]:focus,
form textarea:focus{
	background: #fbfbfb;
}
form input.error,
form textarea.error{
	background: #ffc6c6;
}

::-webkit-input-placeholder {
    color:    #000000;
    text-transform: uppercase;
}
:-moz-placeholder {
   color:    #900000009;
   opacity:  1;
   text-transform: uppercase;
}
::-moz-placeholder {
   color:    #000000;
   opacity:  1;
   text-transform: uppercase;
}
:-ms-input-placeholder {
   color:    #000000;
   text-transform: uppercase;
}

form input[type=submit]{
	text-transform: uppercase;
	font-size: 1em;
	padding: 0.5em 0;
	background: #3e3e3e;
	color: #FFFFFF;
	cursor: pointer;
}
form input[type=submit]:hover{
	background: #ffcc00;
	color: #000000;
}

.corner-border{
    display: table;
    width: 100%;
    height: 12em;
    position: relative;
    padding: 0 1em;
    box-sizing: border-box;
    text-align: center;
    margin: 0.7em 0;
}
.corner-border:before,
.corner-border>:first-child:before{
    position: absolute;
    width: 2.4em;
    height: 2.4em;
    border-color: #000000;
    border-style: solid;
    content: ' ';
}
.corner-border:before {
    top: 0;
    left: 0;
    border-width: 3px 0 0 3px;
}
.corner-border>:first-child:before {
    bottom: 0;
    right: 0;
    border-width: 0 3px 3px 0;
}
.corner-border .border-text{
	display: table-cell;
	vertical-align: middle;
	font-size: 0.8em;
    line-height: 1.5em;
}
#yhteystiedot .corner-border .border-text p{
	margin: 1.7em 0;
}
.corner-border a{
	text-decoration: none;
}

#posted{
	display: none;
}

@media only screen and (max-width: 1280px) {
    #video,
    #video iframe{
        width: 100%;
        height: 30em;
        padding-left: 0px !important;
        padding-right: 0px !important;
        display: table;
        overflow: hidden;
    }
    #video{
    	overflow: hidden;
		/*height: calc(30em - 1em);*/
		height: 28em;
		display: block;
    }
    #video iframe{
		position: relative;
		top: -1.2em;
    }
}

@media only screen and (max-width: 1014px) {
    .element-center {
        width: 100%;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    #place-stamp {
    	right: 1em;
    }
}
@media only screen and (max-width: 750px) {
	#palvelumme,
	#ajankohtaista,
	#asiakkaitamme,
	#yritys,
	#yhteystiedot{
		font-size: 1.2em;
		line-height: 1.6em;
		text-align: center;
	}
	#keskiarvo {
		font-size: 1.4em;
	}
	#ajankohtaista .table .table-cell:last-child {
		display: table-header-group;
	}
	#ajankohtaista .table-cell img{
		margin: 0 auto;
		display: table;
	}
	#yritys .table .table-cell.map img {
		top: -1em;
		width: 8.434em !important;
		height: 18em !important;
	}
	#yhteystiedot .table-cell {
		padding: 1em 0.5em 0 0.5em;
	}
	form{
		font-size: 1.2em;
	}
}
@media only screen and (max-width: 650px) {
	#yhteystiedot .table-cell {
		display: table-row;
	}
	#yhteystiedot .corner-border{
		margin: 1.5em 0;
	}
	.corner-border .border-text{
		font-size: 1.1em;
	}
}
@media only screen and (max-width: 600px) {
	body{
		padding-top: 14.1em;
	}
	.etusivu-child {
		display: table;
		margin: 0 auto;
		display: block;
		padding-bottom: 1em;
	}
	.etusivu-child.logo {
    	width: 50%;
    	margin-top: 1em;
	}
	#menu li a {
		font-size: 1.4em;
	}
	.etusivu-child.facebook{
		float: right;
		height: 0px;
	}
	.etusivu-child.facebook a {
		position: absolute;
		top: 0.351em;
		width: 3em;
		height: 3em;
		right: 0.877em;
	}
	#video iframe{
		height: 30em;
	}
	#palvelumme,
	#ajankohtaista,
	#asiakkaitamme,
	#yritys,
	#yhteystiedot{
		font-size: 1.4em;
	}
	#palvelumme a.button {
		float: none;
		margin: 0;
	}
	#keskiarvo {
		font-size: 2em;
	}
	#asiakaslista{
		-webkit-column-count: 2;
		-moz-column-count: 2;
		column-count: 2;
		-webkit-column-gap: 1em;
		-moz-column-gap: 1em;
		column-gap: 1em;
	}
  #yritys .table .table-cell.map .map-img{
		top: -1em;
	}

}
@media only screen and (max-width: 450px) {
	body{
		padding-top: 12.6em;
	}
	.etusivu-child.logo {
		margin-top: 3em;
		margin-bottom: 3em;
		width: 100%;
		padding-left: 10px;
		padding-right: 10px;
		box-sizing: border-box;
	}
	#logo {
    	width: 62%;
    	float: left;
    	height: 7.9em;
	}
	#etusivu{
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
	#open-menu{
		background: #000000 url(../../images/2016/icon_open_menu.png) center center no-repeat;
		width: 7em;
		height: 7em;
		float: right;
		border-radius: 0.5em;
		cursor: pointer;
		background-size: 67% auto;
	}
	#menu{
		font-size: 1.5em;
	}
	.etusivu-child.menu,
	#menu,
	#menu li{
		width: 100%;
		float: none;
		padding: 0;
		margin: 0;
	}
	#etusivu .etusivu-child.menu,
	#etusivu .etusivu-child.facebook{
		display: none;
	}
	#etusivu.open .etusivu-child.menu,
	#etusivu.open .etusivu-child.facebook{
		display: block;
	}
	#menu li a {
		background: #000000;
		text-align: center;
		width: 100%;
		color: #FFFFFF;
		padding: 1em 0 0.8em 0;
		border: 0;
		line-height: 1em;
	}
	#menu li.current a,
	#menu li a:hover{
		background: #FFFFFF;
		color: #000000;
	}
	.etusivu-child.facebook {
		height: auto;
		padding: 1em 0 1em 0;
		float: none;
		background: #000000;
		width: 100%;
	}
	.etusivu-child.facebook a {
		top: 0;
		margin: 0 auto;
		right: 0;
		position: relative;
		width: 4em;
		height: 4em;
	}

	a.bg.call{
		background: #000000;
		color: #FFFFFF;
		text-decoration: none;
		font-size: 5em;
		font-family: "fatfrank", "Fatfrank";
		text-align: center;
		line-height: 2.2em;
		display: block;
	}
	a.bg.call span{
		background: red;
		padding: 0 0 0 1em;
		background: url(../../images/2016/icon_call_white.png) left center no-repeat;
		background-size: auto 72%;
	}

	#palvelumme,
	#ajankohtaista,
	#asiakkaitamme,
	#yritys,
	#yhteystiedot{
		font-size: 2em;
	}
	h1 {
		font-size: 1.8em;
	}
	#place-stamp{
		top: -8em;
		right: 0px;
	}
	#asiakaslista{
		-webkit-column-count: 1;
		-moz-column-count: 1;
		column-count: 1;
		-webkit-column-gap: 1em;
		-moz-column-gap: 1em;
		column-gap: 1em;
	}
	#yritys .table .table-cell.suomen-vahvimmat {
		display: table-footer-group;
		background-position: top center;
	}
	#yritys .table .table-cell.suomen-vahvimmat div {
		width: 100%;
		height: 17em;
	}
	#yritys .table .table-cell.teksti {
		padding-left: 0;
		display: table-row-group;
	}
	#yritys .table .table-cell.map {
		display: table-header-group;
	}
	#map{
		margin: 0 auto;
		display: table;
		width: auto;
	}
	#yritys .table .table-cell.map img{
		top: 0;
	}
}
@media only screen and (max-width: 320px) {
	body{
		padding-top: 0;
	}
	.bg.etusivu{
		position: relative;
	}
}