/* ************************************************************** */
/* Основные установки селлекторов, классов, идентификаторов и т.д */
/* ************************************************************** */
body {
	background-image: url("tile.jpg");
	background-repeat: repeat;
	background-attachment: fixed;
	font-family: Verdana, sans-serif;
}
header img {
	text-align: center;
	margin: 0;
}
.container {
	width: 100%;
	height: 100%;
	text-align: center;
}
.wrap {
	width: 900px;
	height: 100%;
	margin: auto;
}
#main {
	width: 100%;
	margin: 0;
	padding: 30px;
	background-color: #FFFF99;
	position: relative;
	top: 0px;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	-webkit-box-shadow: 0 0 10px 5px #002400 inset;
	box-shadow: 0 0 10px 5px #002400 inset;
	-webkit-border-radius: 20px;
	border-radius: 20px;
	color: #002600;
}
#main h1 {
	margin: 20px 0;
	padding-bottom: 20px;
	font-size: 2em;
	font-weight: bold;
	border-bottom: 2px solid #8A2BE2;
}
#main h2 {
	font-size: 1.8em;
	padding: 25px 0 15px 0;
}
#main>blockquote {
	margin-left: 400px;
	padding: 20px 0;
}
#main>blockquote p {
	font-style: italic;
}
#main p {
	padding-bottom: 20px;
	text-align: left;
	font-size: 1.2em;
}
#main>img {
	padding: 20px;
}
#main a {
	text-decoration: none;
	color: #008000;
}
#main a:hover {
	color: #800000;
}
#features-list{
	list-style: disc outside;
	padding: 0 0 20px 40px;
	text-align: left;
	font-size: 1.2em;
}
#features-list>li {
	margin-bottom: 10px;
}
.video {
	text-align: center;
}
#contacts {
	margin-top: 40px;
	font-size: 1.2em;
	text-align: left;
}
#contacts th {
	font-weight: bold;
	padding: 10px 0;
}
#contacts td {
	padding-bottom: 5px;
}
footer {
	padding: 15px;
	margin: 10px;
}

/* *************************************** */
/* Установки для навигационного меню сайта */
/* *************************************** */
.main_menu {
	width: 100%;
	position: relative;
	float: left;
	border-bottom: 3px solid #FFFF00;
	z-index: 12;
}
.main_menu>li {
	float: left;
}
.main_menu a {
	display: block;
	padding: 7px 30px;
	text-transform: uppercase;
	font-family: "Russo One", "Arial Black", Arial, sans-serif;
	font-size: 1.6em;
	text-decoration: none;
}
.main_menu .sub_menu {
	display: none;
	width: 900px;
	position: absolute;
	float: left;
	left: 0;
	top: 40px;
}
.main_menu .sub_menu>li {
	float: left;
}
.main_menu>li:hover .sub_menu {
	display: block;
}
.main_menu .sub_menu a {
	display: block;
	padding: 10px 30px;
	text-transform: capitalize;
	font-family: Arial, sans-serif;
	font-size: 1em;
	font-weight: bold;
	text-decoration: none;
	-webkit-backface-visibility: visible !important;
	backface-visibility: visible !important;
	-webkit-animation-duration: 1s;
    animation-duration: 1s;
	-webkit-animation-name: flipInX;
	animation-name: flipInX;
}
#ENG {
	position: relative;
	top: 5px;
	float: right;
}
#ENG a {
	padding: 0 5px;
}
#RUS {
	position: relative;
	top: 5px;
	float: right;
}
#RUS a {
	padding: 0 5px;
}
.gradient {
	margin: 5px 10px;
	height: 70px;
	position: relative;
	top: 85px;
	background: linear-gradient(to top, rgba(255,255,153,0), rgba(255,255,153,1));
	border-radius: 20px;
}
#back_to_top {
	position: fixed;
	display: block;
	bottom: 30px;
	cursor: pointer;
	margin-left: -110px;
	z-index: 10;
}

/* **************************************** */
/* Установки и настройки анимации для сайта */
/* **************************************** */
.float {
	-webkit-transition-property: transform, color;
	transition-property: transform, color;
	-webkit-transition-duration: 0.3s, 0.5s;
	transition-duration: 0.3s, 0.5s;
	-webkit-transform: translateZ(0);
	transform: translateZ(0);
	color: #FFFF00;
}

.float:hover, .float:focus {
	-webkit-transform: translateY(-5px);
	transform: translateY(-5px);
	color: #FFFFE0;
}

.sink {
	-webkit-transition-property: transform, color;
	transition-property: transform, color;
	-webkit-transition-duration: 0.3s, 0.5s;
	transition-duration: 0.3s, 0.5s;
	-webkit-transform: translateZ(0);
	transform: translateZ(0);
	color: #FFFF00;
}

