/* To avoid conflicts all "class", "id" and "name" start with "testengine_" */
/* All JavaScript variables start with "jstest_" */

:root {
    /* BLUE */
    --color-primary: #1e73be;
    --color-primary-hover: #176bb5;
    --color-red: #ff6666;
    --color-red-hover: #ff0000;

    /* GREEN */
    /*
    --color-primary: #36ea7f;
    --color-primary-hover: #31c16c;
    --color-red: #ff6666;
    --color-red-hover: #ff0000;
    */
}




/* general */
#testengine p {
	margin-bottom: 10px;
}

#testengine {
	position: relative;
	text-align: center;
	margin: 0 auto;
	height: auto;
	box-sizing: border-box;
	width: 100%;
}
#testengine .testengine-inner {
	overflow: hidden;
}
#testengine form {
	width: 100%;
}
#testengine h1 {

}
#testengine h2 {

}
#testengine p {
    text-align: left;
}
#testengine input[type=text] {
	max-width: none;
	padding: 6px 10px;
	font-size: 1rem;
	line-height: 1rem;
	box-sizing: border-box;
	border: 1px solid #bbbbbb;
	border-radius: 6px;
}

#testengine input {
	margin: 0px;
	box-sizing: border-box;
}
#testengine textarea {
	padding: 6px 10px;
	font-size: 1rem;
	line-height: 1rem;
	border: 1px solid #bbbbbb;
	border-radius: 6px;
	margin: 0px;
	box-sizing: border-box;
}
#testengine select {
	padding: 6px 8px;
	font-size: 1rem;
	line-height: 1rem;
	border: 1px solid #bbbbbb;
	border-radius: 6px;
	background-position: right 0px top 50%;
}
#testengine input[type=radio] {
	-moz-appearance: radio;
	-webkit-appearance: radio;
	-khtml-appearance: radio;
	
	margin: 2px;
	width: 20px !important;
	height: 20px !important;
	border: 1px solid #bbbbbb;
	border-radius: 6px;
}
#testengine input[type=checkbox] {
	-moz-appearance: checkbox;
	-webkit-appearance: checkbox;
	-khtml-appearance: checkbox;
	display: inline;

	margin: 2px;
	width: 20px !important;
	height: 20px !important;
	border: 1px solid #bbbbbb;
}
#testengine input[type=button], #testengine input[type=submit], #testengine button {
	cursor: pointer;
	max-width: none;
	border-radius: 6px;
}
#testengine .testengine-button-block {
	text-align: center;
}
#testengine .btn {
	border: 0px solid #ffffff;
	border-radius: 6px;
	padding: 12px 18px 10px 18px;
	font-weight: bold;
	font-size: 16px;
	line-height: 16px;
	max-width: 200px;
	margin: 0 auto;
	height: auto;
}
#testengine .btn-primary {
	background: var(--color-primary);
	border: 2px solid var(--color-primary);
	color: #ffffff;
}
#testengine .btn-primary:hover {
	background: var(--color-primary-hover);;
	border: 2px solid var(--color-primary-hover);;
}
#testengine .btn-answer {
	width: 150px;
	margin: 0 5px 10px 5px;
	border-radius: 6px;
	padding: 12px 18px 10px 18px;
	font-weight: bold;
	font-size: 16px;
	line-height: 16px;
	height: auto;

	background: #ffffff;
	border: 2px solid var(--color-primary);
	color: var(--color-primary);
}
#testengine .btn-answer-active {
	background: var(--color-primary);
	border: 2px solid var(--color-primary);
	color: #ffffff;
}
#testengine .btn-answer-active:hover {
	background: var(--color-primary-hover);;
	border: 2px solid var(--color-primary-hover);;
	color: #ffffff;
}


.testengine-alert-bold {
	font-size: 0.8rem;
	line-height: 0.95rem;
	color: red;
	font-weight: bold;
}
.testengine-alert-normal {
	font-size: 0.8rem;
	line-height: 0.95rem;
	color: red;
	font-weight: normal;
}



