#context_window{
    display: flex !important;
    flex-direction: column;
    overflow-x:hidden;
}
#context_window.add-word .progress_block, #context_window.add-word .context_list_header, #context_window.add-word .context_cards_wrapper, #context_window.add-word .context_word_my_translations, #context_window.add-word .play_context_button, #context_window.add-word #translation_title {
    visibility: hidden;
}
#context_window.add-word .play_context_button {
    display: none;
}
#context_window.add-word .context_translation_context, #context_window.add-word .word_frequency {
    opacity: 0.3;
}
#context_window .word_itself {
    font-size: 30px;
    display: inline-block;
    max-width: calc(100% - 130px);
    word-break: break-word;
    float: left;
    margin-right: 10px;
}
.context_window_long .word_itself{
    font-size: 25px !important;
}
.context_cards_wrapper{
    display: flex;    
    border-top: 1px solid #cecece;
    border-bottom: 1px solid #cecece;    
    margin-top: 20px;    
    width: calc(100% + 2em);
    transform: translateX(-1em);
    overflow: hidden;
    position: relative;
    margin-bottom: 10px;
}

#context_window .context_cards{
    flex-direction: column;
    width: 100%;    
    overflow: auto;
}
#context_window .context_translation {
    color: #898989;
    max-height: 0px;
    transition: max-height 0.3s ease-in-out;
    overflow: hidden;
}

.context_translation b {
    color: #666;
}

.context_cards_opened .context_translation {
    max-height: 400px !important;
}

.context_card_opened .context_translation {
    max-height: 400px !important;
}
.context_text, .context_translation {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}
.context_card_opened {
    background-color: #f0f0f0;
}
body.night .context_card_opened {
    background-color: #2a2a2a;
}
#context_window .context_card{
    padding: 10px 1em;
    display: flex;
    gap: 5px;
    transition: background-color 0.2s ease-out, height 0.3s ease-out, padding 0.3s ease-out, opacity 0.3s ease-out;
    overflow: hidden;
}
#context_window .context_card.context_selectable{
    cursor: pointer;
}
#context_window .context_card.context_selectable:hover{
    background-color: #f0f0f0;
}
#context_window .context_card:not(:last-child){
    border-bottom: 1px solid #cecece;    
}
#context_window .context_card:last-child{
    padding-bottom:10px
}
#context_window .context_card:first-child{
    padding-top:10px
}
#context_window .context_card.is_removing{
    height: 0px !important;
    padding: 0px 1em;
}
#context_window .add_context{
    //background-color: #f3f3f3;
}
#context_window .context_card .content_context_card{
    display: flex;
    flex-direction: column;
    font-size: 0.9em;
    gap: 5px;
    flex: 2;
}
#context_window .context_card .buttons_context_card{
    display: flex;
    gap: 10px;
    height: 23px;
    margin-top: 4px;
}
.play_tooltip_context, .add_button_context, .context_added_button, .find_word {
    height:23px;
    width:23px;
    cursor: pointer;
}

.play_tooltip_context > svg, .add_button_context > svg, .context_added_button > svg, .find_word > svg {
    height:100%;
    width:100%;
    fill: #666;
    stroke: #666;
}
.context_added_button > svg, .add_button_context > svg{
    transition: transform 0.2s ease-out, fill 0.2s ease-out;
}
.context_added_button > svg{
   transform: rotate(45deg);
}
.play_tooltip_context:hover > svg, .add_button_context:hover > svg, .context_added_button:hover > svg, .find_word:hover > svg {
    fill: #898989;
    stroke: #898989;
}
.block_context_word_translations{    
    margin-bottom:1em;
    display: flex;
    justify-content: space-between;
}
.context_translation_context, .word_card_translation, .reveiw_translation{
    line-height: 22px;    
    display: flex !important;
    flex-direction: column;
    gap: 5px;
}
.context_translation_context svg {
    fill: #666;
    width: 30px;
    height: 30px;
}
#translation_title, #my_translation_title{
    font-weight: bold;
    margin-bottom: 5px;
}
#my_translation_title {
    margin-bottom: 0px;
}
.context_word_translations{
    max-width:50%;
}
.context_word_translations .gender_and_pos, .context_word_translations .transcription, 
.word_card_translation .gender_and_pos, .word_card_translation .transcription, 
.reveiw_translation .gender_and_pos, .reveiw_translation .transcription{
    color: #898989;
}
[aria-describedby="context_window"] {
  max-width: 700px !important;
}

