
/* LAULAVA MYLLÄRI - MAIN PAGE STYLE*/

:root {
	--main_color_white_bg: #C75300;
	--main_color: #F83;
}

html {
	height:100%;
	margin:0;
	font-family: 'Trebuchet MS';
	letter-spacing: 0.8px;
	scroll-behavior: smooth;
	-webkit-scroll-behavior: smooth;
	-moz-scroll-behavior: smooth;
	-o-scroll-behavior: smooth;
}
body {
	height:100%;
	margin:0;
	scroll-behavior: smooth;
	-webkit-scroll-behavior: smooth;
	-moz-scroll-behavior: smooth;
	-o-scroll-behavior: smooth;
	
}

					.main-body {
						background: url('../img/bg/tuotteet_jyvilla_pysty.jpg') center center;
						-webkit-background-size: cover;
						-moz-background-size: cover;
						-o-background-size: cover;
						background-size: cover;
						height:100%;						
					}

					.products-body {
						/*background-color: #85cadf;*/
						background: url('../img/bg/tuotteet_punnukset_pysty.jpg') center center;
						-webkit-background-size: cover;
						-moz-background-size: cover;
						-o-background-size: cover;
						background-size: cover;						
						height:100%;			
					}


					.avail-body {
						background: url('../img/bg/juuttisakki_pysty.jpg') center center;
						-webkit-background-size: cover;
						-moz-background-size: cover;
						-o-background-size: cover;
						background-size: cover;						
						height:100%;						
					}

					.connect-body {
						background: url('../img/bg/vaaka_ja_tuote.jpg') center center;
						-webkit-background-size: cover;
						-moz-background-size: cover;
						-o-background-size: cover;
						background-size: cover;						
						height:100%;						
					}

#all-navbar {
		background-color: #222;		
		opacity: 0.95;	
		width: 100%;
		height: 50px;
		position: fixed;
		top:0;
		z-index: 5;
		margin: auto;
	}
			#all-navbar a {
				font-size: 22px;
				text-decoration: none;			
				color:var(--main_color);	
	}
	#nav-title-short {
		display: none;
	}
	.nav-title {
		display: inline-block;
		height:100%;
		margin-left: 50px ;	
	}
		#navbar-wide {
			height:50px;
			float:right;
			margin-right: 50px;
			display: inline-block;
		}
			.nav {				
				display: inline-block;
				width:150px;				
			}
			#all-navbar .nav:not(.active):hover {
				text-decoration: underline;
				cursor: pointer;
			}
			#all-navbar .nav.active:hover {
				text-decoration: underline;
				cursor: default;
			}
			#all-navbar div.nav {
				
				font-size: 22px;
				text-decoration: none;			
				color:var(--main_color);										
			}
			.active {
				text-decoration: underline;
			}

		#navbar-mobile {			
			top: 0;
			margin-top: 50px;
			right:0;
			padding-right: 50px;
			width:100%;			
			height:0;
			overflow-y: hidden;			
			position:fixed;
			float: right;
			z-index: 5;
			text-align: right;
			background-color: #222;
			opacity: 0.95;
			-webkit-transition: all .3s ease;
			-moz-transition: all .3s ease;
			-ms-transition: all .3s ease;
			-o-transition: all .3s ease;
			transition: all 0.3s ease;
		}
		#navbar-mobile > div {
			font-size: 22px;
				text-decoration: none;			
				color:var(--main_color);
			-webkit-transition: all .2s ease;
			-moz-transition: all .2s ease;
			-ms-transition: all .2s ease;
			-o-transition: all .2s ease;
			transition: all 0.2s ease;
		}
		.navi-mobile {
			margin: 10px 0;
		}
		#mobile-menuBtn {
			display: none;
			float:right;
			padding-right: 50px;
			width:20px; 
			margin:10px 0;
		}
		#mobile-menuBtn:hover {
			cursor: pointer;
		}


		


/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  */
	
#all-footer {	
	/*background-color: #f1b44a;*/
	background-color: #222;
	color:var(--main_color);
	opacity: 0.95;
	z-index: 9;
	position:fixed;
	left: 0;
	bottom: 0;
	text-align: center;
	display: block;
	width:100%;
	height:30px;	
	padding: 0px 0px 0px 0px;	
	font-size: 0.8em;
	}
	#all-footer .footer-part {
		display: inline-block;
	}
	#all-footer .copy-and-design {
		display: inline-block;
	}

/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   */

.contentCentered {
  text-align: center;
}

.contentCentered::before {
  content: '';
  display: inline-block;
  height: 100%; 
  vertical-align: middle;
  margin-right: -.25em; /* Adjusts for spacing */
}

