/*****************************   KNOWLEDGE Quiz CSS - 8/20/2019 ******************************/

/***** global css *****/

body.modal-open {
    overflow: hidden;
}

.hide {
    display: none;
    opacity: 0;
}

.knowledge-modal button {
    cursor: pointer !important;
}

.knowledge-modal button.disabled {
    cursor: default !important;
}

.knowledge-modal.loading button.disabled {
    cursor: progress !important;
}

.knowledge-modal.loading {
    cursor: progress !important;
}

.loading-spinner {
    display: none;
    opacity: 0;
    transition: all ease-in-out 250ms;
}

.knowledge-modal.loading .loading-spinner {
    display: inline-block;
    opacity: 1;
    -webkit-animation: spin 0.5s linear infinite;
    -moz-animation: spin 0.5s linear infinite;
    animation: spin 0.5s linear infinite;
}

.knowledge-modal.loading .desktop-next-btn svg {
    display: none;
}

.knowledge-modal.loading .desktop-next-btn .loading-spinner {
    display: block;
    margin-top: -25px;
    font-size: 1.25rem;
}

.knowledge-modal.loading .desktop-next-btn:hover .loading-spinner {
    color: #4788c7;
    cursor: progress;
}

.knowledge-modal {
    display: none;
    overflow: visible;
    outline: 0;
    position: fixed;
    top: 50%;
    right: 0;
    left: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
    max-width: 704px;
    min-height: 327px;
    height: auto;
    width: auto;
    border-radius: 18px;
    box-shadow: 0 2px 4px 0px rgba(0, 0, 0, 0.5),
        0 0 20px 2px rgba(0, 0, 0, 0.2);
}

.modal-container {
    width: 100%;
    height: 100%;
    display: block;
    transition: all ease-in-out 250ms;
}

.modal-close-svg {
    position: absolute;
    top: 12px;
    right: 15px;
}
.modal-close-svg circle,
.modal-close-svg text {
    transition: all ease-in-out 150ms;
}

.modal-text-container {
    position: absolute;
    top: 45px;
    left: 45px;
    right: 45px;
    display: block;
    text-align: center;
}

/***** popup css *****/

#knowledge-quiz-popup {
    background-color: #4788c7;
    z-index: 9999;
}

#knowledge-quiz-popup .modal-close-svg:hover circle {
    fill: #1d66ab;
}

#knowledge-quiz-popup .modal-close-svg:hover text {
    fill: #4788c7;
}

.modal-quiz-header {
    font-size: 40px;
    color: #fff;
    margin-bottom: 20px;
    display: block;
    border-bottom: 0;
}

.modal-large-btn {
    font-size: 25px !important;
    font-weight: 500 !important;
    margin-bottom: 20px;
    color: #fff !important;
    transition: all ease-in-out 150ms;
}

.modal-large-btn:hover,
.modal-large-btn:focus,
.modal-large-btn:active {
    background-color: #d39a12;
}

.modal-close-text {
    display: inline-block;
    color: #fff;
    border-bottom: 1px solid #fff;
    width: auto;
    margin: 0 auto;
    text-decoration: none;
    font-family: Rubik;
}

.modal-close-text:hover {
    color: #fff;
    text-decoration: none;
}

/***** quiz css *****/
#knowledge-quiz-questions {
    background-color: #ffffff;
    z-index: 9998;
}

#knowledge-quiz-questions .modal-close-svg circle {
    fill: #fff;
    stroke: #85b8e8;
}

#knowledge-quiz-questions .modal-close-svg text,
#knowledge-quiz-questions .modal-close-svg:hover circle {
    fill: #85b8e8;
}

#knowledge-quiz-questions .modal-close-svg:hover text {
    fill: #fff;
}
#modal-question-text-container {
    position: relative;
    display: inline-block;
    margin-top: 35px;
    margin-left: 71px;
    /*margin-right: 52px;*/
    text-align: left;
    color: #4788c7;
}

#modal-question-text-container span {
    font-weight: 500;
    margin-bottom: 13px;
    display: block;
    font-size: 24px;
    line-height: 29px;
}
#modal-question-text-container h3 {
    font-size: 24px;
    line-height: 29px;
}

#modal-answers-text-container,
#modal-answer-explanation-container {
    display: inline-block;
    text-align: left;
    font-family: Rubik;
    font-weight: 500;
    font-size: 14px;
    color: #4788c7;
    margin-top: 35px;
    padding-top: 26px;
    padding-bottom: 10%;
}

