﻿			/* reset */
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, 
pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, 
q, s, samp,small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, 
dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, 
thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, 
footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, 
audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	vertical-align: baseline;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1.2;
}
ol { 
	padding-left: 1.4em;
	list-style: decimal;
}
ul {
	padding-left: 1.4em
	list-style: square;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
* {
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
			/* style */
html {
	background-image:url(images/main.png);
	background-size: cover;
	background-repeat: no-repeat;
	background-clip: content-box;
	background-attachment: fixed;
}
body {
	display:flex;
	flex-direction:column;
	justify-content:flex-start;
	align-items:stretch;
	width:960px;
	margin: 0 auto;
}
header {
	display:flex;
	flex-direction:row;
	justify-content:space-between;
}
#banner {
	display:block;
	margin-top: 30px;
	text-align: center;
}
#banner p {
	font: bold 18px Arial, Helvetica, sansserif;
	text-align:center;
	margin-left: 10px;
}

#OOO {
	margin: 50px 10px 0;
	font: bold 18px Arial, Helvetica, sansserif;
	text-align: center;
}

#headForms {
	display: block;
	margin: 15px 0;
}
#feedback {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
#feedbackContacts > p {
	display: flex;
	align-items: center;
	margin: 5px 0;
	font: bold 18px Arial, Helvetica, sansserif;
}
#feedbackContacts > p > img {
	margin-right: 10px;
}

#basketLink {
	text-decoration: none;
}

#basketLink:before {
	content: "Корзина";
	display: block;
	background-color: #1f75fe;
}

#itSearch {
	width: 420px;
	padding: 6px 3px;
	border-radius: 4px;
	border: 2px solid #1f75fe;
	margin-top: 20px;
}
footer {
	margin-top: 10px;
	border-radius: 4px 4px 0 0;
	background-color:#00008a;
	font: bold 14px Arial, Helvetica, sansserif;
	color: #fff;
}

footer > p {
	text-align: center;
	margin: 20px 0;
}

#footerInfo {
	display: flex;
	justify-content: space-around;
	margin: 20px 0;
}

nav ul{
	padding: 0 20px;
	border-radius: 5px;
	font: bold 18px Arial, Helvetica, sansserif;
	background-color: #008;
	overflow:hidden;
}
nav li{
	display:inline-block;
}
nav a{
	display:block;
	color:#fff;
	text-align:center;
	padding:14px 16px;
	text-decoration:none;
}
nav li:hover {
	background-color: #1f75fe;
}

#categories {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	flex-wrap: wrap;
	margin: 20px 0;
}

#categories > a {
	text-decoration: none;
}
.cont{
	display: block;
	height: 175px;
	width: 225px;
	border: solid 1px #00008a;
	margin-top: 20px;
	margin-bottom: 30px;
}

.cont:hover {
	cursor: pointer;
	border: solid 1px #1f75fe;
}

#container1 {
	background-image:url(images/kabel.png);
}
#container2 {
	background-image:url(images/provod.png);
}
#container3 {
	background-image:url(images/lampa.png);
}
#container4 {
	background-image:url(images/rubilnik.png);
}
#container5 {
	background-image:url(images/tehnik.png);
}
#container6 {
	background-image:url(images/rozetka.png);
}
#container7 {
	background-image:url(images/molnia.png);
}
#container8 {
	background-image:url(images/other.jpg);
}
		
.cont > p {
	height: 50px;
	background-color: #00008a;
	font: 18px Arial, Helvetica, sansserif;
	color:#FFFFFF;
	text-align: center;
	margin-top: 125px;
	padding: 5px;
}

.cont:hover > p {
	background-color: #1f75fe;
}

#links {
	display: flex;
	flex-direction: row;
	justify-content: space-around;
	align-items: baseline;
}

.linksBlock {
	border-radius: 4px;
	width: 300px;
	height: 200px;
	background-color: #1f75fe;
}

.linksBlock	h1 {
	margin: 10px;
	height: 70px;
	font: 30px Arial, Helvetica, sansserif;
	text-align: center;
	color: #fff;
}

.linksBlock ul {
	margin-top: 20px;
	list-style-type: none;
}

.linksBlock ul > li {
	margin: 5px 40px;
}

.linksBlock ul > li a{
	font: 18px Arial, Helvetica, sansserif;
	color: #fff;
	text-decoration: none;
}

