@charset "utf-8";
/* CSS Document */
.js-divider {
    border-bottom: 20px solid #d0dcec;
    margin-bottom: 38px;
    margin-top: -15px;
}
#AllExTab{
    opacity: 1;
    margin: 0px;
    top: 0px;
    background-color: rgb(246, 249, 252);
    padding: 5px 3px;
    border: 1px solid rgb(208, 220, 236);
    border-radius: 6px;
    z-index: 9997;
    width: fit-content;
}

.js-nav-ex{
    margin-bottom: -7px;
}

.js-allex-tab-sticky {
    width: auto;
    position: fixed;
}

.js-allex-tab-stuck {
    width: fit-content;
    position: relative;
}
.js-alert-hidden{
    display: none;
}
#0a-main{
    position:relative
}

#0a-panel{
    z-index:10;
    position:relative
}

#0a-play-center{
    position: absolute;
    top: 28%;
    left: 46%
}

#0a-de{
    font-size: 20px;
    line-height: 24px;
    color: white;
    text-shadow: 2px 0 0 #000000, -2px 0 0 #000000, 0 2px 0 #000000, 0 -2px 0 #000000, 1px 1px #000000, -1px -1px 0 #000000, 1px -1px 0 #000000, -1px 1px 0 #000000;
    letter-spacing: 2px;
    cursor: pointer
}
#0a-content{
    position: absolute;
    top: 34%;
    bottom: 10%;
    width: 100%;
    left: -0.1%;
    cursor: pointer;
}
#0a-ru{
    font-size: 26px;
    line-height: 24px;
    padding-bottom: 10px
}
#0a-video{
    width: 100%;
    height: 100%;

}
#0a-play-center>i{
    font-size: 2em;
    color: rgba(255,255,255,.7);
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 55px;
    text-align: center;
    border-radius: 5px
}
#0a-next>a>i, #0a-prev>a>i{
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 55px;
    text-align: center;
    border-radius: 5px
}
.js-ex-body{
    position: relative;
    /*height: 70vh;*/
}
.js-ex-body-hover{
    top: 0px;
    left: 0px;
    position: absolute;
    line-height:  51vh;
    height: 100%;
    text-align: center;
    background-color: #7eaae5d1;
    padding: 35px;
    width:100%
}
.js-ex-body-hover-p{
    display: inline-block;
    color: white;
    font-size: 48px;
}
.js-opacity{
    opacity: 0;
}
.js-ex-body-hover-premium{
    color: #0f5fd0;
}
.js-ex-red-cross{
    color:red !important;
    text-decoration:line-through !important;
}
.js-ex7-btn{
    padding: 0 0 1px 7px;
    margin: 7px;
    line-height: 42px;
    border: 2px solid #d6d5d5;
    border-radius: 5px;
    border-top: 1px solid #d6d5d5;
    background-color: #f4f1f1;
}

.tour-modal>.shepherd-content{
    background-color: #40657e!important;
    border: 1px solid #888888 !important;
}

.tour-modal>.shepherd-content>.shepherd-header{
    background-color: #40657e!important;
}

.tour-modal>.shepherd-content>.shepherd-header>.shepherd-title{
    color: #FFFFFF;
    hyphens:auto;
}
.tour-btn{
    color: #fff;
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.tour-modal>.shepherd-content>.shepherd-text{
    color: #FFFFFF;
}
#collapse-all-level{
    margin: 1px 0px 0px 4px;
}
.tooltip {
    z-index: 9999 !important;
}

