body.page-listening {
    background: #fff;
}

.listening-wrapper {
    position: relative;
}

#TasksContainer {
    /*background: url(../images/preloader-big.gif) center center no-repeat;*/
    /*height: 370px;*/
    margin: 2px auto 10px;
    /*position: absolute;*/
    /*top: 0;*/
    /*right: 252px;*/
    /*left: 0;*/
}

#TasksContainer.ready {
    /*background: transparent;*/
    /*background-image: none !important;*/
    height: auto;
    margin-bottom: 90px;
}

#TasksContainer.ready .rjs-loading:not(.css-show-this-block) {
    display: none;
}

#TasksContainer .bar {
    margin-bottom: 7px;
}

.task__textarea {
    width: 500px;
    margin-top: -70px;
    margin-left: 90px;
}

.TaskNum {
    font-size: 12px;
    color: #7d7d7d;
}

.page-listening .post-link-wrap {
    float: right;
    font-size: 11px;
    line-height: 18px;
    padding: 4px 0;
    max-width: 450px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: none;
}

.page-listening .task__item.completed .post-link-wrap a {
  margin-left: 5px;
}

.page-listening .task__item.completed .post-link-wrap {
    display: block;
}

.page-listening .task__item .b-phrases_block__phrases_actions {
    display: none;
}

.page-listening .task__item.completed .b-phrases_block__phrases_actions {
    display: block;
}

#TasksContainer .expressions.has-expr {
    text-align: right;
}

.TaskText {
    color: #333;
    margin-bottom: 9px;
    display: none;
}

.TaskTranslate {
    clear: both;
    color: #606060;
    font-size: 17px;
    margin-bottom: 0;
    padding-bottom: 10px;
}

.translations-disabled .task__exercice {
    margin-bottom: 0;
}

.translations-disabled .TaskTranslate {
    display: none;
}

.translations-disabled .TaskBlock.completed .TaskTranslate {
    display: block;
}

.completed .TaskTranslate {
    font-size:14px;
    margin-right: 160px;
}

.completed .TaskText {
    display: block;
    font-size: 25px;
    margin-top: -2px;
}

.word-wrapper {
    position: relative;
}

.task__exercice .word-wrapper:hover {
    background: #71b26f;
    color: #fff;
    border-radius: 2px;
    padding: 0 1px;
    margin: 0 -1px;
    cursor: default;
}

#TasksProgress {
    text-align: center;
    color: #888;
    display: none;
}

#TasksContainer.ready #TasksProgress {
    display: block;
}

.task__item {
    border-bottom: 1px dashed #c7c7c7;
    padding-bottom: 20px;
}

.task__item-completed {
    margin-top: 10px;
    padding: 10px 0 50px;
    float: left;
    width: 100%;
}

.task__item-completed .puzzle-text_fz_24 span {
    line-height: 0.8;
    display: inline-block;
    vertical-align: top;
}

#task_block-0-0 .task-wrapper {
    margin-top: 0;
}

.content--listening {
    margin-top: 0;
}

.task__item:last-child {
    border-bottom: none;
}

.task-wrapper {
    margin: 20px 0 ;
    clear: both;
    position: relative;
}

.task__exercice {
    float: left;
    margin: 0 0 15px 20px;
    width: 510px;
    width: calc(100% - 70px - 20px);
}

.content--listening-print .task__exercice {
    margin-bottom: 75px;
}

.TaskBlock.completed .task__exercice {
    margin-bottom: 28px;
}

.task__text {
    width: auto;
    margin: 0 0 20px 90px;
    display: inline-block;
    min-height: 40px;
}

.task__text:after {
    content: '';
    display: table;
    clear: both;
}

.task__text .answer {

}

.puzzle__item--green:hover,
.puzzle__item--orange {
    background-color: #ffc65a;
}

.puzzle__item--green:hover .puzzle__icon,
.puzzle__item--orange .puzzle__icon {
    background-position: 0 -54px;
}

