.cp-page-navigation {
    text-align: center;
    font-size: 1.2em;
}
.cp-page-navigation-grammar {
    text-align: left;
    font-size: 1.2em;
    padding-left: 7em;
}

.cp-page-navigation span {
    vertical-align: middle;
}

.cp-bullet {
    list-style-type: disc;
}
.cp-nav-arrow {
    background-color: #fb8674;
    padding: 4px;
    border-radius: 100%;
    color: white;
    border: solid rgb(255, 255, 255) 3px;
    transition: all 0.25s ease;
    cursor: pointer;

    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.cp-nav-arrow:hover {
    border: solid #a7dcff 3px;
    color: #fb8674;
    background-color: white;
}

.cp-page-navigation-numbers {
    margin: 0 4px;
    color: #404040;
}

.cp-main-container-no-col {
    display: flex;
    justify-content: center;
    border: 7px solid rgba(237, 237, 237, 0.25);
    padding: 5px 7px 10px;
}
.cp-main-container-col {
    border: 7px solid rgba(237, 237, 237, 0.25);
    padding: 5px 7px 10px;
    display: flex;
    flex-flow: wrap;
    justify-content: center;
}
.cp-content {
    /*There must be something that can be shared here shared here? Maybe not.*/
}
.cp-image-wrapper {
    position: relative; /*Needed for cp-play-img because its absolute within cp-image-wrapper*/
}
.cp-phrase {
    margin: 0.25em 0 0;
    max-width: 100%
}

.cp-phrase .cp-write {
    margin: -2px 5px 0 5px;
    height: 1.4em;
    vertical-align: middle;
    border-style: none;
    padding: 2pt 0 0 0.2em;
    border-bottom: 1px dotted #777;
    color: #042c35;
    background-color: rgba(244, 245, 241, 0.3);
    -webkit-appearance: none;
    -webkit-border-radius: 0;
    -webkit-text-size-adjust: none;
}
.cp-text-div-left {
    display: inline-block;
    /*min-width: 25%;
    max-width: 25%;*/
    margin-right: 10px;
}
.cp-text-div-right {
    display: inline-block;
    margin: 0 0 0 0.25em;
}
.cp-span-text {
    /*margin-right:0.5em */
}
.cp-span-text-left {
    text-transform: uppercase;
    word-wrap: break-word;
}
.cp-span-text-right {
}
.cp-text-div {
    display: flex;
    width:100%;
}
.cp-play-img {
    display: none;
    position: absolute;
    bottom: 0;
    left: 50%;
    margin: 0.25em 0 0.25em -4.85em;
}
.cp-play-btn, .cp-pause-btn {
    margin-right: 4px;
    touch-action: manipulation;
    vertical-align: middle;
}

.cp-flex {
    display: flex;
}

/*TODO DELETE*/
/*.cp-play-btn:hover, .cp-pause-btn:hover {*/
/*background: rgba(192, 199, 147, 0.92);*/
/*}*/
.cp-img-main {
    max-height: 21em !important;
    float:right;
    margin-left:1em;
}
.cp-img-small {
    max-height: 200px !important;
    float:right;
    margin-left:1em;
}
.cp-img-col-2 {
    max-height: 10em;
    margin-top: 0.5em;
}
.cp-img-col-3 {
    max-height: 12em;
    margin-top: 0.5em;
}
.cp-img-col-4 {
    max-height:13em;
    max-width:13em;
    margin-top: 0.5em;
}
.cp-img-col-5{
    max-height:15em;
    margin: 0.5em auto 0;
}
.cp-img-col-6 {
    margin: 0.5em auto 0;
    max-height: 19em;
}
.cp-img-col-12 {
    margin: 0.5em auto 0;
    max-height: 27em;
}
.cp-audio-player {
    margin: 1.75em 0.15em 0.5em;
    width: 50%; /*Hope this ok*/
    bottom: 11px;
    position: absolute;
}

.cp-global-audio-player {
    width: 96%;
}
.cp-global-video-player {
    max-width:720px;
    width: 100%;
    margin-bottom: 0.75em;
}

.warning {
    background-color: #f2dede !important;
}
.success {
    background-color: #dff0d8 !important;
}
.cp-main-container-col .col-sm-55 {
    width: 20%;
    position: relative;
    min-height: 1px; /*What is this for?*/
    padding-right: 10px;
    padding-left: 10px;
    float: left;
}
.cp-main-container-no-col .cp-no-col {
    margin: 0.25em 0.5em 0 0;
    display: inline-block;
    float: left;
}

.cp-highlight {
    border-radius: 3px;
    padding: 2px 1px;
    margin: -2px -1px;
}

.cp-green {
    background-color: rgb(153, 255, 153);
}
.cp-purple {
    background-color: rgb(221, 187, 255);
}
.cp-red {
    background-color: rgb(255, 187, 187);
}
.cp-yellow {
    background-color: rgb(238, 238, 68);
}
.cp-blue {
    background-color: rgb(176, 198, 245);
}

.cp-grammar-main-div {
    position: relative;
    display: list-item;
    margin-bottom: 10px;
}

.cp-grammar-button {
    width: 25px;
    height: 25px;
    border-radius: 100%;
    border: 1px solid #b1b1b1;
    margin: 5px;
    float: right;
    box-shadow: 0 1px 2px rgba(180, 180, 180, 0.9);

}

.cp-grammar-button:hover {
    box-shadow: 0 1px 2px rgba(80, 80, 80, 0.9);
    opacity: 0.8;
}

.cp-higlight-button-div {
    position: absolute;
    right: 0;
    top: 1em;
}

.cp-grammar-box {
    width: 250px;
    min-height: 60px;
    right : 155px;
    top : 0;
    border-radius: 1px;
    border: 1px solid #b1b1b1;
    position: absolute;
    box-shadow: 0 1px 2px rgba(180, 180, 180, 0.9);
    padding: 3px;
    z-index: 2;
    font-size: 13px;
    line-height: 1.25em;
}


.cp-grammar-close {
    color: #e6371d;
    position: absolute;
    right: 5px;
    top: 5px;
    background-color: #f8f8f8;
    cursor: pointer;
    border-radius: 100%;
}

.cp-grammar-link {
    margin-left: 5px;
    color: #000067;

}

.cp-grammar-link:hover {
    background-color: #000067;
    color: white;
}

.cp-grammar-article {
    top: 1.5em;
    width: 630px;
    border-radius: 2px;
    max-height: 580px;
    background-color: rgb(239, 239, 239);
    border: none;
    box-shadow: 0px 1px 9px rgba(63, 63, 63, 0.9);
    position: absolute;
    padding: 10px;
    z-index: 10;
    margin: 10px 60px;
    font-size: 16px;
    line-height: 1.25em;
    color:black;
    overflow: hidden;
    overflow-y: auto;
}

.cp-grammar-article > div p, .cp-grammar-article  > div span, .cp-grammar-article th, .cp-grammar-article b,
.cp-grammar-article tr, .cp-grammar-article strong, .cp-grammar-article table{
    font-size: 1em !important;
}

.cp-grammar-chapter {
    font-weight: bold;
    font-size: 1.25em !important;
    line-height: 0.75em !important;
}
.cp-grammar-title {
    font-weight: bold;
    font-size: 1.5em !important;
    line-height: 0.75em !important;
    margin-bottom: 0.25em;
}

/************
MEDIA QUERIES
*************/
/************ TABLET *************/
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) {
    /*.cp-play-btn, .cp-pause-btn {*/
    /*width: 27px;*/
    /*height: 27px;*/
    /*min-width: 27px;*/
    /*padding: 4px 2px 3px 5px;*/
    /*}*/
    .cp-img-main {
        max-height: 19em !important;
    }



    .cp-grammar-button {
        width: 28px;
        height: 28px;
        margin: 6px;
    }
    .cp-grammar-close {
        right: 3px;
        top: 3px;
        font-size: 18px !important;
    }

    .cp-grammar-article .cp-grammar-close {
        right: 5px;
        top: 5px;
        font-size: 22px !important;
    }


}
/************ MOBILE *************/
@media only screen and (max-width: 767px) {
    .cp-phrase {
        margin: 0.1em 0;

    }

    .cp-main-container-no-col {
        display: inline-block;
    }

    .cp-main-container-col {
        width: 100%;
    }

    .cp-img-main {
        float: none;
        margin: 0;
        max-height: 15em !important;
    }

    .cp-flex .cp-play-btn, .cp-flex .cp-pause-btn {

        float: left;
    }

    .cp-flex {
        display: inline-block;
        width: 100%;
    }

    .cp-play-imgtrue {
        display: none;
    }

    /*.cp-play-btn:hover, .cp-pause-btn:hover {*/
    /*background: rgba(224, 235, 169, 0.92);*/
    /*}*/
    .cp-play-img {
        display: inline-block;
    }

    .cp-text-div-left {
        display: block;
        margin-top: 0;
        margin-left: 2.1em;
        width: 90% !important;
        min-width: 90% !important;
    }

    .cp-text-div-right {
        margin-left: 2.1em;
        margin-top: -0.2em;
        margin-bottom: 0;
        Width: 95%;
        min-Width: 95%;
    }

    .cp-text-div {
        display: inline-block;
        margin-left: 2.15em;
    }

    .cp-higlight-button-div {
        width: 30px;
        top: 7em;
        margin-right: 0.5em;
    }

    .cp-main-container-col .col-sm-2 {
        width: auto;
        display: inline-block;
    }

    .cp-img-col-1 {
    }

    .cp-img-col-2, .cp-img-col-3, .cp-img-col-4, .cp-img-col-6 {
        margin: 0.5em auto 0;
        max-height: 10em;
    }

    .cp-main-container-col .col-sm-4, .cp-main-container-col .col-sm-3, .cp-main-container-col .col-sm-2, .cp-main-container-col .col-sm-55 {
        width: 50%;
        margin: 0;
        padding: 0 2px;
    / / text-align: center;
    }

    .cp-span-text {
        line-height: 1.25em;
        /*width:100%;*/
    }

    .cp-audio-player {
        margin: 1.75em 0.15em 0.5em;
        width: 270px; /*Hope this ok*/
        position: relative;
    }

    .cp-grammar-box {
        top: 88px;
        right: 50px;
    }

    .cp-grammar-close {
        right: 3px;
        top: 3px;
        font-size: 18px !important;
    }

    .cp-grammar-article .cp-grammar-close {
        right: 5px;
        top: 5px;
        font-size: 22px !important;
    }

    .cp-grammar-article {
        width: 99%;
        left: -58px;
    }

    .cp-grammar-main-div {
        position: absolute;
        top: -45px;
        right: 0;
    }

}
@media only screen and (min-device-width : 500px) and (max-device-width : 767px) {
    .cp-main-container-col .col-sm-4, .cp-main-container-col .col-sm-3, .cp-main-container-col .col-sm-55 {
        width: 33%;
        margin: 0;
        padding: 0 2px;
    }
    .cp-main-container-col .col-sm-2 {
        width: 25%;
        margin: 0;
        padding: 0 2px;
    }
}
