@charset "utf-8";

body {
	background-color: #FFF;
	background-image: url(../media/images/tausta.jpg);
	font-family: 'Eczar', serif;
	word-wrap:break-word !important;
	background-attachment: fixed;
}

p {
	margin: 0px 10px 0px 10px;
	padding: 10px 10px 10px 5px;
	color:#333333;
	font-size: 1.2em;
}

h1 {
	margin: 0px;
	padding: 30px 10px 10px 10px;
	color:#333333;
	font-size: 1.8rem;
}

h2 {
	margin: 0px;
	padding: 10px 10px 10px 3px;
	font-size: 1.4em;
	color: #328a94; /*sinivihreä*/
}

h3 {
	margin: 0px;
	padding: 30px 10px 10px 3px;
	color:#333333;
	font-size: 1.2rem;
	font-weight: 600;
}

h4 {
	color:#333333;
	font-size: 1.4rem
}

h5 {
	color:#FFF;
	font-weight: 900;
	font-size: 3rem;
}

.oma-ul {
	margin: 0px 10px 0px 10px;
	color:#333333;
	font-size: 1.2em;
}

mark {
	background-color: transparent;
	color: #333333;
	font-size: 1.2em;
	font-weight: 600;
}

a {
	color: #328a94;
	text-decoration: underline;
}

.hr-oma {
	margin-top: 5rem;
	margin-bottom: 3rem;
  }

#kehys {
	position: relative;
	margin-top: 1rem;
	max-width: 980px;
	padding: 0px 10px 0px 10px;
	overflow: hidden;
	background-color: #FFF;
	background-image: url(../media/images/navi_tausta.png);
	background-repeat: repeat-y;
	-moz-box-shadow: 10px 10px 25px grey;
	-webkit-box-shadow: 10px 10px 25px grey;
	box-shadow: 10px 10px 25px grey;
}

.eikeksia {
	margin-bottom: 1rem;
}

.kerakeksin {
	margin-bottom: 62px;
}

#container {
	position: relative;
	margin-left: 250px;
	max-width:100%;
	min-width: 200px;
	height: 100%;
	min-height: 500px;
	text-align: left;
	padding-bottom: 2.5rem;
}

/*viiva*/

.bot-line {
	margin-right: 20px;
}

.disp-line {
	display: none;
}

/*Navigointi alkaa*/

nav {
	position:relative;
	min-width: 200px;
	height: 100%;
	font-weight: bold;
	font-size: 1.3rem;
	float:left;
	padding:0px 20px 20px 0px;
	margin:10px 0px 20px 0px;
	text-align:left;
}

.navbar-light .navbar-toggler,
.navbar-light .navbar-nav .nav-link {
	color: #333;
}

/*jarjestamaton lista, ul*/
nav ul {
	margin:0;
	padding:0px;
	width: 100%;
	min-width: 200px;
	list-style-type: none;
	position: relative;
}

/*listan jasenet*/
nav li {
	margin:0px;
	padding:0px;
	min-width: 200px;
}

nav li a {
	min-width: 200px;
	margin:0px;
	padding:8px 10px 8px 20px;
	text-decoration:none;
	color:#333; /*tummanharmaa*/
	display:block;
}

.navbar-nav > li > a.active,
nav a:hover {
	color:#333; /*tummanharmaa*/
	background-color: #fff; /*valkoinen*/
	-moz-box-shadow: 8px 6px 10px rgba(0,0,0,0.25);
	-webkit-box-shadow: 8px 6px 10px rgba(0,0,0,0.25);
	box-shadow: 8px 6px 10px rgba(0,0,0,0.25);
	transition: all 0.5s ease-out;
	-webkit-transition: all 0.5s ease-out;
}

.nav-text- span {
	display: inline-block;
	padding-left: 0;
	transition: all 0.5s ease-in-out;
	-webkit-transition: all 0.5s ease-in-out;
}

/*.nav-text-:hover span{ 
	padding-left: .5rem;
	-webkit-transition: all 0.5s ease-in-out;
}*/

.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
	color:#333; /*tummanharmaa*/
	background-color: #6fb9f5; /*vaalean sininen*/
}

/*Style 'show menu' label button and hide it by default*/
.show-menu {
	width: 100%;
	margin-bottom: 10px;
	text-decoration: none;
	color: #fff;
	background: #6fb9f5; /*vaalean sininen*/
	display: none;
	transition: all 0.5s ease-out;
	-webkit-transition: all 0.5s ease-out;
}

