#layers{
	margin: 20px 0;	
}

#struktura_blokk div.struct_item,
#layers div.layer_item{
	background: url('../logo.png') center center no-repeat #EDEDED;
	background-origin: padding-box;
	background-size: contain;
	border: 3px solid transparent;
	cursor: pointer;
	display: inline-block;
	font-size: 1.5em;
	font-weight: 600;
	height: 80px;
	padding: 20px 10px;
	text-align: center;
	transition: all .5s ease-in-out;
	vertical-align: top; 
}

#struktura_blokk div.struct_item{
	margin: 0 1.1%;
	width: 20%;
}

#layers div.layer_item{
	margin: 0px .6%;
	width: 16%;
}

#struktura_blokk div.struct_item:hover,
#struktura_blokk div.struct_item.selected,
#layers div.layer_item:hover,
#layers div.layer_item.selected{
	background: #E0E0E0;
	border-color: #47baed;	
}

#layers .layer_row{
	display: none;
	margin: 10px 0;
}

#layers .layer_row .item_props{
	background: #47baed;
	display: none;
	padding: 10px;
	width: 100%;
}

#layers .layer_row .item_props select{
	display: inline-block;
	margin-bottom: 0;
	margin-right: 10px;
}

a.add_layer,
a.calculate{
	background-color: #EDEDED;
	color: #3D3D3D;
	display: inline-block;
	font-size: 2em;
	font-weight: 800;
	margin: 20px -4px;
	padding: 15px 0;
	text-align: center;
	text-decoration: none;
	transition: .2s all ease-in-out;
	width: 50%;
}

a.add_layer:hover,
a.calculate:hover{
	background-color: #47baed;
	color: #EDEDED;
}

a.deleteLayer{
	color: #000;
}

.calc_popup{
	background: #fff;
	box-shadow: 0 0 10px #999;
	display: none;
	margin-left: -400px;
	padding: 40px 20px;
	position: fixed;
		left: 50%;
		top: 80px;
	text-align: center;
	width: 100%;
	max-width: 800px;
}

.calc_popup h3{
	font-size: 2em;
	text-transform: none;
}

.calc_popup .close{
	background: #FFF;
	border: 2px solid #ddd;
	border-radius: 16px;
	color: #666;
	cursor: pointer;
	height: 16px;
	position: absolute;
		right: -8px;
		top: -8px;
	text-align: center;
	width: 16px;
}

.calc_popup .diagram{
	background: #FFF;
	margin: 0 auto;
	height: 50px;
	max-width: 490px;
	padding: 0;
	position: relative;
}

.calc_popup .diagram img{
	width: 100%;
}

.calc_popup .diagram .arrow{
	background: #FFF;
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;	
	border-bottom: 8px solid #333;
	height: 0px;
	position: absolute;
		left: -4px;
		bottom: -10px;
	width: 0;
}


@media (max-width: 960px){
	#struktura_blokk div.struct_item{
		margin: 10px 1.1%;
		width: 43.25%;
	}
	
	#layers div.layer_item{
		margin: 10px .6%;
		width: 28%;
	}
}

@media (max-width: 760px){
	#struktura_blokk div.struct_item{
		margin: 10px 0%;
		padding: 10px 0;
		width: 100%;
	}
	
	#layers div.layer_item{
		margin: 10px 0%;
		padding: 10px 0;
		width: 100%;
	}
}
