@import url('https://fonts.googleapis.com/css?family=Oswald:300,400,500,700&display=swap&subset=cyrillic');
html, body {
	width: 100%;
	min-height: 100%;
	margin: 0;
	padding: 0;
	color: #fff;
	font-family: 'Oswald', sans-serif;
	font-size: 16px;
}
* {
	box-sizing: border-box;
}
h1, h2, h3, h4, h5, h6 {
	user-select: none;
	text-align: center;
	border-bottom: 2px dashed rgba(255,255,255,0.7);
	text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
	letter-spacing: 0.3px;
	margin: 0 0 15px;
	padding: 5px 15px;
}
a, a:visited, a:active, a:hover {
	text-decoration: none;
	user-select: none;
	color: rgba(255,255,255,0.7);
	transform: translate(-50%, -50%);
}
button {
	border: 0;
	user-select: none;
	cursor: pointer;
}
ul, ul li {
	margin: 0;
	padding: 0;
	text-align: left;
}
ul {
	padding: 0 25px;
}
:root {
	--color-accent: #3d1074;
	--color-main: #6a36a5;
	--color-hover: #ab8fca;
}
input {
	transition: all 0.2s ease-in;
}
input:disabled {
	filter: grayscale(100%);
	transition: all 0.2s ease-in;
}

/****** layout *********/
#wrapper {
	width: 100vw;
	height: 100vh;
	overflow: hidden;
	background: url('../images/noxis_bg.jpg') 50% 50% / cover no-repeat;
	position: relative;
}
#header {
	position: fixed;
	left: 0;
	top: 10vh;
	z-index: 999;
	width: 100%;
	height: 80px;
	padding: 0 35px;
	user-select: none;
	display: flex;
	transform: translateZ(40px);
	transform-style: preserve-3d;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}
.content {
	padding: 0;
	position: absolute;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	z-index: -1;
	transform: rotateY(90deg);
	opacity: 0;
	transform-style: preserve-3d;
	transition: all 0.5s ease-in-out;
}
.content.active {
	z-index: 1;
	opacity: 1;
	text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
	transform: rotateY(0deg);
	transition: all 0.5s ease-in-out;
}
.content h2 {
	transform: translateZ(100px);
}
.center {
	position: absolute;
	left: 50%;
	top: 50%;
	text-align: center;
	padding: 15px;
	color: var(--color-accent);
	border: 1px dashed rgba(255,255,255,0.5);
	background: rgba(255,255,255,0.5);
	transform: translate3d(-50%, -50%, 60px);
	transition: all 0.2s ease-in-out;
	box-shadow: 3px 3px 10px rgba(0,0,0,0.3);
}
#tilt {
	width: 100%;
	height: 100%;
	transform-style: preserve-3d;
}
#footer {
	position: fixed;
	bottom: 5vh;
	right: 5vh;
	width: 100%;
	height: 25px;
	line-height: 25px;
	color: #fff;
	padding: 0 35px;
	text-align: right;
	user-select: none;
	text-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}
#title {
	color: #fff;
	text-align: center;
	font-size: 64px;
	z-index: 999;
	text-shadow: 5px 5px 10px rgba(0,0,0,0.5);
	transform: translateZ(10px);
}
#logo {
	position: absolute;
	width: 45vh;
	height: 45vh;
	left: 50%;
	top: 50%;
	transform: translate3d(-50%, -50%, 45px);
}
#logo img {
	width: 100%;
}

