
#htmlbody {
    overflow-x: hidden;
}


.quiz .myform {
    position: relative;
}


.quiz input[type="radio"] {
    display: none;
}

.quiz .fieldset {
    margin-bottom: 20px;
    position: relative;
}

.quiz .fieldset p {
    font-size: 0.8em;
    line-height: 1.4em;
}


.quiz input[type="radio"] +label {
    display: block;
    position: relative;
    color: #354d4a;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    padding-left: 50px;
}



.quiz input[type="radio"] +label::before {
    -webkit-transition: all 250ms cubic-bezier(.4,.25,.3,1);
    transition: all 250ms cubic-bezier(.4,.25,.3,1);
    content: "";
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: #354d4a;
    border: 0px solid #354d4a;
    font-size: 0;
    position: absolute;
    top: 15px;
    left: 20px;
    opacity: 0.5;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);

}

.quiz input[type="radio"] +label::after {
    -webkit-transition: all 250ms cubic-bezier(.4,.25,.3,1);
    transition: all 250ms cubic-bezier(.4,.25,.3,1);
    content: "";
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: #354d4a;
    position: absolute;
    top: 15px;
    left: 20px;

    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);

}

.quiz input[type="radio"]:checked + label::before {
    background-color: transparent;
    width: 40px;
    height: 40px;
    border-width: 2px;
    opacity: 1;
}

.quiz input[type="radio"]:checked + label::after {
    width: 30px;
    height: 30px;
}





.quiz .fieldset.input {
    max-width: 400px;
    margin: 0 auto;
    position: relative;
}


.quiz .fieldset.input .control-label {
    position: absolute;
    top: 10px;
    pointer-events: none;
    margin-left: 0.5em;
    padding: 0 0.5em;
    z-index: 1;
    color: #354d4a;
    font-size: inherit;
    font-weight: 300;
    -webkit-transition: all 0.28s ease;
    transition: all 0.28s ease;
    max-width: 95%;

}

.quiz .fieldset.input input {
    display: block;
    background: none;
    padding: 10px 16px;
    font-size: inherit;
    border: 1px solid #354d4a;
    border-radius: 0;
    line-height: normal;
    color: #354d4a;
    -webkit-transition: all 0.28s ease;
    transition: all 0.28s ease;
    -webkit-box-shadow: none;
    box-shadow: none;
    width: 100%;
    margin: 0 auto;

}

.quiz .fieldset.input  select,
.quiz .fieldset.input  input:focus,
.quiz .fieldset.input  input:valid,
.quiz .fieldset.input  input.form-file,
.quiz .fieldset.input  input.has-value,
.quiz .fieldset.input  textarea:focus,
.quiz .fieldset.input  textarea:valid,
.quiz .fieldset.input  textarea.form-file,
.quiz .fieldset.input  textarea.has-value {
    color: #354d4a;
}


.quiz .fieldset.input select ~ .control-label,
.quiz .fieldset.input input:focus ~ .control-label,
.quiz .fieldset.input input.valid ~ .control-label,
.quiz .fieldset.input input.form-file ~ .control-label,
.quiz .fieldset.input input.has-value ~ .control-label,
.quiz .fieldset.input textarea:focus ~ .control-label,
.quiz .fieldset.input textarea.valid ~ .control-label,
.quiz .fieldset.input textarea.form-file ~ .control-label,
.quiz .fieldset.input textarea.has-value ~ .control-label {
    line-height: 1em;
    font-size: 0.6em;
    color: #acacac;
    top: -0.5em;
    left: 0;
    background: #f9f8f5;
}


.quiz .fieldset.input select:focus,
.quiz .fieldset.input input:focus,
.quiz .fieldset.input textarea:focus {
    outline: none;
    border: 1px solid #666;
    background-size: cover;
}