.js-list-block-odd{
  	background: #f4f4f4;
	border-bottom: 2px dashed #CCC;
    border-top: 2px dashed #CCC;
}
/* testing/gramtrain preloader*/
.js-loader-parent{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.lds-ripple {
    /* change color here */
    color: #7eaae5
}
.lds-ripple,
.lds-ripple div {
    box-sizing: border-box;
}
.lds-ripple {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}
.lds-ripple div {
    position: absolute;
    border: 4px solid currentColor;
    opacity: 1;
    border-radius: 50%;
    animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
.lds-ripple div:nth-child(2) {
    animation-delay: -0.5s;
}
.js-ranked-element {
    font-size: 18px;
    line-height: 28px;
    color: #000;
}
@keyframes lds-ripple {
    0% {
        top: 36px;
        left: 36px;
        width: 8px;
        height: 8px;
        opacity: 0;
    }
    4.9% {
        top: 36px;
        left: 36px;
        width: 8px;
        height: 8px;
        opacity: 0;
    }
    5% {
        top: 36px;
        left: 36px;
        width: 8px;
        height: 8px;
        opacity: 1;
    }
    100% {
        top: 0;
        left: 0;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/*Oa settings*/
.js-0a-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #B22222; /* Dark Red */
    color: white;
    font-size: 18px;
    font-weight: bold;
    border-radius: 12px;
    margin-right: 20px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Hover Effect */
.js-0a-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    background-color: #8B0000; /* Darker Red on Hover */
}

/* Active Button */
.js-0a-button.active {
    background-color: #FF4500; /* Orange Red */
    box-shadow: 0 6px 12px rgba(255, 69, 0, 0.4);
}

/* Icon Button */
.js-0a-button i {
    font-size: 21px;
    padding: 0 8px;
}

/* List Styling */
.js-0a-list {
    list-style-type: none;
    padding: 0;
}

.js-0a-list-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    margin-left: 4px;
    font-family: Arial, sans-serif;
    color: #555;
}

/* Text Next to Button */
.js-0a-button + div,
.js-0a-button + span {
    font-size: 16px;
    line-height: 1.4;
}

/* Accordion Styles */
.js-0a-accordion {
    background-color: #B22222;
    color: white;
    cursor: pointer;
    padding: 15px 20px;
    width: 100%;
    border: none;
    text-align: left;
    font-size: 18px;
    font-weight: bold;
    border-radius: 12px;
    outline: none;
    transition: background-color 0.3s ease;
}

.js-0a-accordion:hover {
    background-color: #8B0000;
}

.js-0a-panel {
    padding: 11px 20px 0 0;
    display: none;
    overflow: hidden;
}
#js-test-menu{
    top: 22%;
    font-size: 16px;
}

.js-0a-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}
.js-0a-video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Чтобы видео заполняло контейнер */
}
.js-0a-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 80%;
    color: white; /* Цвет текста */
    z-index: 2; /* Чтобы текст был поверх видео */
    max-width: 1000px;
}
.js-0a-text-overlay .js-0a-display-de {
    font-size: 2rem;
    line-height: 1.2;
}
.js-0a-text-overlay .js-0a-display-ru {
    font-size: 1.6rem;
    line-height: 1;
    margin-top: 10px;
}
.js-0a-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    cursor: pointer;
    color: white; /* Цвет стрелок */
    z-index: 2; /* Чтобы стрелки были поверх видео */
}
.js-0a-arrow.left {
    left: 10px;
}
.js-0a-arrow.right {
    right: 10px;
}
.js-0a-video-html::-webkit-media-controls-timeline {
    display: none !important;
}

.js-premium-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  line-height: 51vh;
  height: 100%;
  text-align: center;
  background-color: #7eaae5d1;
  padding: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.shepherd-element {
    background: transparent;
    border-radius: 14px;
    box-shadow: none;
    max-width: 400px;
    opacity: 0;
    outline: none;
    transition: opacity .3s, visibility .3s;
    visibility: hidden;
    width: 100%;
    z-index: 9999;
}


.tour-modal>.shepherd-content {
    background-color: #fff9e8 !important;
    border: 3px solid #555454 !important;
    border-radius: 5px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}

.tour-modal>.shepherd-content>.shepherd-text {
    color: #000000;
}

.shepherd-button {
    background: #40657e;
    border: 0;
    border-radius: 3px;
    color: white;
    cursor: pointer;
    margin-right: .5rem;
    padding: .5rem 1.5rem;
    transition: all .5s
ease;
}
.shepherd-has-title .shepherd-content .shepherd-cancel-icon {
    color: #cbcbcb;
}

.shepherd-cancel-icon {
    background: transparent;
    border: none;
    color: #cbcbcb;
    cursor: pointer;
    font-size: 1.5em;
    font-weight: 400;
    margin: 0px;
    padding: 0px;
    transition: color .5s
ease;
}