.puzzle__item.expr {
    color: #71b26f;
    margin-top: -6px;
    margin-bottom: -3px;
}

#TasksContainer .button-play-big {
    -webkit-appearance: none;
    background: #50B46F url('/wp-content/themes/english/assets/antago/img/icon_headphones.svg') center no-repeat;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    -moz-box-shadow: 0 -5px 0px rgba(0, 0, 0, .35) inset;
    -webkit-box-shadow: 0 -5px 0px rgba(0, 0, 0, .35) inset;
    box-shadow: 0 -5px 0px rgba(0, 0, 0, .35) inset;
    float: left;
    width: 70px !important;
    height: 61px !important;
    cursor: pointer;
    margin-bottom: 37px;
}

#TasksContainer .button-play-big.slowMode-js {
    background: #0460a0 url('/wp-content/themes/english/assets/images/vteacher/vteacher_translate_slowly.png') center no-repeat;
}

#TasksContainer .button-play-big.slowMode-js.is-fast {
    background: #0460a0 url('/templates/svg/icons/vteacher/vteacher_translate_faster.svg') center no-repeat;
    -webkit-background-size: 47px;
    background-size: 47px;
}

#TasksContainer .button-play-big.active {
    background: #50B46F url('/wp-content/themes/english/assets/images/equalizer_animated_fast.gif') center no-repeat;
    -webkit-background-size: 50px 50px;
    background-size: 50px 50px;
}

#TasksContainer .button-play-big.slowMode-js.active {
    background: #0460a0 url('/wp-content/themes/english/assets/images/equalizer_animated.gif') center no-repeat;
    -webkit-background-size: 50px 50px;
    background-size: 50px 50px;
}

#TasksContainer .slow-ratio__button {
    margin-left: 0;
}

#TasksContainer .slow-ratio__button .button-play-big {
    margin-bottom: 0;
}

.button-play-big.loading::after {
    content: "";
    background: url(../images/preloader-18x18-tr.gif) no-repeat;
    width: 18px;
    height: 18px;
    position: absolute;
    top: 19px;
    left: 20px;
}

.button-play-big.loading svg {
    display: none;
}

.button-play-big:not(.active):active {
    padding: 2px 0 0 0;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.button-play-big svg {
    width: 28px !important;
    height: 28px !important;
    fill: #fff;
    margin: 15px 0 0 20px !important;
}

#TasksContainer .task-wrapper .words {
    font-size: 0;
    clear: both;
    margin: 0 0 0 90px;

}

/*#TasksContainer .words .TaskWordGroup {*/
/*white-space: pre-line;*/
/*}*/

#TasksContainer .words::after {
    content: "";
    display: block;
    clear: both;
}

.task-wrapper .tip {
    display: none;
}

.TaskWordGroup ul {
    margin: 0;
    padding: 0;
    list-style: upper-roman;
    color: #666;
}

.TaskWordGroup ul li {
    padding: 5px 0;
    border-bottom: 1px solid #ccc;
    color: #000;
}

form.translates {
    margin: 12px 0 0;
}

form.translates fieldset {
    border: 0;
    margin: 0 0 12px;
    padding: 0 0 0 22px;
    color: #000;
}

form.translates fieldset .ui-radio {
    float: left;
    margin-top: 2px;
    margin-left: -22px;
}

form.translates fieldset span {
    cursor: pointer;
}

.touchscreen #TasksContainer {
    width: auto;
}

.touchscreen .button-play-big {
    width: 93px !important;
    height: 90px !important;
}

.touchscreen .button-play-big svg {
    height: 36px;
    width: 25px;
    margin: -18px 0 0 -10px;
}

.touchscreen .button-play-big.loading::after {
    background: url(../images/preloader-36x36-tr.gif) no-repeat;
    width: 36px;
    height: 36px;
    top: 26px;
    left: 27px;
}

