html, body, h1, h2, p, span, section{
	padding: 0;
	margin: 0;
}

html{
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-ms-text-size-adjust: 100%;
	  -moz-text-size-adjust: 100%;
	  -webkit-text-size-adjust: 100%;
	height: 100%;
	
}

* {

	outline: none
}


body{

	text-align: center;
	-ms-text-size-adjust: 100%;
	  -moz-text-size-adjust: 100%;
	  -webkit-text-size-adjust: 100%;

	position: relative;
	width: 100%;
	margin: 0 auto;
	min-height: 100%;
	height: auto;
	color: #fff;
	font-family: 'Avenir Next LT Pro';
	font-weight: normal;
	font-style: normal;

	background: #222222;
	background: url(../img/main_bg.jpg);
	background-size: auto;
	background-position: 50% 0;
	background-repeat: repeat-y;
}
.bg{
	display: block;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	height: 100%;
	width: 100%;
	background: rgba(0,0,0,0.8);
	z-index: -1;
}

section{
	height: 100%;
	
}

.wrapper{
	padding-top: 75px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	height: 54%;
	width: 100%;
	max-width: 320px;
	margin: 0 auto;
}
.logo__box{
	width: 100%;
	max-width: 180px;
	margin: 0 auto;
}

.logo__box img{
	width: 100%;
}
.text__box{
	margin: 35px auto 13px;
}
.p{
	color: #fff;
	font-size: 17px;
	font-family: Arial Regular, sans-serif;
	display: block;
}
.text__box .p{
	letter-spacing: -0.5px;
	line-height: 17px;
}
.text__box .p:first-child{
	margin-bottom: 8px;
}

.form__box .p{
	font-size: 16px;
}

.input,
.button{
	display: block;
	width: 100%;
	max-width: 320px;
}
.input{
	background: #000;
	border: 1px solid #fff;
	color: #fff;
	box-sizing: border-box;
	font-family: Arial Bold, sans-serif;
	font-size: 24px;
	padding: 12px 15px;
	text-align: center;
	margin-bottom: 10px;
	margin-top: 5px;
}
.button{
	background: #FFF600;
	text-decoration: none;
	color: #000;
	font-family: Arial Bold, sans-serif;
	font-weight: bold;
	font-size: 22px;
	padding: 12px 0px;
	box-sizing: border-box;
}

.back-button {
	display: block;
	text-decoration: underline;
	color: #fff;
	font-family: Arial Bold, sans-serif;
	font-weight: bold;
	font-size: 18px;
	padding: 5px;
	margin-top: 5px;
}

.error{
	border: 1px solid #ff0000;
}
.form__box{
	width: 320px;
	margin: 0 auto;
}
.form{
	width: 100%;
}

/***LOADER****/
@keyframes element__fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.loader {
  position: fixed;
  z-index: 10;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  /* display: flex; */
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.85);
  background-image: url("../img/icon-spinner.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 33%;
  animation: element__fade 0.2s;
}
@keyframes element__fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/***END LOADER****/

/* Андрій - комп*/
/*в браузере: 1520x722*/
@media screen and (max-width: 1536px)and (max-height:730px) {
	.wrapper{
		padding-top: 30px;
		height: 65%;
	}
}

/*new maket size 1280*600*/
@media screen and (max-width: 1280px)and (max-height:619px) {
    .wrapper{
    	padding-top: 20px;
    	height: 76%;
    }
}

@media (orientation:landscape) and (max-width: 900px) and (max-height: 500px) {
	.logo__box{
		max-width: 120px;
	}
	.wrapper{
		/*max-width: 590px;*/
		max-width: 610px;
		padding-top: 10px;
	}
	.text__box .p{
		font-size: 14px;
		line-height: 13px;
	}
	.form__box .p{
		font-size: 14px;
	}
	.text__box{
		margin: 5px auto;
	}
}

@media (orientation:landscape) and (max-width: 900px) and (max-height: 400px) {
	.wrapper{
		height: 80%;
	}
	.logo__box{
		max-width: 100px;
	}
	.wrapper{
		max-width: 590px;
	}
	.text__box .p{
		font-size: 14px;
	}
	.input{
		padding: 8px 25px;
		font-size: 21px;
		margin-bottom: 6px;
	}
	.button{
		font-size: 20px;
		padding: 10px 0;
	}
	.text__box .p:first-child {
	    margin-bottom: 7px;
	}

	/*pixel for open keyboard*/
	@media (max-width: 412px) and (max-height: 366px) {
		.logo__box {
		    width: 100%;
		    max-width: 100px;
		    margin: 0 auto;
		}
		.text__box {
		    margin: 30px auto;
		}
		.text__box .p{
			font-size: 17px;
			line-height: 17px;
		}
		.form__box {
		    width: 320px;
		    margin: 0 auto;
		}
		.wrapper{
			max-width: 320px;
		}
	}
}

@media (orientation:landscape) and (max-width: 900px) and (max-height: 350px) {

}



@media screen and (max-width: 500px) and (max-height: 900px) {
	.wrapper{
		padding-top: 4vh;
		height: 67%;
	}
	body{
		position: relative;
		z-index: 1;
		background: url(../img/main_bg.jpg);
		background-size: 500px;
		background-position: 50% 0;
		background-repeat: repeat-y;
	}
}

@media screen and (max-width: 500px) and (max-height: 820px) {

}


@media screen and (max-width: 500px) and (max-height: 622px) {
	.wrapper{
		height: 72%;
	}
}

@media screen and (max-width: 500px) and (max-height: 550px) {

}

@media screen and (max-width: 413px) and (max-height: 637px) {

}
@media screen and (max-width: 415px) and (max-height: 623px) {

}

@media screen and (max-width: 376px) and (max-height: 693px) {
	.wrapper{
		height: 71%;
	}
}

@media screen and (max-width: 376px) and (max-height: 622px) {
	.wrapper{
		height: 80%;
	}
	.text__box{
		margin: 25px auto 13px;
	}
}

@media screen and (max-width: 360px) and (max-height: 800px) {
	.wrapper{
		height: 70%;
	}
}


@media screen and (max-width: 321px) and (max-height: 533px) {
	.logo__box{
		max-width: 150px;
	}
	.wrapper{
		height: 85%;
		padding: 0 10px;
		box-sizing: border-box;
	}
	.text__box .p{
		line-height: 15px;
		font-size: 15px;
	}
	.form__box{
		font-size: 14px;
		max-width: 320px;
		width: 100%;
	}
	.form{
		padding: 0 10px;
		box-sizing: border-box;
	}
	.button{
		font-size: 20px;
	}
}