/* Tour-specific override for Shepherd cancel icon color */
.tour-modal .shepherd-content .shepherd-cancel-icon {
    color: hsl(211.17deg 31.07% 14.3%) !important;
}

@media(max-width:435px) {
    .js-0a-text-overlay .js-0a-display-de {
        font-size: .9rem;
    }
    .js-0a-text-overlay .js-0a-display-ru {
        font-size: .8rem;
    }
    #0a-play-center{
        position: absolute;
        top: 40%;
        left: 46%
    }
    #0a-next>a>i, #0a-prev>a>i{
        font-size: 3em;
    }
    #0a-de{
        font-size: 30px;
        line-height: 24px;
        padding-bottom: 20px
    }
    #0a-ru{
        font-size: 26px;
        line-height: 24px;
    }
    #0a-content{
        position: absolute!important;
        top: 30%!important;
    }
    #js-test-menu{
        top: 18%;
        font-size: 16px;
    }
}
@media(max-width:767.98px) {
    #AllExTab{
        padding: 10px 3px 10px;

    }
    #js-test-menu{
        top: 18%;
        font-size: 16px;
    }
    .js-0a-text-overlay .js-0a-display-de {
        font-size: 1.5rem;
    }
    .js-0a-text-overlay .js-0a-display-ru {
        font-size: 1rem;
    }
}


@media(max-width:575.98px) {
    .js-allex-tab-sticky {
        width: 100%;
        position: fixed;
    }

    .js-allex-tab-stuck {
            width: fit-content;
            position: relative;
        }
    #AllExTab{
        padding: 5px 3px;

    }
    #js-test-menu{
        top: 18%;
        font-size: 16px;
    }
    .js-0a-text-overlay .js-0a-display-de {
        font-size: 1rem;
    }
    .js-0a-text-overlay .js-0a-display-ru {
        font-size: .9rem;
    }
.js-ranked-element{
  font-size: 18px;
  line-height: 22px; 
}
.js-0a-accordion {
    padding: 6px 20px;
    font-size: 16px;
}

}
.js-new-translate{
 z-index: 9999;
}
/*test styles*/

/* === Layout container === */
#test-login-email-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border: 1px solid #d7dadf;
    border-radius: 10px;
    background-color: white;
    max-width: 500px;
    margin: 30px auto;
}

/* === Title === */
.test-login-title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #3b3b3b;
    margin-bottom: 10px;
}

/* === Switch text (signup/login) === */
.test-login-switch-span {
    text-decoration: underline;
    color: #17a2b8;
    cursor: pointer;
    font-size: 16px;
}

.m-10 {
    margin: 10px 0;
}

/* === Input group === */
.test-login-form-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 300px;
    margin: 15px auto;
}

/* === Inputs === */
.test-login-field {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #eef5ff;
    box-sizing: border-box;
}

/* === Button === */
#test-login-button {
    width: 100%;
    max-width: 250px;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid black;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: 0.3s ease;
}

#test-login-button:hover {
    background-color: #e6faff;
    border-color: #17a2b8;
}

/* === Hidden elements === */
.test-login-hidden {
    visibility: hidden;
}

.test-login-hidden-2 {
    display: none;
}

/* === Terms & conditions block === */
.remember-checkbox {
    text-align: center;
    margin-top: 20px;
    font-size: 15px;
}

#terms-label {
    margin: 10px 0;
}

.test-login-terms-highlight {
    text-decoration: underline;
    color: #494949;
    font-weight: 500;
}

.test-login-terms-highlight:hover {
    color: #000;
}

/* === Extra styling === */
.test-login-field-success {
    border: 2px solid green;
    border-radius: 5px;
}

.test-login-warning-text {
    color: darkred;
    border-bottom: 1px dashed darkred;
}

#test-login-signup-text {
    font-size: 14px;
    margin-top: 5px;
}

#test-login-email-block-success {
    min-height: 180px !important;
}

