@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;500;600&display=swap');

body {
  font-family: 'Work Sans', sans-serif;
}

.color__grey {
  background-color: #f5f5f5;
}

.row {
  height: auto;
}

.navbar {
  background-color: #e57373;
}

.navbar-dark .navbar-toggler {
  border: none;
  .navbar-close-icon {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    vertical-align: middle;
    position: relative;
    &::before {
      content: "";
      width: 1.5rem;
      height: 2px;
      background-color: white;
      left: 0;
      display: inline-block;
      position: absolute;
      top: 8px;
      transform: rotate(45deg);
  }
  &::after {
      content: "";
      width: 1.5rem;
      height: 2px;
      background-color: white;
      left: 0;
      display: inline-block;
      position: absolute;
      top: 8px;
      transform: rotate(-45deg);
  }
  }
}

.nav-link {
  color: rgb(99, 97, 97);
  padding: 1rem .75rem;
  cursor: pointer;
}
.nav-link:hover {
  color: $black;
}
.table tbody th, .table tbody td {
  padding: 1rem;
}

.span {
  display: block;
  margin-bottom: .4rem;
}

.badge {
  margin: .1rem;
}
.highTrend {
  color: $white;
  background-color: $bg-color;
}

.btn__kw {
  padding: .75rem;
  background-color: $bg-color-lighten-2;
  border: none;
  outline: none;
  border-radius: 5px;
  transition: all .2s;
  &:hover {
    background-color: $bg-color-lighten-1;
  }
  &:focus {
    outline: none;
  }
}

.badge {
  font-size: 1rem;
}
.card-img-top {
  width: 150px;
  height: 200px;
}

.btn__del {
  display: inline-block;
  width:35px;
  height: 35px;
  position: absolute;
  top: 6px;
  right: 6px;
  outline: none;
  border: none;
  border-radius: 50%;
  padding: 10px;
  background-color: red;
  color: $white;
  transition: all .3s;
  box-shadow: 0 0 6px rgb(179, 179, 179);
  &:hover {
    background-color: rgb(176, 238, 228);
  }
  i {
    font-size: 1.1rem;
    line-height: 1rem;
  }
}

.btn__sub {
  display: inline-block;
  position: absolute;
  top: 6px;
  right: 6px;
  outline: none;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  transition: all .3s;
  color: black;
  background-color: rgb(224, 221, 221);
  box-shadow: 0 0 6px rgb(179, 179, 179);
  &:hover {
    color: $white;
    background-color: gray;
  }
}
.group__row {
  height: auto;
  margin-bottom: 2rem;
}
.card__subsribed {
  position: relative;
}
.text-muted {
  letter-spacing: 1px;
  font-size: 1.3rem;
}
.words__block {
  height: 3.5rem;
  overflow: hidden;
}
.autoHeight {
  height: auto;
}

.group__title {
  text-align: left;
}
.footer__txt {
  position: fixed;
  bottom: 1rem;
  left: 3rem;
  opacity: 0.7;
}
.form-group-center {
  width: 90%;
  position: absolute;
  top: 30%;

}
.group__tag {
  background-color: $bg-color-lighten-1;
  width: 10rem;
  color: #f5f5f5;
  height: 3rem;
  font-size: 1.5rem;
  line-height: 2.5rem;
  border-radius: 10px 10px 0 0 ;
}

.btn__genCal {
  color: white;
  &:hover {
    color: black;
  }
}

.btn__close {
  background-color: $bg-color !important;
  color: #f5f5f5 !important;
}

.img_fr {
  width: 100%;
  height: 12rem;
  img {
    width: 100%;
    height: 100%;
  }
}

.url_fr {
  padding: 0.5rem;
  border: 2px solid grey;
  border-radius: 5px;
}
.step {
  display: inline-block;
  padding: 6px 12px;
  background-color: $bg-color;
  color: white;
  border-radius: 15px;
}

.search__form {
  width: 90%;
  max-width: 38rem;
  position: relative;
  border-bottom: 2px solid gray;
  margin-top: 2rem;
  margin-bottom: 1rem;
  &:hover {
    transform: scale(1.05);
  }
  .search__bar {
    border: none;
    transition: all .3s;
    width: 75%;
    @include x-small {
      width: 67%;
    }
    &:focus {
      outline: none;
    }
  }
  .search__btn {
    position: absolute;
    right: 0px;
    top: 0px;
    background: transparent;
    border: none;
    outline: none;
    color: black;
    transition: all .3s;
    font-size: 1.2rem;
    @include x-small {
      font-size: 1rem;
    }
    &:hover {
      color: $bg-color;
      transform: scale(1.01);
    }
  }
  .warnmsg {
    position: absolute;
    color: red;
    font-size: 1rem;
    top: 100%;
    left: 0%;
  }
}

.usernews__table__title {
  display: inline-block;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
  position: relative;
  text-align: left;
  &::after {
    position: absolute;
    left: 30%;
    bottom: -10px;
    width: 80%;
    height: 1.5rem;
    content: " ";
    background-color: $bg-color-lighten-2;
    z-index: -1;
  }
}