.scroll-fix {
  position: absolute;
  /* Вся магия в этой строчке ;-) */
  width: calc(100vw - 100%);
}
.context_cards::-webkit-scrollbar {
  width: 0px;
}

.context_word_my_translations{
    display: flex;
    flex-direction: column;
    align-items: end;
    max-width:50%;
}
#my_translation_title{
    width: 290px;
    text-align: right;
}
.add_my_context_block{
    display: flex;
    gap: 5px;
    align-items: center;
    position: relative;
    overflow:hidden;
}
.add_my_context_block .add_my_context_input{
    outline: none;
    border:none;
    width: 150px;
    display: none;
    margin-top: 5px;
}
.add_my_context_block .add_my_context_input::placeholder{
    color: #898989;
    font-size: 15px;
}
.add_my_context_block .add_my_context_button{
    background: transparent;
    outline: none;
    border: none;
    color: #898989;
    cursor: pointer;
}

.add_my_context_block .add_my_context_button:hover{
    color: #666;
}

.add_my_context_block.focus .add_my_context_button{
    display:none;
}
.add_my_context_block.focus .add_my_context_input{
    display: block;
    cursor: text;
    background: #f2efef;
    border-radius:10px;
}
.add_my_context_block .add_my_context_confirm{
    border-radius: 10px;
    color: white;
    display: none;
    width: 32px;
    height: 32px;
    position: relative;
    margin-top:5px;
}
.add_my_context_block .add_my_context_confirm>svg{
    height: 12px;
    width: 12px;
    fill: white;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.add_my_context_block .disabled{
    background: #b9b9b9;
}
.add_my_context_block.focus .add_my_context_confirm{
    display: block;
}

#context_window .my_translation_card{
    display: flex;
    align-items: center;
    justify-content: end;
}
#context_window .my_translation_card.suggest_adding{
    color: #898989;
}

#context_window .add_button_translation{
    height: 15px;
    width: 15px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 10px;
    box-sizing: content-box;
}
#context_window .add_button_translation>svg{
    height: 100%;
    width: 100%;
    fill: #666;
}

#context_window .add_button_translation:hover svg{
    fill: #898989;
}

#context_window .remove_button_translation{
    height: 15px;
    width: 15px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 10px;
    box-sizing: content-box;
}
#context_window .remove_button_translation>svg{
    height: 100%;
    width: 100%;
    transform: rotate(45deg);
    fill: #666;
}

#context_window .remove_button_translation:hover svg{
    fill: #898989;
}
#context_window .context_my_translation_context{
    max-height: 150px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-left: 15px;
    margin-right: -10px;
}

#context_window .context_my_translation_context::-webkit-scrollbar {
    width: 0;
    height: 0;
}
.context_my_translation_context_wrapper{
    position: relative;
}
.hide_top_bottom::after, .hide_top_bottom::before {
    content: "";
    height: 15px;
    width: 100%;
    position: absolute;
    left: 0;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
}

.hide_top_bottom::after {
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.1) 100%);
}
.hide_top_bottom::before {
    top: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.1) 100%);
}

.hide_top_bottom:not(.hide_top)::before{
   opacity: 0;
}
.hide_top_bottom:not(.hide_bottom)::after{
   opacity: 0;
}
.button_inactive {
  opacity: 0.5;
  pointer-events: none;
}

body.night #my_words_window .sort_ascdesc {
    background: #2a2a2a;
    border: none;
}

body.night #my_words_window .sort_ascdesc svg {
    stroke: #ccc;
}

body.night .search_box{
    background: transparent;
}

body.night .word_card .contexts > svg {
    fill: transparent !important;
}
body.night .word_card .contexts:hover > svg{
    fill: transparent !important;
}
body.night .word_card_opened {
    background:#2f2f2f !important;
}
body.night .word_card {
    background: none !important;
    color: #ccc !important;
}
body.night .word_card_content {
    background: rgba(46,46,46,0.9) !important;
}
body.night .word_cards .word_card .word_card_top {
    border-bottom: 1px solid #272626;
}
body.night .word_card .word_added > svg {
    fill: #eee !important;
}
body.night .word_card .word_added:hover > svg {
    fill: #fff !important;
}
body.night #my_words_window .contexts:hover .background_context, body.night #words_reveiw_window .contexts:hover .background_context:hover {
    stroke: #cccccc4f;
}

