/** 
 * main.css
 * 
 * 1. General HTML tags
 * 2. Masthead area
 * 3. Main content and sidebar
 * 4. Footer
 * 5. Media queries for responsive layout
 * 6. Accessibility helpers
 * 
 */

/*********************************************************************
 * 1. General HTML tags
 *
 */

* {
	box-sizing: border-box; 
}

body {
	width: 100%;
	margin: 0 auto; 

}

body, td, input[type=text], textarea {
	font-family: 'Montserrat', sans-serif !important;
	font-size: 100% !important; 
	line-height: 1.8em !important;
	color: #444 !important; 
}

img {
	max-width: 100%; 
}

h1 {
	font-family: 'Pirata One', serif !important;
}

h2 {
	font-weight: normal !important;
}

h3 { 
	padding-top: 1em;
	color: #777; 
}

a {
	color: #018837 !important;
	text-decoration: none !important; 
}
	a:hover,
	.nav a:hover {
		color: #0a4020 !important;
	text-decoration: none !important; 
	}

blockquote {
	margin-left: 0;
	padding-left: 1.5em;
	padding-right: 2em; 
	border-left: 4px solid #ddd; 
	font-style: italic; 
	color: #777; 
}

pre, code {
	background: #eee; 
	border: 1px solid #ddd; 
}

pre {
	font-size: 14px; 
	line-height: 1.4em;
	padding: 1em;
	border-left: 4px solid #ddd; 
}

/*********************************************************************
 * 2. Masthead area
 *
 */
.nav { 
	display: block !important;
	margin-left: 0;
	padding-left: 0;
	list-style: none; 
	background: #fff;
	text-align: center;
}
.nav img{
	margin: 20px;

}

	.nav .nav {
		padding-left: 1.5em;
		list-style: disc;
	}
	.nav li {
		margin: 1em 0;
	}

	.nav-tree li {
		margin-top: 0;
		margin-bottom: 0;
	}

	.nav a {
		font-weight: bold;
	}

	.nav-tree li a {
		color: #777; 
	}

	.nav .current > a {
		color: #333; 
	}

#ylakuva {
display: inline-flex;
}
.viljat {
box-sizing: border-box;
bottom: -50px;
position: relative;
}
.viljat img {
height: 130px;
}

.topnav { 
	display: flex;
	list-style: none;
	padding: 0;
	margin: 0px 0px 0 0;
	text-transform: uppercase;
	justify-content: center;
	background: #008e09;
	position:relative;
	z-index: 10;
}
	
	.topnav li {
		list-style: none;
		margin-right: 1em;
		margin-bottom: 1em;
		text-decoration: none; 
	}
	.topnav a {
		padding: 7px 20px;
		text-decoration: none; 
		display: block;
		color: #fff !important; 
		font-weight: normal;

	}
	.topnav a:hover {
 	color: #eeaa33 !important; 
	}
	.topnav li.current a {
	color: #eeaa33 !important; 
	}
	

.checkbtn {
font-size: 45px;
color: #008e09;
float: left;
margin-top: 30px;
margin-left: 30px;
display: none;
}
#check{
display:none;
}


/*********************************************************************
 * 3. Main content and sidebar
 *
 */

#main {
	padding-top: 0; 
	margin-top: 0; 
	clear: both; 
}

#content {
	width: 100%;
	margin: auto;
	padding: 0;
	background-color: #e0dacd; 
}


body.has-sidebar #content {
	width: 65%; 
	float: left;
}

body.has-sidebar #sidebar {
	width: 35%;
	padding-left: 5%; 
	float: left; 
}



.align_left {
	/* for images placed in rich text editor */ 
	float: left;
	margin: 0 1em 0.5em 0; 
	position: relative;
	top: 0.5em;
	max-width: 50%; 
}

.align_right {
	/* for images placed in rich text editor */ 
	float: right;
	margin: 0 0 0.5em 1em;
	max-width: 50%; 
}

.align_center {
	/* for images placed in rich text editor */ 
	display: block;
	margin: 1em auto; 
	position: relative;
	top: 0.5em;
}

figure {
	display: table;
	width: 1px;
	margin: 1em 0;
}

figure img {
	display: table-row;
	margin-bottom: 0.5em;
}

figure figcaption {
	display: table-row;
	font-size: smaller;
	color: #777;
	line-height: 1.4em;
}


#banner{
height: 700px;
text-align: center;
margin: -20px -70px;
position: relative;
}
#banner img{
object-fit:cover;
}
#banner-otsikko{
font-size: 80px;
line-height: 1.3;
color: #ffffff;
text-shadow: 1px 1px 8px #333;
font-family: 'Pirata One', serif;
position: relative;
margin: auto;
z-index: 1000;
padding:10px 40px;
}

#content-box{
max-width: 1400px;
margin: auto;
padding: 80px 70px;
}

#box {
display: flex;
}
.box-column1 {
width: 60%;
padding-right:30px;
}
.box-column1 img {
width: 100%;
height: auto;
}
.box-column2 {
width: 40%;
position:relative;
}
.box-column2 img {
width: 100%;
height: auto;
}

.yhteystieto1 {
width: 50%;
padding-right: 30px;
}
.yhteystieto1 img {
width: 100%;
height: auto;
}
.yhteystieto2 {
width: 50%;
position:relative;
padding-left: 10px;
padding-bottom: 30px;
}
.yhteystieto2 img {
width: 100%;
height: auto;
}

#lomake{
background: #f2ede1;
width: 100%;
position:relative;
margin:25px 0;
padding: 15px 70px;
}

.galleria{
display: grid;
grid: auto / auto auto auto auto auto ;
grid-auto-columns: auto auto auto auto auto;
grid-gap: 20px;
text-align: center;
margin: 20px 0 35px 0;
}

