/*---quiz---*/

@keyframes quiz_show {
    0%{opacity: 0; visibility: hidden; transform: translateX(30px);}
    100%{opacity: 1; visibility: visible; transform: translateX(0px);}
}

.quiz-wrapper
{
    display: grid;
    position: fixed;
    top:50%;
    left:50%;
    min-width: 360px;
    max-width: 360px;
    z-index: 2001;
    animation: toDown 0.5s forwards;
    grid-template: 50px 1fr 70px/ 1fr ;
    grid-gap: 20px;
    align-items: center;
    padding: 0 30px;
    background: white;
    /*background: url("/assets/img/fon.png");
    background-size: cover;*/
    color: #333333;
    font-size: 1rem;
}

/*@media (max-width: 1600px) {
    .quiz-wrapper
    {
        width: 95%;
        height: 95%;
    }

}*/

.quiz {
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    position: relative;
}

.quiz.active {
    display: block;
    animation: quiz_show 0.5s;}


.quiz-header {
    visibility: hidden;
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    /*background-color: #6ab5e9;*/
    border-radius: 10px 10px 0 0;
    text-transform: uppercase;
    font-weight: 400;
    border-bottom: 1px solid #ddd;
    height: 100%;
}

.quiz-header.active {
    visibility: visible;
}

.quiz-footer
{
    visibility: visible;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 1rem;
    border-radius: 0 0 10px 10px;
    border-top: 1px solid #ddd;
}
.quiz-footer.active {
    visibility: visible;
}

.quiz-footer button
{
    padding: 10px;
    cursor: pointer;
    font-size: 1em;
    min-width: 110px;
    background: #13b66f;
    border: none;
    color: white;

}
.quiz-footer button:hover {
    background: #33cb89;
}

.quiz-footer button:active
{
    transform: translate(2px,3px);

}

.quiz-footer button:focus
{
    outline: none;
}

.quiz-content
{
    width: 100%;
    height: 100%;
    position: relative;
    transition: 1.2s;

}


.close-quiz
{
    width: 24px;
    cursor: pointer;
}

/*.quiz-left:before
{
    content: "";
    position: absolute;
    bottom: 25%;
    right: 50%;
    height: 50%;
    width: 2px;
    background: #ddd;
}*/



.quiz-reg-title
{
    align-items: center;
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.quiz-reg-title a {
    color: #13b66f;
    font-size: 1.1rem;
}

.quiz-reg-title a:hover {
    color: #33cb89;
}

.quiz-reg-title span:nth-child(1)
{
    margin-top: 40px;
    font-size: 1.5rem;
}

.quiz-reg-title span
{
    margin-top: 15px;
    font-size: 1.5rem;
}


.requisites
{

    display: flex;
    flex-direction: column;
    text-align: left;
    width: 100%;
    height: 0;
    font-size: 1.1rem;
    transition: 0.5s;
    overflow: hidden;

}

.requisites div
{
    padding: 7px 5px ;
    color: gray;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.quiz-steps
{
    font-size: 1.3em;
    color: #777;
}

.current-steps{
    color: green;
}

.steps-line
{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.steps-line div
{
    margin: 10px;
    height: 5px;
    border-radius: 30px;
    width: 70px;
    background: #ddd;
}

.steps-line div:nth-child(1)
{
    background: #6ab5e9;
}


.steps-line div.active
{
    background: #6ab5e9;
}

.quiz-right-content
{
    width: 100%;
    display: flex;
    align-items: center;
    height: 100%;
    justify-content: center;
    flex-direction: column;
    animation: quizRight_show 0.5s forwards;
}

.quiz-question
{
    font-weight: bold;
    font-size: 1.3rem;
    text-align: center;
    margin: 20px 0;
}

.quiz-answers
{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    font-family: 'Open Sans', sans-serif;
}

.quiz-answers label
{
    flex:1 1 45%;
    margin:10px 0;
    border: 2px solid #ddd;
    padding: 15px 15px 15px 50px;
    cursor: pointer;
    position: relative;
    min-width: 300px;
    max-width: 300px;
}


.quiz-answers label:nth-child(odd)
{
    margin-right: 15px;
}

.quiz-answers label input {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

@keyframes galka_show {
    0%{opacity: 0;}
    100%{opacity: 1;}
}

@keyframes radio_show {
    0%{opacity: 0; transform: translateY(-50%) scale(0);}
    100%{opacity: 1; transform: translateY(-50%) scale(1);}
}

.quiz-answers label input:checked ~ span:after{
    content: "";
    position: absolute;
    left: 17px;
    top: 43%;
    transform: translateY(-50%) rotate(-45deg);
    width: 15px;
    height: 5px;
    /*border-left: 2px solid #6ab5e9;
    border-bottom: 2px solid #6ab5e9;*/
    border-left: 2px solid #13b66f;
    border-bottom: 2px solid #13b66f;
    background: white;
    animation: galka_show 0.5s forwards;
}



/*.quiz-answers label input:checked ~ span:after{
    content: "";
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #13b66f;
    animation: radio_show 0.2s forwards;
}*/

.quiz-answers label span:before {
    content: "";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ddd;
}

.quiz-answers label input:checked ~ span:before{
    border: 2px solid #13b66f;
    /*border: 2px solid #6ab5e9;*/
}

.quiz-answers label {
    transition: 0.5s;
}
.quiz-answers label.error {
    transition: 0.5s;
    border: 2px solid red !important;
}

/*.quiz-answers label span:after {
    content: "";
    position: absolute;
    left: 17px;
    top: 43%;
    transform: translateY(-50%) rotate(-45deg);
    width: 15px;
    height: 5px;
    border-left: 2px solid #333333;
    border-bottom: 1px solid #333333;
    background: white;
}*/

@keyframes button_animation {
    0%{opacity:0; transform: translateY(40px);}
    100%{opacity:1; transform: translateY(0px);}

}
.start-btn
{
    padding: 20px 10px;
    border-radius: 15px;
    background-color: #7b8e39;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 1.5rem;
    width: 200px;
    text-transform: uppercase;
    margin-top: 20px;
    animation: button_animation 1s ease-in-out forwards;
}