/* persolal */
#testengine-persolal {
	position: relative;
	width: 100%;
	max-width: 600px;
	height: auto;
	text-align: left;
	box-sizing: border-box;
	margin: 0 auto;
}
.testengine-field-group {
	margin: 8px 0;
	text-align: left;
	width: 100%;
}
.testengine-field-title {
	display: inline-block;
	font-size: 1rem;
	line-height: 1.2rem;
	text-align: left;
	margin: 0 0 3px 0;
	font-weight: bold;
}
.testengine-input-text {
	font-weight: normal;
	width: 100%;
}
.testengine-input-select {
	font-weight: normal;

}
.testengine-birth {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
}
.testengine-birth-label {
	flex-grow: 0;
	flex-shrink: 1;
	text-align: right;
}
.testengine-birth-fields {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: flex-end;
	align-items: center;
}
#testengine-birth, #testengine-sex {
	text-align: right;
}
#testengine-birth-d {
	width: auto;
	margin-left: 5px;
}
#testengine-birth-m {
	width: auto;
	margin-left: 5px;
}
#testengine-birth-y {
	width: auto;
	margin-left: 5px;
}
.birth_note {
	text-align: right;
}
.testengine-textarea {
	font-weight: normal;
	width: 100%;
	height: 100px;
}
.testengine-required-note {
	font-size: 1rem;
	line-height: 1.2rem;
	font-weight: normal;
	margin-top: 10px;
}
.testengine-note {
	font-size: 0.8rem;
	line-height: 0.95rem;
	font-style: italic;
}
.testengine-consent-block {
	text-align: left;
	padding: 15px 0;
}
.testengine-sex-option {
	display: inline-block;
	white-space: nowrap;
	/*border: 1px solid #bbbbbb;*/
	/*border-radius: 6px;*/
	padding: 4px 8px 4px 8px;
	line-height: 10px;
}
#testengine-age {
	width: 150px !important;
}
button.testengine-continue {
	width: 100%;
	margin-bottom: 8px;
}



/* Instruction */
#testengine-overlay {
	z-index: 10000; /* пoдлoжкa дoлжнa быть выше слoев элементoв сaйтa, нo ниже слoя мoдaльнoгo oкнa */
	position: fixed; /* всегдa перекрывaет весь сaйт */
	background-color: #000000; /* чернaя */
	opacity: 0.5; /* нo немнoгo прoзрaчнa */
	-moz-opacity: 0.5; /* фикс прозрачности для старых браузеров */
	filter:alpha(opacity=50);
	width: 100%; 
	height: 100%; /* рaзмерoм вo весь экрaн */
	top: 0; /* сверху и слевa 0, oбязaтельные свoйствa! */
	left: 0;
	display: none; /* в oбычнoм сoстoянии её нет) */
}
#testengine-instruction {
	display: none;
}
#testengine-slider {
}

#testengine-instruction-close {
	position: absolute;
	top: 15px;
	right: 15px;
    font-size: 1.7rem;
	line-height: 12px;
    font-weight: bold;
    color: #000;
    filter: alpha(opacity=20);
    opacity: .2;
	text-decoration: none;
}
#testengine-instruction-close:hover {
    filter: alpha(opacity=80);
	opacity: .8;
}
.testengine-instruction-body {
	text-align: left;
}

.testengine-instruction-title {
	font-size: 1.4rem;
	font-weight: bold;
	padding-bottom: 10px;
	color: var(--color-primary);
}
.testengine-instruction-undertitle {
	font-size: 1rem;
	margin-bottom: 1rem;
	font-weight: bold;
}
.testengine-instruction-body ul {
	padding-left: 20px;
	margin-left: 5px;
}
.testengine-instruction-body li {
	padding: 5px 0;
	font-size: 0.9rem;
	/*list-style-type: none;*/
}
.testengine-button-area {
	text-align: center;
}
.testengine-ready-text {
	font-weight: bold;
	margin-bottom: 15px;
	color: var(--color-primary);
}
#testengine-instruction li span {
	display: inline-block;
	color: #fff;
	background: var(--color-primary);
	width: 22px;
	height: 22px;
	border: 0px solid var(--color-primary);
	border-radius: 12px;
	text-align: center;
	font-size: 14px;
	line-height: 22px;
	font-weight: normal;
}



/* testengine-questions */
.testengine-questions-container {
	width: 100%;
	max-width: 700px;
	margin: 0 auto 30px auto;
	text-align: center;
}
.testengine-questions {
	position: relative;
	width: 100%;
	white-space: nowrap;
	text-align: center;
	box-sizing: border-box;
}
.testengine-question {
	display: inline-block;
	vertical-align: middle;
	box-sizing: border-box;
	width: 100%;
	height: auto;
	padding: 10px 40px;
	white-space: normal;
	margin: 0px;
	border: none;
}
.testengine-question:not(.testengine-question-active) {
	opacity: 0.1;
}
.testengine-qnum {
	font-size: 26px;
	color: var(--color-primary);
	font-weight: bold;
}
.testengine-qtxt {
	font-size: 20px;
}

.testengine-ba {
	width: 150px;
	background: #ffffff;
}
.testengine-ba-active {
	background: var(--color-primary);
}