.contentCentered > * {
  display: inline-block;
  vertical-align: middle;
}

/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  */

.contentTop {
	text-align: top;
}
.contentTop > * {
	vertical-align: top;
}

/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% */
.slide {
	top: 50;
	width:95%;
	margin: auto;
	position: relative;
}
.slideContent {
	background: url('../img/back/08-transp-white-50x50.png');
	padding:20px;
	border-radius: 10px;
}

.marginTop5 {
	display: inline-block;
	margin-top: 10%;
}

.contentRight {
	margin-left: 5%;
}

.contentLeft {
	margin-left: 5%;
}

.contentFontSize {
	font-size: 18px;
}

.textAlignJustify {
	text-align: justify;
}
.textAlignLeft {
	text-align: left;
}

.innerContentInlineBlock {
	display: inline-block;
	float: left;
	margin: 10px;
	padding: 10px;
}

.addBorders {
	border: var(--main_color) solid 1px;
	border-radius: 10px;
}

.width300px {
	width: 300px;
}

.marginRight50px {
	margin-right: 50px;
}

.innerBlockMarginTop {
	margin-top: 2%;
}

.mainContentWidth {
	width:90%;
	margin-top: -85%;
}
.productsContentWidth {
	width:870px;
}
.productsContentBlock {
	width:250px;
	height:80px;
	
}
.productsInfo {
	float: left;
	display: block;
}
.availContentWidth {
	width: 900px;
}
.availBlockWidth {
	width: 240px;
	height: 200px;
}
.availBlockWidthTop {
	width: 240px;
	height: 200px;
}
.connectContentWidth {
	width: 38%;
}
.width45 {
	width:45%;
}
.width55 {
	width:55%;
}
.width65 {
	width:65%;
}
.height100 {
	height:100%;
}
.height75 {
	height: 75%;
}
.linkColorOrange {
	color: var(--main_color_white_bg);
}
.noDecoration {
	text-decoration: none;
}
.noDecoration:hover {
	text-decoration: underline;
}

.mainImage {
	margin: auto;
	display: block;
	width:95%;
}
.mainImage img {
	max-width:  100%;
}

/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% */

			/*CONNECT PAGE ************************************ */

					#lomake {
						margin: auto;
					}

					.form-text {
						width:95%;
						height:15px;
					}

					.form-textarea {
						height:40px;
					}

					.form-button {
						color:#f33; 
						background-color: #fff; 
						border:1px solid #555; 
						padding:5px 10px 5px 10px;
					}

@media screen and (max-width:1298px) {
					.main-body {
						background: url('../img/bg/tuotteet_jyvilla_pysty_mobile.jpg') center center;
						-webkit-background-size: cover;
						-moz-background-size: cover;
						-o-background-size: cover;
						background-size: cover;
					}
					.mainImage {
						width:40%;
						float:left;
						margin-right: 10px;
					}
	#all-footer {
		height: 40px;
	}
	.mainContentWidth {
		width:90%;
		margin-top: -95%;
	}
}

@media screen and (max-width:1280px) {
	#navbar-wide {
		display: none;
	}
	#mobile-menuBtn {
		display: block;
	}


	.contentFontSize {
		font-size:18px;
	}
	.contentLeft {
		margin-left: 0%;
	}
	.innerBlockMarginTop {
		margin-top: 3%;
	}
		.productsContentWidth {
		width:700px;
	}
	.productsContentBlock {
		width:190px;
		height:40px;
		
	}
	.productsInfo {
		float: left;
		display: block;
	}
	.availContentWidth {
		width: 770px;
	}
	.availBlockWidth {
		width: 210px;
		height:140px;
	}
	.availBlockWidthTop {
		width: 210px;
		height:140px;
	}

}

@media screen and (max-width:1024px) {

	.contentFontSize {
		font-size: 18px;
	}
	.mainContentWidth {
		width:90%;
	}
	.availContentWidth {
		width:90%;
	}
	.availBlockWidth {
		height:120px;
	}
	.availBlockWidthTop {
		height:110px;
	}
	.slideContent {
		padding: 7px;
	}

}