/********* menu ************
******************************/
#header-menu {
	text-align: center;
	transform: rotateY(90deg) translateZ(10px);
	opacity: 0;
	transition: all 0.5s ease-in-out;
}
#header-menu.active {
	opacity: 1;
	transform: rotateY(0deg) translateZ(20px);
	transition: all 0.5s ease-in-out;
}
.header-menu__item {
	font-size: 24px;
	padding: 3px 10px;
	text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
#menu {
	position: absolute;
	width: 45vh;
	height: 45vh;
	left: 50%;
	top: 50%;
	z-index: 999;
	transform: translate3d(-50%, -50%, 55px);
}
#menu-border {
	position: absolute;
	width: 30vh;
	height: 30vh;
	left: 50%;
	top: 50%;
	border: 2px dashed rgba(255,255,255,0.5);
	transform: translate3d(-50%, -50%, 35px) rotate(45deg);
}
.menu__item {
	position: absolute;
	display: block;
	color: rgba(255,255,255,0.7);
	text-transform: uppercase;
	padding: 15px;
	white-space: nowrap;
	text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
	transition: all 0.2s ease-in-out;
}
.menu__item:hover {
	color: #fff;
	text-decoration: underline;
	transition: all 0.2s ease-in-out;
}
.menu__item--about {
	left: 50%;
	top: 0;
	transform: translate(-50%, -80%);
}
.menu__item--works {
	left: 0;
	top: 50%;
	transform: translate(-95%, -50%);
}
.menu__item--techs {
	left: 100%;
	top: 50%;
	transform: translate(-5%, -50%);
}
.menu__item--contacts {
	left: 50%;
	top: 100%;
	transform: translate(-50%, -20%);
}
.menu__item--about:hover {
	transform: translate(-50%, -80%) scale(1.1);
}
.menu__item--works:hover {
	transform: translate(-95%, -50%) scale(1.1);
}
.menu__item--techs:hover {
	transform: translate(-5%, -50%) scale(1.1);
}
.menu__item--contacts:hover {
	transform: translate(-50%, -20%) scale(1.1);
}
.mi.active {
	transform: scale(1.1);
	text-decoration: underline;
	transition: all 0.2s ease-in-out;
}
/********* Works ***********
***************************/
#works-list {
	list-style: none;
	margin: 0;
	padding: 0;
	width: 990px;
	display: flex;
	justify-content: space-around;
	align-items: flex-start;
	flex-wrap: wrap;
	overflow-y: scroll;
	padding-right: 10px;
	max-height: 40vh;
}
.works-list__item {
	width: 300px;
	display: flex;
	margin-bottom: 25px;
	color: var(--color-main) !important;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	transform: none;
}
.works-list__item:hover {
	transform: none;
}
.works-list__item-header {
	outline: 1px solid var(--color-accent);
	margin: 0;
	padding: 0;
	background: var(--color-accent);
}
.works-list__item-title {
	color: #fff;
	margin: 0;
	padding: 0;
	border: none;
	line-height: 30px;
}
.works-list__item-desc {
	text-align: center;
	width: 100%;
}
.works-list__item-image {
	max-width: 100%;
}
.flickity-viewport {
	width: 100%;
	user-select: none;
}
/********* Scroll bar fix *******
********************************/
::-webkit-scrollbar {
  width: 5px;
}

/* Track */
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px grey; 
  border-radius: 0;
}
 