.linksBlock ul > li a:hover {
	text-decoration: underline;
}

		
		/*.modal {
			display: none; 
			position: fixed; 
			z-index: 1; 
			padding-top: 200px; 
			left: 0;
			top: 0;
			width: 100%;
			height: 100%; 
			overflow: auto; 
			background-color: rgb(0,0,0); 
			background-color: rgba(0,0,0,0.9);
		}

		.modal-content {
			position: relative;
			background-color: #1f75fe;
			margin: auto;
			padding: 0;
			border: 1px solid #00008a;
			width: 50%;
			box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
			-webkit-animation-name: animatetop;
			-webkit-animation-duration: 0.4s;
			animation-name: animatetop;
			animation-duration: 0.4s
		}

		@-webkit-keyframes animatetop {
			from {top:-300px; opacity:0} 
			to {top:0; opacity:1}
		}

		@keyframes animatetop {
			from {top:-300px; opacity:0}
			to {top:0; opacity:1}
		}

		.close {
			color: white;
			float: right;
			font-size: 28px;
			font-weight: bold;
		}

		.close:hover,
		.close:focus {
			color: #000;
			text-decoration: none;
			cursor: pointer;
		}

		.modal-header {
			padding: 2px 16px;
			background-color: #5cb85c;
			color: white;
		}

		.modal-body {padding: 2px 16px;}

		.modal-footer {
			padding: 2px 16px;
			background-color: #5cb85c;
			color: white;
		}
		.modal-header {
		
		}
		.modal-header > h2 {
		
		}*/
		
/* Modal Window */
.openMW {
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	border-radius: 4px;
	background-color: #1f75fe;
	border: none;
	font: 20px Arial, Helvetica, sansserif;
	text-align: center;
	color: #FFFFFF;
	height:100px;
	width: 160px;
	margin: 0 5px;
	-webkit-transition-duration: 0.4s; /* Safari */
	transition-duration: 0.4s;
	text-decoration: none;
	overflow: hidden;
	cursor: pointer;
}

.openMW:hover {
	background-color: rgba(31, 117, 254, 0.75);
}

.closeMW {
	position: absolute;
	top: 5px;
	right: 10px;
	font-weight: bold;
	color: #fff;
}

.closeMW:hover {
	color: #f00;
	text-shadow: 1px 1px 3px #fff, -1px -1px 5px #fff;
}

.checkMW {
	display: none;
}

.gridMW {
	display: none;
	justify-content: center;
	align-items: center;
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.8);
}

.bodyMW {
	position: relative;
	min-width: 300px;
	border: 2px solid #1f75fe;
	border-radius: 5px 5px 0 0;
	background-color: #fff;
	font: 18px Arial, Helvetica, sansserif;
	animation-name: animatetop;
	animation-duration: 0.4s;
}

#fbCheckMW:checked + #fbGridMW {
	display: flex;
}
/* feedback */
.fbHeader {
	padding: 5px;
	background-color: #1f75fe;
}

.fbMain {
	padding: 5px;
}

.fbCaption {
	color: #fff;
}

.fbText {
	width: 100%;
	padding: 5px 3px;
	border-radius: 4px;
	border: 2px solid #1f75fe;
	margin: 10px 0;
}

.fbArea {
	width: 100%;
	height: 100px;
	padding: 5px 3px;
	border: 2px solid #1f75fe;
	border-radius: 4px;
	margin: 10px 0;
	resize: none;
	
}

.fbButton {
	display: inline-block;
	position: relative;
	border-radius: 4px;
	background-color: #1f75fe;
	border: none;
	font-size: 18px;
	text-align: center;
	color: #FFFFFF;
	padding: 10px;
	margin: 10px 0;
	height:40px;
	width: 120px;
	-webkit-transition-duration: 0.4s; /* Safari */
	transition-duration: 0.4s;
	text-decoration: none;
	overflow: hidden;
	cursor: pointer;
}

.fbButton:hover {
	background-color: rgba(31, 117, 254, 0.75);
}

.fbButton:after {
	content: "";
	background: #f1f1f1;
	display: block;
	position: absolute;
	padding-top: 300%;
	padding-left: 350%;
	margin-left: -20px !important;
	margin-top: -120%;
	opacity: 0;
	transition: all 0.8s
}

.fbButton:active:after {
	padding: 0;
	margin: 0;
	opacity: 1;
	transition: 0s
}