.testengine-fio {
	font-size: 12px;
	margin-bottom: 10px;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.testengine-progress {
	margin: 0 auto;
	text-align: center;
	width: 100%;
	max-width: 1140px;
}
.testengine-progress-text {
	font-size: 10px;
	margin-bottom: 5px;
	letter-spacing: 3px;
	text-transform: uppercase;
}
.testengine-progress-container {
	padding: 10px 15px;
    background: #ccd9e5;
}
.testengine-copyright {
	box-sizing: border-box;
	width: 100%;
	margin-top: 24px;
	text-align: left;
	font-size: 0.7rem;
	line-height: 0.9rem;
}
.progress-bar {
	width: 100%;
	background: #ffffff;
	position: relative;
    background: repeating-linear-gradient(to right, #fff, #fff 29px, #888 29px, #888 30px);
    height: 13px;
	box-sizing: border-box;
    border-radius: 3px;
    border: 1px solid #4281c0;
}

.progress-bar-inner {
    position: absolute;
    background: var(--color-primary);
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    -webkit-transition: width 0.3s;
    -moz-transition: width 0.3s;
    -o-transition: width 0.3s;
    transition: width 0.3s;
}
.progress-bar-inner:after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 100%;
    width: 0;
    height: 0;
    margin-right: -8px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid var(--color-primary);
}
.testengine-lr {
	position: absolute;
	top: 10px;
	font-size: 80px;
	color: #dddddd;
	width: auto;
	height: 40px;
	line-height: 40px;
	text-align: center;
	z-index: 100;
	cursor: pointer;
}
.testengine-lr:hover {
	color: #cccccc;
}
.testengine-left {
	left: 10px;
	
}
.testengine-right {
	right: 10px;
}



.testengine-center {
	width: 100%;
	text-align: center;
}
.testengine-result-container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	min-height: 100px;
	text-align: left;
}
.graph-img {
	width: 100%;
	max-width: 972px;
	box-shadow: 0 1px 4px rgba(100, 100, 100, .1), -23px 0 20px -23px rgba(100, 100, 100, .4), 23px 0 20px -23px rgba(100, 100, 100, .4), 0 0 20px rgba(100, 100, 100, .05) inset;
}
.testengine-contacts {
    min-height: 20px;
    padding: 18px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.05);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.05);
	text-align: left;
}
#testengine-debug-win {
	width: 100%;
	height: 100px;
	font-size: 12px !important;
	font-family: "Courier New" !important;
}



/* Адаптация */
@media screen and (max-width: 767px) {
	#testengine-persolal {
		max-width: none;
	}
	.testengine-question {
		padding: 10px 10px;
	}
	.testengine-lr {
		top: 0px;
		width: auto;
		height: auto;
		font-size: 60px;
		line-height: auto;
	}
	.testengine-left {
		left: 0px;
	}
	.testengine-right {
		right: 0px;
	}
	.testengine-qnum {
		font-size: 24px;
	}
	.testengine-qtxt {
		font-size: 20px;
	}
	.graph-img-icon-box {
		width: 140px;
	}
	.graph-img-icon-shadow {
		font-size: 30px;
		font-weight: bold;
		text-align: center;
	}
	#testengine .btn-answer {
		width: auto;
		margin: 0 5px 10px 5px;
		font-size: 16px;
		line-height: 16px;
	}

}

@media screen and (max-width: 400px) {
	#testengine-persolal {
		max-width: none;
	}
	.testengine-question {
		padding: 10px 10px;
	}
	.testengine-lr {
		top: 0px;
		width: auto;
		height: auto;
		font-size: 60px;
		line-height: auto;
	}
	.testengine-left {
		left: 0px;
	}
	.testengine-right {
		right: 0px;
	}
	.testengine-qnum {
		font-size: 24px;
	}
	.testengine-qtxt {
		font-size: 20px;
	}
	.graph-img-icon-box {
		width: 140px;
	}
	.graph-img-icon-shadow {
		font-size: 30px;
		font-weight: bold;
		text-align: center;
	}
	#testengine .btn-answer {
		width: auto;
		margin: 0 2px 10px 2px;
		padding: 12px 10px 10px 10px;
		font-size: 16px;
		line-height: 16px;
	}

}



#testengine .start_new_test {
	border: 2px solid var(--color-red);
	color: var(--color-red);
	margin-bottom: 15px !important;
	background-color: transparent;
	width: auto;
}
#testengine .start_new_test:hover {
	border: 2px solid var(--color-red-hover);
	color: var(--color-red-hover);
}