.navtext {
	font-size: 1.6rem;
	margin-left: 25px;
}

/*"Hamburger" and its animation*/
.icon-bar-surround {
	float: right;
	margin-top: 2px;
}

.icon-bar {
	width: 25px;
	height: 3px;
	background-color: #333;
	display: block;
	transition: all 0.2s;
	margin-bottom: 4px;
}

.navbar-toggler .top-bar {
	transform: rotate(45deg);
	transform-origin: 10% 10%;
}

.navbar-toggler .middle-bar {
	opacity: 0;
}

.navbar-toggler .bottom-bar {
	transform: rotate(-45deg);
	transform-origin: 10% 90%;
}

.navbar-toggler.collapsed .top-bar {
	transform: rotate(0);
}

.navbar-toggler.collapsed .middle-bar {
	opacity: 1;
}

.navbar-toggler.collapsed .bottom-bar {
	transform: rotate(0);
}
/*"END Hamburger" and its animation*/

button:focus {
	outline: 0px solid;
	outline: 0px auto -webkit-focus-ring-color;
}

.navbar-expand-md .navbar-nav .dropdown-menu {
	position: static;
}

.dropdown-menu {
	border-radius: 0;
	padding: 0;
}

.dropdown-menu.collapsing {
	display: block;
}

[aria-expanded="true"]{
	color:#333; /*tummanharmaa*/
	background-color: #fff; /*valkoinen*/
	-moz-box-shadow: 8px 6px 10px rgba(0,0,0,0.25);
	-webkit-box-shadow: 8px 6px 10px rgba(0,0,0,0.25);
	box-shadow: 8px 6px 10px rgba(0,0,0,0.25);
}

.dropdown-toggle:after {
	/*margin-left: 12px;*/
	display: inline-block;
	transform: rotate(-90deg);
	transition: all linear 0.25s;
}

[aria-expanded="true"]:after {
	-webkit-transform: rotate(0deg);
	transform: rotate(0deg);
}

.sub-menu > a.active {
	color: #333;
	-moz-box-shadow:    0px 0px 0px, inset 0px 0px 10px rgba(0,0,0,0.50);
	-webkit-box-shadow: 0px 0px 0px, inset 0px 0px 10px rgba(0,0,0,0.50);
	box-shadow:         0px 0px 0px, inset 0px 0px 10px rgba(0,0,0,0.50);
}

.sub-menu a:hover {
	color: #777;
	background-color: #fff;
	-moz-box-shadow:    0px 0px 0px, inset 0px 0px 15px rgba(0,0,0,0.70);
	-webkit-box-shadow: 0px 0px 0px, inset 0px 0px 15px rgba(0,0,0,0.70);
	box-shadow:         0px 0px 0px, inset 0px 0px 15px rgba(0,0,0,0.70);
}

.sub-menu span {
	padding-left: 0.7rem;
}

.sub-menu a:hover span {
	padding-left: 1rem;
}

.sub-menu {
	text-align: left;
	font-size: 1.2rem;
}

.sub-shadow {
	background-color: #fff;
	-moz-box-shadow:    inset 0px 0px 10px rgba(0,0,0,0.70);
	-webkit-box-shadow: inset 0px 0px 10px rgba(0,0,0,0.70);
	box-shadow:         inset 0px 0px 10px rgba(0,0,0,0.70);
}

/*Navigointi loppuu*/

/*Alapalkki alkaa*/

.alapalkki {
	font-size: 1.2rem;
	line-height: 2.4rem;
	clear: both;
	max-width: 960px;
	font-style: italic;
	color: #666;
	background-color: #FFF;
	text-align: center;
	border: 1px solid #333;
	margin: 10px auto 10px auto;
	padding: 0 9rem;
}

.alapalkki a {
	color: #666;
}

.alapalkki a:hover {
	color: #328a94;
}

/*Alapalkki loppuu*/

.map-responsive{
	display: block;
	margin:0 auto 10px auto;
	overflow:hidden;
	position:relative;
	width: 90%;
	height:280px;
	clear:both;
}

.map-responsive iframe{
	height:100%;
	width:100%;
	position:absolute;
	border: none;
}

.kuva_oik {
	float:right;
	width: 100%;
	max-width: 410px;
	height: auto;
	margin: 10px 20px 0px 0px;
}

.kuva_oik_demo {
	float:right;
	width: 100%;
	max-width: 313px;
	height: auto;
	margin: 15px 30px 10px 10px;
}

/*-------------Galleria-----------------*/

