html, body{
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
	font-family: 'PT Sans', sans-serif;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
  background: #132530;
	transition-duration: 1s;
	transition-delay: 0;
	transform-origin: bottom;
}


body {
    background: linear-gradient(271deg, #132530, #203745, #132530, #203745, #132530, #203745, #132530, #203745, #132530);
    background-size: 2000% 2000%;

    -webkit-animation: main 31s ease infinite;
    -moz-animation: main 31s ease infinite;
    -o-animation: main 31s ease infinite;
    animation: main 31s ease infinite;
}

@-webkit-keyframes main {
    0%{background-position:0% 50%}
    50%{background-position:100% 51%}
    100%{background-position:0% 50%}
}
@-moz-keyframes main {
    0%{background-position:0% 50%}
    50%{background-position:100% 51%}
    100%{background-position:0% 50%}
}
@-o-keyframes main {
    0%{background-position:0% 50%}
    50%{background-position:100% 51%}
    100%{background-position:0% 50%}
}
@keyframes main {
    0%{background-position:0% 50%}
    50%{background-position:100% 51%}
    100%{background-position:0% 50%}
}

ol, ul {
	list-style: none;
}
blockquote, q {
	font-family: 'PT Serif', serif;
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

html
{
	min-height: 100vh;
  color: #fff;
}
a{
	color: #fff;
	text-decoration: none;
	font-size: 28px;
}

img{
	font-size: 16px;
}

/* HEADER */

#header{
  margin: auto;
  font-weight: bold;
  font-size: 20px;
}
.header-text{
	padding: 0;
	margin: 0 0 30px 0;
}
.header-logo{
	margin: 30px 0;
}

/* NAV */

#nav{
	background-color: rgba(120, 191, 234, 0.1);
	padding: 30px 0;
	text-align: center;
}

#nav a{
	display: inline-block;
	font-weight: bold;
	color: #5C788A;
	font-size: 16px;
	padding: 0 10px;
	transition-duration: .2s;
}

#nav a:hover{
	color: #fff;
	transform: scale(1.1);
	animation: 1s ease-in-out 2s infinite alternate float_text;
}

#nav a:active{
	color: #e1e1e1;
}

@-webkit-keyframes float_text { from { transform: scale(1.1); } to { transform: scale(1.3); }  }
   @-moz-keyframes float_text { from { transform: scale(1.1); } to { transform: scale(1.3); }  }
     @-o-keyframes float_text { from { transform: scale(1.1); } to { transform: scale(1.3); }  }
        @keyframes float_text { from { transform: scale(1.1); } to { transform: scale(1.3); }  }

a.nav-selected{
	color: #fff;
}


.content{
	padding-bottom: 50px;
}

.content-contacts{
	padding: 0;
}


/* Contacts */

.contacts-page{
	background: linear-gradient(271deg, #132530, #203745, #132530, #203745, #132530, #203745, #132530, #203745, #132530);
	background-size: 10000% 10000%;

	-webkit-animation: main 31s ease infinite;
	-moz-animation: main 31s ease infinite;
	-o-animation: main 31s ease infinite;
	animation: main 31s ease infinite;

	/* background: #132530; */
	min-width: 600px;
	min-height: 200px;
	padding: 30px 20px;
	margin-top: 50px;
}

.contacts-list-item{
	padding: 10px;
	display: block;
}

.profile-name{
	font-size: 28px;
	font-weight: bold;
	margin: 20px 0 10px 0;
	font-variant-caps: all-petite-caps;
}

.profile-picture{
	height: 200px;
	width: 200px;
	overflow: hidden;
	border-radius: 50%;
	margin: auto;
}

.profile-phone a{
	font-family: 'PT Mono', monospace;
	font-size: 14px;
	color: #85C8D1;
	border-radius: 8px;
	padding: 10px;
	transition-duration: .5s;
	margin-bottom: 10px;
	margin: auto;
	display: block;
	max-width: 480px;
}

.profile-phone{
	margin: 30px 0 30px 0;
}

.profile-phone a:hover{
	transition-duration: .2s;
	color: #f9f9f9;
	background: rgba(19, 37, 48, 0.25);
}

.profile-text{
	margin: 0 0 20px 0;
}

.contacts-list{
	margin-top: 20px;
}

.contacts-list-item{
	padding: 20px 0;
	background-color: #132530;
	margin: auto;
	margin-bottom: 15px;
	max-width: 500px;
	font-family: 'PT Mono', monospace;
	font-size: 14px;
	color: #85C8D1;
	transition-duration: .5s;
	border-radius: 5px;
}

.contacts-list-item:hover{
	transition-duration: .2s;
	color: white;
	background-color: #101e26;

}


/* HERO */

#hero{
	background: rgba(0,0,0,0.5);
	text-align: center;
	vertical-align: middle;
	height: 64vh;
	overflow: hidden;
}