#modal-answers-text-container label,
#modal-answer-explanation-container label {
    margin-bottom: 13px;
    display: block;
}

#modal-answers-text-container span,
#modal-answer-explanation-container span {
    padding-left: 10px;
    transition: all ease-in-out 250ms;
}

#modal-next-svg {
    line-height: 0;
}

#modal-next-svg button {
    display: inline-block;
    border: 3px solid #4788c7;
    border-radius: 7px;
    margin: 0;
    text-decoration: none;
    background: #fff;
    background: transparent;
    color: #4788c7;
    font-family: rubik;
    font-size: 15px;
    cursor: pointer;
    text-align: center;
    transition: background 250ms ease-in-out, transform 150ms ease;
    -webkit-appearance: none;
    -moz-appearance: none;
}

#modal-next-svg button:hover,
#modal-next-svg button:focus {
    background: #4788c7;
    color: #fff;
}

#modal-next-svg button:focus {
    outline: none;
}

#modal-next-svg button:active {
    transform: scale(0.97);
}

#modal-next-svg .desktop-next-btn {
    border: none;
    margin: 0;
    text-decoration: none;
    background: none;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
}

#modal-next-svg .desktop-next-btn:hover,
#modal-next-svg .desktop-next-btn:focus {
    background: none;
}

#modal-next-svg svg circle,
#modal-next-svg svg path {
    transition: all ease-in-out 150ms;
}

/* -- next button disabled -- */

#modal-next-svg .desktop-next-btn.disabled svg g,
#modal-next-svg .desktop-next-btn svg g,
#modal-next-svg .desktop-next-btn.disabled:hover svg g,
#modal-next-svg .desktop-next-btn:focus svg g {
    stroke: #fff;
}

#modal-next-svg .desktop-next-btn.disabled svg circle,
#modal-next-svg .desktop-next-btn.disabled svg circle,
#modal-next-svg .desktop-next-btn.disabled:hover svg circle,
#modal-next-svg .desktop-next-btn.disabled:focus svg circle {
    fill: #b6b6b6;
    stroke: #b6b6b6;
}

/* --   next button    -- */
#modal-next-svg .desktop-next-btn svg g,
#modal-next-svg .desktop-next-btn:focus svg g {
    stroke: #2c77bf;
}

#modal-next-svg .desktop-next-btn svg circle,
#modal-next-svg .desktop-next-btn:focus svg circle {
    fill: #fff;
    stroke: #2c77bf;
}

#modal-next-svg .desktop-next-btn:hover svg g,
#modal-next-svg .desktop-next-btn:focus svg g {
    stroke: #fff;
}

#modal-next-svg .desktop-next-btn:hover svg circle,
#modal-next-svg .desktop-next-btn:focus svg circle {
    fill: #2c77bf;
    stroke: #2c77bf;
}

#modal-next-svg .mobile-next-btn {
    display: none;
}

/* Progress bar */
#modal-question-progress-bar {
    position: absolute;
    bottom: 42px;
    left: 25%;
    right: 25%;
}

#modal-question-progress-bar div,
#modal-question-progress-text p,
#modal-question-progress-text span {
    display: inline-block;
    margin-bottom: 0;
}

#modal-question-progress-bar .progress-bar-segment {
    height: 10px;
    display: inline-block;
    width: 17%;
    padding: 0;
    margin: 0;
    background-color: #e0edf9;
}

#modal-question-progress-bar .progress-bar-segment.full {
    background-color: #f9b617;
}

#modal-question-progress-text {
    font-family: rubik;
    color: #4788c7;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: -0.1em;
    padding-left: 5px;
    width: 13%;
}

#modal-next-svg {
    position: absolute;
    right: 45px;
    bottom: 42px;
}

#knowledge-quiz-questions label {
    display: block;
    cursor: pointer;
}

#quiz-correct-answer-label,
#quiz-selected-answer-label {
    cursor: default !important;
}
#knowledge-quiz-questions [type="radio"] {
    position: absolute;
    border: 0;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
}
#knowledge-quiz-questions [type="radio"] + span {
    display: block;
}
#knowledge-quiz-questions [type="radio"] + span:before {
    content: "";
    display: inline-block;
    width: 1.15em;
    height: 1.15em;
    border-radius: 1.15em;
    vertical-align: -0.25em;
    border: 2px solid #4788c7;
    margin-right: 10px;
    transition: 250ms ease all;
}
#knowledge-quiz-questions [type="radio"]:checked + span:before {
    background: #4788c7;
}

