/*========= general CSS ============*/
*,
*:focus{
	outline: none !important;
	-webkit-appearance: none !important;
}
html, body{
	height:100%;
	padding: 0;
	margin:0;
	min-width:320px;
}
body {
	background: #fff;
	position:relative;
}

.wire{
	max-width:1100px;
	padding:0;
	margin:0 auto;
	position:relative;
}
@media only screen and (max-width:1100px) {
	.wire{
		max-width:calc(100% - 30px);
		padding:0 15px;
	}
}



.questBackground{
	position:fixed;
	width:100%;
	height:100%;
	top:0;
	left:0;
	z-index:1;
	background:url(../images/background.webp) center center no-repeat transparent;
	background-size:cover;
}


.questBlock{
	position:absolute;
	z-index:10;
	width:445px;
	top:calc(50% - 250px);
	left:50%;
	transform:translateX(-50%);
}
.questBlock_numbers{
	position:relative;
	margin-bottom:20px;
	text-align:center;
}
.questBlock_numbers .item{
	cursor:pointer;
	transition:0.3s all;
	display:inline-block;
	width:60px;
	height:60px;
	background:url(../images/question.png) center center no-repeat;
	background-size:contain;
	position:relative;
	text-align:center;
}
.questBlock_numbers .item.selected,
.questBlock_numbers .item:hover{
	background-image:url(../images/question_sel.png);
}
.questBlock_numbers .item span{
	position: absolute;
    top: calc(50% - 6px);
    left: -4px;
    font-size: 28px;
    font-weight: 600;
    width: 100%;
    transform: translateY(-50%);
    display: block;
	font-family:Philosopher, sans-serif;
}


.questBlock_images{
	text-align:center;
	position:relative;
}
.questBlock_images .item{
	display:inline-block;
	width:130px;
	height:130px;
	vertical-align:middle;
	background-size:contain;
	background-repeat:no-repeat;
	background-position:center;
	cursor:pointer;
	position:relative;
	opacity:0.8;
}
.questBlock_images .item:hover{
	opacity:1;
}
.questBlock_images .item img{
	max-width: 95px;
    max-height: 92px;
    position: absolute;
	top:48%;
	left:50%;
	transform:translate(-50%,-50%);
}


.fader{
	position:fixed;
	width:100%;
	height:100%;
	left:0;
	top:0;
	background:rgba(0,0,0,0.6);
	z-index:101;
	display:none;
}
.answer{
	position:fixed;
	top:50%;
	left:50%;
	transform:translate(-50%,-50%);
	width:490px;
	height:215px;
	background-repeat:no-repeat;
	background-size:contain;
	background-position:left top;
	z-index:1000;
	display:none;
}
.answer.good{
	background-image:url(../images/answer_1.png);
}
.answer.bad{
	background-image:url(../images/answer_2.png);
}
.answer .close{
	cursor:pointer;
	position:absolute;
	top: -10px;
    right: 3px;
	background:#fff;
	width:50px;
	height:50px;
	border-radius:50%;
	z-index:10;
}
.answer .close::before, .answer .close::after{
	content:"";
	position:absolute;
	width:30px;
	height:4px;
	background:#bc02b8;
	left:10px;
	top:calc(50% - 2px);
	transform:rotate(45deg);
	border-radius:5px;
}
.answer .close::after{
	transform:rotate(-45deg);
}
.answer.bad .close::before, .answer.bad .close::after{
	background:red;
}
.answer .text{
	position: relative;
    width: calc(100% - 80px);
    height: calc(100% - 80px);
    overflow: hidden;
    padding: 40px;
    vertical-align: middle;
    text-align: center;
	display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
	font-family:Philosopher, sans-serif;
	font-size: 34px;
    line-height: 1.3em;
    font-weight: bold;
	color:#fff;
}
.answer .text span{
	display:none;
}
@media only screen and (max-width:640px) {
	.answer{
		width: 310px;
		height: 137px;
	}
	.answer .text{
		font-size: 22px;
	}
	.answer .close{
		width:35px;
		height:35px;
	}
	.answer .close::before, .answer .close::after{
		width: 25px;
		left: 5px;
	}
}
@media only screen and (max-height:450px) {
	.questBlock{
		width:290px;
		top:calc(50% - 150px);
	}
	.questBlock_numbers{
		margin-bottom:10px;
	}
	.questBlock_numbers .item{
		width:43px;
		height:43px;
	}
	.questBlock_numbers .item span{
		top: calc(50% - 4px);
		left: -2px;
		font-size: 19px;
	}
	.questBlock_images .item{
		width:90px;
		height:90px;
	}
	.questBlock_images .item img {
		max-width: 58px;
		max-height: 58px;
	}
}
@media only screen and (max-width:480px) {
	.questBlock{
		width:290px;
		top:calc(50% - 150px);
	}
	.questBlock_numbers{
		margin-bottom:10px;
	}
	.questBlock_numbers .item{
		width:36px;
		height:36px;
	}
	.questBlock_numbers .item span{
		top: calc(50% - 4px);
		left: -2px;
		font-size: 19px;
	}
	.questBlock_images .item{
		width:90px;
		height:90px;
	}
	.questBlock_images .item img {
		max-width: 64px;
		max-height: 64px;
	}
}



.content{
	font-family: sans-serif;
	font-size: 16px;
    line-height: 1.3em;
	color:#444;
}
.content h1{
	margin:40px 0 30px;
	text-align:center;
	line-height:1.3em;
}
.content p{
	margin:0 0 10px;
}
.admin_question{
	margin:40px auto;
	max-width:800px;
}
.admin_question .item{
	margin: 0 0 15px;
	position:relative;
}
.admin_question .item::after{
	content:"";
	clear:both;
	display:block;
}
.admin_question .item .left{
	width:230px;
	margin-right:30px;
	float:left;
	text-align:right;
	padding-top: 7px;
}
.admin_question .item .right{
	width:calc(100% - 260px);
	float:right;
}
.admin_question .item input{
	display: block;
    width: calc(100% - 24px);
    height: 22px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
    -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}

.content .save{
	text-align:center;
	margin:0 0 40px;
}
.content .save button{
	display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 4px;
	cursor:pointer;
	display:inline-block;
	color: #fff;
    background-color: #5cb85c;
    border-color: #4cae4c;
}
.content .save p{
	margin:10px 0 0;
	font-size:14px;
}

.saveok{
	text-align:center;
	margin:0 0 40px;
	background-color: #dff0d8;
	font-weight:bold;
	border-radius:10px;
	padding:20px;
	display:none;
}

.content .predustanovki{
	position:relative;
	padding:0 0 100px;
}
.content .predustanovki a{
	color: #34B1C4;
}
.content .predustanovki a:hover{
	color:#444;
}
@media only screen and (max-width:640px) {
	.admin_question .item .left{
		width: 100%;
		float:none;
		margin: 0 auto 10px;
		text-align:center;
	}
	.admin_question .item .right{
		float:none;
		width:initial;
	}
}


.errorline{
	background:#f00;
	color:#fff;
	position:absolute;
	top:0;
	left:0;
	width:calc(100% - 30px);
	font-size:16px;
	padding:15px;
	z-index:10000000;
	text-align:center;
	font-family:Philosopher, sans-serif;
}
.errorline a{
	color:#fff;
}





