/*  === Вывод теста === */

.testme_area {
}

.testme_area h3 {
    font-size: 30px !important;
}

.testme_area h1,
.testme_area h2,
.testme_area h3,
.testme_area h4,
.testme_area h5 {
    margin: .5em 0 .4em !important;
    text-align: left;
    color: #333333 !important;
}

/*  Форма теста */
form.testme_form {
	text-align:left;
}

/* Заголовок теста */
.testme_title h3 {
    font-size: 30px !important;
}

/* Описание теста */
.testme_description {}
.testme_show_test_description {
    font: 400 14px/1.5 'Open Sans', Helvetica, sans-serif;
}

.testme_show_test_description img {
    min-width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
}

.testme_show_test_description h2 {
    margin-top: .5em !important;
    margin-bottom: .4em !important;
}

/* Блок с вопросом и ответами к нему */
.testme_question {
}

/* Текст вопроса */
.testme_question_text {
	margin-top: 20px;
    margin-bottom: 15px;
    font: 700 23px 'Open Sans', Helvetica, sans-serif;
    color: #434343;
    clear: both;
    /*font-size: 50px;
    font-weight: bold;*/
}

/* Блок с ответом */
.testme_answer_block {
    display: inline-block;
    vertical-align: top;
    width: 32%;
    margin: 0;
}

.testme_answer_block:nth-of-type(3){
    margin: 0 2% 0;
}

/* Радио-кнопка для выбора ответа */
.testme_answer {
	display: none;
}

.testme_question label {
    display: inline-block;
    width: 100%;
    padding: 15px;
    border: 1.8px solid #f6f6f6;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
    transition: all .2s ease;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.testme_answer:checked + label {
    position: relative;
    display: inline-block;
    border: 1.8px solid #e2580a;
}

.testme_answer:checked + label:after {
    position: absolute;
    top: 6px;
    right: 4px;
    content: '';
    display: block;
    height: 12px;
    width: 14px;
    background: url(../images/checkmark.png) no-repeat center center / cover;
}
.testme_answer:checked + label.wrong-ans:after,
.testme_answer:checked + label.right-ans:after {
    top: 6px;
    right: 6px;
    height: 12px;
    width: 12px;
}
.testme_answer:checked + label.wrong-ans:after {
    background-image: url(../images/close.svg);
}
.testme_answer:checked + label.right-ans:after {
    background-image: url(../images/check-mark.svg);
}
.testme_answer:checked + label.wrong-ans {
    border-color: red;
    background-color: #ffaeae;
}
.testme_answer:checked + label.right-ans {
    border-color: green;
    background-color: #c7ffc7;
}

/* Варианты ответа */
.testme_answer:checked + label .testme_answer_img {
    opacity: 1;
}

.testme_question label .testme_answer_txt {
    display: block;
    padding: 0;
    font: 400 14px/1.3 'Open Sans', Helvetica, sans-serif !important;
    margin: 0;
}

.testme_question label .testme_answer_img {
    display: block;
    height: 200px;
    width: 100%;
    margin-top: 20px;
    opacity: .8;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
}

/* Параметры кнопки */
.testme_button {
    -webkit-appearance: none;
    display: block;
    margin: 30px auto auto;
    padding: 15px 30px;
    clear: both;
    outline: none;
    border: 1.5px solid #e2580a;
    font: 400 15px 'Open Sans', Helvetica, sans-serif;
    color: #e2580a;
    border-radius: 12px;
    background-color: #ffffff;
    cursor: pointer;
    transition: all .2s ease;
}
.testme_button:hover {
    color: #ffffff;
    background-color: #e2580a;
}

/*  === Результаты === */

/* Оболочка, в которую записывается результат */
#testme_result {
    margin-top: 15px;
}

/* Весь блок с результатами */
.testme_result_block {
}

/* Надпись перед показом результатов */
.testme_result_block .testme_before_results {
    color: #333333;
    font-size: 30px;
    text-align: center;
    margin-bottom: 15px;
}

/* Заголовок результата */
.testme_result_block .testme_result_title {
    text-align: center;
}

/* Описание результата */
.testme_result_text {}

/* Картинка */
.testme_image {

}

.testme_result_image {
    min-width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
}

/* Стили для блоков с кодами для тестов и форумов */
.testme_code {
    clear:both;
}

.testme_code textarea {
    height: 100px;
    width: 99%;
}

/*  === Ошибки === */

/* Ошибка, если отвечены не все вопросы */
.testme_error {
    border:1px solid red;
    padding: 10px;
}

/*  === Ссылка === */

/* ссылка на сайт */
.testme_backlink {
    padding-right:30px;
    padding: 15px 0 0 0;
    font-size: 80%;
    text-align:right;
    display: none;
}

/* ***** Для версии 1.2 *****/

/* Результат теста в баллах */
.testme_your_score {
    margin-top:10px;
    font-weight: bold;
}

/* Для незарегистрированных */
.testme_not_logged {
    margin-top:15px;
    padding: 10px;
    border:1px dashed #CCCCCC;;
    font-weight: bold;
    color: #666600;
}

/* Список вопросов, когда нет права проходить тест */
.testme_asnwer_list {

}

.testme_asnwer_list li {
    list-style-position: inside;
    list-style-type:circle;
}

@media screen and (max-width: 740px) {
    .testme_answer_block {
        margin-top: 8px;
        width: 100%;
    }
    .testme_answer_img {
        height: 300px;
    }
    .testme_answer_block:nth-of-type(2),
    .testme_answer_block:nth-of-type(3) {
        margin-top: 8px;
    }
}