.carousel-item{
height: 700px;
width: auto;
text-align: center;
background: #555;
color: #fff;
position: relative;
}
.carousel-item img{
object-fit:cover;
height: 700px;
width: 100%;
}

.carousel-container{
position: absolute;
bottom: 0;
left: 0;
right: 0;
padding-bottom: 150px;
}

.oivalogo{
text-align: right;
}
.oivalogo img{
padding: 10px;
background: #fff;
}

/*********************************************************************
 * 4. Footer
 *
 */

#footer {
	clear: both;
	background: #fff;
}

.fool{
display:flex;
padding: 15px 40px 5px;
justify-content: space-between;
max-width: 1600px;
margin: auto;
}
.fool p{
font-size: 14px;
line-height: 1.6;
}

.copyright{
font-size: 11px;
text-align: center;
line-height: 1.6;
margin: 5px 20px;
}

/*********************************************************************
 * 5. Media queries for responsive layout
 *
 */

@media only screen and (max-width: 767px) {
	/* mobile layout */ 

	body, td, textarea {
		font-size: 100%; 
	}
	body.has-sidebar #content, 
	body.has-sidebar #sidebar {
		float: none;
		width: 100%; 
		padding: 0; 
	}
	form.search {
		float: none; 
		width: 100%; 
	}
	#content {
		width: 100%; 
	}
	#sidebar {
		border-top: 1px solid #eee;
		padding-top: 1em; 
	}
	.align_left, .align_right, .align_center {
		display: block;
		float: none; 
		margin: 1em auto;
		max-width: 100%; 
	}

}


@media only screen and (max-width: 1200px) {
	
body, td, textarea {
font-size: 100%; 
}

.nav img{
margin: 15px 5px;

}

.viljat {
box-sizing: border-box;
bottom: -75px;
position: relative;
}
.viljat img {
height: 100px !important;
}

.fool p{
font-size: 12px;
}

}

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

#box {
display: block;
}
.box-column1 {
width: 100%;
padding-right:0px;
}
.box-column2 {
width: 100%;
margin: auto;
text-align: center;
}

.yhteystieto1 {
width: 100%;
padding: 0px;
text-align: center;
}
.yhteystieto2 {
width: 100%;
position:relative;
padding: 20px 0;
text-align: center;
}

.galleria{
display: grid;
grid: auto / auto auto auto auto ;
grid-auto-columns: auto auto auto auto;
grid-gap: 20px;
text-align: center;
margin: 20px 0 35px 0;
}

.fool{
display:block;
text-align: center;
}
.fool p{
font-size: 14px;
}

}


@media only screen and (max-width: 850px) {
	
.viljat {
display: none;
}
.viljat img {
display: none;
}

body, td, input[type=text], textarea {
	font-size: 90% !important; 
}

}



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


#ylakuva {
float: right;
padding: 15px;
height: 110px;
text-align: right;
}
#ylakuva img{
height: 100%;
width: auto;
margin: 0;
}

.topnav {
display: block;
position: fixed;
top: 110px;
left:-100%;
width: 100%;
height: 100%;
padding: 0px;
margin: 0;
z-index: 1;
background: #008e09;
-moz-transition: all 0.5s ease-in-out;
-o-transition: all 0.5s ease-in-out;
-webkit-transition: all 0.5s ease-in-out;
}
.topnav li{
padding: 7px;
margin: 7px 0;
border-bottom: 1px solid #6da271;
}
.topnav ul li a{
text-decoration:none;
padding:5px;
margin:0;
text-align: left;
font-size: 18px;
padding: 10px;
border-radius: 0;
color:#f6d900;
border: none;
text-decoration:none;
background-color: transparent;
}
.topnav a {
font-size: 20px !important;
}
.topnav ul li a:hover{
background-color: transparent;
border: none;
}

.topnav li.current a {
background: transparent;
color:#fff; 
margin-left: 0px;
padding-bottom: 10px;
}

.checkbtn {
display: block;
}
#check:checked ~ ul{
left:0;
}

#content-box{
padding: 40px 40px;
}

.galleria{
display: grid;
grid: auto / auto auto auto ;
grid-auto-columns: auto auto auto;
}

#lomake{
margin:20px 0;
padding: 15px 30px;
}


}



@media only screen and (max-width: 600px) {
	
.galleria{
display: grid;
grid: auto / auto auto ;
grid-auto-columns: auto auto ;
grid-gap: 20px;
text-align: center;
margin: 20px 0 35px 0;
}

#banner-otsikko{
font-size: 70px;
}

}

@media only screen and (max-width: 450px) {
	
#banner-otsikko{
font-size: 55px;
}

.fool{
padding: 15px 5px;
}
.fool p {
font-size: 12px;
}

}


@media only screen and (max-width: 350px) {
	
#banner-otsikko{
font-size: 35px;
}

#ylakuva img{
height: 60px;
width: auto;
margin: 5px;
}

}




@media only screen and (min-width: 900px) {
	/* extra-wide desktop layout */ 
	
	body, td, textarea {
		font-size: 115%; 
	}

}







/*********************************************************************
 * 6. Accessibility helpers
 *
 */

/* Hide visually, but remain approachable for screenreader */

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	white-space: nowrap;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	border: 0;
}

/* Show bypass link on hover */

.element-focusable:focus {
	clip: auto;
	overflow: visible;
	height: auto;
}

/* Sample styling for bypass link */

.bypass-to-main:focus {
	top: 0;
	left: 0;
	width: 100%;
	height: 40px;
	line-height: 40px;
	text-align: center;
	background: #333;
	color: #fff;
}