body.night #context_window .progress_block .progress_item {
    background-color: #2a2a2a;
    color: #ccc;
}
body.night #context_window .progress_block .progress_item:hover {
    background-color: #3b3a3a;
}
body.night #context_window .context_card.context_selectable:hover{
    background-color: #2a2a2a;
}
body.night .context_translation b {
    color: #9c9c9c;
}
body.night #my_words_window .words_count .total_count {
    color: white;
}
body.night #my_words_window .word_cards .word_card:not(:last-child) {
    border-bottom: 1px solid #404040;
}
body.night #my_words_window .word_cards_wrapper {
    border-top: 1px solid #7f7f7f;
    border-bottom: 1px solid #7f7f7fe;
}
body.night #words_reveiw_window .reveiw_card .reveiw_card_inner{
    background-color: #1e1e1e;
    color: #ccc;
}
body.night #words_reveiw_window .reveiw_card_prepare .reveiw_card_inner{
    background-color: rgb(23 26 29);
}
body.night #words_reveiw_window .reveiw_card .reveiw_card_back{
   color: #ccc;
}
.ui-dialog[aria-describedby="context_window"] {
    height: auto !important;
    max-height: 100% !important;
}
#context_window {
    max-height: calc(100% - 80px) !important;
}

.word_cards_wrapper {
    display: flex;
    border-top: 1px solid #cecece;
    border-bottom: 1px solid #cecece;
    overflow: hidden;
    position: relative;
    height: calc(100% - 132px);
    padding-bottom: 20px;
}

/* Word Card Base Styles */
.word_cards .word_card {
    position: relative;
    display: flex;
    background: transparent;
    color: #0f0f0f;
    font-size: 20px;
    margin: 0;
    padding: 10px 0;
    cursor: pointer;
    background-repeat: no-repeat;
    flex-direction: column;
    gap: 10px;
}

.word_cards .word_card:not(:last-child) {
    border-bottom: 1px solid #cecece;
}

/* Card Sections */
.word_cards .word_card_top,
.word_cards .word_card_translation,
.word_cards .word_card_context {
    padding: 0 20px;
}

.word_cards .word_card_context::after {
    content: "\00a0\00a0\00a0\00a0\00a0\00a0\00a0\00a0";
}
.word_cards .word_card_top {
    display: flex;
    justify-content: space-between;
    border-bottom: 0;
    overflow: hidden;
}

.word_cards .word_card_translation {
    display: none;
    clear: both;
}

.word_cards .word_card_context, .reveiw_context {
  display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    font-size: 0.8em;
    max-height: 7em;
    color: #908e8e;
    /* Context section styles */
}

/* Top Section Layout */
.word_cards .word_card .word_card_top_left {
    float: left;
    font-weight: bold;
    max-width: calc(100% - 53px);
}

.word_cards .word_card .word_card_top_right {
    float: right;
    display: flex;
    gap: 10px;
}

.word_cards .word_card .word_card_top_right a {
    float: left;
    color: #bbb;
    font-style: italic;
    margin-right: 3.5em;
    pointer-events: none;
}

.word_cards .word_card {
    background-color: #fcfcfc;
    color: #666;
    cursor: default;
}

.word_cards .word_card .word_card_translation {
    display: block;
}

.word_cards .word_card .word_card_top {
    border-bottom: 1px solid #eee;
}

.word_cards .word_card_top_right a {
    pointer-events: auto;
}

/* Interactive Elements */
.word_cards .word_card .play_tooltip,
.word_cards .word_card .add_button,
.word_cards .word_card .word_added,
.word_cards .word_card .word_loading {
    display: block;
    position: absolute;
    top: 7px;
    width: 1.3em;
    height: 1.3em;
    cursor: pointer;
}

.word_cards .word_card .play_tooltip {
    right: calc(18px + 1.3em);
}

.word_cards .word_card_top_right .play_tooltip,
.word_cards .word_card_top_right .contexts {
    position: relative;
    right: 0;
    top: 0;
}

/* SVG Icon Styles */
.word_cards .word_card .word_added > svg,
.word_cards .word_card .word_loading > svg,
.word_cards .word_card .play_tooltip > svg {
    width: 100%;
    height: 100%;
    fill: #eee;
}

.word_cards .word_card .word_added:hover > svg,
.word_cards .word_card .play_tooltip:hover > svg {
    fill: #fff;
}

.word_cards .word_card .word_added > svg,
.word_cards .word_card .word_loading > svg,
.word_cards .word_card .play_tooltip > svg {
    fill: #666;
}

.word_cards .word_card .word_added:hover > svg,
.word_cards .word_card .play_tooltip:hover > svg {
    fill: #767676;
}