.hovereffect {
	float: left;
	overflow: hidden;
	position: relative;
	text-align: center;
	cursor: default;
}

.hovereffect {
	display: block;
	position: relative;
	-webkit-transform: scale(1.1);
	-ms-transform: scale(1.1);
	transform: scale(1.1);
	-webkit-transition: all 0.35s;
	transition: all 0.35s;
}

.hovereffect:hover {
	-webkit-transform: scale(1);
	-ms-transform: scale(1);
	transform: scale(1);
	filter: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg"><filter id="filter"><feComponentTransfer color-interpolation-filters="sRGB"><feFuncR type="linear" slope="0.7" /><feFuncG type="linear" slope="0.7" /><feFuncB type="linear" slope="0.7" /></feComponentTransfer></filter></svg>#filter');
	filter: brightness(0.9);
	-webkit-filter: brightness(0.9);
}

.gallery_content {
	margin-left: 20px;
	margin-right: 20px;
}

.col-6 {
	padding-right: 5px;
	padding-left: 5px;
}

.card {
	padding-left: 0px;
	padding-right: 0px;
	border-radius: .5rem;
	border: none;
	-moz-box-shadow:    0px 0px 0px, inset 0px 0px 15px rgba(0,0,0,0.15);
	-webkit-box-shadow: 0px 0px 0px, inset 0px 0px 15px rgba(0,0,0,0.15);
	box-shadow:         0px 0px 0px, inset 0px 0px 15px rgba(0,0,0,0.15);
	transition: all 0.35s ease-out;
	-webkit-transition: all 0.35s ease-out;
}

.card:hover {
	-moz-box-shadow:    0px 0px 0px, inset 0px 0px 25px rgba(0,0,0,0.5);
	-webkit-box-shadow: 0px 0px 0px, inset 0px 0px 25px rgba(0,0,0,0.5);
	box-shadow:         0px 0px 0px, inset 0px 0px 25px rgba(0,0,0,0.5);
	transition: all 0.35s ease-out;
	-webkit-transition: all 0.35s ease-out;
}

.card-body {
	height: 200px;
	overflow: hidden;
	padding: 0;
	margin: 1.25rem;
}

.card_image {
	max-height: 200px;
}

/*Lightbox säädöt*/

.modal-open .modal {
	overflow-y: hidden;
}

.modal-dialog {
	margin: 0.5rem auto;
}

.close {
	font-size: 2.4rem;
	opacity: 0.6;
	transition: all 0.6s ease;
	-webkit-transition: all 0.6s ease;
}

.close:hover {
	opacity: 1;
	color: #fff;
	text-shadow: 0px 0px 15px #FFF;
	-moz-text-shadow: 0px 0px 15px #FFF;
	-webkit-text-shadow: 0px 0px 15px #FFF;
	transition: all 0.3s ease;
	-webkit-transition: all 0.3s ease;
}

button.close {
	z-index: 1000;
	height: 70px;
	width: 70px;
	position: relative;
	color: #fff;
	text-shadow: 0 0 5px #000; /* horizontal-offset vertical-offset 'blur' colour */
	-moz-text-shadow: 0 0 5px #000;
	-webkit-text-shadow: 0 0 5px #000;
}

/*Lightbox säädöt*/


/*-------------Galleria-----------------*/

/*--------------------------slider alkaa--------------------*/

#slider_kehys {
	margin: 20px 10px 10px 10px;
	overflow: hidden;
	-moz-box-shadow: 4px 3px 20px grey;
	-webkit-box-shadow: 4px 3px 20px grey;
	box-shadow: 4px 3px 20px grey;
}

#slider {
	display: block;
	width: 100%;
	height: auto;
	overflow: hidden;
	position:relative;
}

[data-slide] {
	z-index: 999;
}

.carousel-caption {
	text-align: unset;
	left: 0%;
	right: 0%;
}

.caption {
	float: right;
}

.c1 {
	margin-top: 5%;
	margin-right: 5%;
	animation-duration: 1.5s;
	width: 55%;
}

.c2 {
	margin-top: 5%;
	margin-right: 4%;
	width: 50%;
	animation-delay: 0.1s;
	animation-duration: 2s;
}

.c3 {
	margin-top: 23%;
	margin-right: 1%;
	width: 45%;
	animation-delay: 0.1s;
	animation-duration: 2s;
}

.c4 {
	margin-top: 10%;
	margin-right: 18%;
	width: 58%;
	animation-duration: 2s;
	transform: rotate(19deg);
}