.touchscreen .task-wrapper .TaskNum {
    width: 94px;
    margin: 6px 0;
    font-size: 18px;
}

.touchscreen .task-wrapper .text {
    font-size: 3.8em;
    margin-left: 124px;
}

.touchscreen .task-wrapper .tip {
    color: #777;
    font-size: 14px;
    margin: 26px 0 4px;
    text-align: center;
    display: block;
}

.touchscreen.landscape .task-wrapper {
    padding-bottom: 30px;
}

.touchscreen.landscape .task-wrapper .TaskWordGroup {
    white-space: normal;
}

.touchscreen.landscape .puzzle {
    float: none;
    display: inline-block;
    margin-right: 8px;
}

.touchscreen.retina form.translates {
    margin-top: 36px;
}

.touchscreen.retina form.translates fieldset {
    font-size: 165%;
    margin-bottom: 15px;
}

.touchscreen.retina form.translates fieldset .ui-radio {
    margin-top: 8px;
}

#dictionary {
    position: absolute;
    top: 23px;
    right: 0;
    max-height: 415px;
}

#dictionary .scroll-container {
    max-height: 371px;
}

/* style for sidebar and content on  listening page */
.sidebar--listening {
    float: right;
    margin: 10px 0 90px 10px;
}

.sidebar--listening .user-ratings {
    margin: 0;
    width: 300px;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
}

.sidebar--listening .user-ratings h3 {
    padding-right: 10px;
}

.sidebar--listening .sidebar__title {
    text-align: center;
    padding-left: 0;
}

.content--listening {
    float: left;
    width: 610px;
    min-height: 50vh;
    width: calc(100% - 324px);
    padding: 0 20px 0 10px;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* style for widget dictionary */
.widget-dictionary {
    position: fixed;
    bottom: 0;
    left: 50%;
    margin: 0 0 0 135px;
    width: 300px;
    z-index: 100;

}

a.widget-dictionary__btn {
    background: #0060a4;
    text-decoration: underline;
    color: #fff;
    font-size: 18px;
    position: absolute;
    width: 282px;
    bottom: 0;
    display: block;
    padding: 20px 0px 14px 18px;
    line-height: 34px;
    z-index: 105;
}

.icon__book {
    background: url("../pe/img/icon-book.png");
    width: 38px;
    height: 51px;
    text-align: center;
    color: #0060a4;
    font-size: 13px;
    margin: -2px 17px 0 0;
    float: left;
    z-index: 101;
    font-style: normal;
}

.icon__book--green {
    background-position: 0 -105px;
    width: 34px;
    height: 34px;
}

.icon__book--gray {
    background-position: 0 -56px;
    width: 34px;
    height: 34px;
}

.icon__x {
    width: 20px;
    height: 20px;
    color: #41b36e;
    font-size: 24px;
    z-index: 100;

}

.icon__circle-arrow--top {
    background: url("../pe/img/icon-arrow-top.png");
    width: 27px;
    height: 27px;
    float: right;
    margin: 9px 26px 0 0;
    -moz-transform: rotate(180deg);
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
    transition: all 0.3s ease-out;

}

.icon__video {

    background: url("../pe/img/icon-video.png");
    width: 26px;
    height: 30px;
    margin: -2px 1px 0 0;
    float: left;
    z-index: 101;
}

.widget-dictionary__btn.active .icon__circle-arrow--top {
    transition: all 0.3s ease-out;
    -moz-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);

}

.widget-dictionary__popup {
    border: 2px solid #0060a4;
    border-top: 15px solid #0060a4;
    border-radius: 2px;
    background: #fff;
    position: absolute;
    top: 0;
    left: 0;
    height: 489px;
    width: 296px;
    transition: top 0.3s ease-out;
    z-index: 101;
}

.widget-dictionary__popup.open {
    transition: top 0.3s ease-in;
    top: -587px;
}

