/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v7.0.29,
* Autoprefixer: v9.7.6
* Browsers: last 4 version
*/


.wrapper-test{
    background: #ddd;
    width: 100%;
    margin: 0;
    padding-bottom: 200px;
}
.container-test{
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    padding: 20px;
    max-width: 775px;
    margin: 30px auto;
}
.container-test p{
    font-size: 20px;
    color: #555;
    text-align: center;
    padding: 0 10px;
}
.result-page{
    background-color: #101010;
    font-size: 30px;
    display: none;
    padding: 40px;
    padding-bottom: 10px;
}
.result-page p{
    color: white;
    margin-bottom: 40px;
    margin-top: 40px;
}

.container-test h2{
    text-align: center;
    padding: 0 10px;
}

.test-page{
    background-color: #101010;
    max-width: 640px;
    margin: 0 auto;
    display: none;
    left: 0;
    top: 0;
    padding: 30px 80px;
    padding-bottom: 10px;
    color: white;
    border: 1px solid #000;
    -webkit-box-shadow: 4px 3px 5px 0px rgba(0,0,0,0.75);
            box-shadow: 4px 3px 5px 0px rgba(0,0,0,0.75);
    margin-bottom: 20px;
}

.test-page h3, .result-page h3{
    text-align: center;
    color: white;
    margin: 0;
    font-size: 18px;
    padding-bottom: 30px;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 3px;
    border-bottom: 1px solid #888;
}

.test-page label{
    display: block;
    margin: 0;
}

.test-page span {
    display: block;
    font-size: 20px;
    letter-spacing: 2px;
    color: #bbb;
    font-weight: 100;
    position: relative;
    cursor: pointer;
    margin-top: 25px;
    margin-bottom: 25px;
    margin-left: 60px;
    margin-right: 0px;
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
    -webkit-transition: color .2s;
    -o-transition: color .2s;
    transition: color .2s;
}

.test-page span:hover{
    color: white;
}



.test-page span::before{
    position: absolute;
    content: "";
    display: block;
    border: 2px solid rgba(136,136,136,1);
    left: -60px;
    top: 50%;
    -webkit-transform: translateY(-50%) rotate(0deg);
        -ms-transform: translateY(-50%) rotate(0deg);
            transform: translateY(-50%) rotate(0deg);
    -webkit-transform-origin: 100% 50%;
        -ms-transform-origin: 100% 50%;
            transform-origin: 100% 50%;
    width: 15px;
    height: 15px;
    -webkit-transition: width .2s, height .2s, border .2s, -webkit-transform .2s;
    transition: width .2s, height .2s, border .2s, -webkit-transform .2s;
    -o-transition: width .2s, height .2s, border .2s, transform .2s;
    transition: width .2s, height .2s, border .2s, transform .2s;
    transition: width .2s, height .2s, border .2s, transform .2s, -webkit-transform .2s;
}

.test-page label input:checked+span{
   color: white;
}

.test-page label input:focus+span{
    outline: none;
    border: none;
    color: white;
}

.test-page label input:checked+span::before {
    -webkit-transform: translateY(-65%) rotate(45deg);
        -ms-transform: translateY(-65%) rotate(45deg);
            transform: translateY(-65%) rotate(45deg);
    border-top: 3px solid rgba(255,255,255,0);
    border-bottom: 5px solid rgba(255,255,255,1);
    border-left: 3px solid rgba(255,255,255,0);
    border-right: 5px solid rgba(255,255,255,1);
    height: 40px;
    width: 20px
}

.test-page label input {
    display: none;
}

.test-page.active {
    display: block;
    -webkit-animation: fromLeft .2s ease-in 1 forwards;
            animation: fromLeft .2s ease-in 1 forwards;
}

.result-page.active {
    display: block;
    -webkit-animation: fromLeft .8s ease-in 1 forwards;
            animation: fromLeft .8s ease-in 1 forwards;
}

