/*
Theme Name:         Turun Messukeskus
Theme URI:          http://roots.io/
Description:        Roots is a WordPress starter theme based on HTML5 Boilerplate & Bootstrap. <a href="https://github.com/roots/roots/contributors">Contribute on GitHub</a>
Version:            6.5.1
Author:             Ben Word
Author URI:         http://benword.com/

License:            MIT License
License URI:        http://opensource.org/licenses/MIT
*/
#etusivu-ingres p {font-weight: normal;}
#sivuvalikko li.current_page_item a,
#sivuvalikko li.active a { background-color: #0e648a; }
.dcwss.dc-feed .stream li {width: 226px; float: left;}
.gallery-icon a {overflow:  hidden; }
img.mfp-img { max-width: 100%; height:auto;}
.mfp-image-holder .mfp-content {max-width: 80%;}
@media screen and (max-width: 560px) {
	.mfp-bottom-bar {margin-top: 0px !important; }
}
.zmdi-chevron-left,
.zmdi-chevron-right { z-index:9999; }
label {display: block;}
.lippukauppa {margin: 30px auto; border-left: 3px dotted #fff; }
.lippukauppa img {margin: 0px 20%;}
.ostokehoite {color: #fff !important; font-size: 18px; display: block; margin-top: 40px; text-align: center; font-weight: bold;}
.ubermenu-item.ala-nayta {display: none;}

@media (max-width: 1151px) { .lippukauppa img.valkoinen {display: none; }  .ostokehoite {color: #009ee2 !important; } }
@media (min-width: 1150px) {.lippukauppa img.sininen {display: none;} }
.shiftnav.shiftnav-skin-light ul.shiftnav-menu li.menu-item > .shiftnav-target {font-size: 16px !important; font-weight: bold !important; }
.shiftnav-sub-shift-active .shiftnav-inner > .lippukauppa { display: none;}
.shiftnav-retract {}
#shiftnav-main {overflow-y: auto;}
/*.auki .logonPaikka { display: block; float: left;}*/
.shiftnav-target-li ul  a.shiftnav-target {
    display: block;
    padding: 6px 25px;
    line-height: 1.2em;
    text-decoration: none;
    position: relative;
    cursor: pointer;
    -webkit-transition: .2s all ease;
    -moz-transition: .2s all ease;
    -ms-transition: .2s all ease;
    -o-transition: .2s all ease;
    transition: .2s all ease;
}
.dcwss.dc-feed .stream li {width: 222px !important; }
.lomake {
    box-sizing: border-box;
    /*display: block;*/
    float: left;
    width: 100%;
    padding: 35px;
    height: auto;
    background-color: #ffffff;
}
#ubermenu-main-3-sticky-wrapper.ubermenu-sticky-wrapper {min-height: 0px !important;}
ul.pager {list-style: none; margin-left: 0px; padding-left: 0px;}
li.previous a,
li.next a,
a.button.blue,
.wpcf7-submit,
input[type="submit"].blue.button {
    float: left;
    width: auto;
    max-width: calc(100% - 32px);
    display: block;
    margin: 20px 10px 20px auto;
    padding: 20px 65px;
    color: #ffffff;
    text-transform: uppercase;
    background-color: #009ee2;
    min-width: 30px;
    font-size: 16px;
    font-weight: bold;
    font-family: CoreSansDS55Bold, sans-serif;
    line-height: 1em;
	border: none;
}
.form-group p {margin: 0 0 10px 0;}
li.previous a:hover,
li.next a:hover { text-decoration: none; }
body.views-template-ilmoittaudu-nytteilleasettajaksi #sisaltoKeskiPalsta {
    top: -180px;
}

@media (max-width: 767px) {
/*	h1 {font-size: 32px;}*/
	.valkoinenTausta > p:first-of-type, p.ingressi, .ingressi {font-size: 16px;}
}
@media (max-width: 992px) {
    body.views-template-ilmoittaudu-nytteilleasettajaksi #sisaltoKeskiPalsta {
        top: 0;
    }
}
.fa {margin-right: 10px;}
span.wpcf7-list-item {line-height: 1em;}
.addthis_sharing_toolbox {float: right;}
#sivuvalikko li a.green, .single-asettajille ul#sivuvalikko > div li:last-of-type a {background-color: #40a435;}
.bg-info {padding: 20px; margin-bottom: 30px;}
ul.error {list-style: none; padding: 10px;}
ul.error li {font-size: 16px; font-weight: bold;}
.search-field  {width: 100%;}
button.search-submit {
    width: auto;
    max-width: calc(100% - 32px);
    display: block;
    margin: 20px 10px 20px auto;
    padding: 20px 65px;
    color: #ffffff;
    text-transform: uppercase;
    background-color: #009ee2;
    min-width: 30px;
    font-size: 16px;
    font-weight: bold;
    font-family: CoreSansDS55Bold, sans-serif;
    line-height: 1em;
	border: none;
}

.kortinAvaajaMedia {
    display: table-cell;
    float: right;
	text-align: left;
	vertical-align: top;
	width: 60px;
	line-height: 2em;
    cursor: pointer;
    font-size: 0.5em;
    background-size: 30px auto;
    background-position: right 3px;
    background-repeat: no-repeat;
    background-image: url("http://www.turunmessukeskus.fi/assets/kuvat/ikonit-yms/korttiAuki.png");
}
html[lang=sv-SE] .kortinAvaajaMedia {width: 75px;}
html[lang=en-US] .kortinAvaajaMedia {width: 65px;}
.kortinAvaajaMedia::before {content: "avaa";}
html[lang=sv-SE] .kortinAvaajaMedia::before {content: "öppna";}
html[lang=en-US] .kortinAvaajaMedia::before {content: "open";}
.kortinAvaajaMedia.auki { background-image: url("http://www.turunmessukeskus.fi/assets/kuvat/ikonit-yms/korttiKiinni.png") }
.kortinAvaajaMedia.auki::before {content: "sulje";}
html[lang=sv-SE] .kortinAvaajaMedia.auki::before {content: "avsluta";}
html[lang=en-US] .kortinAvaajaMedia.auki::before {content: "close";}
 a.hide-text span.ubermenu-target-text {display: none !important;}
 body.views-template-yhteystiedot #sisaltoKeskiPalsta {margin-top: -180px; top:0px !important;}
 @media (max-width: 992px) {
    body.views-template-yhteystiedot #sisaltoKeskiPalsta {
        margin-top: 0;
    }
}
.medialle h3 {font-size: 18px;}
@media screen and (max-width:1150px) {
	.messut-ja-tapahtumat h1 {margin-top: 4%;}
}
@media screen and (max-width:968px) {
.tapahtuma .sininenLinkkiNappi, .previous a, .next a {
	font-size: 12px !important;
	padding: 0.8em !important;
	max-width: 45% !important;
	clear: none !important;
	margin-left: 1% !important;
	margin-right: 1% !important;
	}
	.single-ohjelma #sisaltoKeskiPalsta { width: 99%;}
}
@media screen and (max-width: 400px) {
	.tapahtuma .sininenLinkkiNappi {
		clear: both;
		max-width: 100% !important;
	}
	.medialle h3 {font-size: 14px;}
	.kortinAvaajaMedia { background-size: 20px auto;
    background-position: right 1px; width: 40px;}
}
@media screen and (max-width:600px) {
	.yhteys-otsikko {position: absolute; top: -40px;}
	.yhteys {max-width: 45%; margin-right: 10px;}
	.single-ohjelma .tapahtumakortti-teksti h3 {font-size: 0.5em;}
	.single-ohjelma .tapahtuman-pvm {font-size: 0.6em;}
	.aikaPaikkaOtsikko .otsikko {font-size: 1em; display: block;}
	.avattavaKortti {position: relative;}
	.kortinAvaaja {position: absolute; right: 2%; width: 78px; top: 10px; background-size: 20px auto; font-size: 0.8em; background-position: right 2px;}
	.aikaJaPaikka {font-size: 0.8em; width: calc(100% - 120px); display: block;}
}
@media screen and (max-width: 1400px) and (min-width: 1100px) {
	header .container { width: 100%; }
	}
.page-id-38 .valkoinenTausta > p:first-of-type {
	font-weight: normal;
	font-size: 16px;
	font-family: CoreSansDS35Regular,sans-serif;
	text-transform:none;
}
.padded { padding-bottom: 10px;}
.postid-78 #nostoLinkit {margin-bottom: 10px;}

/*
.post-785 .kortinAvaaja::before {
    content: 'more info';
}
.post-785 .avattavaKortti.auki .kortinAvaaja::before {
    content: 'close';
}
*/

.valkoinenTausta .sisaNostoKortti.linkilla {
    width: calc(48% - 15px);
    margin: 15px 15px 0px 0px;
	position: relative;
}
.valkoinenTausta .sisaNostoKortti.linkilla a {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 999;
}

@media screen and (max-width: 600px) {
.valkoinenTaustaArtikkeli h1 {
	margin-top: 20px;
	}
.valkoinenTausta .sisaNostoKortti.linkilla {
    width: 100%;
    margin: 15px 0px 0px 0px;
	position: relative;
	}
}
.s-posti { font-size: 0.8em;}
/*#hakuJaJarjestys {display:none;}*/
/*@media print {
	.kortinTekstiSisalto { max-height: 10000px; }
}*/
/*html[lang=sv] .lomake, html[lang=en] .lomake { display: none;}*/

.moreMargins {margin-top: 3rem;}

.views-template-perussivu h2, .views-template-perussivu h3 {margin: 1.2em 0 0.4em}
#gallery-2 {clear: both; margin-top: 2em;}

.views-template-perussivu h5 {color: #000; font-size: 16px; font-weight: 600; margin: 1.2em 0 0.4em;}

.postid-25400 #nostoLinkit {display: none;}
li.blue a {background-color: #0ea3e4 !important;}
.postid-25400 header.banner.navbar #lang_sel_list, .postid-5768 header.banner.navbar #lang_sel_list {display: none;}

#mp-widget {
	margin: 3rem 0;
}

.ubermenu-skin-clean-white .ubermenu-submenu, .ubermenu-skin-clean-white .ubermenu-submenu .ubermenu-target {
    color: #fff;
}
.form-group.noPadding {
	padding-left: 0;
}


.evasteilmoitus {

	position: fixed;
	bottom: 0;
	left: 0;
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	justify-content: flex-start;
	z-index: 99999;
	width: 100%;
	height: auto;
	padding: 2em;
	opacity: 0;
	pointer-events: none;
	transition: 0.4s ease all;
	background: #fff;
	box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.1);
	transform: translateY(100%);
}

.evasteilmoitus.show_evasteilmoitus {

	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.evasteilmoitus p {

	margin-right: auto;
}

.evasteilmoitus a, .evasteilmoitus a:hover {

	color: #fff;
}

.evasteilmoitus button.sininenLinkkiNappi {

	padding: 0.5em 1em;
	border: none;
	margin: 0;
}

.evasteilmoitus button.sininenLinkkiNappi.vihrea {

	background: #40a435;
	margin-right: 1em;
	margin-left: 1em;
}

body.evaste {

	padding-bottom: 200px;
}

@media screen and (max-width: 767px) {

	.evasteilmoitus {

		flex-flow: column nowrap;
	}

	.evasteilmoitus button.sininenLinkkiNappi {

		min-width: 140px;
	}

	.evasteilmoitus button.sininenLinkkiNappi.vihrea {

		margin: 0 0 1em 0;
	}
}

/* Messuposti */

form.lianamailer button {

	width: auto;
	max-width: calc(100% - 32px);
	display: block;
	margin: 4rem 0;
	padding: 20px 65px;
	color: #ffffff;
	text-transform: uppercase;
	background-color: #009ee2;
	min-width: 30px;
	font-size: 16px;
	font-weight: bold;
	font-family: CoreSansDS55Bold, sans-serif;
	line-height: 1em;
	border: none;
}

.lianamailer-formfield-properties {

	margin-bottom: 20px;
}

.lianamailer-formfield-properties p {

	margin: 0;
}

.lianamailer-formfield-properties input {

	width: 100%;
	max-width: 248px;
}

.lianamailer-formfield-lists {

	display: flex;
	align-items: center;
	justify-content: flex-start;
	font-size: 16px;
}

.lianamailer-formfield-lists p {

	margin: 0 0.5rem 0 0;
}

.lianamailer-success {

	margin: 4rem 0;
	font-size: 32px;
	color: #0ea3e4;
}