.col-card {
  @include medium {
    margin-bottom: 1.5rem;
  }
}

.col-table {
  @include medium {
    margin-bottom: 2rem;
  }
}

.card {
  box-shadow: 0px 0px 8px rgb(211, 211, 211);
}

.card-body {
  padding: 0.5rem;
}

.btn__searchedWord {
  padding: .5rem;
  border: 1px solid grey !important;
  border-radius: 10rem !important;
  margin-right: 1rem;
  cursor: pointer;
  @include x-small {
    font-size: .9rem;
    padding: .2rem .3rem !important;
  }
  .btn__delete {
    display: inline-block;
    margin-left: 1rem;
    @include x-small {
      margin-left: .5rem;
    }
  }
}

.history__block {
  margin-bottom: 4rem;
}

.calendar-parent {
  height: 85vh;
  margin-bottom: 4rem;
  box-shadow: 0px 0px 5px rgb(211, 211, 211);;
}

.cv-item {
  height: 2rem;
}
.cv-item.isHovered {
  white-space: normal;
  word-wrap: break-word;
  height: 4rem;
}

.group__box {
  display: flex;
  align-items: center;
  .select {
    width: 12rem;
    .selector {
      border-radius: 10px;
      border: 1px solid $bg-color;
      padding: 6px;
      width: 12rem;
      &:focus-visible {
        border: none;
      }
    }
  }
}
.group__btn {
  border-radius: 10px;
}
.btn-group .btn__date {
  color: $bg-color;
  border: 1px solid $bg-color;
  background-color: transparent;
  padding: .5rem;
  width: 4rem;
  transition: all .4s;
}

.btn-group .btn__date:nth-of-type(1) {
  border-radius: 5px 0  0 5px;
}
.btn-group .btn__date:nth-of-type(3) {
  border-radius: 0 5px 5px 0;
}
.btn-group .btn__date:hover {
  background-color: $bg-color;
  color: $white;
}

.btn-group .btn__date.active {
  background-color: $bg-color;
  color: $white;
}

.cv-header {
  &-day {
    background-color: transparent !important;
  }
  background-color: $bg-color-lighten-1 !important;
  border-color: $bg-color-lighten-1 !important;
  padding: .5rem;
  .cv-header-nav {
    border: $white;
    border-radius: 10px;
    button {
      padding: 10px;
      background-color: white;
      transition: all .2s;
      &:hover {
        background-color: rgb(141, 140, 140);
        color: $white;
      }
    }
    .previousYear {
      border: 1px solid $white;
      border-radius: 10px 0 0 10px;
    }
    .nextYear {
      border: 1px solid $white;
      border-radius: 0 10px 10px 0;
    }
    .previousPeriod {
      border-right: none;
      border-top-color: white;
      border-bottom-color: white;
    }
    .nextPeriod {
      border-left: none;
      border-top-color: white;
      border-bottom-color: white;
    }
    .currentPeriod {
      border-top-color: white;
      border-bottom-color: white;
    }
  }
}

.periodLabel {
  color: $white;
}

.today {
  background-color: $white !important;
  .cv-day-number {
    color: $white;
    background-color: $bg-color;
    border-radius: 50%;
  }
}

.theme-default .cv-item {
  border-color: $bg-color !important;
  background-color: #fae5e5 !important;
  border-radius: 5px !important;
}

.b-table-sticky-header {
  max-height: 400px;
}

.step__text {
  margin-right: 2rem;
  color: white;
  font-size: 1.4rem;
  background-color: #1266f1;
  box-shadow: 1px 1px 3px 1px rgb(168, 168, 168);
  padding: .5rem .75rem;
  border-radius: 3.5rem;
}
/* search bar */
.text_input {
  margin: 1.5rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
}
/* .search__form {
  width: 45rem;
  margin: 2rem 1.5rem;
} */
.text__bar {
  width: 420px;
  height: 150px;
  padding: .5rem;
  transition: all .3s;
  border: 3px solid rgb(187, 187, 187);
  border-radius: 10px;
}
input[type="radio"] {
  display: none;
}
input[type="radio"]:checked + label {
  outline: 4px solid #1266f1;
}

/* .search__btn {
  padding: 8px 24px;
} */

.submit.disabled {
  pointer-events: none;
  background-color: rgb(148, 147, 147);

}
.search__form .text__bar:focus {
  box-shadow: 1px 1px 3px 1px #1266f1;
  border-radius: 10px;
}

.h3 {
  font-size: 2rem;
}

.characs {
  margin: 2rem 1.5rem;
}
.characs_fr {
  width: 120px;
  height: 150px;
  object-fit: cover;
}
.characs_fr > img {
  width: 100%;
  height: 100%;
} 

