#modalEpisode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

#modalEpisode #episodeBox {
    background-color: #f6f6f6;
    margin: auto;
    max-width: 100%;
    padding: 25px 50px 50px 50px;
    position: relative;
    text-align: left;
    top: 100px;
    width: 1240px;
}

#modalEpisode #pageNav {
    bottom: 5px;
    left: 0;
    position: absolute;
    text-align: center;
    width: 100%;
}

#modalEpisode #curPageWrapper {
    display: inline-block;
    margin: 0 15px;
}

#modalEpisode img.closeEpisode {
    cursor: pointer;
    position: absolute;
    right: 12px;
    top: 12px;
    filter: grayscale(1);
}

#modalEpisode img.closeEpisode:hover {
    filter: grayscale(0);
}

#modalEpisode #impulseList {
    background-image: url("../graphX/lineHorizontal.png");
    background-position: center top 30px;
    background-repeat: no-repeat;
    background-size: calc(100% - 100px) 5px;
    display: inline-block;
    height: 95px;
    margin: 5px;
    max-width: 100%;
    overflow-x: auto;
    text-align: left;
    white-space: nowrap;
}

#modalEpisode #pageContent img {
    margin: 10px;
    border-radius: 10px;
}

#modalEpisode #impulseList > img {
    height: 60px;
    margin: 5px 20px;
}

#modalEpisode #impulseList > img.available, #modalEpisode #impulseList > img.current {
    cursor: pointer;
}

#modalEpisode #pageContent {
    margin: 5px 5px 50px 5px;
    padding: 0;
    height: 500px;
    overflow-y: auto;
    text-align: left;
    color: #6e6d6d;
}

#modalEpisode form#pageContents {
    display: none;
}

#modalEpisode #episodeTitle {
    background: #f6f6f6 none repeat scroll 0 0;
    border-top-left-radius: 30px;
    cursor: move;
    font-size: 1.3em;
    height: 80px;
    margin-left: -10px;
    padding: 15px 25px 7px 35px;
    position: absolute;
    text-align: left;
    top: -80px;
    z-index: -1;
}

#modalEpisode #episodeTitle::after {
    border-left: 65px solid #f6f6f6;
    border-top: 80px solid rgba(0, 0, 0, 0);
    bottom: 0;
    content: "";
    position: absolute;
    right: -65px;
}

#modalEpisode audio {
    width: 100%;
}

#modalEpisode div.tabWrapper > div {
    min-height: 50px;
}

#modalEpisode video {
    max-height: 500px;
}

#modalEpisode button[isCorrect] {
    border-radius: 10px;
    border-width: 2px;
    margin: 15px 1.5%;
    min-height: 60px;
    white-space: initial;
    width: 46%;
    hyphens: none;
}

#modalEpisode .quizResultHtml {
    display: none;
}

#modalEpisode button.download{
    margin: 10px;
}

#modalEpisode button[isCorrect]:not(:disabled):hover {
    background-color: grey;
    border-color: grey;
}

#modalEpisode button[isCorrect].selected {
    font-weight: bold;
    color: black;
}

#modalEpisode button[isCorrect="1"].selected {
    background-color: rgb(127, 178, 64);
    color: white;
    border-color: rgb(127, 178, 64);
}

#modalEpisode button[isCorrect="1"].selected.weak {
    background-color: rgba(127, 178, 64, 0.5);
    color: #484848;
    border-color: rgba(127, 178, 64, 0.5);
}

#modalEpisode button[isCorrect="0"].selected {
    background-color: rgb(156, 11, 13);
    color: white;
    border-color: rgb(156, 11, 13);
}

#modalEpisode button[isCorrect="0"].selected.weak {
    background-color: rgba(156, 11, 13, 0.50);
    border-color: rgba(156, 11, 13, 0.50);
    color: #484848;
}

#modalEpisode #intermediaryPages {
    display: none;
}

#modalEpisode button[form_answer_id]:disabled {
    background-color: lightgrey;
}

#modalEpisode button[form_answer_id].selected {
    background-color: rgb(127, 178, 64);
    font-weight: bold;
}

#modalEpisode button.toTrainingPlan {
    float: right;
    margin-top: 15px;
}

#modalEpisode div.saveSlotWrapper {
    float: right;
    display: none;
}

#modalEpisode button.saveSlot {
    margin: 5px;
}