#knowledge-quiz-questions #quiz-selected-answer + span:before {
    border: 2px solid #e33838;
    background: #e33838;
}
#knowledge-quiz-questions #quiz-correct-answer + span:before {
    border: 2px solid #60ba30;
    background: #60ba30;
}

#knowledge-quiz-questions.loading [type="radio"] + span:before {
    border: 2px solid #b6b6b6;
}

#knowledge-quiz-questions.loading [type="radio"]:checked + span:before {
    border: 2px solid #b6b6b6;
    background: #b6b6b6;
}

#knowledge-quiz-questions.loading #modal-answers-text-container label span {
    color: #d8d8d8;
}

#knowledge-quiz-questions.loading #modal-answers-text-container label:hover {
    cursor: progress !important;
}

/**** Correct Answer CSS ****/
#modal-answer-explanation-container.hide,
#quiz-selected-answer-label.hide {
    display: none;
}

#quiz-answer-explanation {
    border-left: 5px solid #e0edf9;
    padding-left: 15px;
    color: #b6b6b6;
}

/***** results css *****/

#knowledge-quiz-results {
    background-color: #f9b617;
    z-index: 99999;
}

.paint-brush-image-container {
    position: absolute;
    margin: 0 27px;
}

.paint-brush-image-container img {
    width: 115px;
    height: auto;
}
.paint-brush-image-container:first-of-type {
    top: 0;
    left: 0;
    right: auto;
    bottom: auto;
    transform: none;
}
.paint-brush-image-container:last-of-type {
    position: absolute;
    top: auto;
    left: auto;
    right: 0;
    bottom: 0;
    transform: rotate(180deg);
}

#knowledge-quiz-results .modal-close-svg circle {
    fill: #f9b617;
    stroke: #d39a12;
}

#knowledge-quiz-results .modal-close-svg text,
#knowledge-quiz-results .modal-close-svg:hover circle {
    fill: #d39a12;
}

#knowledge-quiz-results .modal-close-svg:hover text {
    fill: #f9b617;
}

#knowledge-quiz-results .modal-text-container {
    position: absolute;
    top: 60px;
    left: 19.5%;
    right: 19.5%;
    bottom: 0;
    display: block;
    text-align: center;
}

#knowledge-quiz-results .modal-quiz-header,
#knowledge-quiz-results .modal-quiz-sub-header,
#knowledge-quiz-results .modal-quiz-text {
    color: #231e20;
    font-family: rubik;
    margin: 0;
    padding: 0;
}

#knowledge-quiz-results .modal-quiz-header {
    font-size: 39px;
    line-height: 100%;
    margin-bottom: 5px;
}

#knowledge-quiz-results .modal-quiz-sub-header {
    font-size: 28px;
}

#knowledge-quiz-results .modal-quiz-text {
    color: #231e20;
    font-size: 17px;
    line-height: 120%;
    margin-bottom: 26px;
}

#knowledge-quiz-results .btn {
    font-size: 15px;
    font-weight: 500;
    background-color: #4788c7;
    border: 2px solid #4788c7;
    padding: 10.5px 10px;
}

#knowledge-quiz-results .btn-blue:hover {
    background-color: #2c6296;
    border: 2px solid #2c6296;
}

#knowledge-quiz-results .btn:nth-of-type(2) {
    margin: 0 15px;
}

#knowledge-quiz-results .btn-black {
    background-color: #231e20;
    border: 2px solid #231e20;
    border-radius: 7px;
}

#knowledge-quiz-results .btn-black:hover {
    background-color: #fff;
    color: #231e20;
    border: 2px solid #000000;
    border-radius: 7px;
}

#knowledge-quiz-results .btn-blue svg {
    stroke: #ffffff !important;
    margin-left: 15px;
}

#knowledge-quiz-results .btn-black svg {
    stroke: #ffffff !important;
    fill: #231e20 !important;
    margin-left: 10px;
    margin-bottom: -5px;
}

#knowledge-quiz-results .btn-black svg g {
    transition: all ease-in-out 0.15s;
}

