



/*---------Index1---------Body ja html perusmäärittelyt---------*/

html{
	min-height:100%;
	position:relative;}

body{
	background-image: url(../img/Sovatek_tausta_oranssi.png);
	background-repeat:no-repeat;
	background-color:hsla(32,88%,56%,1);
	font-family: 'Ubuntu', sans-serif;
	min-width:100%;
	margin:0 0 100px 0;
	}


/*---------Index3---------Lopettaa kellutuksen(float)-----*/
.stop{
	clear:both;}



/*---------Toimialan nimi menu-palkissa---*/



/*---------Index4---------SOVATEK-logo------------------------------*/	
.logo{
	float:right;
	width:250px;
	min-width:200px;
	padding-top: 53px;
	padding-bottom:17px;
	}	
	


/*---------Index5---------Alue jossa menu-laatikot sisällä---------------*/

.wrapper{
	width:808px;
	text-align: center;
	margin-left: auto;
	margin-right: auto;
	margin-top:17px;
	text-align:center;
	
}

/*------------------------------------LAATIKOT------------------------------------------*/

img[data-fit] {
	background-position: 50% 50%;
	background-repeat: no-repeat;
}

img[data-fit~="cover"] {
	object-fit: cover;
	background-size: cover;
}

img[data-fit~="right"][data-fit~="bottom"] {
	object-position: right bottom;
	background-position: right bottom;
}

img[data-fit~="top"] {
	object-position: center top;
	background-position: center top;
}


a{
	text-decoration:none;
	color:#fff;
	}
	
a:hover{
	cursor:pointer;
	}	

#laatikot ul li{
		margin:3px;
		overflow:hidden;
		border-bottom-left-radius: 3px;
		border-bottom-right-radius: 3px;
	}		

#laatikot a {
    position: relative;
    display: flex;
}
  
#laatikot a span{
	background-color:rgba(100,101,103,0.6);
	bottom:0;
	left: 50%;
    margin-left: -50%;
	position: absolute;
	font-size:1.05em;
	font-weight:700;
	border-bottom-left-radius: 3px;
	border-bottom-right-radius: 3px;
	max-width:100%;
}

	
/*--------------Pienet laatikot----------*/	

.pieni-laatikko{
	position:relative;
	padding:0;
	float:left;
}
.pieni-laatikko img{
	min-height:200px;
	max-height:200px;
	width: 195px;
	border-radius: 3px;

}	
.pieni-laatikko a span{
	width: 92%;
	padding:18px 8px;
}

.tasa{
	padding: 7.5px 8px !important;
}


/*---------------Isot laatikot----------*/

.iso-laatikko{
	position:relative;
	padding:0;
	float:left;
	
}

.iso-laatikko img{
	min-height:200px;
	max-height:200px;
	width:800px;
	border-radius: 3px;

}

.iso-laatikko a span{
	padding: 18px 20px;
	text-align:left;
	width: 95%;
}

#pallo{
	position: absolute;
	left: -80px;
	top: -60px;
	content: "&nbsp;";
	background-color: rgba(0, 133, 51, 0.75);
	border-radius: 50%;
	width: 320px;
	height: 320px;
	
}

	
/*---------Index12---------Uusi tulevaisuus-teksti------------------------------*/
.wrapper h3{
	margin-top:10px;
	float:right;
	font-size: 2.5em;
	font-family: 'Satisfy', cursive;
	color: #fff;
	text-shadow: 3px 3px 5px #333333;
	
	}
	
@media screen and (min-width: 100px) and (max-width: 580px) { 


header{
	font-size:1em;
	text-align:center;
}

body{
overflow-x:hidden;
width:100%;
}


.wrapper{
	text-align:center;
	position: relative;
	width:100%;
	left:0;
	top:0;
	min-width:100px;
	}

/*Sovatek-logon määritykset*/

.logo{
	min-width:90px;
	padding-top:20px;
	margin-bottom:0;
	padding-right:20%;
	padding-left:20%;
	width:60%;
	}	

	
#laatikot ul{
	width:95%;
	margin:0 auto;
}	

#laatikot ul li{
	width:100%;
	overflow:hidden;
}

/*--------------Pienet laatikot----------*/	


.pieni-laatikko img{
	max-height:200px;
	width: 524px;
	object-position: center;
	object-fit: cover;
}
.pieni-laatikko a span{
	display:block;
	width:100%;
	padding:18px 0;
}

.tasa{
	padding: 18px 0 !important;
}
/*---------------Isot laatikot----------*/

.iso-laatikko img{
	max-height:200px;
	object-fit: cover;
	object-position: center;
}
.iso-laatikko a span{
	width: 92.3%;
}


}