@media screen and (max-width:999px){

	.mainContentWidth {
		margin-top: -75%;
	}

	.marginTop5 {
		margin-top: 15%;
	}
	.productsContentWidth {
		width:85%;
	}
	.productsContentBlock {
		width:300px;
		height:40px;
		
	}
	.availContentWidth {
		width:90%;
		margin-top: -30%;

	}
	.availBlockWidth {
		width: 190px;
		height: 210px;
	}
	.availBlockWidthTop {
		width: 190px;
		height: 125px;
	}
	.innerContentInlineBlock {
		font-size: 16px;
		margin: 8px;
	}
	.connectContentWidth {
		width: 55%;
		font-size: 10px;
	}
	#lomake {
		font-size: 18px;
	}
	#all-footer {
		font-size: 11px;
	}
}	
@media screen and (max-width:768px){
	#all-footer {
		height:38px;
	}
	.availBlockWidth {
		width: 180px;
		height: 210px;
	}
	.availBlockWidthTop {
		width: 180px;
		height: 110px;
	}
	.innerContentInlineBlock {
		font-size: 14px;
		margin: 8px;
	}
	.contentFontSize {
		font-size: 16px;
	}
}
@media screen and (max-width:736px){


	.mainImage {
		width:50%;
	}
	.marginTop5 {
		margin-top: 10%;
	}
	.productsContentWidth {
		width:80%;
	}
	.productsContentBlock {
		width:180px;
		height:40px;
	}

	.availBlockWidth {
		width: 160px;
		height: 95px;
	}
	.availBlockWidthTop {
		width: 160px;
		height: 85px;
	}
	.innerContentInlineBlock {
		font-size: 12px;
		margin: 8px;
		padding:6px;
	}
	.form-text {
		width:95%;
		height:12px;
	}

	.form-textarea {
		height:35px;
	}
	#all-footer {
		font-size: 10px;
	}
}
@media screen and (max-width:732px) {
	.mainContentWidth {
		width:90%;
		margin-top: -85%;
	}
	.connectContentWidth {
		width: 75%;
		font-size: 9px;
	}

}
@media screen and (max-width:640px){
	.mainImage {
		display: none;
		width:40%;
	}
	.contentRight {
		margin-left: 3%;
	}
	.productsContentWidth {
		width:80%;
	}
	.productsContentBlock {
		width:110px;
		height:50px;
	}

	.availBlockWidth {
		width: 135px;
		height: 130px;
	}
	.availBlockWidthTop {
		width: 135px;
		height: 80px;
	}
	.innerContentInlineBlock {
		font-size: 11px;
		margin: 5px;
		padding: 4px;
	}
	#lomake {
		font-size: 15px;
	}
	.contentFontSize {
		font-size: 14px;
	}
	#all-footer {
		height:48px;
	}
}
@media screen and (max-width:568px){
	
	.nav-title {
	margin-left: 20px;
	}
	#nav-title-long {
		display: none;
	}
	#nav-title-short {
		display: inline-block;
	}
	#navbar-mobile {
		padding-right: 20px;
	}
	#mobile-menuBtn {
		padding-right: 20px;
	}

	.contentRight {
		margin-left: 1%;
	}
	.availContentWidth {
		margin-top: 0%;
	}
	.availBlockWidth {
		width:43%;
		height: 137px;
	}
	.availBlockWidthTop {
		width:43%;
		height: 137px;
	}
	.innerContentInlineBlock {
		font-size: 10px;
		margin: 4px;
		padding: 3px;
	}
	.form-text {
		width:95%;
		height:10px;
	}

	.form-textarea {
		height:20px;
	}
}
@media screen and (max-width:533px) {
	
}					

@media screen and (max-width:477px){

	.contentFontSize {
		font-size: 11px;
	}
	#all-navbar div.nav {
		font-size: 18px;
	}
	#mobile-menuBtn {
		height: 40px;
	}
	.availBlockWidth {
		width:43%;
		height: 90px;
	}
	.availBlockWidthTop {
		width:43%;
		height: 90px;
	}
	.makuvankkuriProb {
		width:200px;
		display: block;
		float:left;
	}
}	
@media screen and (max-width:360px){
	#all-navbar {
		height:40px;
	}
	#all-navbar div.nav {
		font-size: 18px;
	}
	#navbar-mobile {
		margin-top: 40px;
	}
	#navbar-mobile > div  {
		font-size: 18px;
	}
	#mobile-menuBtn {
		height:32px;
	}
	.mainContentWidth {
		width:99%;
		margin-top: -85%;
	}
	.marginTop5 {
		margin-top: 15%;
	}
	.contentRight {
		margin-left: -2%;
	}
	.availContentWidth {
		width:95%;
	}
	.availBlockWidth {
		width: 125px;
		height: 120px;
	}
	.availBlockWidthTop {
		width: 125px;
		height: 80px;
	}
	.innerContentInlineBlock {
		font-size: 9px;
		margin: 3px;
		padding: 2px;
	}
	#all-footer {
		height:60px;
	}
}
@media screen and (max-width:320px){
	.contentFontSize {
		font-size: 9px;
	}
	.mainContentWidth {
		width:99%;
		margin-top: -85%
	}
	.mainImage {
		width: 30%;
	}
	#lomake {
		font-size: 10px;
	}
}