.widget-dictionary__play {
    float: left;
}

.widget-dictionary__list {
    overflow: auto;
}

.widget-dictionary__list ul {
    margin: 0;

}

.widget-dictionary__item {
    border-top: 1px solid #eeeeee;
    padding: 10px 0px;
    list-style: none;
    margin: 0;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.widget-dictionary__item:hover {
    background-color: #fcfcfc;
}

.widget-dictionary__item--error {
    background: #fbf5f4;
}

.widget-dictionary__item--head {
    background: #eef6fa;

}

.widget-dictionary__book,
.widget-dictionary__x {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
}

.widget-dictionary__book {
    right: 0;
}

.widget-dictionary__item:hover .widget-dictionary__book,
.widget-dictionary__item:hover .widget-dictionary__x {
    display: block;
}

.widget-dictionary__play svg {
    width: 17px;
    height: 17px;
    fill: #41b36e;
    margin: 8px 0 0 20px;
}

.widget-dictionary__item--error .widget-dictionary__play svg {
    fill: #ec6446;
}

.widget-dictionary__content {
    font-size: 16px;
    color: #000;
    float: left;
    margin: 7px 0 0 18px;
}

.widget-dictionary__item-head {
    font-size: 20px;
    color: #303030;
    margin: 5px 0 0 20px;
}

.widget-dictionary__item--error .widget-dictionary__content {
    color: #ec6446;
}

.widget-dictionary__in-text {
    background: #f6f6f6;
    border-radius: 20px;
    font-size: 16px;
    color: #434343;
    display: block;
    width: 240px;
    border: none;
    margin: 21px 0 22px 20px;
    padding: 12px 5px 12px 15px;
}

.widget-dictionary__in-submit {
    position: absolute;
    top: 31px;
    right: 37px;
    width: 17px;
    height: 18px;
    background: url("../images/loupe.png");
    border: none;

}

/*@media only screen and (max-width: 1024px) {
    .content--listening {
        width: auto;
        float: none;
        margin: 0 10px;
    }
}*/

.task-wrapper .task__text .puzzle__item,
.task-wrapper .words .puzzle__item--default {
    -webkit-appearance: none;
    font-size: 12px !important;
    padding: 13px 10px 16px 17px !important;
    border-radius: 0 !important;
    margin: 0 0 15px 0 !important;
}

.task-wrapper .words .puzzle__item--default {
    -webkit-appearance: none;
    padding: 10px 13px 10px 20px !important;
    margin: 0px 16px 10px 0 !important;
}

.task-wrapper .task__text {
    -webkit-appearance: none;
    margin-left: 90px !important;
    text-align: left !important;
}

.page-listening .task-wrapper .task__text {
    display: block !important;
}

.task-wrapper .words {
    -webkit-appearance: none;
    margin-left: 90px !important;
    text-align: left !important;
}
.task__show-comments{
    float: right;
    background: none;
    color: #00A1C6;
    border: none;
    font-size: 16px;
    margin: -30px 0 0;
    display: none;
    position: relative;
    z-index: 10;
}
.expressions.has-expr + .task__show-comments {
    margin: 12px 0 30px;
}
.task__show-comments:hover{
    border-bottom: none;
}
.b-add_comment__content_wrapper {
    width: 100%;
}
.b-add_comment__content {
    display: block !important;
    margin: 0 0 0 57px;
    width: auto;
    max-width: none;
}
.completed .task__show-comments{
    display: block;
}
.task__comments-container{
    clear: both;
}
.task__comments-container .b-add_comment__text{
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    width: 100%;
}
.task__comments-container .b-comments{
    padding-top: 0;
    margin: 0 0 10px 0;
}
.task__comments-container .b-add_comment{
    margin: 0;
}
.task-wrapper .puzzle.answer,
.puzzle .word .active {
    -webkit-appearance: none;
    font-size: 25px !important;
    padding: 10px 13px 10px 20px !important;
    margin: 0 0 10px 0 !important;
}

.task-wrapper .task__text .puzzle__item--green.active {
    float: left !important;
}

#TasksContainer .task-wrapper .puzzle__item--red,
.task-wrapper .puzzle__item--active {
    -webkit-appearance: none;
    padding: 0px !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

#TasksContainer .task-wrapper .puzzle__item--active.puzzle__item--red .word,
.task-wrapper .puzzle__item--active .word {
    padding: 10px 13px 10px 20px !important;
}

#TasksContainer .task-wrapper .puzzle__item--active.puzzle__item--red > div {
    padding: 0 !important;
    margin: 0 !important;
}

#settings_popup_wrap {
    z-index: 100 !important;
}