/* Text Elements */
.word_cards .word_card .text {
    word-break: break-all;
    font-size: 100%;
    display: inline;
    padding-right: 10px;
}

.word_cards .word_card .gender_and_pos {
    font-style: italic;
}

.word_cards .word_card .word_card_context_more {
    color: #898989;
    font-style: italic;
}
.frequency {
    width: 1.95em;
    height: 0.3em;
    float: left;
    margin-top: 0.4em;
}
.frequency > div {
    height: 100%;
    width: 0.5em;
    margin-right: 0.15em;
    float: left;
}
.frequency.common > div {
    background: #F88C49;
}
.frequency.uncommon > div, .frequency.rare div {
    background: #B0B0AE;
}
.frequency.uncommon > div.first_block, .frequency.uncommon > div.second_block {
    background: #F88C49;
}
.frequency.rare > div.first_block {
    background: #F88C49;
}
.word_cards .word_frequency {
    position: absolute;
    bottom: 10px;
    right: 18px;
}
.word_frequency .frequency {
    height: 0.2em;
    width: 1.65em;
}
.word_frequency .frequency > div {
    width: 0.4em;
}
.word_frequency .frequency.common > div {
    background: #ffb283;
}
.word_frequency .frequency.uncommon > div, .word_frequency .frequency.rare div {
    background: #c9c9c9;
}
.word_frequency .frequency.uncommon > div.first_block, .word_frequency .frequency.uncommon > div.second_block {
    background: #ffb283;
}
.word_frequency .frequency.rare > div.first_block {
    background: #ffb283;
}
.contexts {
    display:block;
    width: 1.3em;
    height: 1.3em;
    position:absolute;
    top: 6px;
    right: 8px;
    cursor:pointer;
    transition: transform 0.2s ease-in;
}
.contexts > svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke-width: 7px;
    stroke-dasharray: 130;
    transform: rotate(-90deg);
}
.contexts > svg.background_context{
    stroke: #ffffff4f;    
    stroke-dashoffset: 0;
    position: absolute;
}
.contexts:hover > svg.background_context {
    stroke:#ffffff70;
}
.contexts_hide{
    transform: scale(0) rotate(180deg);
}
.contexts > svg.progress_context.progress_0{
    stroke: var(--progress_0_fill);
}
.contexts > svg.progress_context.progress_1{
    stroke: var(--progress_1_fill);
}
.contexts > svg.progress_context.progress_2{
    stroke: var(--progress_2_fill);
}
[aria-describedby="words_reveiw_window"] {
  max-width: 350px !important;
  min-width: auto !important;
  overflow: visible !important;
}
#words_reveiw_window .reveiws_cards_container{
  position: relative;
  height: 500px;
}
#words_reveiw_window .reveiws_cards_container > svg {
  fill: #ccc;
  width: 100px;
  position: absolute;
  top: calc(50% - 75px);
  left: calc(50% - 50px);
}
#words_reveiw_window{
  padding: 0;
  background: transparent;
  overflow: visible;
}
#words_reveiw_window, #words_reveiw_window * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
#words_reveiw_window .reveiw_card{
  position: absolute;
  left:0;
  top:0;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  width: 100%;
  height: 100%;
  perspective: 1500px;
  transition: transform 0.3s ease-in, opacity 0.3s ease-in;
  display: flex;
  -webkit-tap-highlight-color: transparent;
}
#words_reveiw_window .reveiw_card:not(.reveiw_card_prepare,.reveiw_card_passed,.reveiw_card_shown){
  display: none;
}
#words_reveiw_window .reveiw_card .reveiw_card_inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s, background-color 0.4s ease-in;
  transform-style: preserve-3d;
  cursor: pointer;
  background-color: white;
  border-radius: 20px;
  box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.2);
}
#words_reveiw_window .reveiw_card_flipped .reveiw_card_inner {
  transform: rotateY(180deg);
}
#words_reveiw_window .reveiw_card .reveiw_card_front, #words_reveiw_window .reveiw_card .reveiw_card_back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px;
}
#words_reveiw_window .reveiw_card .reveiw_card_front{  
}
#words_reveiw_window .reveiw_card .reveiw_card_back {
  align-items: start;
  color: black;
  transform: rotateY(180deg); /* Поворачивает обратную сторону на 180 градусов */
  justify-content: start;
  overflow: auto;
}
#words_reveiw_window .reveiws_answer{
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  height: 50px;
}
#words_reveiw_window .reveiws_answer button{
  height: 50px; 
  border-radius: 25px;
  position:relative;
}

