
@import url('https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300');
@import url('https://fonts.googleapis.com/css?family=Sedgwick+Ave');

html,body { font-family: 'Open Sans Condensed', sans-serif;}

h1 {font-family: 'Open Sans Condensed', sans-serif;font-weight:bold;font-size:2.3125rem;}
h2, h3  {font-family: 'Open Sans Condensed', sans-serif;font-weight:bold;font-size:2rem;}

.full-width,.fullwidth{max-width:100%;}
.footer {max-width:70%;}
.roller {max-width:70%;}

.janistausta {background-color:#3d94fd;}
.valkoinentausta { background-color:#ffffff;}

.valikko {background-color:#fff;}

.content {/*)background-color:#f2f0f0;*/max-width:1700px;}
.nomargins {margin:0px!important;}
.nopaddings {padding:0px!important;}

.rajaus {border:1px solid #3d94fd;}
#firstline {margin:0px!important;}
.no-padding {padding:0px;}
.largeimage {width:100%;}

.com-content-article__body * {

	font:1.3rem!important;
}

a {
	color: #3d94fd;
}

a:hover {
	color:#112d55;
}

.hidden .page-header h1 {
	display:none;
}
a[href^="tel:"]:hover,
a[href^="mailto:"]:hover {
	text-decoration:underline;
}


.content-category .row {
	  margin: initial;
  max-width: initial;
  width: initial;


}
.content-category .row a{
  font-size:1.5rem!important;
}


.mybutton {
	background-color:#3d94fd;
	border: 2px solid rgb(61, 148, 253);
	
	color:#fff;
    display: block;
    border-style: solid;
    cursor: pointer;
    font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
    font-weight: normal;
    line-height: normal;
    margin: 0 0 1.25rem;
    text-decoration: none;
    text-align: center;
    padding-top: 0.3rem;
    padding-right: 0.6rem;
    padding-bottom: 0.3rem;
    padding-left: 0.6rem;
    font-size: 1.3rem;
    transition: background-color 300ms ease-out;

}

.ohje {font-size:1.1rem;}

.mybutton:hover,.mybutton:active,.mybutton:focus {
	background-color:#112d55;
} 

.image_area {
	margin-top: 0.9375rem;
	max-height:225px;
}

.image_area img{	width:auto;
	max-height:225px;
	width:auto;
	height:100%;
	}
	
img.sosical_icon {max-height:29px;}
p ,.item-content *,.columns,.column {	font-size:1.5rem;line-height:1.3; margin-bottom: 0.9rem;}

#janislogo {max-height:300px;margin:5px;}
.valkoinentausta { background-color:#ffffff;}
@font-face {
  font-family: "CortadoScript";
  font-style: normal;
  font-weight: normal;
  src: url("CortadoScript.ttf") format('truetype');
}


.top-bar .toggle-topbar.menu-icon a span::after {
    content: "";
    position: absolute;
    display: block;
    height: 0;
    top: 50%;
    margin-top: -8px;
    right: 15px;
    box-shadow: 0 0px 0 1px #3d94fd, 0 7px 0 1px #3d94fd, 0 14px 0 1px #3d94fd;
    width: 16px;
}


.firstpagecontent {margin:0px!important;}

.phonenumberfirstpagearea {/*padding-top:1%;*/height: 45px;
line-height: 1.6;margin-top: 2%;
}

.auto_alue {/*background: #3d94fd;*/padding:2px;}
h2.auton_nimi a {color:#112d55!important;font-size:0.8em!important;}

.fi-mobile {font-size:3em;color:#112d55;}
a.phonenumberfirstpage  {color:#112d55;line-height: 45px;font-size:3em;height: 45px;}
a.phonenumberfirstpage:hover {color:#3d94fd;text-decoration:underline;}

.firstpagecontent .onelineheight .row .columns,.firstpagecontent .onelineheight .row {padding:0px!important;margin:0px!important;}

	/* janis sininen */
	/*background-color:#3d94fd;*/
		/*color:#3d94fd;*/

.firstpagecontent li {padding:5px!important;}

.firstpagecontent li {
  transition: transform .2s;
  margin: 0 auto;
}


.firstpagecontent li:hover {
  -ms-transform: scale(0.9); /* IE 9 */
  -webkit-transform: scale(0.9); /* Safari 3-8 */
  transform: scale(0.9); 
}



.esite a,span.button:hover,.omabutton { color:#3d94fd!important;background-color:#f1f0f0;}
.esite a:hover,span.button:hover,.omabutton:hover { color:#112d55!important;text-decoration:none!important;}

span.button,.omabutton,.alert-omabutton {
	background: url('/templates/crf/img/button.png') no-repeat;
	background-color:#f1f0f0;
	background-size: 100% 100%;
  	color:#3d94fd;
  	font-weight:bold;
}


.omabutton {
	border:none;
	border-style: solid;
	border-width: 0px;
	cursor: pointer;
	font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
	line-height: normal;
	position: relative;
	text-decoration: none;
	text-align: center;
	padding-top: 1rem;
	padding-right: 2rem;
	padding-bottom: 1.0625rem;
	padding-left: 2rem;
	font-size: 1rem;

}

.alert-omabutton {

	font-size:1rem;
	border:none;
	border-style: solid;
	border-width: 0px;
	cursor: pointer;
	font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
	line-height: normal;
	position: relative;
	text-decoration: none;
	text-align: center;
	padding-top: 0.5rem;
	padding-right: 1rem;
	padding-bottom: 0.5rem;
	padding-left: 1rem;
	color:red;
}

#varaustiedot-kentta {display:none;}

nav,.top-bar, .top-bar-section li:not(.has-form) a:not(.button),.top-bar-section ul li,.top-bar-section li:not(.has-form) a:hover:not(.button){

	background-color:#ffffff;

	color:#112d55;
	font-size:1.2em;
	font-family: 'Open Sans Condensed', sans-serif;

	}


.top-bar-section .dropdown li:not(.has-form):not(.active) > a:not(.button),
.top-bar-section ul li:hover:not(.has-form) > a
 {
	color:#3d94fd;
	text-decoration:none;
	background-color:#ffffff;

}
.top-bar-section li:not(.has-form) a:hover:not(.button),
.top-bar-section li.active:not(.has-form) a:hover:not(.button),
.top-bar-section li:not(.has-form) a:hover:not(.button),
.top-bar-section li.active:not(.has-form) a:hover:not(.button),
.top-bar-section .dropdown li:hover:not(.has-form):not(.active) > a:not(.button) {
	text-decoration:underline;
	background-color:#ffffff;
	color:#3d94fd;
}

.top-bar-section li {
    background: #ffffff;

}

.top-bar-section .dropdown li.title h5 a, .top-bar-section .dropdown li.parent-link a {color:#112d55;}

/* Active */
.top-bar-section li.active:not(.has-form) a:not(.button) {
    background: transparent;
    color:#3d94fd;
    text-decoration:underline;
}

.top-bar .toggle-topbar.menu-icon a {color:#3d94fd;}

.top-bar.expanded .title-area {
    background: #112d55;
    color:#ffffff;
}



.custom > p {
    display:none;
}

.valikko {padding:0;margin-top:1%;margin-bottom:10px; }

img.upper_orbit_image {width:100%;max-height:600px;height:auto;}



.orbit-container,ul.orbit-content, ul.orbit-content li {height:auto;max-height:600px;background-color:#ffffff;}
 


.video-container {
	position:relative;
	padding-bottom:62.45%;
	/*padding-top:30px;*/
	height:0;
	overflow:hidden;
}

.video-container iframe, .video-container object, .video-container embed {
	position:absolute;
	top:0;
	left:0;
	width:100%;
	height:100%;
	max-height:400px;
}

.kartta {height:100%;max-height:400px;}

.onelineheight{height:100%;max-height:400px;}



  
.taustakuvat a,.taustakuvat p,.taustakuvat img {height:100%;max-height:400px;width:100%;margin:0px;padding:0px;}

.float-center {  
	display: flex;
	justify-content: center;
	align-items: center;
} 

.taustakuvat:first-child {
	margin:0px;padding:0px;
}

.taustakuvat:nth-child(2) {
margin:0px;padding:0px;

}
.taustakuvat:nth-child(3) {
margin:0px;padding:0px;
}

.taustakuvat:nth-child(4) {
margin:0px;padding:0px;

}

.taustakuvat:nth-child(5) {
margin:0px;padding:0px;

}

.taustakuvat:nth-child(6) {
padding:0px;

}

.hasTooltip {display:none;}


.breadcrumbs {
	margin-bottom: 5px;
	margin-left: 0;
	padding: 0;
	margin-top: 10px;
}

.breadcrumbs>*::before {
	content: "";
	display: block;
}

.breadcrumbs>li:nth-child(2):before {
	content: "";
}

.breadcrumbs  *, .breadcrumbs {
	color: #3d94fd;
	background-color: transparent !important;
	border: 0;
	font-size: 1.1rem;
	text-transform: capitalize;
	padding-bottom:2px;
	padding-top:2px;
}


.taustakuvat h4 {
	display:none;
}

.fbplugin {
	width: 640px;
  height: 300px;
  margin: 0 auto;
   text-align: center;
    display: table-cell;
	}

#floating_image_area {
	background: url('/templates/crf/img/button_offer.png') no-repeat;
	background-size: 100% 100%;
	padding:10px;
	position:absolute;z-index:9999999;left:50px;top:50px;max-width:320px;width:250px;height:150px;
}

#floating_image_content {position:absolute;max-width:210px;width:100%;}
#floating_image_content h4 {color:#3d94fd!important;font-family: 'Sedgwick Ave', cursive;width:100%;text-align:center;font-size: 1.67rem;}
#floating_image_content p {width:100%; text-align:center;font-family: 'Sedgwick Ave', cursive;color:#000000!important;font-size: 1.15em;}


.footer * {color:#000000;}

.footer .row:last-child img {max-height:50px;}

.footer .columns:first-child p strong {
	font-size:1.5rem;
}



.footer .columns:nth-child(2) p  {width:100%;text-align:center;}

.footer .columns:nth-child(2) p a {
/*	height:50px;	display: block;
	padding-top:8px;
	background: url('../img/button.png')  no-repeat center center;
	background-size: 190px 100%;
	*/
  	color:#3d94fd;
  	font-weight:bold;
 }

.footer .columns:nth-child(2) p a:hover {text-decoration:underline;}

.read_more p {width:100%;}
.read_more p a {
	height:50px;	display: block;
	padding-top:8px;
  	color:#3d94fd;
  	font-weight:bold;	
	padding-left:65px;
}

a[href^="mailto:"]:before { content: "\2709";margin-right:3px; }
a[href^="tel:"]:before             { content: "\2706";margin-right:3px; }


.footer .columns:nth-child(2) p  a:hover {
	color:#112d55;
}

.atk-palvelut {color:gray; font-size:0.8em;}

#loading {
	position: relative;
	width: 100%;
	height: 0;
	padding-bottom: 66.67%;
	/*overflow: hidden;*/
	display:none;
	background-size: 100% auto !important;
	background-repeat: no-repeat;
	transition: all .3s ease-in;
	background-image: url(loading.gif);
	background-position: 50% 50%;
	background-repeat: no-repeat;
	background-size: 50px 50px !important;
	z-index: 6;
}


.poista-dynaaminen-kentta {display:inline; margin-right: 5px;}
.normal-size {font-size:100%!important;}

@media only screen and (min-width: 1025px) AND (max-width: 1700px) {
/*	.phonenumberfirstpagearea {padding-top:30px;}*/
	a.fi-mobile {font-size:3em;}
	a.phonenumberfirstpage  {font-size:1.7em;}
}

@media only screen and (min-width: 1025px) AND (max-width: 1500px) {
	.top-bar-section li {
	  width:25%;
	}

}

@media only screen and (min-width: 1025px) {
		.top-bar .name, .custom > p {
    		display:none;
		}
		nav {margin-top:20px;}

	}


@media only screen and (max-width: 1366px) {
	.footer{max-width:100%;}
	.roller {max-width:100%!important;}
	.footer .columns:first-child p strong {font-size:3vw;}
	
	}
	
@media only screen and (max-width: 1024px) {
	.phonenumberfirstpage,.fi-mobile  {font-size:2em;}
	nav,.top-bar, .top-bar-section li:not(.has-form) a:not(.button),.top-bar-section ul li,.top-bar-section li:not(.has-form) a:hover:not(.button){
		font-size:1.2em;
		/*line-height:1;*/
	}
	#janislogo {max-height:200px;}
	.phonenumberfirstpagearea {padding-top:0px;}
}


@media only screen and (max-width: 946px) {
	.footer{max-width:100%;}
	
	}

@media only screen and (max-width: 768px) {
	.footer .columns:first-child p strong {font-size:1.5em;}

	
	}

	
@media only screen and (max-width: 641px) {
	.image_area {

		max-height:320px;
	}
	
	.image_area img{	
		max-height:320px;
		width:auto;

		}
		
				.phonenumberfirstpage,.fi-mobile  {font-size:1.4em!important;}
		
}

@media only screen and (min-width: 280px) AND (max-width: 300px) {
	span.button,.omabutton {
		/*background-size: 100% 70px;*/
	}

}

@media only screen and (min-width: 640px) AND (max-width: 724px) {
	span.button,.omabutton {
		/*background-size: 100% 70px;*/
	}
			.phonenumberfirstpage,.fi-mobile  {font-size:1.4em!important;}

}

@media only screen and (min-width: 1024px) AND (max-width: 1400px) {
	span.button,.omabutton {
		/*background-size: 100% 70px;*/
	}

}



@media only screen and (min-width: 0px) AND (max-width: 840px) {

	#floating_image_area {
		display:none;
	}
	
	#floating_image_content {
	}
}

