/* =========================
   1) BASE SHELL
   ========================= */

.mt-page.wrapper-content{
  background: transparent;
  padding: 0 !important;
  max-width: 100% !important;
  display: block;
  margin: 0;
  border: none;
}

.mt-page .card.mt-cardShell{
  width: 100%;
  margin: 0 auto;
  background: #f6f7fb;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border: none !important;
  overflow: hidden;
}

.mt-page .card.mt-cardShell:hover{
  box-shadow: none !important;
  font-weight: normal !important;
}

.reb-container{ display:none !important; }

.mt-page .main-test{
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px 30px;
}

@media (max-width: 980px){
  .mt-page .card.mt-cardShell{ max-width: 760px; }
  .mt-page .main-test{
    max-width: 100%;
    padding: 0;
  }
}

/* =========================
   2) TOP BAR (DESKTOP)
   ========================= */

.mt-page .mt-topBar{
  background:#fff;
  display:flex;
  align-items:center;
  gap:14px;
  padding: 14px 18px;
}

.mt-page .mt-topBar__back{
  width:44px;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  font-weight:900;
  font-size:22px;
  color:#000;
  border-radius:12px;
  flex: 0 0 auto;
}

.mt-page .mt-topBar__title{
  margin:0;
  font-size: 16px;
  font-weight: 300;
  color:#000;
  text-align:left;
  line-height:1.1;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mt-page .mt-topBar__titleAccent{ color:#000; }
.mt-page .mt-topBar__titleRest{ color:#000; }

.mt-page .mt-topBar__btn{
  height:44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(0,0,0,.02);
  color:#000;
  font-weight: 300;
  cursor:pointer;
  flex: 0 0 auto;
}

.mt-page .mt-topBar__btn:hover{ background: rgba(0,0,0,.05); }

@media (max-width: 640px){
  .mt-page .mt-topBar{ flex-wrap: wrap; gap: 10px; padding: 12px 12px; }
  .mt-page .mt-topBar__title{ flex: 1 1 calc(100% - 54px); }
  .mt-page .mt-topBar__btn{ width: 100%; }
}

/* =========================
   2.05) MOBILE TOP BAR
   ========================= */

.mt-page{ --mtMobileBarH: 60px; }

.mt-mTopBar{
  display:none;
  height: var(--mtMobileBarH);
  background: #242424;
  color:#fff;
  align-items:center;
  justify-content: space-between;
  padding: 0 14px;
}

.mt-mTopBar__title{
  margin:0;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.1;
  min-width: 0;
  flex: 1 1 auto;
}

.mt-mTopBar__titleText{
  display:block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.mt-mTopBar__menuBtn{
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,.18);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}

.mt-mTopBar__menuBtn:hover{ background: rgba(255,255,255,.24); }

.mt-mTopBar__menuIcon{
  width: 18px;
  height: 12px;
  display:block;
  background:
    linear-gradient(#fff,#fff) 0 0/100% 2px,
    linear-gradient(#fff,#fff) 0 50%/100% 2px,
    linear-gradient(#fff,#fff) 0 100%/100% 2px;
  background-repeat:no-repeat;
  border-radius: 2px;
}

@media (max-width: 640px){
  .mt-mTopBar{ display:flex; }
  .mt-topBar--desktop{ display:none !important; }
}

/* fixed + clickable */
@media (max-width: 640px){
  .mt-mTopBar{
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--mtMobileBarH);
    z-index: 1000;
  }
  .mt-mTopBar__menuBtn{ position: relative; z-index: 1001; pointer-events: auto; }
}

/* =========================
   2.1) PROGRESS BAR
   ========================= */

.mt-page .mt-progressWrap{
  background:#fff;
  margin: 0 !important;
  padding: 0 !important;
}

/* if progress fixed globally — mute inside mt-page */
.mt-page .mt-progressWrap *,
.mt-page .mt-progressWrap{
  top: auto !important;
  left: auto !important;
  right: auto !important;
}

.mt-page .mt-progressWrap .progress,
.mt-page .mt-progressWrap .progress-bar,
.mt-page .mt-progressWrap .progressBar,
.mt-page .mt-progressWrap .progress_bar,
.mt-page .mt-progressWrap .progress__bar,
.mt-page .mt-progressWrap .progress_line,
.mt-page .mt-progressWrap .progress__line{
  position: relative !important;
}

/* thin line */
.mt-page .mt-progressWrap .pb-container,
.mt-page .mt-progressWrap .pb-content{
  margin: 0 !important;
  padding: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: 0 !important;
}

.mt-page .mt-progressWrap .progress-bar{
  margin: 0 !important;
  padding: 0 !important;
  height: 8px !important;
  display:flex !important;
  align-items: stretch !important;
  gap: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}

.mt-page .mt-progressWrap .progress-bar__item{
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

/* mobile: progress below fixed bar */
@media (max-width: 640px){
  .mt-page .mt-progressWrap{
    margin-top: var(--mtMobileBarH) !important;
  }
}

/* =========================
   3) MOBILE MENU MODAL
   ========================= */


/* =========================
   4) MATCH LAYOUT + IMAGE
   ========================= */

.word_matching_wrapper{
  display:block;
  width: 100%;
  background: transparent;
  margin: 0 auto;
}

.mt-quizLayout--match{
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 26px;
  align-items: start;
  padding: 10px 0 6px;
}

.mt-quizIll--match{
  display:flex;
  align-items:center;
  justify-content:center;
}

.mt-quizIll--match.is-empty{
  display:none;
}

.mt-quizIll__img{
  width: 100%;
  max-width: 320px;
  height: auto;
  display:block;
  border-radius: 0;
}

@media (max-width: 980px){
  .mt-quizLayout--match{
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 10px 10px 6px;
  }

  /* on mobile/tablet image goes top automatically */
  .mt-quizIll__img{ max-width: 360px; }
}

.mt-page .main-test{
  padding-top: 18px !important;
  padding-bottom: 30px !important;
}

/* hide duplicate title inside cards */
.mt-hiddenTitle{ display:none !important; }

/* =========================
   5) WORD MATCHING UI
   ========================= */

.main-test__container{
  border-radius: 18px;
  background: transparent;
  margin-top: 0;
}

.main-test__content{ padding: 0 !important; }

.main-test__rightCol{
  margin-left:auto;
  margin-right:auto;
  width:100%;
  max-width:700px;
  font-size:16px;
  border-radius: 10px;
}

.word-pair__words{ text-align:center; }

.word-pair__words > button{
  margin-bottom: 10px;
  vertical-align: top;
  display:inline-block;
  width: 43%;
  padding: 15px;
  color:#555;
  border-radius: 12px;
  background:#eee;
  box-sizing:border-box;
  transition:.2s;
  cursor:pointer;
  height: 56px;
  border: 1px solid rgba(0,0,0,.08);
  font-weight: 800;
}

.word-pair__words > button:nth-child(2n+1){ margin-right: 5%; }

.word-pair__words > button:hover{
  opacity: 1;
  color:#333;
  border-color:#ccc;
  background:#f3f3f3;
}

.word-pair__words > button.wrong{
  color:#300;
  border-color:#c90909;
  background: #ffecec;
}

.word-pair__words > .chosen,
.word-pair__words > button[disabled]{
  background-color:#fff7e6;
}

.word-pair__words > button[disabled]{ cursor: default; }

.word-pair__words > button.empty{
  color: transparent;
  border-color: transparent;
  background: transparent;
}

.js-word.open{ background:#fff; }

.audio-image-sentence__pagination{
  margin-top: 16px;
  text-align:center;
  display: none;
}

.main-test__pagination{
  color:#777;
  font-weight: 300;
}

/* result */
.main-test__content_resultScreen{
  margin-top: 0;
  padding-top: 0;
  background: transparent;
}

.main-test__resultScreen-rect{
  margin-left:auto;
  margin-right:auto;
  position:relative;
  width:100%;
  max-width: 320px;
  height: 150px;
  background: transparent;
}
.main-test__resultScreen-rect__circle{ display:none; }

.main-test__resultScreen-text{
  margin-top: 16px;
  margin-bottom: 20px;
  font-size: 16px;
  text-align:center;
  color: #00000080;
}

.main-test__resultScreen-button{
  margin: 0 auto;
  display:block;
  width: 160px;
  height: 44px;
  line-height: 20px;
  text-align:center;
  font-size: 16px;
  border-radius: 12px;
  outline:none;
  border:none;
  color:#fff;
  background-color:#5c938c;
  opacity: .9;
  transition:.2s;
  font-weight: 900;
}
.main-test__resultScreen-button:hover{ opacity: 1; }

/* responsive */
@media (max-width: 843px){
  .word-pair__words > button:nth-child(2n+1){ margin-right: 3%; }
}
@media (max-width: 790px){
  .mt-page .main-test{ padding: 0 !important; }
  .word_matching_wrapper{ max-width: 90%; }
}
@media (max-width: 520px){
  .word-pair__words > button{
    width: 100%;
    margin-right: 0 !important;
  }
}

/* =========================
   6) CARD SLIDE ANIMATION
   ========================= */

.mt-card{ will-change: transform, opacity; }

.mt-card.mt-out{
  opacity: 0;
  transform: translateX(-18px);
  transition: transform .22s ease, opacity .22s ease;
}

.mt-card.mt-in{
  opacity: 0;
  transform: translateX(18px);
}

.mt-card.mt-in.mt-in--on{
  opacity: 1;
  transform: translateX(0);
  transition: transform .22s ease, opacity .22s ease;
}

/* =========================
   8) FOOTER
   ========================= */
footer{ position: relative; margin-top: 0; }