.content--listening-print .task-wrapper .task__text {
    display: none;
}

.listening__keys-info {
    margin-left: 90px;
}

@media only screen and (max-width: 480px) {

    .listening__keys-info {
        margin-left: 0;
        text-align: center;
    }

    .listening__keys-info span:first-child {
        display: block;
        margin-right: 0 !important;
        margin-bottom: 10px;
    }

}

.mobile .listening__keys-info,
.completed .listening__keys-info {
    display: none !important;
}

@media only screen and (max-width: 780px) {

   .translations-disabled #TasksContainer .slow-ratio__button {
       margin-bottom: 75px;
   }

    /*961*/
    .content--listening {
        width: auto;
        float: none;
        margin: 0 10px;
        padding: 0;
    }

    .task__item {
        border-bottom: none !important;
    }

    .task__item.completed {
        border-bottom: 1px dashed #c7c7c7;
    }
/*
    .task-wrapper .task__text {
        margin: 20px 0 10px 0 !important;
    }
*/
    .TaskTranslate {
        min-height: 65px;
    }

    #TasksContainer .button-play-big {
        margin-bottom: 0;
    }

    #TasksContainer .task-wrapper .words {
        margin: 0 !important;
        text-align: center !important;
    }

    #TasksContainer .task-wrapper .words div {
        display: inline-block;
    }

    .task__exercice {
        margin: 0 0 0 2%;
        width: 85%;

    }

    .sidebar--listening {
        float: none;
        width: auto;
        border: none;
        border-top: 7px solid #f2f6fa;
        border-bottom: 7px solid #f2f6fa;
        margin: 25px 0 0 0px;
    }

    .TaskNum {
        font-size: 12px;
    }

    .popover--settings {
        margin-left: 0;
    }

    #settings_popup_wrap {
        z-index: 998 !important;
    }

    .pe-game_button-next-phrase,
    .button-next-phrase {
        width: 40% !important;
    }

    #settings_popup_wrap .popover::before {
        right: 60px;
    }
}

@media only screen and (max-width: 610px) {
    .task__exercice {
        width: calc(100% - 90px);
    }

    .page-listening .post-link-wrap {
        display: none;
    }
}

.listening .b_header-static {
    margin-bottom: 100px;
}

/* Small devices (tablets, 768px and up) */

@media only screen and (min-width: 768px) and (max-width: 992px) {

    #video_preview_wrap {
        display: none;
    }

    .task__item-completed .puzzle-text_fz_24 {
        font-size: 18px !important;
        overflow: hidden;
    }

    .pe-game_button-next-phrase,
    .button-next-phrase {
        width: 35%;
    }

    .task__textarea {
        max-width: 80%;
    }

    #settings_popup_wrap {
        left: 47% !important;
    }

    #settings_popup_wrap .popover::before {
        right: auto;
        left: 20px;
    }

}

@media only screen and (max-width: 767px) {
    .task__textarea {
        width: calc(100% - 100px);
    }

}

@media only screen and (max-width: 480px) {
    .task__textarea {
        width: 100%;
        margin-left: 0;
        margin-top: -50px;
    }

}

.line-through {
    text-decoration: line-through;
}