#modalEpisode button.saveSlot.selected {
    background-color: rgb(127, 178, 64);
    font-weight: bold;
}

#modalEpisode #impulseList > img.intermedImpulse {
    cursor: pointer;
    height: 40px;
    margin-bottom: 14px;
    margin-right: 0;
    width: 40px;
}
#modalEpisode #impulseList > img.intermedImpulse.locked {
    cursor: default;
}


#modalEpisode #impulseList > img:not(.intermedImpulse) + img.intermedImpulse {
    margin-left: 0;
}

#modalEpisode div.infoPages {
    display: none;
}

#modalEpisode div.infoButtons {
    text-align: center;
}

#modalEpisode div.infoButtons > button {
    margin: 10px;
}

#modalEpisode table.selfTest {
    width: 100%;
    text-align: center;
}

#modalEpisode button.finalizeTest {
    float: right;
    margin-top: 15px;
}

#modalEpisode table.selfTest td:first-of-type {
    text-align: left;
}

#modalEpisode table.selfTest tr.groupText p {
    margin: 0;
}

#modalEpisode .mce-statusbar, #modalEpisode .mce-toolbar-grp {
    display: none;
}

#episodeBox p {
    text-align: inherit;
    line-height: inherit;
}

#modalEpisode #waitDuration {
    position: relative;
    text-align: center;
}

#modalEpisode b, #modalEpisode strong {
    font-size: inherit;
}

#modalEpisode li {
    list-style-position: outside;
}

#modalEpisode ol li {
    list-style-type: decimal;
}

#pageContent table.selfTest {
    width: 100%;
    margin-top: 25px;
}

#modalEpisode .myFormReviewAnswer {
    text-align: center;
}

#modalEpisode table.selfTest td {
    padding: 5px 15px;
    vertical-align: middle;
}

#modalEpisode table.selfTest tbody td:first-of-type {
    width: 50%;
}

#modalEpisode table.selfTest td:not(:first-of-type) {
    text-align: center;
}

#modalEpisode table.selfTest thead {
    background-color: #7fb23f;
    color: white;
}

#modalEpisode table.selfTest thead td, table.selfTest .groupText td {
    padding: 15px;
}

#modalEpisode table.selfTest .groupText {
    font-size: 1.125em;
}

#modalEpisode table.selfTest tr td p {
    margin: 5px 0;
}

/* graceful degradation for ie8 */
#modalEpisode table.selfTest input[type='radio'] {
    width:auto;
    float:left;
    margin-right: .75em;
    background:transparent;
    border:none;
}

#modalEpisode table.selfTest input[type='radio'] {
    background: transparent;
    position: relative;
    visibility: hidden;
    margin:0;
    padding:0;
}

#modalEpisode table.selfTest input[type='radio'] + label {
    cursor: pointer;
}

#modalEpisode .saveResult input[type='radio'] + label {
    margin-left: 25px;
}

#modalEpisode table.selfTest input[type='radio'] + label {
    content:' ';
    display: block;
    width: 17px;
    height:17px;
    border: 1px solid #bbb;
    background: white;
    margin: auto;
    box-shadow: inset 0 1px 1px 0 rgba(0,0,0,.1);
}

#modalEpisode .saveResult input[type='radio'] label {
    display: inline-block;
    margin-right: 0.5em;
    position: relative;
    top: 4px;
}

table.selfTest thead td {
    min-width: 100px;
}

#modalEpisode table.selfTest input[type=radio] + label {
    border-radius: 30px;
}

#modalEpisode #modalEpisode table.selfTest input[type='radio']:hover  + label {
    background: #7fb23f;
    box-shadow: inset 0 0 0 2px white;
}

#modalEpisode table.selfTest input[type='radio']:checked  + label {
    background: #7fb23f;
    box-shadow: inset 0 0 0 2px white;
}

#modalEpisode button.resetAnswer {
    margin-top: 15px;
}

@media (max-width: 500px) {
    #modalEpisode #episodeBox {
        padding: 5px 30px 30px;
    }

    #modalEpisode #episodeBox > div:first-of-type {
        padding: 25px 0 !important;
    }

    #modalEpisode #episodeBox > div > div {
        float: none !important;
        display: block;
        line-height: 0.25em;
    }

    #modalEpisode #episodeBox h3 {
        display: block;
        margin-top: 25px;
    }
}

