body {

font-family: Console;
margin: 0;
padding: 0;
perspective: 1000px;
/*min-width: 1200px;*/
}

.container{
	width: 1200px;
	margin: 0px auto;
	padding: 0px 15px;
}

header {

background-color:#333;
color: lightgray;
padding: 1rem;
text-align: center;
}

nav ul {

list-style: none;
margin: 0;
padding: 0;
}

nav li {

display: inline;
margin-right: 20px;
}

/* Кнопка вверх*/
.upward{
	position:fixed;
/*	display: flex;*/
/*	top:50%;*/
	bottom: 700px;
	right: 40px;
	width: 70px;
	height: 70px;
	z-index: 1;
	background: url("../fon/arrow.png");
	background-size: cover;
	cursor: pointer;
	visibility: hidden;
	opacity: 0;	
	/*background-attachment: fixed;*/
/*	background-position: left bottom;*/
/*	transition: 0.5s;*/
/*
	transform: translateY(-50%);
	clear: both;
	display: block;
*/
}


.upward.active{
	position: fixed;
	/*background-attachment: fixed;*/
/*	background-position: left bottom;*/

	bottom: 40px;
	visibility: visible;
	opacity: 1;
}


/**/

/* выпадающий список*/

li {
	position: relative;
	/*float:none;*/
	top:100%;
}

header nav ul li a {
	
	padding: 12px;
	color: #000;
	font-size: 21px;
	display: block;
}

header nav ul li a:hover{
	
	position:inherit;
	background: #000;
	color:#fff;
}

nav ul li ul{
	top:26px;
	position: absolute;
	left: 0;
	width: 160px;
	background: transparent;
	display: none;
}

nav ul li ul li{
	
	float:left;
	width: 100%;
	border: 1px solid rgba(0,0,0,.1);
	text-align: center;
}

nav ul li ul ul{
	left:80px;
	top:0;
}

nav ul li:hover > ul {
	display: initial;
}
ul li a{
	top:100%;
	
}
/* */


.translate{
	background: transparent;
	font-size:26px;
}

.translate:hover{
	
	background-color: transparent;
	border: 2px 21px solid white;
	border-radius: 15px ;
	color:darkgray;
	box-shadow: border-box;
	cursor: pointer;
}

.mobile_h1 {font-size:47px;}

.style_btn {
	display: inline-block;
	text-decoration: none;
	padding: 5px 7px;
	border-radius: 18px;
	border: 1px solid gray;
	font-size:31px;
}

a:hover {
	
}

/*.page {
	overflow:hidden;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}*/
.page {
	overflow:hidden;
	display: grid;
	grid-template-areas:"header" "content" "footer";
	grid-template-rows: auto 1fr auto;
	min-height: 100vh;
}

.header,
.footer{
	padding: 20px;
	background-color: aqua;
}

.footer {
	display:flex;
	margin-top: auto;
	align-items: center;
}
/*.page {
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100vh;
}*/


.preloader__scene {
	position: fixed;
	top: 0;
	left:0;
	width:100%;
	height: 100%;
	z-index: 1000;
	display: flex;
	overflow: hidden;
	animation: loading 1.2s ease forwards;
	/*animation-delay: 1s;*/
}
/*
.preloader__block {
	width: 50%;
	background-color:#fff;
}*/


/*Скрытая фото на главной*/

/*.hidden_myself:hover img{
	opacity: 1;
	margin-right: 890px;
	margin-bottom: 80px;
	
	
}*/
/*.hidden_myself{transform: translateY(-100%); transition: 1s linear;}*/
/*.hidden_myself{
	transition: all .3s ease;
	background: url(../fon/I_am4002-1.png);
	background-repeat: no-repeat;
	align-content: center;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	margin-left: 830px;
	margin-top: 30px;
	background-size: 200px;
	
}*/


.hidden_myself:hover{
/*	transition: all .3s ease;*/
/*    transform: translateY(0);*/
    
/*    transition: transform .1s ease;*/
	background: url(../fon/I_am4002-1.png);
	background-repeat: no-repeat;
    background-position: top, center center;
    background-size: 22% 41%, 15% 15%;
    
	/*align-content: center;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 100%;*/
	/*margin-left: 830px;
	margin-top: 30px;
	background-size: 200px;
	*/
}