body.night #words_reveiw_window .reveiws_answer .reveiws_false, body.night #words_reveiw_window .reveiws_answer .reveiws_true, body.night .frequency, body.night #jGrowl .jGrowl-notification {
    filter: saturate(0.7);
}
#words_reveiw_window .reveiws_answer .reveiws_false, #words_reveiw_window .reveiws_answer .reveiws_true{
    width: 166px;
    text-transform: none;
    padding-right: 26px;
    padding-left: 0px;
}
#words_reveiw_window .reveiws_answer .reveiws_false svg, #words_reveiw_window .reveiws_answer .reveiws_true svg{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    margin-left: 5px;
}
#words_reveiw_window .reveiws_answer .reveiws_true svg{
    fill: #22B573;
}
#words_reveiw_window .reveiws_answer .reveiws_false svg{
    fill: #FF0000;
    transform: translateY(-50%) rotate(45deg);
}
#words_reveiw_window .reveiws_answer .reveiws_true{
    background: #CCF0E1;
    color: #22B573;
}
#words_reveiw_window .reveiws_answer .reveiws_false{
    background: #F0CCCC;
    color: #FF0000;
}
#words_reveiw_window .reveiws_answer .reveiws_flip{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-transform: none;
    width: auto;
    max-width: auto;
    text-wrap: nowrap;
    padding: 10px 30px;
    width: 100%;
}
#words_reveiw_window .reveiws_answer_front .reveiws_true,#words_reveiw_window .reveiws_answer_front .reveiws_false{
    display: none;
}
#words_reveiw_window .reveiws_answer:not(.reveiws_answer_front) .reveiws_flip{
    display: none;
}
#words_reveiw_window .reveiw_card_prepare{
    display: flex;
    z-index: -1;
    transform: translateX(50px) scale(0.9);
    pointer-events: none;
}
#words_reveiw_window .reveiw_card_prepare .reveiw_card_inner{
    background-color: #cacaca;
}
#words_reveiw_window .reveiw_card_passed{
    display: flex;
    animation: reveiw_animation_hide 0.6s ease-in-out forwards;
}
#words_reveiw_window .reveiw_card_passed .reveiw_card_inner{
    background-color: #cacaca;
}
@keyframes reveiw_animation_hide{
    60%{
       transform: translateX(-400px);
    }
    100%{
       transform: translateX(0px) scale(0.9);
    }
}
.reveiw_card_buttons {
    max-width: 127px;
    margin: 0 auto;
}
.reveiw_card_inner .play_tooltip, .reveiw_card_inner .find_word {
    float: left;
    position: relative;
    right: 0;
    top: 0;
    margin: 0 auto;
    padding: 20px;
    box-sizing: content-box;
}
.reveiw_card_inner .play_tooltip svg{
    fill: #666;
}
.reveiw_card_inner .play_tooltip:hover svg{
    fill: #767676;
}
#words_reveiw_window .reveiw_text{
    font-size: 25px;
    margin: 10px auto;
    margin-top: -10px;
}
#words_reveiw_window .reveiw_translation{
   text-align:left;
}
.reveiw_card_back_header {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 10px;
    position: absolute;
    right: 5px;
    padding: 10px;
    top: 0px;
}
#words_reveiw_window .reveiw_card_back_content{
    flex: 2;
    display: flex;
    align-items: start;
    justify-content: center;
    flex-direction: column;
    width: 100%;
}
.reveiw_card_back_header .contexts{
    position: relative;
    top: 0;
    right: 0;
}
#words_reveiw_window .reveiw_context {
    text-align: left;
    margin-bottom: 5px;
}
.reveiw_card_back_progress_name.progress_name_0 {
    color: var(--progress_0);
}
.reveiw_card_back_progress_name.progress_name_1 {
    color: var(--progress_1);
}
.reveiw_card_back_progress_name.progress_name_2 {
    color: var(--progress_2);
}
#words_reveiw_window .reveiw_card_front .reveiw_context{
    margin-top: 0px;
    text-align:center;
}
#words_reveiw_window .reveiw_progress {
    padding: 33px 7px 20px 5.4px;
    display:flex;
}
#words_reveiw_window .count_progress {
    color: white;
    font-weight: bold;
    position: absolute;
    left: 5.4px;
    top: 0;
}
#words_reveiw_window .background_reveiw_progress {
    width: 100%;
    height: 3px;
    background: #2a2a2a;
    position: relative;
    transition: width 0.3s ease;
}
#words_reveiw_window .line_reveiw_progress {
    height: 3px;
    position: absolute;
    background: #F39653;
    transition: width 0.3s ease-out;
    z-index:2;
    max-width: 98%
}
#words_reveiw_window .line_reveiw_progress:before {
    height: 9px;
    width: 9px;
    background: #F39653;
    content: "";
    position: absolute;
    right: -9px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
}
#words_reveiw_window .background_reveiw_progress_2{
    width: 100%;
    height: 3px;
    background: white;
    position: relative;
    transition: width 0.3s ease;
}
#words_reveiw_window .line_reveiw_progress_2{
    width: 100%;
    height: 3px;
    position: absolute;
    background: #22B573;
    transition: width 0.3s ease-out;
}
#words_reveiw_window .line_reveiw_progress_2:before {
    height: 9px;
    width: 9px;
    background: #22B573;
    content: "";
    position: absolute;
    right: -9px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
}
.reveiw_card_back_progress_name{
    transition: color 0.3s ease;
    text-transform: lowercase;
}
.reveiw_card_back_progress .progress_context{
    transition: stroke-dashoffset 0.3s ease;
}
.words_count .count_progress {
    font-weight: bold;
}
.words_count .count_progress_0{
    color: var(--progress_0_fill);
}
.words_count .count_progress_1{
    color: var(--progress_1_fill);
}
.words_count .count_progress_2{
    color: var(--progress_2_fill);
}
.word_list_header_left{
    color: #a3a3a3;
}
.words_count .total_count{
    color: #666;
}
#words_reveiw_window .reveiw_victory_card{
    
}
#words_reveiw_window .reveiw_victory_card .reveiw_card_inner{
    transition: opacity 0.3s ease;
}
#words_reveiw_window .reveiw_victory_card:not(.reveiw_card_shown):not(.reveiw_card_passed) .reveiw_card_inner{
    opacity: 0;
}
#words_reveiw_window .reveiw_passed_to_reveiw:not(.reveiw_card_shown):not(.reveiw_card_passed) .reveiw_card_inner{
    opacity: 0;
}
#words_reveiw_window .reveiw_victory_card .reveiw_card_inner svg{
    fill: #22B573;
    height: 70px;
    width: 70px;
    margin-bottom: 20px;
    animation: swing-zoom 2s infinite ease-in-out;
    transform-origin: center;
}
#words_reveiw_window .reveiw_passed_to_reveiw .reveiw_card_inner svg{
    fill: #22B573;
    height: 70px;
    width: 70px;
    margin-bottom: 20px;
    animation: swing-zoom 2s infinite ease-in-out;
    transform-origin: center;
}
@keyframes swing-zoom {
  0% {
    transform: rotate(0deg) scale(1);
  }
  10% {
    transform: rotate(-10deg) scale(1);
  }
  20% {
    transform: rotate(10deg) scale(1);
  }
  30% {
    transform: rotate(-8deg) scale(1);
  }
  40% {
    transform: rotate(8deg) scale(1);
  }
  50% {
    transform: rotate(0deg) scale(1);
  }
  60% {
    transform: rotate(0deg) scale(1.1);
  }
  70% {
    transform: rotate(0deg) scale(1);
  }
  80% {
    transform: rotate(0deg) scale(1.1);
  }
  90% {
    transform: rotate(0deg) scale(1);
  }
  100% {
    transform: rotate(0deg) scale(1);
  }
}

