@font-face {
    font-family: Helvetica Neue;
    src: url(../../css/fonts/helvetica_neue/HelveticaNeueCyr-Roman.otf);
}

@font-face{
    font-family: Circular Std;
    src: url(/public/css/fonts/circular_std/CircularStd-Bold.otf);
}

@font-face {
    font-family: Circular Std Book;
    src: url(/public/css/fonts/circular_std/CircularStd-Book.otf);
}

@font-face{
    font-family: Helvetica Neue Cyr Bold;
    src: url(/public/css/fonts/helvetica_neue/HelveticaNeueCyr-Bold.otf);
}

body{

    margin: 0 !important;

}
.wrapper{
    width: 100%;
    height: 100%;
}

.videocontent {
    height: 100%;
    width: 100%;
    margin: 0 auto;

}

#my-video{
    width: 100%;
    height: 100%;
}
.vjs-subs-caps-button{
    display: none;
}

.b-container{
    width:200px;
    height:150px;
    background-color: #ccc;
    margin:0px auto;
    padding:10px;
    font-size:30px;
    color: #fff;
}
.b-popup{
    width: 100%;
    height: auto;
    margin-top: 10%;
    margin-right: 30px;
    position: relative;
    z-index: 140;

}


.b-popup-content{
    margin:auto auto auto auto;
    width:636px;
    height: auto;
    transition: height 1s 1s;
    background-color: #fff;
    border-radius: 27px;
    color: white;
    padding-left: 34px;
    padding-right: 34px;
    padding-bottom: 34px;
    zoom: 0.6;

}