#knowledge-quiz-results .btn-black:hover svg g {
    stroke: #231e20 !important;
    fill: transparent !important;
}

#knowledge-quiz-results .modal-text-container .results-btn-group .btn {
    margin-bottom: 11px;
}

/******* Mobile CSS *******/

#knowledge-quiz-mobile-popup {
    display: none;
    padding: 1.2rem 2rem 0 2rem;
    text-align: center;
    background-color: #4788c7;
    box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.2);
}

#knowledge-quiz-mobile-popup .modal-close-svg {
    display: none;
}

#knowledge-quiz-mobile-popup .modal-close-svg svg {
    width: 26px;
    height: 26px;
}

#knowledge-quiz-mobile-popup .modal-large-btn {
    padding: 10px 15px !important;
}

@media screen and (max-width: 992px) {
    /* Quiz Popup Alert */
    #knowledge-quiz-mobile-popup .modal-quiz-header {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    #knowledge-quiz-mobile-popup .modal-large-btn {
        font-size: 1rem !important;
        padding: 15px 15px !important;
    }

    #knowledge-quiz-popup .modal-large-btn {
        font-size: 18px !important;
    }

    .knowledge-modal {
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        transform: none;
        padding: 10vh 10%;
        overflow: scroll;
        max-width: 100%;
    }

    .modal-container {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        height: 100%;
        height: auto;
    }

    .modal-text-container {
        position: relative;
        top: 0;
        left: 0;
        right: 0;
        display: flex;
        text-align: center;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
    }

    /* Questions Modal */

    #modal-question-text-container,
    #modal-answers-text-container,
    #modal-answer-explanation-container {
        display: block;
        flex: 0 0 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    #modal-question-text-container {
        margin-bottom: 2vh;
    }

    #modal-answers-text-container,
    #modal-answer-explanation-container {
        padding-bottom: 0;
    }

    #modal-question-text-container h3 {
        margin-bottom: 0;
    }

    #modal-answers-text-container label,
    #modal-answer-explanation-container label {
        margin-bottom: 1rem;
    }

    #modal-answers-text-container span,
    #modal-answer-explanation-container span {
        padding-left: 0;
        font-size: 1rem;
    }

    #knowledge-quiz-questions [type="radio"] + span:before {
        width: 1.25rem;
        height: 1.25rem;
    }

    #modal-next-svg {
        position: relative;
        right: 0;
        bottom: 0;
    }

    #modal-next-svg .desktop-next-btn {
        display: none;
    }

    #modal-next-svg .mobile-next-btn {
        display: block;
        padding: 12px 16px;
    }

    #modal-next-svg .mobile-next-btn svg g {
        stroke: #4788c7;
        fill: #4788c7;
    }

    #modal-next-svg .mobile-next-btn:hover svg g,
    #modal-next-svg .mobile-next-btn:focus svg g,
    #modal-next-svg .mobile-next-btn:active svg g {
        stroke: #fff;
    }

    .mobile-next-text {
        padding-right: 15px;
    }

    #modal-next-svg .mobile-next-btn.disabled:hover {
        background-color: #fff;
        color: #4788c7;
    }

    #modal-next-svg .mobile-next-btn.disabled:hover svg g,
    #modal-next-svg .mobile-next-btn.disabled:focus svg g,
    #modal-next-svg .mobile-next-btn.disabled:active svg g {
        stroke: #4788c7;
    }

    .knowledge-modal.loading .mobile-next-arrow {
        display: none;
    }

    .knowledge-modal.loading .mobile-next-text {
        padding-right: 25px;
    }

    #modal-question-progress-bar {
        position: relative;
        bottom: 0;
        right: 0;
        left: 0;
        margin-top: 2rem;
    }

    /* Results CSS */

    #knowledge-quiz-results {
        padding: 0;
    }

    #knowledge-quiz-results .modal-text-container {
        position: relative;
        left: 0;
        right: 0;
        bottom: 0;
        top: 25%;
        text-align: left;
        margin: 0 27px;
        margin-top: 1rem;
        z-index: 9999;
    }

    #knowledge-quiz-results .modal-text-container .results-btn-group {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
    }

    .paint-brush-image-container {
        position: relative;
    }
}

#footer-menu li a {
    padding: 0 10px 0 0;
    margin: 0 10px 0 0;
}

/* END KNOWLEDGE QUIZ CSS */
