#lvk-form-wrapper{
    text-align: center;
}
.valmaskin-overlay-wrapper {
    #lvk-form-wrapper{
        margin: 0 10%;
        width: 100%;
        max-width: 1200px;
        padding: 0 1.25rem;
    }
}


.lvk_question_title{
    text-align: center;
    font-size: 30px;
    line-height: 35px;
    font-weight: 700;
    margin-top:0;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
    font-family: myriad-pro-condensed,hoefler-regular,Times,Roboto,Arial,sans-serif;
}

.skip-question-wrapper {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 40px;
    display: inline-flex !important;
}
.skip-question-wrapper label{
    margin-left: 5px;
    font-weight: bold;
    cursor: pointer;
}
.skip-question-wrapper label:before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 22px;
    margin-bottom: -5px;
    margin-right: 5px;

}
.skip-question-wrapper label.eye-on:before {
    background: transparent url(../assets/eye.svg) no-repeat 0 0;
}
.skip-question-wrapper label.eye-off:before {
    background: transparent url(../assets/eye-off.svg) no-repeat 0 0;
}
.lvk_skip_question_checkbox {
    display: none;
}
.lvk_question_radio_wrapper{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1100px;
    margin: auto;
}
.question.opacity .lvk_question_radio_wrapper,.question.opacity .textareas-wrapper{
    opacity: 0.3;
}
.answers-wrapper {
    list-style: none;
    text-align: left;
}
.lvk_question_answer{
    text-align: center;
    flex-basis: calc(20% - 20px);
    margin: 0 10px;
}
@media screen and (max-width: 768px) {

}

.lvk-skip-question-button{
    border: solid 1px;
    padding: 10px 15px;
    border-radius: 999px;
    display: inline-block;
    cursor: pointer;
    margin: 0 auto 2rem auto;
}

.answer {
    margin-bottom: 30px;
    display: none;
}
.next-prev-button-wrapper {
    display: flex;
    justify-content: space-around;
}
.next-prev-button-wrapper .prev,.next-prev-button-wrapper .next {
    cursor: pointer;
    font-weight: bold !important;
    font-size: 16px;
    line-height: 46px;
}
.next-prev-button-wrapper .prev span,.next-prev-button-wrapper .next span {
    display: inline-block;
    width: 46px;
    height: 46px;
    border-radius: 50px;
    margin-bottom: -17px;
}
.next-prev-button-wrapper .prev {
    /*position: absolute;*/
    left: calc(50% - 250px);
    top: 10px;
}
.next-prev-button-wrapper .prev span {
    margin-right: 10px;
    background: #F8F8F8 url("../assets/arrow-left.svg") no-repeat center center;
}
.next-prev-button-wrapper .next span {
    margin-left: 10px;
    background: #F8F8F8 url("../assets/arrow-left.svg") no-repeat center center;
    transform: rotate(180deg);
}
.lvk_question_answer_text{
    margin: 0 auto;
    display: block;
    max-width: 200px;
    line-height: 1.2;

}

.textareas-wrapper{
    display: flex;
    flex-wrap: wrap;
}
.textareas-container{
    width: 33%;
    padding: 1rem;
}
.textareas-container h4{
    margin-bottom:0;
}
.textareas-container p {
    margin: 0;
}
.lvk_question_answer_textarea{
    width: 100%;
    margin: 20px 0;
    height: 80px;
    border: 1px solid #cfd7de;
    border-radius: 5px;
}


.lvk_question_answer_label{
    cursor: pointer;
}
input[type="radio"].lvk_question_radio {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    background: transparent url("../assets/radio-inactive.svg");
    transition: background-color .3s, box-shadow .3s;
    cursor: pointer;
    margin-top: 20px;
}