@keyframes bubble-animation-first {
    0% {
        transform: translateY(0%);
        opacity: 0;
    }
    50% {
        transform: translateY(-10%);
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes bubble-animation-second {
    0% {
        transform: translateY(0%);
    }
    50% {
        transform: translateY(-10%);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes bubble-animation-out {
    0% {
        transform: translateY(0%);
        opacity: 1;
    }
    50% {
        transform: translateY(-10%);
    }
    100% {
        transform: translateY(0);
        opacity: 0;
    }
}

.b-popup-content.first {
    animation-duration: .3s;
    animation-name: bubble-animation-first;
    animation-iteration-count: 1;
}

.b-popup-content.second {
    animation-duration: .3s;
    animation-name: bubble-animation-second;
    animation-iteration-count: 1;
}

.b-popup-content.out {
    animation-duration: .3s;
    animation-name: bubble-animation-out;
    animation-iteration-count: 1;
    opacity: 0;
}

.b-popup-content{
    margin-top: 35px;
}
.b-popup-content:before{
    position: absolute;
    z-index: auto;
    bottom: -30px;
    left: 50%;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-top: 37px solid #fff;
    margin-left: -30px;
    content: "";
}

.btn-captions-background{
    display: none;
}



@media (max-width: 800px) {
    .b-popup-content {
        zoom: 0.4;
    }
}
/*@media (max-height: 450px) {*/
/*.btn-previous-title, .btn-next-title {*/
/*width: 4.8em !important;*/
/*}*/
/*.btn-translate-cue{*/
/*width: 5em !important;*/
/*right: calc(50% - 2.53em) !important;*/
/*}*/
/*.btn-next-title{*/
/*right: calc(50% - 80px) !important;*/
/*}*/
/*.btn-previous-title{*/
/*left: calc(50% - 80px) !important;*/
/*}*/
/*.vjs-text-track-display > div > div > div{*/
/*font-size: 150% !important;*/
/*}*/
/*.b-popup{*/
/*margin-top: -1.5%;*/
/*}*/

/*.btn-translate-cue, .btn-previous-title, .btn-next-title {*/
/*top: -34.3711vh;*/
/*}*/

/*}*/

.pop-up-normal-form-translate{
    width: 100%;
}

.srt-word{
    color: #20114a;
    height: 126px;
    font-size: 55px;
    border-bottom: #c3c3c3 solid 2px;
    text-shadow: none;
    padding-top: 23px;
    line-height: 103px;
    font-weight: bolder;
    font-family: Helvetica Neue Cyr Bold;

}
.speech-container{
    float: right;
    height: auto;
    width: 76px;
}
.speech-container > div{
    width: 100%;
    height: 100%;
    cursor: pointer;
    background-image: url(/img/speakerIcon.svg);
}
.speech-container > div:hover{
    background-image: url(/img/speakerIconOrange.svg);
}

.main-translate{
    height: 108px;
    text-shadow: none;
    font-family: Circular Std;
    font-weight: bolder;
    color: #ff6d00;
    font-size: 60px;
    line-height: 108px;
}

.translation-options{
    padding-bottom: 5px;
}

.normal-form{
    display: none;
}

.translate-for-normal-form{
    display: none;
}

.visible-normal-form{
    display: block;
}

.normal-forms{
    padding-top: 5px;
    padding-bottom: 5px;
}
.translates-for-normal-forms{
    padding-top: 5px;
    padding-bottom: 5px;
}
.pos-buttons{
    overflow: hidden;
    border-top: #c3c3c3 solid 2px;

}

.pos-button{
    margin-top: 22px;
    float: left;
    margin-right: 50px;
    font-size: 32px;
    color: #20114a;
    text-shadow: none;
    line-height: normal;
}
.pos-button-title{
    color: #ff6d00;
}
.option-translates{
    max-height: 150px;
    overflow: hidden;
}

/* Back button arrow */

.videojs-back-arrow{
    height: 30px;
    width: 30px;
    position: fixed;
    top: 20px;
    left:20px;
    display: none;
    outline: none;
    background-color: transparent;
    border: 0;
    z-index: 2;
}

.video-js .vjs-control.videojs-flashcard-button {
    height: 30px;
    position: fixed;
    top: 20px;
    padding-left: 10px;
    left: 60px;
    outline: none;
    background-color: transparent;
    z-index: 2;
    cursor: pointer;
    font-size: 1.5rem;
    border-left: 1px solid white;
}

.video-js .vjs-control.videojs-flashcard-button:hover {
    color: #ff6d00;
}

.video-js .vjs-control.videojs-flashcard-button.hidden {
    display: none !important;
}




.videojs-back-arrow-img{
    width: 30px;
}
.btn-next-title{
    position: absolute !important;
    top: -6vh;
    right: 41%;
    background: url(/img/captionsButton.svg) 113% 50% no-repeat !important;
    background-size: 250% !important;
    cursor: pointer;
    outline: none;
    border-bottom-right-radius: 10px;
    border-top-right-radius: 10px;
}
.btn-previous-title{
    position: absolute !important;
    top: -6vh;
    left: 41%;
    background: url(/img/captionsButton.svg) -13% 50% no-repeat !important;
    background-size: 250% !important;
    cursor: pointer;
    outline: none;
}

.ios .btn-loop-caption {
    display: none;
}

.ios .btn-previous-title {
    border-bottom-left-radius: 45px;
    border-top-left-radius: 45px;
}

.ios .vjs-fullscreen-control {
    display: none;
}

@media screen and (orientation: portrait) {
    .ios .btn-previous-title {
        left: 24% !important;
    }
}

.btn-loop-caption{
    background-color: rgba(0, 0, 0, 0.3) !important;
    top: -32.3711vh;
    height: 4em !important;
    position: absolute !important;
    /*top: -6vh;*/
    left: 37%;
    width: 4% !important;
    background: url(/img/loopButtonOpen.svg) center no-repeat !important;
    background-size: 65% !important;
    cursor: pointer;
    outline: none;
    border-bottom-left-radius: 10px;
    border-top-left-radius: 10px;
}

.btn-loop-caption:hover {
    background-image: url(/img/loopButtonOpenOrange.svg)!important;
}

.btn-loop-caption.is-active {
    background-image: url(/img/loopButtonClose.svg)!important;
}

.btn-loop-caption.is-active:hover,
.btn-loop-caption.is-active.orange {
    background-image: url(/img/loopButtonCloseOrange.svg)!important;
}

.btn-loop-caption::after{
    position:absolute; width:0; height:0; overflow:hidden; z-index:-1;
    content: url(/img/loopButtonOpen.svg) url(/img/loopButtonOpenOrange.svg) url(/img/loopButtonClose.svg) url(/img/loopButtonCloseOrange.svg);
}

.btn-settings {
    bottom: 10vh;
    height: 50px !important;
    position: absolute !important;
    right: 10%;
    width: 50px !important;
    background: url(/img/settingsButton.svg?v=2) center no-repeat !important;
    cursor: pointer;
    outline: none;
    border-bottom-left-radius: 10px;
    border-top-left-radius: 10px;
}

.video-js.vjs-playing .btn-settings {
    transition: opacity 0.5s !important;
}

.video-js.vjs-user-inactive.vjs-playing .btn-settings {
    opacity: 0;
    pointer-events: none;
}

@media screen and (max-width: 767.98px) and (orientation: portrait) {
    .btn-settings {
        top: 80px;
        right: 5%;
        width: 45px !important;
        height: 45px !important;
        background-size: contain !important;
    }

    .settings-popup {
        top: 60px !important;
        left: -270px !important;
    }

    .settings-popup::after {
        bottom: 100%;
        top: auto !important;
        border-color: transparent transparent white transparent !important;
    }
}

.btn-settings:hover {
    background: url(/img/settingsButtonOrange.svg) center no-repeat !important;
    background-size: contain !important;
}

.settings-popup {
    font-family: "Circular Std", sans-serif;
    position: absolute;
    width: 320px;
    height: 180px;
    background-color: white;
    color: #20114a;
    top: -195px;
    left: -265px;
    border-radius: 7px;
    font-size: 1.25rem;
    text-align: left;
    display: none;
    cursor: default;
    z-index: 5;
}

.settings-popup .small {
    font-size: 1rem;
    padding: 0 2rem;
    display: block;
}

.settings-popup::after {
    content: '';
    display: block;
    position: absolute;
    right: 10px;
    width: 0;
    height: 0;
    border-style: solid;
    top: 100%;
    border-color: white transparent transparent transparent;
    border-width: 15px;
}

.settings-popup > .setting {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.settings-popup > .setting.active > .switcher {
    background: url('/img/switch-on.png') no-repeat;
}
.settings-popup > .setting.active > .element {
    color: inherit;
}

.settings-popup .switcher {
    background: url('/img/switch-off.png') no-repeat;
    width: 50px;
    height: 30px;
}

.settings-popup .title {
    padding: 1rem;
    margin: 1rem;
    font-weight: bold;
    border-bottom: 2px solid lightgray;
}

.settings-popup .element {
    color: lightgray;
}


.btn-translate-cue{
    position: absolute !important;

    right: 47%;
    background: url(/img/captionsButton.svg) center no-repeat !important;
    background-size: 250% !important;
    cursor: pointer;
    outline: none;
}
.btn-translate-cue-gray{
    background-image: url(/img/translateCueGray.svg) !important;
}
.btn-speech-cue{
    position: absolute !important;
    top: -6vh;
    width: 4% !important;
    right: 38%;
    background: url(/img/speakerCircleIcon.svg) center no-repeat !important;
    background-size: 52% !important;
    cursor: pointer;
    outline: none;
}
.btn-speech-cue > svg{
    display: none;
    width: 55% !important;
    margin-left: 23%;
}
.btn-speech-cue:hover{
    background-image: url(/img/speakerCircleIconOrange.svg)!important;
}
.btn-translate-cue, .btn-previous-title, .btn-next-title, .btn-speech-cue{
    top: -32.3711vh;
    height: 4em !important;
}
.btn-translate-cue, .btn-previous-title, .btn-next-title{
    width: 6% !important;
}
.btn-translate-cue:hover, .btn-previous-title:hover, .btn-next-title:hover{
    background-image: url(/img/captionsButtonOrange.svg) !important;
}

#context-translate-div{
    font-size: 70% !important;
    color: yellow !important;
    text-align: center;
    width: 100%;
}

/* youtube integration*/
.caption-window > .captions-text > span{
    pointer-events: auto;
    color: yellow !important;
    background-color: transparent !important;
    font-size: 180% !important;
    text-shadow: 1px 1px 2px black;
}

.vjs-text-track-display{
    height: 100%;
}
.vjs-text-track-display > div > div {
    bottom: 22px !important;
    top: unset !important;
}

@-moz-document url-prefix() {
    .b-popup-content {
        margin-top: 20px;
        width: 400px;
        border-radius: 27px;
        color: white;
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 20px;


    }
    .srt-word{
        height: 75px;
        font-size: 33px;
        padding-top: 14px;
        line-height: 61px;
        border-bottom: #c3c3c3 solid 1px;
    }
    .main-translate{
        height: 66px;
        font-size: 33px;
        line-height: 66px;
        border-top: 1px;
    }
    .pos-button{
        margin-top: 13px;
        margin-right: 30px;
        font-size: 19px;
    }
    .pos-buttons{
        border-top: #c3c3c3 solid 1px;
    }
    .option-translates{
        max-height: 90px;
    }
    .speech-container > div{
        background-size: 143%;
    }
    .speech-container{
        width: 44px;
    }
}

@media screen and (orientation:portrait){

    .b-popup {
        width: 100%;
        position: fixed;
        top: 50%;
        z-index: 10000;
        text-align: center;
        margin: 0;
        transform: translate(0, -50%);
    }
    .b-popup-content{
        display: inline-block;
        vertical-align: middle;
        margin-top: unset;
    }
    .pop-up-normal-form-translate{
        text-align: left;
    }
    .b-popup:before {
        content: '';
        display: inline-block;
        height: 100%;
        vertical-align: middle;
    }

    .vjs-text-track-display > div > div > div {
        font-size: 70% !important;
        top: -12vh !important;
    }

    .btn-previous-title, .btn-next-title, .btn-loop-caption, .btn-translate-cue, .btn-speech-cue{
        top: -29vh !important;
    }
    .btn-previous-title, .btn-next-title, .btn-translate-cue{
        width: 14% !important;
        height: 3.5em !important;
    }
    .btn-speech-cue{
        width: 10% !important;
        height: 3.5em !important;
        right: 19%;
    }
    .btn-previous-title{
        left: 29%;
    }
    .btn-next-title{
        right: 29%;
    }
    .btn-translate-cue{
        right: 43%;
    }

    .btn-next-title{
        background-color: #1f1f26 !important;
    }
    .btn-previous-title{
        background-color: #1f1f26 !important;
    }
    .btn-translate-cue{
        background-color: #1f1f26 !important;
    }


    @media (max-width: 800px) {
        .b-popup-content {
            zoom: 0.4;
        }
        .how-it-works-button{
            font-size: 15px !important;
            border: 2px solid #fff;
            border-radius: 20px;
            top: 60px !important;
            left: calc(50% - 55px) !important;
            width: 110px !important;
        }
    }
    @-moz-document url-prefix() {
        .b-popup-content {
            margin: 0;
        }

        .speech-container{
            width: 30px;
        }
    }



}
.main-translate > div {
    float: right;
    font-size: 41%;
    height: 100%;
    color: #cacaca;
    font-family: Helvetica Neue;
}
.main-translate > div > div {
    text-align: right;
    height: 50%;
}
.mistake-top{
    line-height: 2.8;
}
.mistake-bottom{
    line-height: 1.2;
    cursor: pointer;
}

.caption-span-inside-container{
    position: relative;
    height: 14vh;
}
.caption-span-inside-center{
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%)
}
.context-translate-div{
    position: relative;
}

.vjs-playing.vjs-user-inactive .videojs-words-counter-container {
    opacity: 0;
    pointer-events: none;
}

.videojs-words-counter-container {
    display: none;
    position: fixed;
    color: white;
    top: 24px;
    right: 30px;
    border: 1px solid white;
    padding: 8px 18px;
    border-radius: 2px;
    cursor: pointer;
    border-top: none;
    border-right: none;
    transition: all 0.6s;
    font-size: 1rem;
}

.videojs-words-counter-container:hover {
    border-color: #ff6d00;
    color: #ff6d00;
}

.videojs-words-counter-container:hover:before,
.videojs-words-counter-container:hover:after {
    background-color: #ff6d00;
}

.videojs-words-counter-container:before {
    content: '';
    display: block;
    position: absolute;
    background-color: white;
    width: calc(100% - 16px);
    height: 1px;
    top: 0;
    left: 0;
    transition: all 0.6s;
}

.videojs-words-counter-container:after {
    content: '';
    display: block;
    position: absolute;
    background-color: white;
    height: calc(100% - 16px);
    width: 1px;
    right: 0;
    bottom: 0;
    transition: all 0.6s;
}

.words-counter-count {
    position: absolute;
    top: -8px;
    right: -8px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 22px;
    height: 22px;
    background-color: #ff6d00;
    border-radius: 50%;
    font-family: "Circular Std Book", Helvetica, Arial, sans-serif;
    font-size: 12px;
    color: white;
}

.videojs-words-counter-container > div{
    float: left;
}

.counter-next-word-button, .counter-previous-word-button{
    color: white;
    display: none;
    cursor: pointer;
}

.counter-next-word-button{
    background: url(/img/arrow-language.png) center no-repeat;
    background-size: cover;
    width: 12px;
    height: 17px;
    margin-top: 5px;
    margin-left: 15px;


}

.counter-previous-word-button{
    background: url(/img/arrow-language-left.png) center no-repeat;
    background-size: cover;
    width: 10px;
    height: 17px;
    margin-top: 5px;
    margin-right: 15px;
}
.words-counter-word{
    color: #ff6d00;
    font-size: 15px;
    font-family: Circular Std;
    margin-top: -3px;
    margin-bottom: -3px;

}

#words-counter-word-russian{
    font-family: Helvetica Neue Cyr Bold;
}

.words-counter-translate{
    color: white;
    font-size: 15px;
    font-family: Circular Std;
    margin-top: -3px;
    margin-bottom: -3px;
}

.how-it-works-button{
    position: fixed;
    top: 20px;
    left: calc(50% - 90px);
    width: 180px;
    text-align: center;
    font-size: 22px;
    font-family: Helvetica Neue;
    font-style: normal;
    font-stretch: normal;
    line-height: 2;
    letter-spacing: normal;
    color: #fff;
    cursor: pointer;
    z-index: 120;
}
.how-it-works-button::after{
    content: "";
    background-color: #000;
    opacity: 0.4;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    position: absolute;
    z-index: -1;
    border-radius: 30px;
}

@media (max-width: 800px) {
    @-moz-document url-prefix() {
        .b-popup-content {
            margin-top: 13px;
            width: 266px;
            border-radius: 18px;
            padding-left: 13px;
            padding-right: 13px;
            padding-bottom: 13px;
        }

        .b-popup-content::before {
            bottom: -12px;
            left: 50%;
            border-left: 12px solid transparent;
            border-right: 12px solid transparent;
            border-top: 14px solid #fff;
            margin-left: -12px;
        }

        .srt-word{
            height: 50px;
            font-size: 22px;
            padding-top: 10px;
            line-height: 41px;
            border-bottom: #c3c3c3 solid 1px;
        }
        .main-translate{
            height: 42px;
            font-size: 22px;
            line-height: 44px;
        }
        .pos-button{
            margin-top: 9px;
            margin-right: 20px;
            font-size: 13px;
        }
        .option-translates{
            max-height: 60px;
        }
    }
}

@media (max-height: 550px) {
    .how-it-works-button{
        font-size: 15px;
        border: 2px solid #fff;
        border-radius: 20px;
        left: calc(50% - 55px);
        width: 110px;
    }
}

.how-it-works-popup{
    position: fixed;
    z-index: 1000;
    display: none;
}

.how-it-works-wrapper {
    background-color: rgba(0, 0, 0, .4);

    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;

    display: flex;
    justify-content: center;
    align-items: center;
}

.how-it-works-content {
    max-width: 800px;

    background-color: white;
    color: #20114a;
    font-size: 1rem;

    padding: 1rem;

    line-height: 20px;
    letter-spacing: 0;

    overflow: auto;
}

.how-it-works-title {
    margin: 1rem 0;
    padding: 0 4rem;
    font-size: 1.25rem;
    position: relative;
    text-align: center;
}

.how-it-works-close {
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.how-it-works-body {
    display: flex;
    flex-wrap: wrap;
}

.how-it-works-block {
    flex: 0 0 50%;
    width: 50%;
    padding: 20px 20px;
    display: flex;
    align-items: center;
}

.how-it-works-block > img {
    margin-right: 30px;
    max-height: 85px;
}

.how-it-works-separator {
    width: 100%;
    flex: 0 0 100%;
    border-bottom: 1px solid lightgray;
}

.how-it-works-gotit {
    position: fixed;
    bottom: 20px;
    left: 15px;
    right: 15px;

    background-color: #ff6d00;
    text-align: center;
    color: white;
    font-size: 17px;
    padding: 20px 0;
}

.how-it-works-gotit:hover {
    background-color: #dd4b00;
}

.how-it-works-block-gotit {
    display: none;
}

@media (max-width: 767px) {
    .how-it-works-content {
        width: 100%;
        height: 100%;
    }
}

@media (hover: none) and (max-width: 991px) {
    .how-it-works-content {
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 767px) and (orientation: portrait) {
    .how-it-works-close {
        display: none;
    }

    .how-it-works-block-gotit {
        display: block;
    }

    .how-it-works-block {
        flex: 0 0 100%;
        width: 100%;
    }

    .how-it-works-separator {
        display: none;
    }

    .how-it-works-block:not(:nth-last-child(2)):not(:last-child) {
        border-bottom: 1px solid lightgray;
    }
}

.episode_title_block {
    position: absolute;
    top: 24px;
    left: 60px;
    font-size: 14px;
    z-index: 99;
    line-height: 16px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 400px;
}

@media screen and (max-width: 767px) {
    .episode_title_block {
        top: 1.5rem;
        left: 40px;
        width: 45%;
    }
}

@media screen and (max-width: 400px) {
    .episode_title_block {
        width: 30%;
    }
}

@media screen and (max-width: 767px) and (orientation: landscape) {
    .episode_title_block {
        width: 30%;
    }
}

.vjs-playing.vjs-user-inactive .episode_title_block,
.vjs-playing.vjs-user-inactive .mash-up-button {
    pointer-events: none;
    opacity: 0;
}

.video-js.hiding-controls-after-popup-bubble .video-controls {
    pointer-events: none !important;
    opacity: 0 !important;
}
