.hidden {
    display: none;
}

/* Ключевые кадры для анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Применяем анимацию к изображению */
.tests_full .ph_img {
    opacity: 0; /* Начальная прозрачность */
    animation: fadeIn 0.5s ease forwards; /* Анимация длительностью 0.5 секунды */
}

.tests_full .ph_img {
    opacity: 0;
    transition: opacity 300ms;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.tests_full .ph_img.visible {
    opacity: 1;
}

.tests_full .ph_img {
    position: relative;
}
.ph_img {
    vertical-align: bottom;
    max-width: 100%;
    border-radius: 16px;
}

    
    .tests_full {
    display: flex
;
    width: 100%;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-color: #343434;
    box-shadow: 0 1px 0 1px rgb(0 0 0 / 4%);
    border-radius: 16px;
    flex-wrap: wrap;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    transition: opacity 300ms;
    opacity: 1;
}
#main-content .test_wrapper a {
    text-decoration: none !important;
    color: #fff !important;
}
.dark-skin #main-content .test_wrapper a {
    text-decoration: none !important;
    color: inherit;
}
    .tests .opa {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-size: auto 1500px;
    background-position: center;
    transform: scale(1.1) translateZ(0);
    backface-visibility: hidden;
    opacity: .9;
    filter: blur(8px);
    -webkit-filter: blur(8px);
    background-position: top center;
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
}

/* Ключевые кадры для анимации появления */
@keyframes test_wrapper_first_show {
    from {
        opacity: 0; /* Начальное значение прозрачности */
    }
    to {
        opacity: 1; /* Конечное значение прозрачности */
    }
}

.test_wrapper.first {
    opacity: 0; /* Начальное состояние — прозрачный */
    animation: test_wrapper_first_show 1s ease forwards; /* Анимация длительностью 1 секунду */
}
    
    .test_wrapper {
    position: relative;
    max-width: 700px;
    width: 100%;
    margin: 30px 0;
    background-color: #fff;
    box-shadow: 0 1px 0 1px rgb(0 0 0 / 4%);
    border-radius: 16px;
    padding: 20px;
}

.dark-skin .test_wrapper {
    background-color: #343434;
}

.test_wrapper .results h2, .test_wrapper .question h2, .test_wrapper .start h2 {
    font-size: 21px;
    line-height: 27px;
    font-weight: 500;
    margin: 0 0 20px;
}

.test_wrapper .ir {
    margin-left: auto;
}

.test_wrapper .i_f, .test_wrapper .i_f a {
    font-size: 15px;
}
.test_wrapper .i_f {
    color: #929292;
    margin-bottom: 12px;
    display: flex
;
    flex-wrap: wrap;
}

    .test_wrapper .question .image, .test_wrapper .start .image {
    width: 100%;
    display: block;
    background-color: #414141;
    position: relative;
    border-radius: 16px;
}
    
    .test_wrapper .question .story, .test_wrapper .start .story {
    margin: 12px 0 0;
    line-height: 24px;
        font-size: 110%
}
    
    .test_wrapper .question .button_wrapper {
  margin-top: 12px;
}
    
    .test_wrapper .question .button_wrapper .button {
    width: 100%;
}
.tests .btn_big {
    
}
    
.share_input.nbut, .tests .nbut {
    padding: 9px 20px;
    border-radius: 8px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    text-align: center;
    cursor: pointer;
    border: 0;
    font: 500 15px "Roboto", sans-serif, arial, helvetica;
    box-shadow: 0 1px 0px rgb(0 0 0 / 10%);;
    display: inline-block;
    box-sizing: border-box;
    user-select: none;
    padding-top: 12px;
    padding-bottom: 12px;
}
.dark-skin .share_input.nbut, .dark-skin .tests .options .nbut {
    background: #434343;
}
    
.test_wrapper .question .steps {
    font-size: 15px;
    margin-bottom: 12px;
}

.test_wrapper .question .blue_badge {
    background: #866239;
}
.test_wrapper .question .badge {
    padding: 4px 15px;
    background: #525252;
    display: inline-block;
    border-radius: 20px;
    color: #fff;
}

.test_wrapper .start .button {
    width: 100%;
    display: block;
    margin: 12px 0 0;
    background: #008710;
    border-color: #008710;
}
.dark-skin .test_wrapper .start .button {
    background: #008710;
    border-color: #008710;
}
@media (hover: hover) {
    .btn_green:hover {
        background: #00c818;
        color: #fff;
    }
}

.test_wrapper .results .image {
    padding-bottom: 52%;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 16px;
}
.test_wrapper .results .share_results {
    text-align: center;
    margin: 12px 0;
}
.test_wrapper .results .share_input {
    margin: 12px 0;
}
.share_input {
    display: flex
;
    white-space: nowrap;
    align-items: center;
}

.share_results .input2 {
    background: #282828;
    padding: 12px 15px;
    border-radius: 8px;
    transition: border .4s, box-shadow .4s;
    appearance: none;
    outline: none;
    border: 0;
    width: 100%;
    box-sizing: border-box;
    color: #ddd;
    font-size: 16px;
    font-family: inherit;
    vertical-align: top;
    resize: vertical;
    margin-right: 12px;
}
.test_result_buttons .nbut {
    margin-top: 12px;
    width: 100%;
}

.test_result_buttons .test_other {
    background-color: #393939;
    color: #fff !important;
}

.results .btn_green {
    background: #008710;
    border-color: #008710;
    color: #fff !important;
}

.results .btn_blue {
    background: #866239;
    border-color: #866239;
    color: #fff;
}