input[type="radio"].lvk_question_radio:checked {
    background: transparent;
    width: 48px;
    height: 48px;
    border: transparent;
    background-image: url("../assets/Radio.svg");
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: none;
}
.lvk-candidate-input-form-submit-wrapper {
    display: flex;
    justify-content: center;
}
#lvk-candidate-input-form-submit {
    background: #0089cf !important;
    border: 0;
    color:#fff;
    padding: 10px 15px;
    font-size: 18px;
    border-radius: 5px;
    display: inline-block;
    cursor: pointer;
    font-weight: bold;
    font-family: Arial,sans-serif;
}
#lvk-submit-button {
    background: #0089cf !important;
    border: 0;
    color:#fff;
    padding: 10px 15px;
    font-size: 18px;
    border-radius: 5px;
    text-transform: uppercase;
    cursor: pointer;
    font-family: myriad-pro-condensed,hoefler-regular,Times,Roboto,Arial,sans-serif;
}
#lvk-results {
    display: none;
    justify-content: center;
    max-width: 1180px;
    margin: auto;
    flex-wrap: wrap;
}
.lvk-results-candidate {
    background: #fefefe;
    margin: 0 10px 20px 10px;
    padding: 1.25rem;
    max-width: 570px;
    position: relative;
    box-shadow: 0 0 0.625rem 0 rgba(0,0,0,.05);
    /*flex-basis: calc(50% - 20px);*/
    min-width: calc(50% - 20px);
}
.lvk-results-similarity {
    font-size: 35px;
    font-weight: bold;
    font-family: myriad-pro-condensed,hoefler-regular,Times,Roboto,Arial,sans-serif;
    color: #0089cf;

}
@media screen and (max-width: 1300px) {
    .lvk-results-candidate {
        /*min-width: 400px;*/
    }
}
.lvk-results-candidate a{
    text-decoration: none;
    color: inherit;
    display: flex;
    height: 100%;
}
.lvk-results-candidate figure {
    padding: 0;
    margin: 0;
    border-radius: 6.25rem;
    overflow: hidden;
    display: block;
    width: 6.25rem;
    height: 6.25rem;
}
.lvk-results-candidate-content{
    padding: 0 0 0 1.25rem;
    text-align: left;
}
.lvk-results-candidate-name{
    font-size: 1.5rem;
    line-height: 1.875rem;
    font-family: myriad-pro-condensed,hoefler-regular,Times,Roboto,Arial,sans-serif;
    margin-top: 1px;
    letter-spacing: -.02em;
    color: #0089cf;
    text-transform: uppercase;
    font-weight: 900;
    margin-bottom: 5px;
    padding-bottom: 0;
    text-align: left;
}
.lvk-results-candidate-municipality {
    text-align: left;
}

.lvk-results-candidate-election-number{
    background: #0089cf;
    text-align: center;
    color: #fefefe;
    display: block;
    font-family: myriad-pro-condensed,hoefler-regular,Times,Roboto,Arial,sans-serif;
    position: absolute;
    top: 20px;
    right: 20px;
    border-radius: 60px;
    width: 60px;
    height: 60px;
    font-size: 30px;
    font-weight: bold;
    line-height: 60px;
}


/*Valmaskin */
.valmaskin-overlay-wrapper {
   background: rgba(255,255,255,1);
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   z-index: 99;
   display: none;
}

body.valmaskin-active {
    overflow: hidden;
}
body.valmaskin-active .valmaskin-overlay-wrapper{
    display: block;
}
.valmaskin-overlay {
    display: flex;
    justify-content: center;
    text-align: center;
    margin: 50px 0;
    overflow: auto;
    padding: 0px 0;
    max-height: 90%;
    min-height: 90%;
    background:#fff;
}

.open-valmaskin {
    cursor: pointer;
    border-radius: 5px 5px !important;
    padding: 15px 40px !important;
}
.close-valmaskin {
    display: block;
    cursor: pointer;
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50px;
    background: #F8F8F8 url(../assets/close-black.svg) no-repeat 50% 50%;
}
#lvk-user-input-form {
    text-align: center;
    position: relative;
}
#lvk-candidate-input-form #counter,#lvk-user-input-form #counter {
    background: #0089cf;
    color: white;
    display: inline-block;
    border-radius: 5px;
    padding: 6px 15px;
    font-weight: bold;
    letter-spacing: -1px;
}
#questions {
    margin-top: 20px;
}
#lvk-results-master-title {
    text-align: center;
    margin-bottom: 50px;

}
.lvk-results-candidate-content .button.blue-button {
    margin-top: 20px;
}
@media screen and (max-width: 900px) {
    .lvk-results-candidate-election-number{
        top: 15px;
        right: 15px;
        border-radius: 40px;
        width: 40px;
        height: 40px;
        font-size: 20px;
        line-height: 40px;
    }

    .lvk-results-candidate {
        min-width: 50%;
    }
    .lvk-results-candidate-content {
        width: 50%;
    }
}