#hero-contacts{
	background: rgba(0,0,0,0.5);
	text-align: center;
	vertical-align: middle;
	overflow: hidden;
	padding: 0;
	margin: 0;
}

.hero-over{
	display: flex;
	justify-content: center;
	align-items: center;
	height: 55vh;
}

.hero-over-contacts{
	display: flex;
	justify-content: center;
	align-items: center;
	vertical-align: middle;
}

.hero-video{
	position: relative;
	width: 0;
	height: 0;
}

.hero-video-contacts{
	position: relative;
	width: 0;
	height: 0;
}

.hero-video video{
	width: 100vw;
	position: relative;
	z-index: -1;
	bottom: 30vh;
}

.hero-video-contacts video{
	height: 70vw;
	position: relative;
	bottom: 70px;
	z-index: -1;
}

.hero-title p{
	font-family: 'PT Sans Caption', sans-serif;
	font-weight: bold;
	font-size: 32px;
	margin: 10px 0;
	font-variant-caps: all-petite-caps;
}

.hero-title{
	margin: 40px;
}

.hero-button{
	display: inline-block;
	min-width: 150px;
	font-weight: bold;
	font-size: 20px;
	padding: 20px;
	margin: 0 20px 20px 20px;
	transition-duration: 0.2s;
	border: 3px solid #fff;
	transform-origin: center;
	font-variant-caps: all-petite-caps;
}

.hero-button:hover{
	color: #2c2c2c;
	background: white;
}

.hero-button:active{
	background: #e1e1e1;
}

/* ABOUT ME */

#about{
	text-align: center;
	margin-bottom: 60px;
}

.section-title{
	font-family: 'PT Sans Caption', sans-serif;
	font-weight: bold;
	font-size: 32px;
	display: inline-block;
	margin: 60px 0 40px 0;
}

.section-description{
	font-family: 'PT Sans Caption', sans-serif;
	font-size: 18px;
	display: inline-block;
	margin: 60px 0 40px 0;
	max-width: 1100px;
	line-height: normal;
	padding: 0 10px;
}

#portfolio .section-title{
	font-size: 32px;
}

.showVideoSwitch{
	padding: 10px;
	margin: 10px;
	transition-duration: 0.2s;
	color: #85C8D1;
}
.showVideoSwitch:hover{
	cursor: pointer;
	color: #fff;
}

.showVideoSwitch > * {
    transition: transform 0.3s;
}

.showVideoSwitch > *.rotated {
    transform: rotate(180deg);
}

.about-block{
	background: rgba(120, 191, 234, 0.1);
	max-width: 1100px;
	margin: auto;
	display: flex;
	transform-origin: 450px;
	transition-duration: .5s;
	transition-delay: 0;
	box-shadow: 0px 0px 0 rgba(16, 33, 43, 0.5);
}



.about-left img{
	height: 100%;
	transition-duration: 1s;
	transition-delay: 0;
}

.about-right{
	text-align: left;
	padding: 20px;
}

.about-name{
	font-family: 'PT Sans', sans-serif;
	font-weight: bold;
	font-size: 24px;
	margin-bottom: 10px;
}

.about-subname{
	font-family: 'PT Sans', sans-serif;
	color: #718897;
	margin-bottom: 30px;
}

.about-description{
	font-family: 'PT Serif', serif;
	font-size: 18px;
}
.about-description p{
	line-height: 30px;
}


/* WORK PROFILES */

a.work-profile{
	display: inline-flex;
	width: 333.5px;
	padding: 15px;
	margin: 5px 0;
	background-color: #fff;
	transition-duration: 0.2s;
}

.work-profile img{
	max-height: 25px;
	margin: auto;
}

a.work-profile:hover{
	background-color: #f1f1f1;
}

/* FOOTER */

footer{
	background: rgba(120, 191, 234, 0.1);
	position: absolute;
	width: 100%;
  font-size: 14px;
	text-align: center;
	margin-top: 30px;
}

#contacts-page-footer{
	background: rgba(120, 191, 234, 0);
	height: 0;
	width: 0;
	position: absolute;
}

footer p{
	padding: 0 20px 0 0;
}
body{
	position: relative;
  min-height: 100vh;
}