#ai-agent-btn {
    z-index: 999;
    position: fixed !important;
    display: block;
    margin: 0;
    color: #fff;
    transition: all .5s ease-in-out;
    bottom: 50px !important;
    right: 15px !important;
    border-radius: 3px;
    background: #84ba3f !important;
    font-size: 14px;
    width: 40px;
    height: 40px;
    text-align: center
}

/* === Chat modal (AI Agent) styles inspired by AI-bot story page === */
#modal-agent #qc-root .quikchat-messages-area {
    position: relative;
    padding: 8px 56px 8px 56px; /* space for avatars on both sides */
    background-image: radial-gradient(#f6c26d 1px, transparent 1px);
    background-size: 12px 12px;
    background-position: 0 0;
    overflow-x: visible; /* allow avatar to render outside bubble */
}

#modal-agent .quikchat-message:not(.right) {
    background: #fffaf2;
    border: 2px solid #f4a43f;
    border-radius: 12px;
    color: #333;
    position: relative;
}

#modal-agent .quikchat-message:not(.right)::before {
    content: '';
    position: absolute;
    left: -18px;   /* overlap bubble corner */
    top: -18px;    /* place above bubble */
    width: 40px;
    height: 40px;
    z-index: 2;
}

#modal-agent .quikchat-message.right {
    background: #eef5ff;
    border: 2px solid #9cc4ff !important; /* ensure light blue border on user messages */
    border-radius: 12px;
    padding: 10px 12px;
    color: #222;
    margin: 10px 8px;
    position: relative;
}

#modal-agent .quikchat-message.typing em {
    color: #a86b00;
}

/* Ensure images injected by JS are visible and positioned like the ::before avatar */
#modal-agent .quikchat-message:not(.right) img.avatar-chat {
    position: absolute;
    left: -44px;
    top: -4px;
    width: 36px;
    height: 36px;
    display: block;
}

/* User avatar positioning on the right side */
#modal-agent .quikchat-message.right img.avatar-user {
    position: absolute;
    right: -18px;  /* overlap bubble corner */
    top: -18px;    /* place above bubble */
    width: 40px;
    height: 40px;
    display: block;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    box-shadow: 0 0 0 2px #7eaae5; /* subtle outline to match theme */
    z-index: 2;
}

/* Avoid clipping the avatar by message container */
#modal-agent .quikchat-message {
    overflow: visible !important;
}

/* Thread list items look neutral */
#modal-agent #qc-threads .qc-thread-item {
    background: #f8f8f8;
    color: #222;
    border: 1px solid #e6e6e6;
}

#modal-agent #qc-threads .qc-thread-item:hover {
    background: #fff;
    border-color: #ddd;
}

/* === Chat modal layout: sidebar (threads) + messages === */
/* Make root a flex container so sidebar and messages sit side-by-side */
#modal-agent #qc-root {
    display: flex;
    align-items: stretch;
    gap: 12px;
}

/* Sidebar container for thread list */
#modal-agent #qc-threads {
    width: 240px;
    min-width: 200px;
    max-width: 300px;
    background: #f7f7f9; /* separate from dotted chat background */
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 8px;
    overflow-y: auto;
}

/* Ensure the messages area expands to fill remaining space */
#modal-agent #qc-root .quikchat-messages-area {
    flex: 1 1 auto;
}

/* Thread list wrapper */
#modal-agent #qc-thread-list {
    margin: 0;
    padding: 0;
}

/* Thread item buttons: full-width with ellipsis */
#modal-agent #qc-threads .qc-thread-item {
    display: block;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 8px 10px;
    margin: 6px 0;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}

/* Subtle hover state */
#modal-agent #qc-threads .qc-thread-item:hover {
    border-color: #d8d8d8;
    background: #fff;
}

/* Small controls above the list (refresh/new) if present */
#modal-agent #qc-threads .qc-thread-controls {
    display: flex;
    gap: 6px;
    margin: 4px 0 8px;
}

#modal-agent #qc-threads .qc-thread-controls button {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}

/* Responsive: stack on narrow screens */
@media (max-width: 991.98px) {
  #modal-agent #qc-root {
    flex-direction: column;
  }
  #modal-agent #qc-threads {
    width: 100%;
    max-width: none;
  }
}