@-webkit-keyframes fromLeft{
    from{
        -webkit-transform:translateX(-10%);
                transform:translateX(-10%);
        opacity: .3;
    }
    to{
        -webkit-transform:translateX(0);
                transform:translateX(0);
        opacity: 1;
    }
}

@keyframes fromLeft{
    from{
        -webkit-transform:translateX(-10%);
                transform:translateX(-10%);
        opacity: .3;
    }
    to{
        -webkit-transform:translateX(0);
                transform:translateX(0);
        opacity: 1;
    }
}

.next, .prev, .restart-test, .connect{
    display: block;
    text-align: center;
    width: 100%;
    color: #888;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    padding: 25px 0;
    text-transform: uppercase;
    margin: 0;
    font-size: 18px;
    cursor: pointer;
    border: none;
    border-top: 1px solid #888;
    -webkit-transition: color .5s;
    -o-transition: color .5s;
    transition: color .5s;
    background-color: #101010;
}

.next:disabled{
    color: #555;
}
.next:disabled:hover{
    color: #555;
}

.next:hover, .prev:hover, .restart-test:hover, .connect:hover{
    color: white;
}

.next:active, .prev:active, .restart-test:active, .connect:active{
    outline: none;
    border:none;
}

.next:focus, .prev:focus, .restart-test:focus, .connect:focus{
    outline: none;
    border: none;
    border-top: 1px solid #888;
}
.connect{
    display: none;
}
.connect.active{
    display: block;
}
.test-page ul{
    margin: 0;
    /*padding-top: 10px;*/
    /*padding-bottom: 10px;*/
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 2px;
    color: #888;
    border-bottom: 1px solid #888;
}
.input-category{
    position: relative;
}


.input-clean{
    position: absolute;
    background-color: red;
    opacity: .5;
    top: 5px;
    left: 5px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    transition: background-color .5s, opacity .5s;
}

.input-clean:hover{
    background-color: #101010;
    opacity: 1;
}

.input-clean:hover:after{
    transform: rotate(45deg);
}

.input-clean:hover:before{
    transform: rotate(-45deg);
}

.input-clean:after, .input-clean:before{
    content: "";
    width: 100%;
    background-color: #fff;
    display: block;
    position: absolute;
    height: 2px;
    top: 14px;
    left: 0;
    transition: transform .8s;
    transform-origin: 50% 50%;
}

.input-clean:after{

    transform: rotate(-45deg);

 }

.input-clean:before{

    transform: rotate(45deg);
}


.category{
    background-color: #fff !important;
    padding: 10px !important;
    padding-left: 50px !important;
    margin: 10px 0px !important;
    color: #101010;
    min-height: 40px;
    border: none !important;
    outline: none !important;
    width: 100%;
    font-size: 20px;
    border: 1px solid #cecece;
    border-radius: 8px;
}

.category:focus{
    border: none !important;
    outline: none !important;
}

.category:active{
    border: none !important;
    outline: none !important;

}



.category__item{
    padding: 10px;
    transition: color .5s;
    cursor: pointer;
}
.category__item:hover{
    color: white;
}

.wrapper-test form{
    max-width: 640px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    padding-top: 10px;
    padding-bottom: 70px;
    display: none;
}

.wrapper-test form.show{
    display: block;
}

@media screen and (max-width:575px){
    .container-test{
        padding: 0px;
    }
    .test-page{
        padding: 10px 10px;
    }
    .test-page h3{
        padding-bottom: 10px;
    }

    .result-page h3{
        padding-bottom: 10px;
    }

    .result-page p{
        margin-top: 20px;
        margin-bottom: 20px;
    }
    .test-page span{
        margin-top: 25px;
        margin-bottom: 25px;
        margin-left: 70px;
        margin-right: 20px;
    }
    .result-page{
        padding: 10px;
        font-size: 15px;
    }
    .container-test h2{
        font-size: 25px;
    }
}