@media screen and (max-width: 768px) {
    .lvk_question_answer_text{
        min-height: 30px;
    }
    .lvk_question_answer{
        flex-basis: calc(100%);
        margin: 10px 0;
    }
    .valmaskin-overlay {
        padding: 20px 0;
        margin: 0px;
    }
    .next-prev-button-wrapper {
        margin-top: 13px;
    }
    .lvk_question_title{
        margin-bottom: 30px;
        font-size: 17px;
        line-height: 23px;
    }
    #questions {
        margin-top: 0px;
    }
    #lvk-results {
        flex-wrap: wrap;
    }
    .lvk-results-candidate {
        min-width: auto;
        width: 100%;
        max-width: none;
    }
    #lvk-form-wrapper{
        padding: 0;
    }
    .textareas-container{
        width: 100%;
    }
    .textareas-container h4{
        margin-bottom: 0;
    }
    .lvk_question_answer_textarea {
        margin: 0;
    }

}

@media screen and (max-width: 600px) {
    .lvk-results-candidate {
        min-width: 100%;
    }
    .lvk-results-candidate a {
        flex-wrap: wrap;
    }
    .next-prev-button-wrapper .prev {
        position: relative;
        left: auto;
    }
}

.vastaukset {
    max-width: 1200px;
    margin: 0 auto 50px auto;
}

#lvk-candidate-answers h2 {
    text-transform: uppercase;
    color: #0089CF;
    font-family: myriad-pro-condensed,hoefler-regular,Times,Roboto,Arial,sans-serif;
    font-size: 36px;
    font-weight: 700;
    padding: 50px 0;
}
#lvk-candidate-answers h3 {
    font-family: myriad-pro-condensed,hoefler-regular,Times,Roboto,Arial,sans-serif;
    font-size: 24px;
    max-width: 80%;
    margin: 0 auto 20px auto;
}
#lvk-candidate-answers .answers-inner-wrapper {
    background-color: white;
    padding: 50px;
    box-shadow: 0 0 5px 0 rgba(0,0,0,.05);
    margin: auto;
}

.answer-item {
    display: none;
    padding-bottom: 60px;
    font-size: 14px;
    max-width: 800px;
    margin: auto;
}

.answer-item:first-child {
    display: block;
    padding-bottom: 0;
}
.answer-item .index-total {
    /*background: linear-gradient(90deg, #00A1F4 0%, #0087CE 100%);*/
    background: #0089cf;
    border-radius: 6px;
    display: inline-block;
    color: white;
    font-weight: bold;
    padding: 5px 10px;
}
.showall {
    border: 2px solid #0089CF;
    border-radius: 6px !important;
    font-size: 16px !important;
}
.showall-answers .answer-item{
    display: block !important;

}
.answer-set {
    display: flex;
    justify-content: center;
    align-items: self-end;

}
.answer-item-show {
    padding: 10px 30px 25px 30px;
    position: relative;
}
@media screen and (max-width: 650px) {
    .answer-item-show {
        padding: 10px 10px 25px 10px;
    }
}
.answer-item-show span {
    background: transparent url(../assets/Radio-nonactive.svg) no-repeat 0 0;
    background-size: cover;
    width: 48px;
    height: 48px;
    display: block;
    margin: 10px auto 0 auto;
}
.answer-item-show.chosen span {
    background: transparent url(../assets/Radio.svg) no-repeat 0 0;
    background-size: cover;
}

.answer-set.explanation-found .answer-item-show.chosen:after {
    display: none;
    position:absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #EBF6FB;
    content: "";
    margin-left: -10px;
}
.explanation {
    background-color: #EBF6FB;
    padding: 13px 25px;
    margin-bottom: 40px;
    text-align: left;
    border-radius: 5px;
}
@media screen and (max-width: 1700px) {
    .vastaukset {
        width: calc(100% - 400px);
    }
}
@media screen and (max-width: 1300px) {
    .vastaukset {
        width: calc(100% - 200px);
    }
}
@media screen and (max-width: 63.9375em) {
    .vastaukset {
        width: calc(100% - 60px);
    }
}
@media screen and (max-width: 600px) {
    .vastaukset {
        width: calc(100% - 20px);
    }
}

.loader {
    border: 8px solid #f3f3f3; /* Light grey */
    border-top: 8px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: none;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.redo {
    cursor: pointer;
    padding: 14px 20px;
    margin-bottom: 40px;
}