.back_fr {
  width: 180px;
  height: 150px;
  object-fit: cover;
}
.back_fr > img {
  width: 100%;
  height: 100%;
} 
.submit {
  color: white;
  font-size: 1.4rem;
  background-color: #1266f1;
  box-shadow: 1px 1px 3px 1px rgb(168, 168, 168);
  padding: .75rem 2rem;
  border-radius: 3.5rem;
  outline: none;
  transition: all .3s;
}
.submit:hover {
  transform: scale(1.05);
}
/* card */
.card{
  transition: all .3s;
  cursor: pointer;
}
.card:hover {
  transform: scale(1.05);
}
.card.card__notHover {
  transform: scale(1);
}
.card-title {
  font-size: 1.3rem;
}
/* top card */
.card__grback {
  background-image: linear-gradient(105deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.9) 75%, #1266f1 75%, #1266f1 100%);
  background-position: center;
  background-size: contain;
  margin-top: 2rem;
}
.card__left {
  width: 75%;
}
.card__url {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}
.card__url__icon {
  display: inline-block;
  margin-right: 1rem;
  font-size: 1.4rem;
}
.card__intro {
  font-size: .9rem;
  line-height: 1.5rem;
}
.intro_text {
  padding-top: .5rem;
  padding-bottom: .5rem;
  padding-left: 4rem;
}
.intro_text:nth-of-type(2) {
  padding-left: 3rem;
}
.intro_text:nth-of-type(3) {
  padding-left: 2rem;
}
.intro_text:nth-of-type(4) {
  padding-left: 1rem;
}
.intro_num {
  display: inline-block;
  background-color: lightblue;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  text-align: center;
  line-height: 20px;
  position: relative;
  z-index: 2;
}
.intro_num::after{
  content: " ";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 22px;
  border-left: 2px solid gray;
  transform: rotate(25deg);
  z-index: 1;
}
.intro_num_last::after {
  display: none;
}
.download {
  margin-top: 1.5rem;
  transition: all .3s;
}
.download:hover {
  background-color: #1266f1;
  color: white;
}
/* rank card */
.card__rank__title {
  font-weight: 500;
}
.card__rank__title i {
  display: inline-block;
  margin-right: .5rem;
  font-size: 1.2rem;
}
.rank__mark {
  font-size: 1.4rem;
  line-height: 1.4rem;
}
.rank_num {
  font-size: 2rem;
}
/* chart */
.chart {
  width: 600px;
  height:400px;
  margin:1.5rem auto;
}
.animate_fade{
  opacity: 0;
  transform: translateY(-30%);
  transition: all 1.2s;
}
.fade_up{
  transform: translateY(0%);
  opacity: 1;
}
.intro__last {
  width: 8rem;
  height: auto;
  text-align: center;
  line-height: 1.5rem;
}
.youtube__icon {
  display: block;
  font-size: 2rem;;
}
.animate_in {
  opacity: 0;
  transform: translateX(-30%);
  transition: all 1s;
}
.animate_in:nth-of-type(2) {
  transition-delay: 1s;
}
.animate_in:nth-of-type(3) {
  transition-delay: 2s;
}
.fade_in{
  transform: translateX(0%);
  opacity: 1;
}

.popular__card {
  color: gray;
  text-decoration: none;
  font-weight: 600;
  .card {
    padding: 1rem;
    .popular__word {
      font-size: 1.2rem;
      color: gray;
      margin-left: 1.5rem;
      margin-right: 2rem;
      @include small {
        font-size: 1rem;
        color: gray;
        margin-left: .5rem;
        margin-right: .5rem;
      }
    }
    @include small {
      padding: .5rem;
    }
  }  
  &:hover {
    text-decoration: none;
    color: $black;
    .popular__word {
      color: $black;
    }
  }
}

.btn__showmore {
  background-color: white;
  border: none;
  outline: none;
  box-shadow: 0 0 6px 2px rgb(179, 179, 179);
  border-radius: 3rem;
  padding: .4rem 2.5rem;
  letter-spacing: 1px;
  transition: all .3s;
  &:hover {
    transform: scale(1.05);
    background-color: $bg-color;
    color: $white;
  }
}

.badge {
  font-size: 1rem !important;
}

.kw {
  &__title {
    display: inline-block;
    margin-right: 2rem;
  }
  &__query {
    display: inline-block;
    font-size: 1.5rem;
    margin-right: 1rem;
  }
  &__icon {
    font-size: 1.1rem;
    &__up {
      color: green;
    }
    &__down {
      color: red;
    }
  }
}

.reltopic {
  .card-body {
    padding: .5rem;
    margin-bottom: 0;
    font-size: 1.2rem;
  }
  &__title {
    display: inline-block;
    margin-right: .5rem;
    font-size: 1.2rem;
  }
  &__tag {
    border: 1px solid #dd6565;
    color: #dd6565;
    font-weight: 400;
  }
}

.card:hover {
  transform: none;
}

.hotWord{
  &__card {
    padding: .5rem;
    &__title {
      font-size: 1.2rem;
    }
    &__muted {
      font-size: .9rem;
    }
    &__num {
      font-weight: 500;
      color: $bg-color;
    }
  }
  .card-body {
    padding: 0;
  }
}

.sub__date {
  background-color: transparent;
  padding: .25rem .5rem;
  color: $bg-color;
  border: 1px solid $bg-color;
  outline: none;
  border-radius: 10px;
  margin-left: .5rem;
  &:hover {
    background-color: $bg-color;
    color: $white;
  }
}

.mx-input:hover {
  border-color: $bg-color;
}