/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--color-accent); 
  border-radius: 0;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: var(--color-main); 
}
/********** Form contact *******
*******************************/
#contact-form {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}
#contact-form label {
	width: 100%;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	margin-bottom: 10px;
}
#contact-form label span {
	min-width: 150px;
	text-align: right;
	padding-right: 20px;
}
#contact-form label input, #contact-form label textarea {
	min-width: 400px;
	max-width: 400px;
	padding: 3px 10px;
	font-family: 'Oswald', sans-serif;
	border: 1px solid var(--color-hover);
	color: var(--color-accent);
	box-sizing: border-box;
}
#contact-form label textarea {
	min-height: 100px;
	max-height: 100px;
}
#contact-form input[type="submit"] {
	padding: 5px 45px;
	background: var(--color-main);
	color: #fff;
	border: none;
	font-size: 14px;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: inset 0 0 10px rgba(255,255,255,0);
	transition: all 0.2s ease-in-out;
}
#contact-form input[type="submit"]:hover {
	background: var(--color-accent);
	box-shadow: inset 0 0 10px rgba(255,255,255,0.3);
	transition: all 0.2s ease-in-out;
}
#contact-list {
	list-style: none;
	margin-bottom: 15px;
}
#contact-list span {
	font-weight: 500;
	width: 90px;
	display: inline-block;
}
#contact-list a {
	color: var(--color-accent);
}
#contact-list i.fa {
	display: inline-block;
	width: 35px;
	text-align: center;
}
#contact-response {
	transition: all 0.5s ease-in-out;
	margin-bottom: 10px;
}
#contact-response.error {
	color: #990000;
}
/******** Parallax ************
******************************/
.square {
	background: rgba(201,201,201,0.2);
	background: -moz-linear-gradient( -45deg, rgba(201,201,201,0.2) 0%, rgba(255,255,255,0.3) 100%);
	background: -webkit-linear-gradient( -45deg, rgba(201,201,201,0.2) 0%, rgba(255,255,255,0.3) 100%);
	background: -ms-linear-gradient( -45deg, rgba(201,201,201,0.2) 0%, rgba(255,255,255,0.3) 100%);
	opacity: 1;
	height: 80vh;
	width: 80vh;
	top: 50%;
	position: absolute;
}
.square--left {
	left: 25%;
	box-shadow: 0 0 10px rgba(0,0,0,0.5);
	border: 1px dashed rgba(255,255,255,0.3);
	transform: translate3d(-50%, -50%, 10px) rotate(45deg);
}
.square--right {
	left: 75%;
	box-shadow: 0 0 10px rgba(0,0,0,0.5);
	border: 1px dashed rgba(255,255,255,0.3);
	transform: translate3d(-50%, -50%, 10px) rotate(45deg);
}
.square--small-left {
	left: 20%;
	width: 15vh;
	height: 15vh;
	top: 30%;
	background: rgba(255,255,255,0.5);
	box-shadow: 0 0 10px rgba(0,0,0,0.2);
	transform: translate3d(-50%, -50%, 50px) rotate(45deg);
}
.square--small-right {
	left: 80%;
	top: 70%;
	width: 10vh;
	height: 10vh;
	background: rgba(255,255,255,0.3);
	box-shadow: 0 0 10px rgba(0,0,0,0.2);
	transform: translate3d(-50%, -50%, 50px) rotate(45deg);
}
.square--small-left-2 {
	left: 21%;
	width: 5vh;
	height: 5vh;
	top: 27%;
	background: #ab8fca;
	box-shadow: 0 0 10px rgba(0,0,0,0.2);
	transform: translate3d(-50%, -50%, 80px) rotate(45deg);
}

/******** Media Queries *********
********************************/
@media screen and (max-width: 1200px) {

}
@media screen and (max-width: 720px) {
	#footer {
		bottom: 5vh;
		right: 0;
		width: 100%;
		padding: 0 10px;
		text-align: center;
	}
	.center {
		max-width: 90vw;
		min-width: 80vw;
		max-height: 70vh;
		top: 55%;
	}
	.header-menu__item {
		font-size: 16px;
		padding: 3px 5px;
	}
	#header {
		top: 3vh;
		padding: 0 10px;
	}
	.square--small-left-2 {
		transform: translateZ(50px) rotate(45deg);
	}
	#works-list {
		width: 100%;
	}
	.works-list__item {
		width: 100%;
	}
	#contact-form label input, #contact-form label textarea {
		min-width: 70%;
		max-width: 70%;

	}
	#contact-form label span {
		min-width: 29%;
		max-width: 29%;
		box-sizing: border-box;
		font-size: 14px;
	}
	#contact-list {
		font-size: 12px;
		margin: 0;
		padding: 0;
	}
	#contact-list span {
		width: 60px;
	}
	#menu {
		width: 90vw;
		height: 90vw;
	}
	.menu__item--about {
		left: 0;
		top: 0;
		transform: translate(0, -50%);
	}
	.menu__item--works {
		left: 100%;
		top: 0;
		transform: translate(-100%, -50%);
	}
	.menu__item--techs {
		left: 0;
		top: 100%;
		transform: translate(0, -50%);
	}
	.menu__item--contacts {
		left: 100%;
		top: 100%;
		transform: translate(-100%, -50%);
	}
	.menu__item--about:hover, .menu__item--works:hover, .menu__item--techs:hover, .menu__item--contacts:hover {
		transform: translate(-50%, -50%) scale(1.1);
	}
}