.preloader__block {
	width: 50%;
	background-color: grey;
	animation: leftBlock 1s linear forwards;
}

.preloader__block:last-child {
	animation: rightBlock 1s linear forwards;
}


.loading__block {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
	z-index: 1001;
	animation: loading .1s ease forwards;
	animation-delay: .5s;
}

.title {
	font-size: 18px;
	margin-bottom: 18px;
}

.progress {
	width: 200px;
	height: 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	position: relative;
}

.progress:before {
	content: '';
	position: absolute;
	top: 2px;
	bottom: 2px;
	left: 2px;
	background-color: #163355;
	animation: progressLine .4s ease forwards;
	border-radius: 4px;
}


@keyframes loading {
	from {
		opacity: 1;
		visibility: visible;
		/*transition: opacity .13s;*/
		
	}
	
	to {
		opacity: 0;
		visibility: hidden;
		/*transition: opacity .13s;*/
		animation: loading 0.5 ease forwards;
	}
}



@keyframes progressLine {
	from {
		width: 0;
	}
	
	to {
		width: calc(100% - 4px);
	}
}


@keyframes leftBlock {
	0% {
		transform: translate(0) scale(1) rotateY(0);
	}
	
	50% {
		transform: translate(0) scale(.9) rotateY(10deg);
	}
	
	100% {
		transform: translate(-110%) scale(.9) rotateY(10deg);
	}
}

@keyframes rightBlock {
	0% {
		transform: translate(0) scale(1) rotateY(0);
	}
	
	50% {
		transform: translate(0) scale(.9) rotateY(-10deg);
	}
	
	100% {
		transform: translate(110%) scale(.9) rotateY(-10deg);
	}
}

.corrImg {
	width:166px;
	height: 166px;
}

@media (min-height:320px) and (max-height:720px) and (min-width:480px) and (max-width:719px){
	.corrImg {
		width:128px;
		height:128px;
	}
	.mobile_h1 {
		font-size:31px;
	}
	.style_btn {
		font-size:16px;
	}
	.translate {
		font-size:16px;
	}
	
}
/*2K* desktop*/
/*@media (max-width:2560px) and (max-height:1440px) and (min-width:2560px) and (min-height:1440px) {
	/*.hidden_myself:hover img{
	
	margin-right: 1050px;
	margin-bottom: 220px;
	margin-left: -120px;*/
	
	
/*}
	/*.hidden_myself:hover{*/
	/*max-width: 100%;*/
	/*align-content: center;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-left: 1200px;
	margin-top: 200px;*/
	
/*	}
}*/
/*720x1600* smartphone*/
/*@media (min-height:1200px) and (min-width:480px) and  (max-width:720px) and (max-height:1600px)*/
{
	/*.hidden_myself:hover img{
	
	margin-right: 250px;
	margin-bottom: 550px;
	margin-left: -170px;*/
	/*width: 1000px;*/
	/*height: 500px;
	min-width:500px;*/
		
/*
	background-position: top, center center;
    background-size: 22% 41%, 15% 15%;
*/

    
/*    .hidden_myself:hover img{
    background-position: top, center center;
    background-size: 100%;
}
    
/*}
	/*.hidden_myself:hover{
	/*max-width: 100%;*/
	/*align-content: center;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-left: 400px;
	margin-top: 360px;*/
	


/*
	}
}
*/
/*1366x768* notebook*/
/*@media (max-width:1366px) and (max-height:768px) /*and (min-width:1366px) and (min-height:768px)*/ {
	
/*
	.hidden_myself:hover img{
	
	margin-right: 370px;
	margin-bottom: 40px;
	margin-left: -220px;
	width:235px;
	height:430px;
*/
		
	
	
/*}*/
/*
	.hidden_myself:hover{
	/*max-width: 100%;*/
	/*align-content: center;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-left: 590px;
	margin-top: 20px;
	
*/
	}
/*}*/