.quiz .fieldset.input select:focus ~ .control-label,
.quiz .fieldset.input input:focus ~ .control-label,
.quiz .fieldset.input textarea:focus ~ .control-label {
    color: #888;
}
.quiz .fieldset.input select:focus ~ .bar::before,
.quiz .fieldset.input input:focus ~ .bar::before,
.quiz .fieldset.input textarea:focus ~ .bar::before {
    width: 100%;
    left: 0;
}


.quiz .error:before {
    border: solid;
    border-color: transparent transparent #ac0011 transparent;
    border-width: 0 8px 8px 8px;
    content: "";
    left: 4px;
    position: absolute;
    z-index: 2;
    bottom: -2px;
    top: 0px;
    pointer-events: none;
}

.quiz .error:after {
    background: #ac0011;
    top: 100%;
    /*margin-top: 2px;*/
    left: 0px;
    color: #FFF;
    content: attr(data-error);
    white-space: pre;
    padding: 5px 5px;
    position: absolute;
    z-index: 2;
    width: auto;
    font-size: 13px;
    font-weight: 300;
    line-height: 1em;
    letter-spacing: normal;
}


.quiz .checkbox.error:before {
    bottom: auto;
    top: 20px;
}

.quiz .checkbox.error:after {
    top: 26px;
}


.quiz .radio.error:before {
    left: 12px;
}



.quiz .new_checkbox {
    display: inline-block;
    position: absolute;
    top: 0;
    left: 0;
    width: 25px;
    height: 25px;
    border: 1px solid #354d4a;
}



.quiz .new_checkbox:after {
    content: "";
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    position: absolute;
    transform: rotate(305deg);
    top: 19px;
    left: 8px;
    transition: width 100ms ease;
    transform-origin: 0% 0%;

}

.quiz .new_checkbox:before {
    content: "";
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: #354d4a;
    position: absolute;
    transform: rotate(45deg);
    top: 13px;
    left: 5px;
    transition: width 150ms ease 100ms;
    transform-origin: 0% 0%;


}


.quiz .myform .form_column {
    max-width: 400px;
    margin: 0 auto;
}

.quiz .myform .funkcja .fieldset, .quiz .myform .funkcja p {
    margin-bottom: 0.3em;
}

.quiz input[type="checkbox"] {
    display: none;
}

.quiz input[type="checkbox"] + label {
    padding-left: 35px;
    font-size: 12px;
    line-height: 1.2em;
    display: block;
}

.quiz input[type="checkbox"] + label p {
    font-size: 12px;
    line-height: 1.2em;
    margin-bottom: 0;
}

.quiz input[type="checkbox"] + label.short {
    padding-top: 6px;
}

.quiz label ol {
    margin-left: 0 !important;
}

.quiz label ol li {
    margin-left: 1em !important;
}


.quiz input[type="checkbox"]:checked + label .new_checkbox:before {
    width: 8px;
    background: #354d4a;
    transition: width 100ms ease 0ms;

}

.quiz input[type="checkbox"]:checked + label .new_checkbox::after {
    width: 17px;
    background: #354d4a;
    transition: width 150ms ease 100ms;


}


.quiz .wyslij {
    text-align: center;
}

.quiz input.btn {
    display: inline-block;
    margin: 1vw 0;
    background: #FFF;
    padding: 15px 40px;
    color: #d0ab60;
    font-size: 20px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;

    -webkit-box-shadow: 0px 0px 15px 0px rgba(0,0,0,0.1);
    -moz-box-shadow: 0px 0px 15px 0px rgba(0,0,0,0.1);
    box-shadow: 0px 0px 15px 0px rgba(0,0,0,0.1);
}


.quiz .sending {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(249, 248, 245,0.9) url(../../images/wait.gif) center no-repeat;
    z-index: 10;
}









.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.quiz-header .progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: calc(100% - 80px);
}

