@-ms-viewport{ width: device-width; }
@-o-viewport{ width: device-width; }
@-moz-viewport{ width: device-width; }
@-webkit-viewport{ width: device-width; }
@viewport{ width: device-width; }

body{
	background: #e47712;
	font: 16px/21px "Trebuchet MS", Helvetica, sans-serif;
	color: #747474;
}

div.body{
	background: #ff913c url(../images/sitebg.png) top left repeat;
}

h1{
	font-weight: normal;
	font-size: 35px;
	line-height: 40px;
	color: #ff913c;
	text-align: center;
}

h2{
	font-weight: normal;
	font-size: 30px;
	line-height: 40px;
	color: #ff913c;
}

h3{
	font-weight: normal;
	font-size: 24px;
	line-height: 30px;
	color: #ff913c;
}

a { color: #ff913c; text-decoration: none; }

.mod-list li.active > a,
a:not([class]) {
    text-decoration: none;
}
a:hover, a:focus{ color: #e47712; }

h1, h2, h3{ margin: 0 0 15px 0; }

.page-header{
	margin: 0;
	padding: 0;
	border: none;
}	

div.pagecontainer{
	background: #fff;
}

div.headercontainer{
	position: relative;
}

div.headercontainer .header{
	padding: 15px 0;
	position: relative;
}

div.headercontainer::after{
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	margin: 1px 0 0 0;
	height: 1px;
	background: #ff913c;
	z-index: 1001;
}

.bottomheaderleft,
.bottomheaderleft a{
	color: #fff;
}

div.bottomheader,
div.topheader{
	display: flex;
	justify-content: flex-start;
	align-items: center;
	flex-wrap: wrap;
	padding: 10px 0;
}

div.bottomheader{

}

div.bottomheader > div,
div.topheader > div{
	flex-grow: 1;
	flex-shrink: 1;
}

div.bottomheader > .bottomheaderright,
div.topheader > .languagebox{
	text-align: right;
}
div.mod-languages img {
	width: 32px;
}
.custom.matkatoimistot p{
	margin: 0;
}

.custom.matkatoimistot a{
	display: inline-block;
	padding: 8px 10px;
	font-weight: 700;
	color: #ff913c;
	background: #fff;
	border-radius: 3px;
}

.custom.matkatoimistot a:hover,
.custom.matkatoimistot a:focus{
	color: #e47712;
	background: #f9f9f9;
	text-decoration: none;
}

div.topmenu{
	background: #e47712;
	box-shadow: inset 0 5px 5px rgba(0,0,0,.15);
	overflow: hidden;
}

.topmenu .nav.mod-menu{
	display: block;
	margin: 0;
	padding: 0;
}

.topmenu .nav.mod-menu li{
	display: inline-block;
	padding: 0;
}

.topmenu .nav.mod-menu li a{
	display: block;
	padding: 20px 15px;
	color: #fff;
	font-size: 112.5%;
	transition: background .25s ease-in-out;
	will-change: background;
	text-decoration: none;
}

.topmenu .nav.mod-menu li a:hover,
.topmenu .nav.mod-menu li a:focus,
.topmenu .nav.mod-menu li.active a{
	background: #ff913c;
	background: -moz-linear-gradient(top, #ff913c 0%, #e47712 100%);
	background: -webkit-linear-gradient(top, #ff913c 0%,#e47712 100%); 
	background: linear-gradient(to bottom, #ff913c 0%,#e47712 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff913c', endColorstr='#e47712',GradientType=0 );
	box-shadow: 0 0 10px rgba(0,0,0,.15);
}

.topmenu .nav.mod-menu li.active a{
	font-weight: 700;
}

.slideshow .slides li{
/*	min-height: 500px; */
	background-color: #747474;
	background-size: cover !important;;
	background-position: center center !important;
}

.slideshow .flex-direction-nav a.flex-prev{
	background: url(../images/slide-left.png) center center no-repeat;
	width: 57px;
	height: 91px;
}

.slideshow .flex-direction-nav a.flex-next{
	background: url(../images/slide-right.png) center center no-repeat;
	width: 57px;
	height: 91px;
}

div.headermodule{
	position: relative;
	padding: 30px 0;
	background: #474747 url(../images/sitegreybg.png) center center repeat;
	color: #fff;
}

div.headermodule::before{
	content: '';
	position: absolute;
	top: -2px;
	margin: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: #474747;
}

div.headermodule::after{
	content: '';
	position: absolute;
	top: 100%;
	margin: 1px 0 0 0;
	left: 0;
	right: 0;
	height: 1px;
	background: #474747;
}

.custom.haeopas,
.custom.haeopas h3,
.custom.haeopas a{
	color: #fff;
}

.custom.haeopas h3{
	margin: 0 0 8px 0;
}

.custom.haeopas table tbody tr{
	display: flex;
	flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
}

.custom.haeopas table tbody td{
	width: 60%;
}

.custom.haeopas table tbody td p:last-child{
	margin-bottom: 0;
}

.custom.haeopas table tbody td:nth-child(even){
	text-align: right;
	width: 30%;
}

.orange-btn{
	display: inline-block;
	padding: 8px 10px;
	font-weight: 700;
	color: #fff;
	background: #ff913c;
	border-radius: 3px;
	text-transform: uppercase;
	border: none;
	height: 44px;
}

.orange-btn:hover,
.orange-btn:focus{
	background: #e47712;
	text-decoration: none;
	color: white;
}

div.realpage{
	position: relative;
	min-height: 350px;
	padding: 80px 0;
}

div.footercontainer{
	padding: 15px 0; 
	min-height: 100px;
	position: relative;
	color: white;
}
div.footercontainer a{
	color: white;
}

div.footercontainer::before{
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: -2px;
	height: 1px;
	background: #e47712;
}
.footer  {
	background: none;
}

div.copyright,
div.copy,
div.plan,
div.copyright a{
	color: #fff;
}

div.copyright{
	background: #e47712;
	box-shadow: inset 0 5px 5px rgba(0,0,0,.15);
	padding: 15px 0;
}

div.copyholder{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline; /*center; */
	vertical-align: top;
}

div.copyright div.copy,
div.copyright div.plan{
	font-size: 87.5% !important;
}

.leftcolumn .moduletable,
.rightcolumn .moduletable{
	margin: 0 0 30px 0;
}

ul.latestnews{
	padding: 0;
	margin: 0;
	list-style: none;
}

ul.latestnews li{
	margin: 0 0 8px 0;
}

ul.latestnews li a{
	color: #747474;
}

ul.latestnews li a:hover,
ul.latestnews li a:focus{
	color: #e47712;
}

.latestnews span.lndate{
	display: block;
	font-size: 13px;
	font-weight: bold;
	color: #e47712;
}

div.guiderow{
	padding: 10px 0;
	border-top: 1px solid #efefef;
	margin: 15px 0;
}

div.guiderow div.extrarow{
	padding-top: 10px;
}

div.guidecontact {
	padding-top: 20px;
	overflow: hidden;
}

div.guideproduct_img {
	margin-right: 10px;
	float: left;
}

div.guiderow div.extrarow .small,
div.guideproduct_desc,
a.descmore{
	display: block;
	margin-left: 110px;
}
a.descmore{
	display: none;
}
div.guiderow div.extrarow .small {
	display: inline-block;
	width: 70px;
}

div.guideproduct_desc{
	max-height: 149px;
	overflow-y: hidden;

	background:
		linear-gradient(white 30%, rgba(255,255,255,0)),
		linear-gradient(rgba(255,255,255,0), white 70%) 0 100%,
		
		radial-gradient(farthest-side at 50% 0, rgba(0,0,0,.2), rgba(0,0,0,0)),
		radial-gradient(farthest-side at 50% 100%, rgba(0,0,0,.2), rgba(0,0,0,0)) 0 100%;

	background-attachment: local, local, scroll, scroll;
	background-repeat: no-repeat;
	background-color: white;
	background-size: 100% 40px, 100% 40px, 100% 14px, 100% 14px;
}
div.guideproduct_desc.vis{
	max-height: inherit;
}

div.opassearch{
	padding: 0 0 10px 0;
	margin: 0 0 10px 0;
	border-bottom: 1px solid #747474;
}

div.opassearch form{ margin: 0; padding: 0; }

div.opassearch .chzn-container{ max-width: 100% !important; }

div.opastukset_layout a{
	position: relative;
	display: inline-block;
}

div.opastukset_layout a span{
	position: absolute;
	bottom: 0px;
	left: 0px;
	background: #ff913c;
	color: #fff;
	padding: 4px 8px;
	display: inline-block;
	-webkit-transition: background .3s ease-in-out;
	-moz-transition: background .3s ease-in-out;
	-o-transition: abackgroundll .3s ease-in-out;
	transition: background .3s ease-in-out;
	-webkit-border-radius: 0px 0px 0px 2px;
	-moz-border-radius: 0px 0px 0px 2px;
	-o-border-radius: 0px 0px 0px 2px;
	border-radius: 0px 0px 0px 2px;
}

div.opastukset_layout .row-fluid .row-fluid .span6{
	width: 48.336170208%;
	margin-left: 3.127659574%;
}

div.opastukset_layout div.layout_row div.layout_row{
	padding-bottom: 3.327659574%;
}

div.opastukset_layout .row-fluid .row-fluid .span6:first-child{
	margin-left: 0;
}	

div.opastukset_layout a img{
	-webkit-border-radius: 2px 2px 2px 2px;
	-moz-border-radius: 2px 2px 2px 2px;
	-o-border-radius: 2px 2px 2px 2px;
	border-radius: 2px 2px 2px 2px;
}

div.opastukset_layout a:hover span,
div.opastukset_layout a:focus span{
	background: #e47712;
}

div.opastukset_layout div.layout_row{
	padding: 0 0 2.127659574% 0;
}

div.moduletable.greybox{
	padding: 5%;
	background: #f9f9f9;
	-webkit-border-radius: 2px 2px 2px 2px;
	-moz-border-radius: 2px 2px 2px 2px;
	-o-border-radius: 2px 2px 2px 2px;
	border-radius: 2px 2px 2px 2px;
}

div.opasboxsearch_form div.control-group{
	margin-bottom: 25px; 
}

form#opasboxsearch{ margin: 0; padding: 0; }

div.opasboxsearch_form .chzn-container{
	width: 100% !important;
	max-width: 100% !important;
}

div.kohdebox{
	overflow: hidden;
}

div.kohdebox a .mask{
   	position: absolute;
   	cursor: pointer;
	top: 25%;
	left: 35%;
   	border-radius: 100px;
   	border-width: 100px;
   	display: inline-block;
   	height: 150px;
   	width: 150px;
   	box-sizing: border-box;
   	-moz-opacity: 0;
	-webkit-opacity: 0;
	opacity: 0;
    filter: alpha(opacity=0);
   	border: 0px solid rgba(0,0,0,0.5);
   	visibility: hidden;
   	transform: scale(4);
   	transition: all 0.3s ease-in-out;
}

div.kohdebox.kohde-102 a .mask,
div.kohdebox.kohde-103 a .mask,
div.kohdebox.kohde-105 a .mask,
div.kohdebox.kohde-106 a .mask{
	left: 15%;
	top: 25%;
}

div.kohdebox.kohde-103 a .mask{
	top: 35%;
}

div.kohdebox a:hover .mask,
div.kohdebox a:focus .mask{
   	-moz-opacity: 1;
	-webkit-opacity: 1;
	opacity: 1;
    filter: alpha(opacity=100);
   	border: 100px solid rgba(0,0,0,0.5);
   	visibility: visible;
}

.leftcolumn .nav{
	margin: 0;
	padding: 0;
}

.leftcolumn .nav li a{
	color: #e47712;
	padding: 5px 3px;
	display: block;
}	

.leftcolumn .nav li.active > a{
	font-weight: bold;
}	

.leftcolumn .nav > li+li:before{
	content: '';
	display: block;
	height: 1px;
	width: 100%;
	background: rgba(255,255,255,1);
	border-top: 1px solid rgba(0,0,0,.1);
}

#topintra ul.menu li{
	width: 32%;
	text-align: left;
}
#topintra ul.menu li a{
	padding-top: 5px;
	padding-bottom: 5px;
}
.logobox p {
	color: white;
}
.logobox p a{
	color: white;
	text-decoration: underline;
}

.logobox p.last {
	margin: 0;
}
.logobox h1 {
	color: white;
	text-align: left;
	font-size: 53px;
	transform: scale(.6, 1);
	transform-origin: left;
}
.logobox a:hover {
	text-decoration: none;
}

.pagefootermodules{
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	padding: 20px 0;
	position: relative;
}

.pagefootermodules::before{
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: -4px;
	height: 1px;
	border-top: 2px solid #e6e6e6;
	border-bottom: 1px solid #e6e6e6;
	display: block;
}

.pagefootermodules > div{
	padding: 20px;
	text-align: center;
	flex: 1 1 auto;
	width: auto;
}

.pagefootermodules h4{
	color: #ff913c;
	font-weight: 400;
}

.frontpagenews{
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
}

.frontpagenews .newsitem{
	flex: 0 0 30%;
	margin: 0 0 50px 0;
}

.frontpagenews .newsitem .newsimage{
	position: relative;
	height: 0;
	padding: 67% 0 0 0;
	background-color: #efefef;
	background-size: cover;
	background-position: center center;
	margin: 0 0 20px 0;
}

.frontpagenews .newsitem .newsimage a{
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: #fff;
	opacity: 0;
	transition: opacity .25s ease-in-out;
}

.frontpagenews .newsitem:hover .newsimage a,
.frontpagenews .newsitem:focus .newsimage a,
.frontpagenews .newsitem .newsimage a:hover,
.frontpagenews .newsitem .newsimage a:focus{
	opacity: .25;
}

.frontpagenews .newsheading h2{
	font-size: 125%;
	line-height: 133.3%;
}

.frontpagenews .newsheading h2 a{
	color: #747474;
}

.frontpagenews .newsheading h2 a:hover,
.frontpagenews .newsheading h2 a:focus{
	text-decoration: none;
}

.frontpagenews .newsreadmore{
	padding: 15px 0 0 0;
}

#sidebar ul.nav.mod-menu li ul{
	font-size: 100%;
	padding: 0px 0 5px 10px;
}

select#kohde,
select#nimi,
select#kieli,
select#location,
select#cert
{
	background: #ff913c;
	color: #fff;
	max-width: 100%;
}

.topmenu .moduletable.greybox{
	background: transparent;
}

.topmenu .moduletable.greybox .nav.mod-menu li a:hover,
.topmenu .moduletable.greybox .nav.mod-menu li a:focus,
.topmenu .moduletable.greybox .nav.mod-menu li.active a{
	background: transparent;
	box-shadow: none;
}

.topmenu .moduletable.greybox .nav.mod-menu > li{
	margin-bottom: 20px;
}

.topmenu .moduletable.greybox .nav.mod-menu li > a:hover,
.topmenu .moduletable.greybox .nav.mod-menu li > a:focus,
.topmenu .moduletable.greybox .nav.mod-menu li.active > a{
	text-shadow: 0 0 5px rgba(255,255,255,.75);
	text-decoration: none;
	opacity: .9;
}

.topmenu .moduletable.greybox{
	display: none;
}

.infobtn {
	display: inline-block;
	padding: 4px 12px;
	margin-bottom: 0;
	font-size: 13px;
	line-height: 18px;
	text-align: center;
	vertical-align: middle;
	background-color: green;
	color: white;
	border-radius: 4px;
}
.jviewport-height70 {
	height: 70vh;
}
.jviewport-height80 {
	height: 80vh;
}
.jviewport-height90 {
	height: 90vh;
}

.oodi td form,
.talvi td form,
.stadion td form {
	display: inline;
}

.moduletable.indexbox h3 {
	padding: 0 10px;
}
.moduletable.indexbox .custom {
	background: #f3f3f3;
	padding: 10px;
}

.label-green,.label-info {
	color: white;
	display: inline-block;
	padding: 2px 4px;
	border-radius: 3px;
	font-size: 11px;
	line-height: 1.2em;
}
.label-green {
	background: #27a554;
}
.small {
    font-size: 11px;
}

.left.item-image {
    margin: 0 20px 10px 0;
}

form {
    margin: 0 0 18px;
}
.btn-inverse {
	background: #363636;
}
.eb-event-date-container {
	padding: 2px;
}

.contentbottom .moduletable .btn,
.eb-taskbar .btn {
	--btn-color: white !important;
	color: white;
	background: #2754a5 !important;
	--btn-hover-bg: #3764b5 !important;
	backgroun: 
}

.eb-taskbar li:last-child .btn {
	background-color: #112855;
	color: white;
}

.guideproduct_img img {
	max-width: 100px;
}

#adminForm #first_name,
#adminForm #last_name {
	background: none;
	border: none !important;
}

@media (min-width: 979px) and (max-width: 1200px) {
	.topmenu ul.menu li+li{
		margin-left: 5px;
	}
	
	.navbar .nav > li > a{
		padding: 11px 8px;
	}
	
	.topmenu .nav.mod-menu li a{
		font-size: 112.5%;
		padding: 20px 10px;
	}
	
}

@media (min-width: 767px) and (max-width: 979px) {
	div.logobox.span4{
		width: 100%;
		text-align: center;
		margin: 0 0 25px 0;
	}
	
	div.menucontainer.span8{
		width: 100%;
		text-align: center;
		margin: 0;
	}
	
	.topmenu ul.menu {
		text-align: center;	
	}

	.pagefootermodules > div{
		width: 40%;
	}

	.topmenu .nav.mod-menu li a{
		font-size: 100%;
		padding: 20px 4px;
	}
}

@media (max-width: 767px){
	.topmenu .moduletable.greybox{
		display: block;
	}

	body{
		padding: 0;
	}

	.container{
		padding-left: 20px !important;
		padding-right: 20px !important;
	}

	.slideshow .slides li{
/*		min-height: 250px; */
	}

	.custom.haeopas table tbody td{
		width: 100% !important;
	}

	.custom.haeopas table tbody td:nth-child(even){
		text-align: center;
		padding-top: 25px;
	}

	.frontpagenews .newsitem{
		flex: 1 1 100%;
	}

	.frontpagenews .newsitem .newsimage{
		padding: 45% 0 0 0;
	}

	.topheader{
		text-align: center;
	}

	.topheader > div{
		width: 100% !important;
	}

	.topheader .languagebox{
		padding-top: 40px;
	}

	div.bottomheader > .bottomheaderright, 
	div.topheader > .languagebox{
		text-align: center !important;
		width: 100% !important;
	}

	div.headercontainer .header{
		padding-top: 75px;
	}

	div.topmenu{
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 20001;
		overflow-y: auto;
		display: flex;
		justify-content: center;
/*		align-items: center;*/
		flex-wrap: wrap;
		transition: transform .25s ease-in-out;
		transform: translateX(102%);
	}

	.mobilenav-active div.topmenu{
		transform: translateX(-0);
	}

	.menu-hamburger{
		box-sizing: border-box;
		display: block;
		width: 40px;
		height: 40px;
		top: 15px;
		right: 15px;
		border-radius: 50%;
		z-index: 20002;
		position: fixed;
		cursor: pointer;
		background: #ff913c;
		box-shadow: 2px 2px 5px rgba(0,0,0,.15);
	}
	
	.menu-hamburger:before,
	.menu-hamburger:after,
	.menu-hamburger span{
		background: #fff;
		content: '';
		display: block;
		width: 24px;
		height: 4px;
		position: absolute;
		left: 8px;
		top: 4px;
	}
	
	.menu-hamburger:before{
		top: 9px;
	}
	
	.menu-hamburger span{
		top: 17px;
		transform: translateY(0);
	}
	
	.menu-hamburger:after{
		top: 25px;
	}
	
	.menu-hamburger:before,
	.menu-hamburger:after,
	.menu-hamburger span{
		will-change: background, opacity;
		-webkit-transition: none 0.5s ease;
		transition: none 0.5s ease;
		-webkit-transition-property: transform, top, bottom, left, opacity, background;
		transition-property: transform, top, bottom, left, opacity, background;
	}
	
	.mobilenav-active .menu-hamburger:before,
	.mobilenav-active .menu-hamburger:after{
		top: 17px;	
	}
	
	.mobilenav-active .menu-hamburger span{
		transform: translateX(50px);
		opacity: 0;
		background: #fff;
	}
	
	.mobilenav-active .menu-hamburger:before{
		transform: rotate( 45deg );
		background: #fff;
	}
	
	.mobilenav-active .menu-hamburger:after{
		transform: rotate( -45deg );
		background: #fff;
	}

	div.topmenu > *{
		width: 100%;
	}

	.topmenu .nav.mod-menu{
		text-align: center;
	}

	.topmenu .nav.mod-menu li{
		display: block;
		text-align: center;
	}
	
	div.logobox.span5{
		width: 80%;	
	}
	
	.topmenu ul.menu{
		text-align: left !important;	
	}
		
	.topmenu ul.menu li{
		float: none;
		display: block;
		margin: 4px 2%;
	}
	
	.navbar .btn-navbar {
		position: absolute;
		margin: 0;
		right: 3%;
		top: 30px;
		background: #e47712;
	}
	
	.navbar .btn-navbar:hover,
	.navbar .btn-navbar:focus{
		background: #b46114;
	}
	
	.nav-collapse.collapse{
		margin-top: 25px;	
	}
	
	.leftcolumn:after{
		content: "";
		display: block;
		width: 90%;
		margin: 20px auto;
		height: 2px;
		border-top: 1px solid #efefef;
		border-bottom: 1px solid #efefef;
	}

	.leftmenuholder{
		display: none;
	}
	
	div.opastukset_layout img{
		display: none;	
	}
	
	div.opastukset_layout a{
		display: block;	
		margin: 5px 0;
	}
	
	div.opastukset_layout a span{
		position: relative;
		display: block;
		padding: 10px;
		
	}
	
	div.opastukset_layout div.layout_row,
	div.opastukset_layout div.layout_row div.layout_row, 
	div.opastukset_layout .row-fluid .row-fluid .span6{
		width: 100%;
		margin: 0;
		padding: 0;
	}
	
	.normalpage{ display: table; }
	.leftcolumn{ display: table-header-group; padding-top: 25px; }
	#content{ display: table-caption; }
	.rightcolumn{ display: table-footer-group; padding-top: 25px; }
    
    .normalpage{
        display: flex;
        width: 100%;
        flex-wrap: wrap;
    }
    
    .leftcolumn{ width: 100%; order: 2; padding-top: 25px; }
	#content{ width: 100%; order: 1;}
	.rightcolumn{ width: 100%; order: 3; padding-top: 25px; }

	#topintra ul.menu li{
		width: auto;
	}

	div.guiderow div.extrarow .small {
		margin-left: 0;
	}
}

dt.article-info-term {
	display: none;
}

#imageForm #f_url,
#imageForm label[for=f_url]
 {
	display: none;
}


body.modalbg {
	background: #fff;
	font-size: 13px;
}
body.modalbg.com_media #toolbar joomla-toolbar-button:last-of-type {
	display: none;
}
body.modalbg.com_media .media-breadcrumb,
body.modalbg.com_media .media-sidebar {
	display: none;
}
.userlist-category .custom h2 {
	font: 16px/21px "Trebuchet MS", Helvetica, sans-serif;
	color: #747474;
	font-weight: bold;
	margin: 15px 0 5px 0;
}
.orange {
	color: #ff913c;
}

#icagenda .ic-cat {
	display: none;
}
fieldset.bfBlock label {
	font-size: inherit;
}
#content .bfQuickMode section.bfElemWrap {
	padding-left: 0;
}
fieldset.bfBlock legend {
	border: 0;
}
#jform_profile_isshown-lbl {
	color: red;
}
#icagenda #ic-list-of-participants .tiers {
	height: 45px;
}
