
/* 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.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.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/tuotteet_.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/mylly.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;
	}
	#nav-title-short {
		display: none;
	}
	.nav-title {
		display: inline-block;
		height:100%;
		margin-left: 50px ;	
	}
		#all-navbar a {
				font-size: 22px;
				text-decoration: none;			
				color: var(--main_color);	
	}
		#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: 1;
			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 {
			cursor: pointer;
			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: 2;
	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: 5%;
}

.contentRight {
	margin-left: 55%;
}

.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:35%;
}
.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) {
	#all-footer {
		height: 40px;
	}
}

@media screen and (max-width:1280px) {
	#navbar-wide {
		display: none;
	}
	#mobile-menuBtn {
		display: block;
	}
	.mainContentWidth {
		width:40%
	}
	.mainImage {
		width:75%;
	}
	.contentFontSize {
		font-size:13px;
	}
	.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:135px;
	}
	.availBlockWidthTop {
		width: 210px;
		height:130px;
	}
}

@media screen and (max-width:1024px) {
	#all-navbar {
		height:40px;
	}

	#navbar-mobile {
		margin-top: 40px;
	}
	#navbar-mobile > div {
		font-size: 18px;
	}
	#mobile-menuBtn {
		height:32px;
	}
	.contentFontSize {
		font-size: 11px;
	}
	.mainContentWidth {
		width:50%;
	}
	.availContentWidth {
		
	}
	.availBlockWidth {
		height:120px;
	}
	.availBlockWidthTop {
		height:100px;
	}
	.slideContent {
		padding: 7px;
	}
	.contentRight {
		margin-left: 45%;
	}
}

@media screen and (max-width:999px){
	.mainImage {
		width:70%;
	}
	.mainContentWidth {
		width:50%
	}
	.marginTop5 {
		margin-top: 10%;
	}
	.productsContentWidth {
		width:650px;
	}
	.productsContentBlock {
		width:180px;
		height:40px;
		
	}
	.availContentWidth {
		width:640px;
	}
	.availBlockWidth {
		width: 170px;
		height: 105px;
	}
	.availBlockWidthTop {
		width: 170px;
		height: 95px;
	}
	.innerContentInlineBlock {
		font-size: 11px;
		margin: 8px;
	}
	.connectContentWidth {
		width: 55%;
		font-size: 10px;
	}
	#lomake {
		font-size: 10px;
	}
	#all-footer {
		font-size: 11px;
	}
}	

@media screen and (max-width:736px){
	.mainImage {
		width:50%;
	}
	.marginTop5 {
		margin-top: 5%;
	}
	.productsContentWidth {
		width:500px;
	}
	.productsContentBlock {
		width:180px;
		height:30px;
	}
	.availContentWidth {
		width:620px;
	}
	.availBlockWidth {
		width: 160px;
		height: 95px;
	}
	.availBlockWidthTop {
		width: 160px;
		height: 85px;
	}
	.innerContentInlineBlock {
		font-size: 10px;
		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) {
	.connectContentWidth {
		width: 75%;
		font-size: 9px;
	}
	#all-footer {
		height:28px;
	}
}
@media screen and (max-width:640px){
	.mainImage {
		display: inline-block;
		width:40%;
	}
	.mainContentWidth {
		width:60%
	}
	.contentRight {
		margin-left: 30%;
	}
	.productsContentWidth {
		width:450px;
	}
	.productsContentBlock {
		width:120px;
		height:35px;
	}
	.availContentWidth {
		width:480px;
	}
	.availBlockWidth {
		width: 135px;
		height: 110px;
	}
	.availBlockWidthTop {
		width: 135px;
		height: 70px;
	}
	.innerContentInlineBlock {
		font-size: 9px;
		margin: 5px;
		padding: 4px;
	}
}
@media screen and (max-width:568px){
	.nav-title {
	margin-left: 20px;
	}
	#navbar-mobile {
		padding-right: 20px;
	}
	#mobile-menuBtn {
		padding-right: 20px;
	}
	.mainContentWidth {
		width:65%
	}
	.contentRight {
		margin-left: 33%;
	}
	.availContentWidth {
		width:450px;
	}
	.availBlockWidth {
		width: 133px;
		height: 90px;
	}
	.availBlockWidthTop {
		width: 133px;
		height: 65px;
	}
	.innerContentInlineBlock {
		font-size: 8.45px;
		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){
	#all-navbar div.nav {
		font-size: 16px;
	}
	#mobile-menuBtn {
		height: 30px;
	}
}	
@media screen and (max-width:360px){
	
}
@media screen and (max-width:300px){
	
}