.quiz-header .progress .prog {
    width: 100%;
    height: 10px;
    transform: skew(21deg);
    background: #d0ab60;
    margin-right:4px;
    opacity: 0.2;

    -webkit-transition: all 1500ms cubic-bezier(0.190, 1.000, 0.220, 1.000) 0ms;
    -moz-transition: all 1500ms cubic-bezier(0.190, 1.000, 0.220, 1.000) 0ms;
    -o-transition: all 1500ms cubic-bezier(0.190, 1.000, 0.220, 1.000) 0ms;
    transition: all 1500ms cubic-bezier(0.190, 1.000, 0.220, 1.000) 0ms;
}

.quiz-header .progress .prog.act {
    opacity: 1;
}

.quiz-header .time {
    width: 80px;
    text-align: right;
}

.pytania {
    position: relative;
}

.pytanie {
    margin-left: 0;
    opacity: 1;
    transform: scale(1);
    width: 100%;

    -webkit-transition: all 1500ms cubic-bezier(0.190, 1.000, 0.220, 1.000) 0ms;
    -moz-transition: all 1500ms cubic-bezier(0.190, 1.000, 0.220, 1.000) 0ms;
    -o-transition: all 1500ms cubic-bezier(0.190, 1.000, 0.220, 1.000) 0ms;
    transition: all 1500ms cubic-bezier(0.190, 1.000, 0.220, 1.000) 0ms;

}

.quiz sub {
    font-size: 0.6em;
}

.quiz sup {
    font-size: 0.6em;
}

.pytanie.new {
    position: relative;
    margin-left: 300px;
    opacity: 0;
    transform: scale(0.8);
}
/*
.pytanie img {
    width: 70%;
    display: block;
    margin: 0 auto;
}
*/

.pytanie.old {
    position: absolute;
    margin-left: -300px;
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}


.tresc_pytania {
    font-size: 22px;
    font-weight: 900;
    line-height: 1.4em;
    position: relative;
    padding: 20px 20px 40px;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    text-decoration: none;
    text-align: center;
}


@media screen and (max-width: 768px) {
    .tresc_pytania {
        font-size: 16px;
    }
}

.tresc_pytania table {
    width: 75%;
    text-align: left;
    margin: 0 auto;
}

.tresc_pytania img {
    max-width: 100%;
}


.tresc_pytania > div {
    display: block;
}

.grafika_pytania {
    padding: 20px 20px 40px;
    text-align: center;
}

.grafika_pytania img {
    max-width: 100%;
}

.odpowiedzi {

    display: flex;
    justify-content: space-between;
    align-items: stretch;

}
.odpowiedzi .odp {
    display: block;
    padding: 10px;
    width: 32%;
    cursor: pointer;
    min-height: 100px;

    background: #FFF;
    color: #354d4a;
    position: relative;
    -webkit-transition: all 500ms cubic-bezier(0.190, 1.000, 0.220, 1.000) 0ms;
    -moz-transition: all 500ms cubic-bezier(0.190, 1.000, 0.220, 1.000) 0ms;
    -o-transition: all 500ms cubic-bezier(0.190, 1.000, 0.220, 1.000) 0ms;
    transition: all 500ms cubic-bezier(0.190, 1.000, 0.220, 1.000) 0ms;

    -webkit-box-shadow: 0px 0px 30px 10px rgba(31,26,21,0.1);
    -moz-box-shadow: 0px 0px 30px 10px rgba(31,26,21,0.1);
    box-shadow: 0px 0px 30px 10px rgba(31,26,21,0.1);

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    text-decoration: none;


    font-size: 18px;
    font-weight: 900;
    line-height: 1.4em;
    position: relative;

    text-align: center;
}

@media screen and (max-width: 768px) {

    .odpowiedzi {
        flex-wrap: wrap;
    }

    .odpowiedzi .odp {
        width: 100%;
        margin: 10px 0;
        font-size: 16px;
        min-height: 70px;
    }
}

.odpowiedzi .odp > div {
    display: block;
}


.odpowiedzi .odp:hover {
    transform: scale(1.05);
    z-index: 10;
}

.wynik {
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    border-bottom: 2px solid #F00;
    padding-bottom: 10px;
    margin-bottom: 20px;
}