.footer-contact{
	margin: auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

.footer-contact .title{
	font-family: 'PT Sans Caption', sans-serif;
	font-weight: bold;
	font-size: 24px;
	margin-bottom: 20px;
}

.email a{
	font-family: 'PT Mono', monospace;
	font-size: 14px;
	color: #85C8D1;
	border-radius: 8px;
	padding: 10px;
	transition-duration: .5s;
}

.phone a{
	font-family: 'PT Mono', monospace;
	font-size: 14px;
	color: #85C8D1;
	border-radius: 8px;
	padding: 10px;
	transition-duration: .5s;
}



.footer-left{
	background: rgba(19, 37, 48, 0.25);
	display: flex;
	align-items: center;
	justify-content: center;
	height: 200px;
	width: 400px;
	text-align: center;
	flex-direction: column;
	transition-duration: .5s;
	box-shadow: 0px 0px 0 rgba(16, 33, 43, 0.5);
}
.footer-right{
	background: rgba(19, 37, 48, 0.25);
	display: flex;
	align-items: center;
	justify-content: center;
	height: 200px;
	width: 400px;
	text-align: center;
	flex-direction: column;
	box-shadow: 0px 0px 0 rgba(16, 33, 43, 0.5);
	transition-duration: .5s;
}

.footer-center{
	background: rgba(19, 37, 48, 0.25);
	display: flex;
	align-items: center;
	justify-content: center;
	height: 200px;
	width: 400px;
	text-align: center;
	flex-direction: column;
	box-shadow: 0px 0px 0 rgba(16, 33, 43, 0.5);
	transition-duration: .5s;
	margin: 0 50px;
}

.socials{
	display: flex;
	justify-content: center;
	align-items: center;
	align-self: center;
}

.socials-block{
	background: rgba(16, 33, 43, 0.5);
	display: flex;
	width: 70px;
	height: 70px;
	align-items: center;
	justify-content: center;
	margin: 0 12.5px;
	transition-duration: .5s;
}

#copyright{
	font-family: 'PT Mono', monospace;
	padding: 20px 0;
	width: 100%;
}


.footer-copyright-contacts{
	display: inline;
}

/* Portfolio */


.disabled{
	color: rgba(150, 150, 150, 0.5);
	background-color: rgba(100, 100, 100, 0.1);
	border-color: rgba(150, 150, 150, 0.5);
}

.disabled:hover{
	color: rgba(100, 100, 100, 0.5);
	background-color: rgba(100, 100, 100, 0.5);
	border-color: rgba(100, 100, 100, 0.5);
	cursor: not-allowed;
}

#portfolio{
	text-align: center;

}

#category{
	margin-bottom: 20px;
}

.category-button{
	background-color: rgba(120, 191, 234, 0.1);
	font-family: 'PT Sans', sans-serif;
	font-size: 16px;
	font-weight: bold;
	padding: 15px 50px;
	margin: 0 10px;
	transition-duration: .4s;
}

.category-button:hover{
	transition-duration: .2s;
	background-color: rgba(120, 191, 234, 0.3);
	cursor: pointer;
}

.category-button-selected{
	font-family: 'PT Sans', sans-serif;
	font-size: 16px;
	font-weight: bold;
	padding: 15px 50px;
	margin: 0 10px;
	background-color: #fff;
	color: #132530;
}


.category-block{
	text-align: center;
	display: block;
	margin: 20px auto;
	padding: 20px;
  	max-width: 1100px;
	background-color: rgba(19, 37, 48, 0.5);
}

.category-block .section-title{
	font-variant-caps: all-petite-caps;
	margin: 10px 0;
}

.portfolio-grid{
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	overflow: hidden;
	height: 170px;
	transition-duration: 0.2s;
}

.portfolio-grid-photo{
	display: block;
	grid-template-columns: repeat(3, 1fr);
}

.portfolio-grid.expanded{
	height: auto;
	transition-duration: 0.3s;
}

.portfolio-block{
	background-color: rgba(19, 37, 48, 0.5);
  	margin: 12px 10px;
	transition-duration: .5s;
	box-shadow: 0px 0px 0 rgba(16, 33, 43, 0.1);
	overflow: hidden;
}

.video-portfolio-block{
	background-color: rgba(19, 37, 48, 0.5);
  	margin: 12px 10px;
	transition-duration: .5s;
	box-shadow: 0px 0px 0 rgba(16, 33, 43, 0.1);
}

.photo-portfolio-block{
	background-color: rgba(19, 37, 48, 0.5);
  	margin: 12px 10px;
	transition-duration: .5s;
	box-shadow: 0px 0px 0 rgba(16, 33, 43, 0.1);
	max-height: 300px;
	transition-duration: 0.3s;
	max-width: 80vw;
}

.photo-portfolio-block:hover{
	cursor: pointer;
	transform: scale(1.05);
}

.portfolio-block.vertical{
	max-height: 25vw;
	grid-row: span 2;
}

.portfolio-block.film{
	overflow: hidden;
}

.portfolio-block.film video{
	width: 132%;
	margin-left: -20%;
}

.portfolio-block:hover{
	cursor: pointer;
}

.portfolio-block video{
	width: 100%;

}


/* POST */

.post-content{
	width: 100vw;
	height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	background: rgba(0, 0, 0, 0.5);
}

#post-image{
	max-height: 90vh;
	max-width: 90vw;
}