.c5 {
	margin-top: 10%;
	margin-right: 4%;
	width: 48%;
	animation-delay: 0.1s;
	animation-duration: 2s;
}

.c6 {
	margin-top: 3%;
	margin-right: 49%;
	width: 48%;
	animation-delay: 0.1s;
	animation-duration: 2s;
}

.c7 {
	margin-top: 20%;
	margin-right: 55%;
	width: 40%;
	animation-delay: 0.1s;
	animation-duration: 2s;
	transform: rotate(12deg);
}

.c8 {
	margin-top: 18%;
	margin-right: 4%;
	width: 40%;
	animation-delay: 0.1s;
	animation-duration: 2s;
	transform: rotate(12deg);
}

/*--------------------Slider loppuu-----------------------------*/


/*Back to top*/

.scroll-top {
	width: 60px;
	height: 60px;
	position: fixed;
	display: none;
	margin-left: 1rem;
	opacity: 0.7;
}
.scroll-top i {
	display: inline-block;
	color: #FFFFFF;
}

.scroll-top:hover {
	opacity: 1;
	transition: all 0.5s ease;
	-webkit-transition: all 0.5s ease;
}

.scroll-kerakeksin {
	bottom: 120px;
}

.scroll-eikeksia {
	bottom: 72px;
}

/*Back to top*/

/*Cookie alert*/

.cookiealert.show {
    opacity: 0.9;
}

.btn-group-sm>.btn, .btn-sm {
	padding: .5rem 3rem;
}

/*Cookie alert*/

/* Media Queries
--------------------------------------------- */

@media all and (max-width : 992px) {

	.hr-oma {
		margin-top: 3rem;
		margin-bottom: 3rem;
	  }

	.navbar {
		padding: 0rem 1rem 1.5rem 1rem;
	}

	#kehys {
		margin-top: 0;
		min-height: 100%;
		padding: 0rem 0.5rem 0rem 0.5rem;
		border: 0px;
	}

	.eikeksia {
		margin: 0;
	}

	.kerakeksin {
		margin-bottom: 60px;
	}

	.scroll-eikeksia {
		bottom: 62px;
	}

	#container {
		padding-bottom: 4rem;
	}

	.card-body {
		height: 150px;
		overflow: hidden;
		padding: 0;
		margin: 1rem;
	}

	.modal-dialog {
		margin: 0.1rem auto;
	}

	.kuva_oik {
		float: left;
		width: 100%;
		max-width: 100%;
		height: auto;
		padding:0px 20px 0px 20px;
		margin: 0px 0px 20px 0px;
	}

	.kuva_oik_demo {
		width: 100%;
		max-width: 100%;
		height: auto;
		padding: 0px 10px;
		margin: 10px 0px 10px 0px;
	}

	.alapalkki {
		margin: 1rem;
		right: 0;
		bottom: 0;
		left: 0;
		position: absolute;
		padding: 0 2rem;
	}
}