/* === Mobile-first tweaks (phones) === */
@media (max-width: 575.98px) {
  /* Make the AI chat modal a full-screen overlay on phones */
  #modal-agent {

    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 10050; /* above site banners/widgets */
    display: none; /* ensure it overlays when shown */
    padding: 8px;
  }

  /* The root chat container as a white card inside the overlay */
  #modal-agent #qc-root {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.15);
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    padding: 8px;
  }

  /* Close button styling (element with id used in JS) */
  #modal-agent #closeBtn {
    position: absolute;
    top: 12px;
    right: 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    line-height: 30px;
    text-align: center;
    font-weight: bold;
    color: #444;
    z-index: 10051;
  }

  /* Constrain overall chat area inside modal and enable scrolling */
  #modal-agent #qc-root {
    height: 78vh;
    max-height: 78vh;
    overflow: hidden; /* children will scroll */
  }

  /* Threads section becomes a compact block above messages */
  #modal-agent #qc-threads {
    order: 1;
    max-height: 28vh;
    overflow-y: auto;
    padding: 6px;
    background: #fafafa;
    border-radius: 8px;
  }

  /* Compact thread items */
  #modal-agent #qc-threads .qc-thread-item {
    padding: 6px 8px;
    margin: 5px 0;
    font-size: 14px;
    line-height: 1.2;
  }

  /* Messages area fills the rest and scrolls */
  #modal-agent #qc-root .quikchat-messages-area {
    order: 2;
    max-height: calc(78vh - 28vh - 12px);
    overflow-y: auto;
    padding: 6px 38px; /* slightly tighter to fit avatars */
  }

  /* Tighter avatar sizing/positioning on small screens */
  #modal-agent .quikchat-message:not(.right) img.avatar-chat {
    left: -36px;
    top: -2px;
    width: 28px;
    height: 28px;
  }

  #modal-agent .quikchat-message.right img.avatar-user {
    right: -14px;
    top: -14px;
    width: 32px;
    height: 32px;
  }

  /* Compact message bubbles for small screens */
  #modal-agent .quikchat-message:not(.right) {
    padding: 8px 10px;
    margin: 8px 6px;
    border-width: 2px;
  }
  #modal-agent .quikchat-message.right {
    padding: 8px 10px;
    margin: 8px 6px;
    border-width: 2px;
  }
}
/* === Override: fix QuikChat messages area height === */
/* Apply consistent max-height across viewports for both primary and alt areas */
#modal-agent #qc-root .quikchat-messages-area,
#modal-agent #qc-root .quikchat-messages-area-alt {
  max-height: 41vh !important; /* override mobile calc and any prior settings */
}

/* === AI custom context menu === */
.ai-context-menu {
  position: absolute;
  z-index: 10050;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  padding: 6px;
  min-width: 180px;
}
.ai-context-menu.hidden { display: none; }
.ai-context-menu button {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #dbe2ea;
  background: #f8fafc;
  color: #1f2937;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}
.ai-context-menu button:hover {
  background: #eef5ff;
  border-color: #9cc4ff;
}
/* Force tighter spacing for all direct children */
#qc-root .quikchat-message .quikchat-message-content > * {
  margin: 4px 0 !important;
}

/* Even tighter for paragraphs */
#qc-root .quikchat-message .quikchat-message-content p {
  margin: 4px 0 !important;
}

/* Reduce list margins */
#qc-root .quikchat-message .quikchat-message-content ul,
#qc-root .quikchat-message .quikchat-message-content ol {
  margin: 4px 0 4px 18px !important;
  padding-left: 0 !important;
}

#qc-root .quikchat-message .quikchat-message-content li {
  margin: 2px 0 !important;
}

/* Remove extra space at edges */
#qc-root .quikchat-message .quikchat-message-content > :first-child {
  margin-top: 0 !important;
}
#qc-root .quikchat-message .quikchat-message-content > :last-child {
  margin-bottom: 0 !important;
}

/* Tighten line-height and padding on the container */
#qc-root .quikchat-message .quikchat-message-content {
  line-height: 1.3 !important;
  padding: 8px 12px !important;
}