#post{
	overflow: hidden;
	width: 50vw;
	background-color: #1E1E1E;
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.post-center video{
	width: 100%;
	max-height: 30vw;
}

.post-top{
	text-align: center;
	padding: 25px;
}

.post-close{
	font-size: 20px;
	margin-top: 4px;
	color: #49606F;
	float: right;
}

.post-close:hover{
	color: #fff;
	cursor: pointer;
}

.post-title{
	display: inline-block;
	font-family: 'PT Sans', sans-serif;
	font-size: 24px;
	font-weight: bold;
	text-align: center;
}

.post-bottom{
	padding: 25px;
}

.post-date{
	font-family: 'PT Mono', monospace;
	color: #85C8D1;
	margin-bottom: 10px;
}

.post-description{
	font-size: 18px;
	margin-bottom: 30px;
}

.tag{
	font-size: 16px;
	color: #85C8D1;
	border: 2px solid #85C8D1;
	display: inline-block;
	padding: 10px 20px;
	margin-right: 10px;
}

.cover{
	position: fixed;
	left: 0;
	bottom: 100%;
	width: 0;
	height: 0;
	z-index: 100;
}

/* Responsive */

@media only screen and (max-width: 1400px) {
	.hero-video video{
		bottom: 0;
	}

}
@media only screen and (max-width: 1300px) {
	.footer-center{
		margin: 0 20px;
	}
	.footer-left, .footer-right, .footer-center{
		height: 150px;
		width: 350px;
	}
	.hero-video-contacts video{
		height: 130vw;
	}

}

@media only screen and (max-width: 1200px) {
	.hero-video video{
		bottom: 0;
	}

	#hero{
		height: 56vw;
	}

	.hero-over{
		height: 43vw;
	}

	.portfolio-block.vertical{
		max-height: 38vw;
	}
	.portfolio-grid{
		grid-template-columns: repeat(2, 1fr);
		display: block;
	}

}



/* Phone */

@media only screen and (max-width: 800px) {
	.post-center video{
		width: 100%;
		max-height: 60vw;
	}
	.about-block{
		display: block;
	}
	.about-left img{
		height: auto;
		width: 100%;
	}

	.footer-contact{
		display: block;
	}
	.footer-left, .footer-right, .footer-center{
		height: 150px;
		width: auto;
		margin: 20px auto;
	}
	.socials-block{
		width: 60px;
		height: 60px;
	}

	.hero-button{
		font-size: 18px;
		padding: 15px;
	}
	.hero-title{
		margin: 20px;
	}

	#hero{
		height: 90vw;
	}
	.hero-over{
		height: 80vw;
	}

	#nav{
		padding: 10px 0;
	}

	#nav a{
		display: block;
		margin: 20px 0;
	}

	.hero-video video{
		width: 160vw;
		right: 25vw;
	}
	#about .section-title{
		margin: 40px 0;
	}

	.portfolio-block{
		width: 90%;
		height: inherit;
	}


	#post{
		width: 100%;
	}

	.tag{
		margin-bottom: 10px;
	}


	.portfolio-block.vertical{
		max-height: none;
	}
	.portfolio-block{
		display: inline-grid;
	}
	.portfolio-grid{
		grid-template-columns: repeat(1, 1fr);
		display: block;
	}

	.category-button{
		display: block;
		padding: 20px 50px;
		margin: 10px 20px;
	}

	.category-button-selected{
		display: block;
		padding: 20px 50px;
		margin: 10px 20px;
	}

	.hero-video-contacts{
		display: none;
	}

	.contacts-page{
		min-width: inherit;
		margin: 0;
	}


}

@media only screen and (max-width: 1038px) and (min-width: 800px) {
	.about-left{
		margin-right: 30px;
	}
}

/* PC */

@media only screen and (min-width: 1200px) {
	.portfolio-grid{
		margin-left: 60px;
		margin-right: 50px;
	}

	.about-block:hover{
		transition-duration: .2s;
		box-shadow: 15px 15px 0 rgba(16, 33, 43, 0.3);
	}

	.footer-left:hover, .footer-right:hover, .footer-center:hover{
		transition-duration: .2s;
		box-shadow: 10px 10px 0 rgba(16, 33, 43, 0.3);
	}

	.email a:hover{
		transition-duration: .2s;
		color: #f9f9f9;
		background: rgba(19, 37, 48, 0.25);
	}

	.phone a:hover{
		transition-duration: .2s;
		color: #f9f9f9;
		background: rgba(19, 37, 48, 0.25);
	}

	.socials-block:hover{
		transition-duration: .1s;
		background: rgba(16, 33, 43, 0.8);
	}

	.portfolio-block:hover{
		transition-duration: .2s;
		box-shadow: 10px 10px 0 rgba(19, 37, 48, 0.6);
	}


}