@media all and (max-width : 861px) {

	.kerakeksin {
		margin-bottom: 90px;
	}

	.scroll-kerakeksin {
		bottom: 150px;
	}

}

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

	#kehys {
		padding: 0rem 0.8rem 0rem 0.8rem;
	}

	#container {
		margin:0px -30px 0px 0px;
		padding-bottom: 4rem;
		clear: both;
	}

	p {
		margin: 0px 10px 0px 10px;
		padding: 10px 0px 10px 0px;
		color:#333333;
		font-size: 1.3em;
	}

	h1 {
		margin-top: 10px;
		padding: 10px 10px 10px 10px;
	}

	h3 {
		padding: 10px 10px 10px 10px;
	}

	/*viiva*/

	.bot-line {
		margin-right: 0px;
	}

	.disp-line {
		display: block;
	}

	/*Navigointi alkaa*/

	nav {
		position:inherit;
		max-width: 100%;
		width: 100%;
		height: 100%;
		padding:10px 15px 15px 15px;
		margin:0px 0px 10px 0px;
		text-align: center;
		overflow: hidden;
	}

	.navbar {
		padding-bottom: 1rem;
	}

	/* Stylinf the toggle lable */
	.show-menu {
		display: block;
		background-color: #fff;
		padding:20px 20px;
		color:#333;
		text-decoration:none;
		text-align: center;
		border:none;
		margin-top: 1rem;
		box-shadow: 4px 4px 7px 2px rgba(0,0,0,0.25);
	}

	.show-menu:hover {
		background-color: #6fb9f5;
	}

	/* Change menu item's width to 100% */
	nav ul li {
		display: block;
		width: 100%;
	}

	nav ul ul .show-menu,
	nav ul ul a {
		padding: 0 40px;
		width: 100%;
	}

	nav ul ul ul a {
		padding: 0 80px;
		width: 100%;
	}



	.navbar-nav > li.active > a,
	nav a:hover {
		color:#333; /*tummanharmaa*/
		background-color: #fff; /*valkoinen*/
		box-shadow: 8px 6px 10px rgba(0,0,0,0.25);
	}

	nav ul li ul li .show-menu,
	nav ul ul a,
	nav ul ul ul a{
		padding:14px 20px;
		color:#333;
		width: 100%;
	}

	/* Hide menus on hover */
	nav ul ul li:hover > ul,
	nav ul li:hover > ul {
		display: none;
	}

	li .sub-menu {
		display: block;

	}

	li:hover .sub-menu span {
		padding-left: 0;
	}

	.sub-menu a:hover {
		color: #777;
		background-color: #fff;
		margin: 0;
		-moz-box-shadow:    0px 0px 0px, inset 0px 0px 15px rgba(0,0,0,0.70);
		-webkit-box-shadow: 0px 0px 0px, inset 0px 0px 15px rgba(0,0,0,0.70);
		box-shadow:         0px 0px 0px, inset 0px 0px 15px rgba(0,0,0,0.70);
	}

	.sub-menu {
		text-align: center;
		font-size: 1.2rem;
	}

	.sub-shadow {
		background-color: #fff;
		-moz-box-shadow:    inset 0px 0px 10px rgba(0,0,0,0.70);
		-webkit-box-shadow: inset 0px 0px 10px rgba(0,0,0,0.70);
		box-shadow:         inset 0px 0px 10px rgba(0,0,0,0.70);
	}

	/*Navigointi loppuu*/

	#slider_kehys {
		margin: 20px auto 0px auto;
	}

	.map-responsive{
		margin: 0px 0px 10px 0px;
		overflow:hidden;
		position:relative;
		width: 100%;
		height:280px;
	}

	.kuva_oik {
		width: 100%;
		max-width: 100%;
		height: auto;
		margin: 0px 0px 10px 0px;
	}

	/*Galleria*/

	.gallery_content {
		margin-left: 0px;
		margin-right: 0px;
	}

	.card-body {
		height: 140px;
		overflow: hidden;
		padding: 0;
		margin: 1rem;
	}

	/*Lightbox säädöt*/

	.modal-dialog {
		margin: 0.1rem auto;
	}

	/*Lightbox säädöt*/

	/*Back to top*/

	.scroll-top {
		width: 40px;
		height: 40px;
		position: fixed;
		right: 10px;
		display: none;
		margin-left: 0rem;
	}

	/*Back to top*/

	/*Alapalkki*/

	.alapalkki {
		padding: 0;
	}

	/*Alapalkki*/
}

@media all and (max-width: 576px) {

	.gallery_content {
		margin-left: 0px;
		margin-right: 0px;
	}

	.kerakeksin {
		margin-bottom: 90px;
	}

	.card-body {
		height: 130px;
		overflow: hidden;
		padding: 0;
		margin: 1rem;
	}

	/*Lightbox säädöt*/

	.img-fluid {
		max-height: 100%;
	}

	/*Lightbox säädöt*/

	.margin-top-mobile {
		margin-top: 5rem;
	}
}

@media all and (max-width : 450px) {

	.kerakeksin {
		margin-bottom: 114px;
	}

	.scroll-kerakeksin {
		bottom: 172px;
	}

}

@media all and (max-width : 414px) {

	nav ul li {
		display:block;
		width: 100%;
	}

	.card-body {
		height: 100px;
		overflow: hidden;
		padding: 0;
		margin: 0.8rem;
	}

	.alapalkki span {
		white-space: nowrap;
	}

	.scroll-kerakeksin {
		bottom: 170px;
	}

}

@media all and (max-width : 360px) {

	.card-body {
		height: 100px;
		overflow: hidden;
		padding: 0;
		margin: 0.5rem;
	}

	.alapalkki {
		font-size: 1rem;
	}
}

@media all and (max-width : 332px) {
	.kerakeksin {
		margin-bottom: 138px;
	}

	.scroll-kerakeksin {
		bottom: 190px;
	}
}
/*IE fix*/

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
	.ekko-lightbox .modal-dialog {
		flex: 100%!important;
		margin-left: 0;
		margin-right: 0;
	}
}
/*IE fix*/
