.header__logo--tube {
  position: absolute;
  top: 12px;
  left: calc(50% - 59px);
}

.header-dashboard--tube {
	height: 160px;
  background: url('../images-r/leaves/leaves-two-left.svg'), url('../images-r/leaves/leaves-three-right.svg'), linear-gradient(to bottom, #125690 0%,#125690 100px,#edf1f7 100px,#edf1f7 160px);
  background-size: 40px auto, 44px auto, 100% 160px;
	background-position: left bottom 30px, right bottom 36px, center;
  background-repeat: no-repeat, no-repeat, repeat;
  box-shadow: initial;
}

.header-dashboard--tube > .container {
  min-height: 160px;
}

.header-dashboard--tube-inner {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-dashboard__nav--tube {
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-dashboard__nav--tube a {
  height: 40px;
  margin-right: 20px;
}

.header-dashboard__nav--tube a:last-of-type {
  margin-right: 0;
}

.tube-head {
  padding: 12px 22px;
  background: var(--color__m2);
  border-radius: 8px;
  margin-bottom: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tube-head__search-by {
  width: 100%;
  max-width: 425px;
  display: flex;
}

.tube-head__search-by__select {
  width: 145px;
}

.tube-head__search-by__input input {
  padding-right: 48px;
  background: #FFF url("../images-r/icons/search-icon.svg") right 12px center no-repeat;
}

.tube-head__search-by__select select,
.tube-head__search-by__input input {
  max-height: 42px;
  border: 1px solid #DFE5F1;
  padding: 9px 10px;
}

.tube-head__title {
  text-align: center;
  font-weight: 400;
}

.tube-head__view p {
  color: var(--color__m1);
  order: 3;
}

.tube-head__view p:first-of-type {
  order: 1;
}

.tube-head__view input {
  order: 2;
}

.tube-head__view input:not(:checked) + p {
  color: var(--color__b1);
}

.tube-head__view input:checked + p {
  color: var(--color__m1);
}

.tube-head__view input:checked + p + p {
  color: var(--color__b1);
}

.tube-text-view {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.tube-text-view .grammar,
.tube-text-view .cultural {
  width: 49%;
}

.tube-text-view .grammar .tube-head__search-by,
.tube-text-view .cultural .tube-head__search-by,
.tube-thumbnail-view .grammar .tube-head__search-by,
.tube-thumbnail-view .cultural .tube-head__search-by {
  display: none;
}

.topic {
  margin-bottom: 35px;
}

.topic:last-of-type {
  margin-bottom: 70px;
}

.topic__video-wrap {
  display: flex;
  padding-bottom: 20px;
  position: relative;
}

.topic__video-wrap-inner {
  display: flex;
  overflow-x: auto;
}

.topic__video-wrap-inner::-webkit-scrollbar {
  height: 0px;
}

.topic-slide-btn {
  width: 80px;
  height: 109px;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 40%,rgba(255,255,255,1) 100%);
  background-position: center;
  background-size: 100%;
  background-repeat: no-repeat;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  cursor: pointer;
}

.topic-slide-btn:after {
  width: 30px;
  height: 30px;
  content: "";
  background: var(--color__b2) url(../images-r/icons/arrow-slim-icon-w.svg) center no-repeat;
  border-radius: 50%;
  pointer-events: none;
  position: absolute;
  top: 39px;
  right: 15px;
  z-index: 11;
}

.topic-slide-btn--left {
  right: auto;
  left: 0;
  background: linear-gradient(to left, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 40%,rgba(255,255,255,1) 100%);
}

.topic-slide-btn--left:after {
  right: auto;
  left: 15px;
  background-image: url(../images-r/icons/arrow-slim-icon-w-left.svg);
  background-position: 10px center;
}

.video-thumbnail {
  display: flex;
  flex-flow: column;
}

.video-thumbnail a {
  display: inline-block;
  width: 190px;
  height: 109px;
  border-radius: 4px;
  border: 2px solid rgb(18, 86, 144);
  position: relative;
}

.video-text a.new-video:after,
.video-thumbnail a.new-video:after {
  content: "NEW";
  width: 59px;
  color: #CC9800;
  font-size: 16px;
  line-height: 28px;
  font-weight: bold;
  text-align: center;
  border-radius: 3px;
  background-color: #FFEBB3;
  box-shadow: 0 2px 4px 0 rgba(0,0,0,0.5);
  position: absolute;
  top: 5px;
  right: 4px;
}

.topic-title {
  font-size: 28px;
  line-height: 28px;
  font-weight: 600;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(122,133,153,0.26);
  /* margin: 0 0 10px; */
  margin: 0 0 25px;
}

.topics--text {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.topics--text .topic {
  width: 25%;
  margin: 0 40px 35px;
}

.topics--text .topic:only-of-type {
  width: 80%;
  margin: 0 auto 35px;
}

.topics--text > .topic ol {
  padding: 0 0 0 22px;
}

.topics--text > .topic ol li a {
  padding: 0 5px;
  position: relative;
}

.video-text a.new-video:after {
  width: 41px;
  line-height: 19px;
  font-size: 12px;
  box-shadow: none;
  top: 3px;
  right: -50px;
}

.topics--text > .topic ol li:hover a {
  color: var(--color__b1);
  background: var(--color__m2);
}

.home-quiz > div > div {
  max-width: 670px;
}

.transcript-block {
  width: 49%;
  max-width: 480px;
  padding: 23px 30px 40px;
  border-radius: 8px;
  box-shadow: 0 1px 4px 0 rgba(0,0,0,0.35);
  margin-bottom: 40px;
}

.transcript-block p {
  white-space: pre-line;
}

.transcript-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, .5);
  padding: 20px 0;
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.transcript-overlay > div {
  height: 90vh;
}

.transcript-overlay .transcript-block {
  background: #fff;
  margin: 10px;
  cursor: auto;
  height: 100%;
}

.transcript-overlay .transcript-block p {
  padding-right: 10px;
  overflow: auto;
}

.fancy-scroll::-webkit-scrollbar {
  width: 6px;  /* for vertical scrollbars */
  height: 6px; /* for horizontal scrollbars */
}

.fancy-scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

.fancy-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, .4);
  border: none;
  border-radius: 5px;
}

.fancy-scroll {
    overflow: auto;
}

.listening-quiz__remover {
  max-width: 840px;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 1px 4px 0 rgba(0,0,0,0.35);
  margin: 70px auto;
}

input[type="text"].listening-quiz__remover-input {
  width: 99px;
  height: 34px;
  padding: 2px;
  margin: 0 10px;
  border: 1px solid #125690;
}

input[type="text"].input-listening-quiz {
  /* max-width: 280px; */
  max-width: 140px;
  height: 34px;
  padding: 5px 15px;
  border: 1px solid #125690;
}

.input-listening-quiz-wrap {
  display: inline-flex;
  position: relative;
}

.listening-quiz__step-2 {
  margin: 56px 30px;
  padding-right: 320px;
}

.comprehension-list {
  width: 100%;
  margin-top: 57px;
}

.comprehension-list__item {
  padding-right: 350px;
}

.comprehension-list__item-inner {
  width: 100%;
  /* max-width: 820px; */
  padding: 24px 0 24px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.comprehension-list__item:nth-child(odd) {
  background: var(--color__m2);
}

.comprehension-list__item__input-wrap {
  width: 100%;
  max-width: 300px;
}

.comprehension-list__item__input {
  position: relative;
}

.comprehension-list__item__input:not(:only-child) {
  margin-bottom: 25px;
}

.comprehension-list__item__input:last-of-type {
  margin: 0;
}

.comprehension-list__item__input input {
  width: 100%;
  max-width: 194px;
  height: 34px;
  padding: 3px 5px;
  border: 1px solid var(--color__b2);
  border-radius: 3px 0 0 3px;
  font-size: 20px;
  font-weight: 600;
  color: var(--color__h1);
}

.comprehension-list__item__input .btn {
  min-width: 78px;
  height: 34px;
  padding: 0;
  margin-right: 10px;
  border-radius: 0 3px 3px 0;
  font-weight: 600;
  background: var(--color__b2);
}

.accent_buttons_wrapper {
  position: absolute;
  left: 80px;
  bottom: -24px;
  display: flex;
  justify-content: flex-end;
}

.accent_buttons_wrapper button:only-of-type,
.accent_buttons_wrapper button {
  width: 22px;
  height: 22px;
  color: var(--color__h1);
  font-size: 16px;
  border: 1px solid #D3D1FF;
  border-radius: 4px;
  cursor: pointer;
}

.accent_buttons_wrapper button:first-of-type {
  border-radius: 4px 0 0 4px;
}

.accent_buttons_wrapper button:first-of-type:before {
  width: 75px;
  content: "Add Accent:";
  color: #A6B0C3;
  font-size: 14px;
  line-height: 16px;
  font-weight: 600;
  position: absolute;
  left: -80px;
  top: 4px;
}

.accent_buttons_wrapper button:last-of-type {
  border-radius: 0 4px 4px 0;
}

.accent_buttons_wrapper button:only-of-type {
  border-radius: 4px;
}

/* Tube Listening Quiz */
.accent_buttons_wrapper--inside {
  left: auto;
  /* right: -5px; */
  right: 5px;
  bottom: 6px;
  /* -webkit-transform: translateX(100%);
  transform: translateX(100%); */
}

.accent_buttons_wrapper--inside button:first-of-type:before {
  display: none;
}

.hint-text {
  text-transform: uppercase;
  font-size: 12px;
  line-height: 15px;
  color: var(--color__b1);
  opacity: 0.55;
}

/* --- Listening Activities --- */
.listening-filters {
  width: 100%;
  border-radius: 4px;
  background-color: #FFFFFF;
  border: 1px solid #DFE5F1;
  transition: all .5s;
}

.listening-filters .select-wrapper {
  max-width: 140px;
}

.listening-filters .select-wrapper select {
  border: none;
  padding: 9px 5px;
  border-right: 1px solid #DFE5F1;
  border-radius: 3px 0 0 3px;
}

.listening-filters input:focus,
.listening-filters input {
  height: 100%;
	border-radius: 0;
	border: initial;
	padding: 10px 50px 10px 10px;
	background: url('../images-r/icons/search-icon.svg') right 19px center no-repeat;
	white-space: nowrap;
	overflow: hidden;
  text-overflow: ellipsis;
  border-right: 1px solid #DFE5F1;
}

.listening-sidebar {
  width: 280px;
  transition: all .5s;
}

.listening-sidebar-search-btn {
  width: 40px;
  height: 40px;
  padding: 10px;
  border: 2px solid var(--color__m1);
  border-radius: 0 10px 10px 0;
  border-left: none;
  background: var(--color__m2);
  cursor: pointer;
  position: absolute;
  top: 0;
  left: -40px;
  opacity: 0;
  transition: all .5s;
  /* transform: translate3d(-40px, 0, 0); */
}

.listening-sidebar-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--color__m1);
  margin-bottom: 30px;
}

.listening-filter-title {
  padding: 15px 30px;
  color: var(--color__h1);
  background-color: #F1F0FE;
  font-weight: 600;
}

.listening-filter {
  padding: 20px 15px 20px 30px;
}

.listening-filter li {
  margin-bottom: 10px;
}

.show-all-tube {
  display: flex;
  align-items: center;
  flex-flow: column;
  color: var(--color__m1);
  font-size: 14px;
  line-height: 18px;
  border-bottom: 2px solid #EDF1F7;
  margin-bottom: 15px;
}

.show-all-tube img {
  padding: 5px 0;
}

.listening-filter-items {
  height: auto;
  opacity: 1;
  transition: all .5s;
}

.listening-filter-items.collapse {
  height: 0;
  opacity: 0;
  transition: all .5s;
}

.tube-result {
  width: 100%;
  max-width: 800px;
  margin-left: 100px;
}

.listening-welcome-option {
  min-width: 300px;
  max-width: 300px;
  padding: 14px 24px;
  background-color: #EDF1F7;
  margin-right: 24px;
}

.results-item {
  width: 100%;
  background: var(--color__m2);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.results-item-number {
  width: 78px;
  font-size: 22px;
  font-weight: 600;
  color: var(--color__m1);
  background-color: #D8DDE5;
}

.results-item-title {
  padding: 15px 0 15px 48px;
}

.results-item-icon {
  width: 96px;
  color: #FFFFFF;
  background: var(--color__b1);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: column;
}

.results-item-icon img {
  height: auto;
  /* display: inline-block; */
}

/* --- Media Query --- */
@media all and (max-width: 1250px) {

  .header-dashboard--tube {
    height: 160px;
    background: linear-gradient(to bottom, #125690 0%,#125690 100px,#edf1f7 100px,#edf1f7 160px);
    background-size: 100% 160px;
    background-position: center;
    background-repeat: repeat;
  }

}

@media all and (max-width: 990px) {

  .topics--text .topic:only-of-type,
  .topics--text .topic {
    width: 47%;
    margin: 0 0 35px;
  }

  .topics--text .topic:only-of-type {
    width: 100%;
  }

  .video-text {
    padding-right: 50px;
  }

  .listening-quiz__step-2 {
    padding-right: 0;
  }

}

@media all and (max-width: 989px) {

  .tube-result {
    width: 100%;
    padding: 0 15px;
    /* max-width: 350px; */
    margin-left: 30px;
  }

  .comprehension-list__item {
    padding-right: 20px;
  }

  .listening-welcome-option-wrap {
    flex-flow: column;
  }

  .header__logo--tube {
    display: none;
  }

}

@media all and (max-width: 860px) {

  .comprehension-list__item-inner {
    flex-flow: column;
    align-items: start;
  }

  .comprehension-list__item__input-wrap {
    margin-top: 10px;
  }

  .listening-filters {
    align-items: initial;
    flex-flow: column;
    width: calc(100% - 70px); 
    margin: 0 auto 30px;
  }

  .listening-filters label {
    border-bottom: 1px solid #DFE5F1;
  }

  .listening-filters input {
    border: none;
  }

}

@media all and (max-width: 720px) {

  .tube-head {
    padding: 10px;
    flex-wrap: wrap;
  }

  .header-dashboard--tube {
    height: 200px;
    background: linear-gradient(to bottom, #125690 0%,#125690 100px,#edf1f7 100px,#edf1f7 200px);
    background-size: 100% 200px;
  }

  .topic-title,
  .tube-head__title {
    font-size: 24px;
    line-height: 28px;
    order: -1;
    text-align: left;
  }

  .topic-title {
    font-size: 18px;
  }

  .tube-head__view-wrap {
    order: 0;
    /* margin-bottom: 10px; this breaks video-text swither on mobile */
  }

  .tube-head__search-by {
    order: 1;
    width: 100%;
    max-width: 100%;
    flex-grow: initial;
    flex-basis: initial;
    margin-top: 5px;
  }
  
  .tube-head__search-by__select select,
  .tube-head__search-by__input input {
    max-height: 32px;
    padding: 4px;
  }
  
  .tube-head__search-by__input {
    flex: 1;
  }
  
  .tube-head__search-by__input input {
    padding: 4px 40px 4px 8px;
  }

  .header-dashboard__nav--tube {
    height: 100px;
    flex-flow: column;
    justify-content: space-evenly;
  }

  .header-dashboard__nav--tube > div {
    width: 100%;
    align-items: center;
    justify-content: space-evenly;
  }

  .transcript-block {
    width: 100%;
  }

  .transcript-overlay {
    overflow: auto;
  }

  .transcript-overlay > div {
    height: auto;
    position: absolute;
    top: 0;
  }

  .transcript-overlay .transcript-block {
    margin: 30px 0;
  }

  .listening-sidebar {
    width: 240px;
    height: 100vh;
    background: #FFF;
    overflow-y: auto;
    position: fixed;
    top: 100px;
    left: -240px;
    transition: all .5s;
    z-index: 10;
  }

  .tube-result h3 {
    padding: 0 40px;
  }

  .showSearch {
    overflow: hidden;
  }

  .showSearch .listening-sidebar {
    left: 0px;
    transition: all .5s;
  }

  .listening-sidebar-search-btn {
    left: 0px;
    opacity: 1;
    transition: all .5s;
  }

  .listening-search-hide {
    display: block;
    padding: 5px;
    transform: rotate(180deg);
    cursor: pointer;
  }

  .listening-sidebar-title {
    padding: 0 15px;
    margin-bottom: 15px;
  }

  .listening-filter-title,
  .listening-filter {
    padding: 7px 15px;
  }

  .listening-welcome-option-wrap {
    align-items: center;
  }

  .tube-result {
    margin: 0 auto;
    text-align: center;
    transition: all .5s;
  }

  .showSearch .listening-filters,
  .showSearch .tube-result {
    transition: all .5s;
    transform: translate3d(240px, 0, 0);
  }

  .listening-welcome-option {
    margin-right: 0;
  }

}

@media all and (max-width: 540px) {

  .tube-text-view .grammar,
  .tube-text-view .cultural,
  .topics--text .topic {
    width: 100%;
  }

  .header-dashboard--tube-inner h2 {
    font-size: 22px;
    line-height: 28px;
  }

  .results-item {
    flex-flow: column;
  }

  .results-item-number {
    width: 30px;
  }

  .results-item-title {
    padding: 15px;
  }

  .results-item-icon {
    flex-grow: 1;
    flex-basis: 0;
  }

}

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

  .tube-head__title,
  .tube-head__view-wrap {
    flex-grow: initial;
    flex-basis: initial;
  }

  .tube-head__view p {
    display: none;
  }

}

@media all and (max-width: 420px) {

  .header-dashboard--tube {
    height: 220px;
    background: linear-gradient(to bottom, #125690 0%,#125690 120px,#edf1f7 120px,#edf1f7 220px);
    background-size: 100% 220px;
  }

  .header-dashboard--tube-inner {
    height: 120px;
    flex-flow: column;
    align-items: start;
    justify-content: space-evenly;
  }

  .header-dashboard--tube-inner p {
    font-size: 12px;
    line-height: 16px;
    font-weight: 400;
  }

  .header-dashboard--tube-inner h2 {
    line-height: 24px;
  }

  .header-dashboard__nav--tube .btn {
    padding: 0;
    height: 35px;
    min-width: 145px;
    font-size: 14px;
  }

  .header-dashboard__nav--tube a {
    line-height: 40px;
  }

  .comprehension-list__item__input input {
    max-width: 150px;
  }

}