#words_reveiw_window .reveiw_victory_card .reveiw_card_inner .reveiw_victory_header{
    font-size: 25px;
    font-weight: bold;
}
#words_reveiw_window .reveiw_passed_to_reveiw .reveiw_card_inner .reveiw_victory_header{
    font-size: 25px;
    font-weight: bold;
}
#words_reveiw_window .reveiws_victory_buttons .reveiws_flip{
    position:relative;
    transform: none;
    margin-left:15px;
    left: auto;
}
#words_reveiw_window .reveiws_answer:not(.reveiws_victory_buttons) .reveiws_repeat{
    display:none;
}
#words_reveiw_window .reveiws_victory_buttons .reveiws_repeat{
    padding: 10px;
}
#words_reveiw_window .reveiws_victory_buttons .reveiws_repeat svg{
    height: 30px;
    width: 30px;
    fill: none;
    stroke-width: 2px;
    stroke: #fbe9e7;
}
#words_reveiw_window .background_reveiw_progress.reveiw_progress_hidden{
    display:none;
}
#words_reveiw_window .background_reveiw_progress_2.reveiw_progress_hidden{
    display:none;
}
#context_window .play_context_button, #context_window .delete_word, #context_window .add_word, .word_window_main > .find_word {
   height: 25px;
   width: 25px;
   cursor: pointer;
   display: inline-block;
   margin-top: 13px;
   margin-left: 5px;
}
 #context_window .add_word {
   margin-top: 10px;
}
#context_window .move_buttons_to_top_right .progress_block {
    margin-top: 60px;
}
.move_buttons_to_top_right .play_context_button {
    position: absolute;
    margin-left: 0px;
    right: 60px;
}
.move_buttons_to_top_right .delete_word {
    position: absolute;
    margin-left: 0px;
    right: 25px;
}
.move_buttons_to_top_right.word_window_main > .find_word {
    position: absolute;
    margin-left: 0px;
    right: 100px;
}
#context_window .play_context_button {
   margin-left: 10px;
}
#context_window .play_context_button>svg, #context_window .delete_word>svg, #context_window .add_word>svg {
   height: 100%;
   width: 100%;  
}
#context_window .play_context_button>svg, #context_window .add_word>svg {
   fill: #666;
}
#context_window .delete_word>svg{
   fill: red;
   transform: rotate(45deg);
}
#context_window .play_context_button:hover>svg, #context_window .add_word>svg:hover {
   fill: #767676;
}
#context_window .delete_word:hover>svg{
   color: red;
}
#context_window .progress_block{
    display: flex;
    gap: 4px;
    float: right;
    flex-direction: column;
    margin-top: 10px;
    margin-bottom: 10px;
}
#context_window .progress_block .progress_item{
    padding: 5px 15px;
    background-color: #bbb;
    color: white;
    font-weight: 600;
    text-transform: capitalize;
    cursor: pointer;
    position: relative;
    z-index: 0;
    overflow: hidden;
    text-align: center;
}
#context_window .progress_block .progress_item:not(.active_progress):hover{
    background-color: #afafaf;
}
body {
    --progress_0: #BAAE00;
    --progress_1: #00BA00;
    --progress_2: #0071BC;
    --progress_0_fill: #E2D629;
    --progress_1_fill: #2AE22A;
    --progress_2_fill: #29ABE2;
}
body.night {
    --progress_0: #8a7600;
    --progress_1: #2f805c;
    --progress_2: #596989;
    --progress_0_fill: #b5a300;
    --progress_1_fill: #279765;
    --progress_2_fill: #486ab0;
}
#context_window .progress_block .progress_0{
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}
#context_window .progress_block .progress_2{
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}
#context_window .progress_0.active_progress{
    background-color: var(--progress_0) !important;
}
#context_window .progress_1.active_progress{
    background-color: var(--progress_1) !important;
}
#context_window .progress_2.active_progress{
    background-color: var(--progress_2) !important;
}
#context_window .progress_item_bar{
    position: absolute;
    left: 0;
    height: 100%;
    top: 0;
    width: 0%;
    will-change: width;
    z-index: -1;
    transition: width 0.3s ease-out;
}
#context_window .progress_item:not(.active_progress) .progress_item_bar{
    width: 0% !important;
}
#context_window .progress_0 .progress_item_bar{
    background-color: var(--progress_0_fill);
}
#context_window .progress_1 .progress_item_bar{
    background-color: var(--progress_1_fill);
}
#context_window .progress_2 .progress_item_bar{
    background-color: var(--progress_2_fill);
}
.word_cards .contexts > .background_context, .reveiw_card_back_header .contexts > .background_context{
  stroke: #a9a9a94f;
}
.word_cards .contexts:hover > .background_context, .reveiw_card_back_header .contexts:hover > .background_context{
  stroke: #8784844f;
}
#all_words_link {
    display: block;
    float: left;
    background: linear-gradient(to bottom, #f29554 0%, #f5904a 100%);
    color: #fff;
    padding: 0px 5px 0px 5px;
    line-height: 24px;
    font-size: .85em;
    margin-left: 20px;
    margin-bottom: 9px;
    border-radius: 2px;
    text-decoration: none;
}
#all_words_link {
   margin: 0;
}
#all_words_link svg {
   stroke: white;   
   fill: transparent;
}
#reveiw_words_link {
   background: #22B573 !important;
   cursor: pointer;
}
#reveiw_words_link svg {
   fill: white;
}
body.night #all_words_link {
    background: #bf6d2e !important;
}
body.night #reveiw_words_link {
    background: #279765 !important;
}
#add_word_link{
   background: #4169e1 !important;
   cursor: pointer;
}
#add_word_link svg{
   fill: white;
}
.new_button{
   padding: 5px 15px 5px 45px !important;
   border-radius: 18px !important;
   background: #FF923D !important;
   color: white !important;
   position: relative;
   font-size: 0.95em;
   line-height: 24px;
}
.new_button svg{
   height: 20px;
   width: 20px;
   position: absolute;
   top: 50%;
   transform: translateY(-50%);
   left: 15px;
}
.translation_loader {
  fill: #666;
  width: 30px;
  height: 30px;
}
body.night .translation_loader {
  fill: #fff;
}
.reveiw_card_back_progress .contexts {
  pointer-events: none;
}
@media only screen and (max-width: 640px) {
    .word_cards .word_frequency {
        right: 10px;
    }
    #context_window {
        max-height: none !important;
        height: 100% !important;
        padding-bottom: 64px;
    }
    .ui-dialog[aria-describedby="context_window"] {
        height: 100% !important;
    }
   .ui-dialog[aria-describedby="words_reveiw_window"]{
  max-width: calc(100%) !important;
        overflow-x: hidden !important;
   }
   #words_reveiw_window{
       width: calc(100% - 20px) !important;
       left: 10px !important;
   }
   #words_reveiw_window .reveiws_cards_container{
       height: calc(100vh - 200px);       
       height: calc(100svh - 200px);
   }
   #words_reveiw_window .reveiws_answer .reveiws_false, #words_reveiw_window .reveiws_answer .reveiws_true {
       width: calc(100% / 2 - 10px);
   }
   #my_words_window .my_words_top {
        padding: 10px 10px;
    }
    .word_cards .word_card_top, .word_cards .word_card_translation, .word_cards .word_card_context {
        padding: 0 10px;
    }
    body .ui-dialog[aria-describedby="delete_word_window"] {
        width: 100% !important;
        height: 100% !important;
    }
    #delete_word_window {
        height: 100% !important;
        padding-bottom: 64px;
    }
}
/*@media only screen and (max-width: 440px){
    #my_words_window .my_words_top .my_words_left .my_words_left_bottom {
        flex-direction: column;
    }
} */
#delete_word_window .confirm_delete_word {
    margin-bottom: 20px;
}
.ui-dialog[aria-describedby="delete_word_window"] {
    max-width: 640px !important;
    height: 300px !important;
}
.word_list_header {
    font-weight: 700;
    font-size: 18px;
    max-width: 1280px;
    margin: 0 auto;
    overflow: hidden;
    padding-bottom: 9px;
}
.choose_lang {
    float: right;
    margin-top: 5px;
}
.choose_lang .select2-container {
    width: 60px !important;
    min-width: auto;
}
.choose_lang .select2-container .select2-selection {
    border-radius: 4px;
    border: none;
}
.choose_lang_dropdown .select2-results__option {
    padding: 0;
    text-align: center;
}
.choose_lang_dropdown {
    border: none;
}
.choose_lang_dropdown img {
    margin-top: 7px;
    margin-left: -2px;
}
.choose_lang .select2-container img, .choose_lang_dropdown img {
    width: 30px;
    height: 30px;
    margin-top: 3px;
}
.add_word_input {
    font-size: 22px !important;
    float: left;
    margin-top: 8px;
    border: none;
    overflow:hidden;
    resize: none;
    max-width: calc(100% - 100px);
    height: 1.2em;
    color: #666;
}
.add_word_input::placeholder {
  font: inherit;
  line-height: inherit;
}
.word_loading > svg {
    overflow: hidden;
    transition-duration: 2s;
    transition-property: transform;
    transform: rotate(360deg);
}
.word_loading > svg {
    width:100%;
    height:100%;
    fill:#FFFFFF;
}
#my_words_buttons {
    font-size: 17.1px;
    float: right;
    margin-top: 11px;
}
#my_words_buttons .new_button {
    float: left;
    margin-right: 10px;
}
#my_words_buttons #add_word_link {
    padding-left: 42px !important;
}
#my_words_buttons #add_word_link svg {
    width: 17px;
    height: 17px;
}
.view-my-words .views-widget-filter-word {
    margin-right: 10px;
}
.view-content.word_cards > div {
    border-bottom: 1px solid #cecece;
}
@keyframes progress-zoom {
    0% {
        transform: scale(1);
    }
    14.3% {
        transform: scale(1.3);
    }
    85.7% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}
.transcription.highlight_transcription, .gender_and_pos.highlight_gender {
    font-weight: 700;
    color: #000000;
}