.sink:hover, .sink:focus {
	-webkit-transform: translateY(3px);
	transform: translateY(3px);
	color: #FFFFE0;
}

@keyframes flipInX {
	0% {
		-webkit-transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
		transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
		-webkit-transition-timing-function: ease-in;
		transition-timing-function: ease-in;
		opacity: 0;
	}
	40% {
		-webkit-transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
		transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
		-webkit-transition-timing-function: ease-in;
		transition-timing-function: ease-in;
	}
	60% {
		-webkit-transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
		transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
		opacity: 1;
	}
	80% {
		-webkit-transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
		transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
	}
	100% {
		-webkit-transform: perspective(400px);
		transform: perspective(400px);
	}
}

@-webkit-keyframes flipInX {
	0% {
		-webkit-transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
		transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
		-webkit-transition-timing-function: ease-in;
		transition-timing-function: ease-in;
		opacity: 0;
	}
	40% {
		-webkit-transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
		transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
		-webkit-transition-timing-function: ease-in;
		transition-timing-function: ease-in;
	}
	60% {
		-webkit-transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
		transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
		opacity: 1;
	}
	80% {
		-webkit-transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
		transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
	}
	100% {
		-webkit-transform: perspective(400px);
		transform: perspective(400px);
	}
}

@keyframes pulse {
	0% {
		-webkit-transform: scale3d(1, 1, 1);
		transform: scale3d(1, 1, 1);
	}
	50% {
		-webkit-transform: scale3d(1.05, 1.05, 1.05);
		transform: scale3d(1.05, 1.05, 1.05);
	}
	100% {
		-webkit-transform: scale3d(1, 1, 1);
		transform: scale3d(1, 1, 1);
  }
}

@-webkit-keyframes pulse {
	0% {
		-webkit-transform: scale3d(1, 1, 1);
		transform: scale3d(1, 1, 1);
	}
	50% {
		-webkit-transform: scale3d(1.05, 1.05, 1.05);
		transform: scale3d(1.05, 1.05, 1.05);
	}
	100% {
		-webkit-transform: scale3d(1, 1, 1);
		transform: scale3d(1, 1, 1);
	}
}

.pulse {
	-webkit-animation-duration: 1s;
    animation-duration: 1s;
	-webkit-animation-name: pulse;
	animation-name: pulse;
}

@-webkit-keyframes hover {
	0% {
		-webkit-transform: translateY(-1px);
		transform: translateY(-1px);
	}
	
	20% {
		-webkit-transform: translateY(-2px);
		transform: translateY(-2px);
	}
	
	40% {
		-webkit-transform: translateY(-3px);
		transform: translateY(-3px);
	}
	
	60% {
		-webkit-transform: translateY(-4px);
		transform: translateY(-4px);
	}
	
	80% {
		-webkit-transform: translateY(-5px);
		transform: translateY(-5px);
	}

	100% {
		-webkit-transform: translateY(-6px);
		transform: translateY(-6px);
	}
}

@keyframes hover {
	0% {
		-webkit-transform: translateY(-1px);
		transform: translateY(-1px);
	}
	
	20% {
		-webkit-transform: translateY(-2px);
		transform: translateY(-2px);
	}
	
	40% {
		-webkit-transform: translateY(-3px);
		transform: translateY(-3px);
	}
	
	60% {
		-webkit-transform: translateY(-4px);
		transform: translateY(-4px);
	}
	
	80% {
		-webkit-transform: translateY(-5px);
		transform: translateY(-5px);
	}

	100% {
		-webkit-transform: translateY(-6px);
		transform: translateY(-6px);
	}
}

.hover {
	-webkit-transition-duration: 0.5s;
	transition-duration: 0.5s;
	-webkit-transition-property: transform;
	transition-property: transform;
	-webkit-transform: translateZ(0);
	transform: translateZ(0);
	opacity: 0.4;
}

.hover:hover, .hover:focus {
	-webkit-transform: translateY(-6px);
	transform: translateY(-6px);
	opacity: 1;
	-webkit-animation-name: hover;
	animation-name: hover;
	-webkit-animation-duration: 0.5s;
	animation-duration: 0.5s;
	-webkit-animation-delay: 0.5s;
	animation-delay: 0.5s;
	-webkit-animation-timing-function: linear;
	animation-timing-function: linear;
	-webkit-animation-iteration-count: infinite;
	animation-iteration-count: infinite;
	-webkit-animation-direction: alternate-reverse;
	animation-direction: alternate-reverse;
}