/* Place all the styles related to the Bots controller here. */

#page__container select{
  display: block;
  width: 95%;
  height: 43px;
  font-size: 14px;
}

.page__content {
  font-family: var(--font-family-text);
  select{
    display: block;
    width: 95%;
    height: 43px;
    font-size: 14px;

  }

  h1.organization-heading-name {
    margin-top: 0;
    line-height: 20px;
    font-size: 20px;
    a {
      color: var(--color-dark);
      font-size: 20px;
      font-weight: bold;
    }
  }

  ul.organization-menu-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;

    li {
      position:relative;
      color: var(--color-dark-blue);
      text-decoration:none;
      transition:0.2s;
      font-size: 15px;
      font-family: var(--font-family-text);
      list-style: none;
    }

    li:hover > a {
      font-weight: bold;
    }

    a {
      display:block;
      color: var(--color-dark-blue);
      text-decoration:none;
      transition:0.2s;
      font-size: 15px;
    }
  }

  h3, p {
    color: var(--color-dark);
  }
  h3{
    font-size: 18px;
  }
  p{
    font-size: 16px;
  }

  label{
    font-size: 16px;
  }
}

/* Bot menu */

.botheader__container{
  display: flex;
}

.botheader__nav-container{
  position: relative;
  top: -15px;
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  display: flex;
  .botheader__tabs{
    display: flex;
    border-bottom: 1px solid #dddddd;
  }
}

.botheader__avatar-name{
  margin-right: 25px;
  .botheader__avatar{
    text-align: center;
    img{
      display: initial;
      max-width: 50px;
    }
  }
}

.botheader__screen{
  padding-left: 0;
  margin-left: 0;
  padding: 10px;
}

.botheader__nav {
  position: relative;
  bottom: -20px;
  a {
    font-size: 15px;
    color: var(--color-dark);

    &:hover {
      text-decoration: none;
      color: var(--color-dark);
    }
  }

  li.active {
    a {
      font-weight: bold;
      color: var(--color-dark);
    }
  }
  .nav > li > a:hover {
    background-color: var(--color-white);
    font-weight: bold;
  }
}


/* description & menu on bot hover (my bots & team bots views) */

.mybots__container{
  margin: auto;
  display: flex;
  flex-wrap: wrap;
}
.bot__content:hover, .bundle__bot:hover {
  .mybot-settings__menu, .mybot-description__menu {
    display: block;
  }
}

.bundle__bot .dropdown-menu--bot-description{
  left: 55px;
}

.mybot-settings__menu, .mybot-description__menu {
  display: none;
  position: absolute;
  .mybot-settings__icon, .mybot-description__icon{
    width: 16px;
  }
  .mybot-settings__dropdown{
    width: 98px;
  }
  .mybot-description__dropdown{
    width: 245px;
  }
  .mybot-settings__dropdown, .mybot-description__dropdown {
    display: none;
    position: absolute;
    background-color: var(--color-white);
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    a.delete-link{
      color: var(--color-red);
    }
    a.delete-link:hover{
      color: var(--color-red);
      font-weight: bold;
    }
    a{
      color: var(--color-black);
    }
    a:hover{
      font-weight: bold;
      text-decoration: none;
    }
    p{
      font-size: 14px;
      line-height: 25px;
      color: var(--color-dark);
    }
  }
  .mybot-settings__dropdown, .mybot-description__dropdown a:hover {
    border-radius: 5px;
    color: var(--color-black);
    width: max-content;
  }
}
.mybot-settings__menu:hover .mybot-settings__dropdown {
  display: block;
}
.mybot-description__menu:hover .mybot-description__dropdown {
  display: block;
}

/* bot message */

.page__content .bot-message{
  margin-bottom: 20px;
  padding: 2%;
  border-radius: 5px;
  /*width: fit-content; */
  background-color: var(--color-hover-yellow);

  p, a {
    font-size: 15px;
    line-height: 24px;
    color: var(--color-dark);
  }

  a {
    text-decoration: underline;
  }

  a:hover {
    color: var(--color-dark);
  }

  img {
    width: 35px;
  }
}

.bot-message__button{
  position: absolute;
  right: 10px;
}

.bot-message__content{
  display: flex;
}

.bot-message__icon{
  margin-right: 20px;
  margin-top: auto;
  margin-bottom: auto;
}

/* Collaborators view */

.page--collaborators{
  .form-horizontal{
    display: flex;
    select {
      width: 95%;
    }
  }
  input[type="checkbox"]{
    margin-top: 0;
  }
}

/* Settings view */

.page--settings{
  .form-group{
    width: 65%;
    display: flex;
    margin-top: 20px;
    input{
      margin-right: 20px;
    }
  }
  .delete-bot__text-and-cta{
    margin-top: 40px;
    display: flex;
    p{
      color: var(--color-red);
      margin-right: 20px;
      font-weight: bold;
      margin-top: auto;
      margin-bottom: auto;
    }
  }
}

.info-text {
  font-weight: normal;
  font-family: var(--font-family-text);
  font-size: 16px;
  line-height: 1.5;
  color: #1d2d35;
}

.new_whitelist_address{
  .form-group{
    width: 45%;
    display: flex;
    #whitelist_address_name{
      margin-right: 15px;
      padding: 21px 18px;
    }
  }
}
.bot-space__share {
  .form-horizontal{
    display: flex;
    width: 45%;
    margin-top: 20px;
    margin-right: 15px;
    .input-group{
      margin-right: 15px;
    }
    input[type="text"]{
      padding: 21px 18px;
      border-radius: 5px;
    }
  }
}

/* History view */

.page--history{
   .history-bot-header{
    margin-top: 40px;
  }

  .history-bot-explanations{
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.7;
    span{
      font-size: 16px;
    }
  }
}
.history__samples{
  .history__button{
    text-align: right;
    width: 100%;
  }
}
#training-history-table {
  margin: auto;
  max-width: 100%;
  .match { background: var(--match-color); }
  .ignore { background: var(--ignore-color); }
  .dontmatch { background: var(--dontmatch-color); }
  input[type='checkbox'] {
    width: 14px;
    height: 14px;
    margin-right: 5px;
  }
  .history__article {
    color: gray;
    font-size: 16px;
    a {
      font-size: 16px;
      font-weight: bold;
      color: var(--secondary-color);
    }
    .history__domain {
      color: gray;
      font-size: 16px;
    }
    .history__text {
      color: #555555;
      font-size: 14px;
    }
    span.history__text{
      font-weight: normal;
    }
  }
}

.new_transfer{
  font-size: 16px;
}

#url, .section__textfield{
  font-size: 12px;
}

.panel-body {
  padding: 16px;
}
.addon--pointer {
  cursor: pointer;
}
.new_transfer{
  font-size: 16px;
}
.trick {
  display: none;
}
.trick.trick--current {
  display: block;
}
.newsletter__bubble-name {
  font-size: 24px;
  font-weight: bold;
}
.normal-text{
  margin-top: 15px;
}
.see-advices__buttons .btn{
  margin-right: 10px;
}
.normal-text{
  margin-top: 15px;
}

#mybotnewform1{
  margin-left: auto;
  margin-right: auto;
}

#mybotnewform1{
  margin-left: auto;
  margin-right: auto;
}

#bot_name{
  margin-left: auto;
  margin-right: auto;
  margin-top: 20px;
}

#q .search-bar {
  width: 60%;
  margin-left: auto;
  margin-right: auto;
}

.mybot-article{
  a {
    font-size: 16px;
    font-weight: bold;
    color: var(--color-dark);
    font-family: "Noto Serif", serif;
    line-height: 24px;
    font-size: 16px;
    font-weight: bold;
  }
  .domain {
    a, a:hover, a:visited {
      color: var(--color-blue);
      font-size: 15px;
      font-weight: normal;
    }
    a:hover {
      text-decoration: underline;
    }
  }
  .text {
    color: #555555;
    font-size: 15px;
    font-weight: normal;
  }
  .hashtags {
    a, a:hover, a:visited {
      color: #b0b0b0;
      font-size: 14px;
      font-family: "Lexend", sans-serif;
    }
    a:hover {
      text-decoration: underline;
    }
  }
  a:hover, a:visited {
    text-decoration: none;
    color: var(--color-dark-blue);
    font-weight: bold;
  }
}

a.external_url {
  font-size: 14px;
  color: #1d2d35;
  word-break: break-all;

  &:hover {
    text-decoration: underline;
  }
}

a.newsletter {
  font-size: 15px;
  color: var(--color-black);

  &:hover {
    color: var(--color-teal);
  }
}

a.mybot-done {
  display: block;
  font-size: 15px;
  color: var(--color-dark-blue);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  text-decoration: underline;

  &:hover {
    color: var(--color-dark-blue);
    font-weight: bold;
  }
}

input[type='checkbox'] {
  margin: 0 0 0 0;
  width: 14px;
  height: 14px;
  margin-right: 5px;
}

/* Newsletters view */

.newsletters__date {
  a {
    font-weight: bold;
    color: var(--color-dark-blue);
    font-size: 16px;
  }
  a:hover {
    color: var(--color-dark-blue);
  }
}

.newsletters__date--inprogress {
  font-weight: bold;
  color: var(--color-blue);
  font-size: 16px;

  a {
    font-weight: bold;
    color: var(--color-blue);
    font-size: 16px;
  }
}

p.large-text {
  font-weight: bold;
  font-size: 16px;
  line-height: 1.1;
  color: var(--secondary-color);
}

p.normal-text {
  font-weight: normal;
  font-size: 16px;
  line-height: 30px;
  span{
    font-size: 18px;
  }
}

p.small-text {
  font-weight: normal;
  font-size: 16px;
  line-height: 1.1;
}

/* Bot settings */

.page--settings .bots__days, .page--settings .bots__vacation{

}
.page--settings .bots__langs, .page--settings .bots__days-checkbox, .page--settings .bots__vacation-checkbox{
  display: flex;
  label{
    font-weight: normal;
  }
}
.page--settings .bots__langs, .page--settings .bots__days, .page--settings .bots__vacation{
  label{
    margin-right: 20px;
  }
  input{
    margin-top: 3px;
  }
}

.botcolright{
  p{
    font-size: 16px;
  }
  .glyphicon-delete-article{
    text-align: right;
    margin-right: 19px;
  }
}

.carousel {
  max-width: 18%;
  margin-left: auto;
  margin-right: auto;
}

.carousel-control.left, .carousel-control.right  {
  background-image: none;

  i {
    color: var(--color-dark);
  }

  .glyphicon-chevron-right {
    margin-right: -50px;
  }

  .glyphicon-chevron-left {
    margin-left: -50px;
  }
}

.carousel-indicators{
  display: none;
}


@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
and (orientation : portrait) {

  .page--bots .mybot {
    margin-bottom: 0% !important;
    border-bottom: 0 !important;
    margin-top: 0% !important;
  }

/* Bot header */

  .botheader__avatar-name{
    .botheader__avatar{
      img{
        max-width: 70px;
      }
    }
  }

  .botheader__description{
    text-align: center;
  }
  .page--bots .bot__content .mybot-settings__menu {
    top: 40px;
    right: 295px;
  }
  .bot-space__content{
    margin-top: 20px;
  }

  .bot-space__share .form-horizontal{
    width: 65%;
  }
  .new_whitelist_address .form-group{
    width: 65%;
  }

  .botheader__explain {
    width: 66%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
  }

  .botheader__screen {
    padding-left: 40px;
    margin-left: 40px;
  }

  #page__container.page--settings{
    .settings-list{
      margin-left: 12%;
    }
  }

  .page--newsletters{
    .bot__avatar{
      text-align : center;
    }
    .img-responsive{
      display: revert;
    }
    .newsletters__list{
      margin-left: 0;
    }
  }
}

@media only screen
and (min-device-width : 708px)
and (max-device-width : 1024px)
and (orientation : landscape) {
  .bot-space__content{
    margin-top: 20px;
  }
  .botheader__nav{
    bottom: 0;
   }
  .page--bots .bot__content .mybot-settings__menu {
    right: 90px;
  }
}


 @media only screen
and (min-device-width : 1024px)
and (max-device-width : 1366px)
and (orientation : portrait) {

  .page--bots .bot__content .mybot-settings__menu {
    right: 83px;
    top: 20px;
  }

  .botheader__explain {
    width: 100%;
  }

  .botheader__nav{
    bottom: 0;
  }

  .botheader__nav-container{
    width: 100%;
  }
  .botcol {
    text-align: center;
  }
  .page--subscribers{
    .bot__avatar{
      text-align : center;
    }
    .img-responsive{
      display: revert;
    }
  }
  #page__container.page--settings{
    .bot__avatar{
      text-align : center;
    }
    .img-responsive{
      display: revert;
    }
    .settings-list{
      margin-left: 12%;
    }
  }
}

@media only screen
and (min-device-width : 1024px)
and (max-device-width : 1366px)
and (orientation : landscape) {
  .page--newsletters{
    .bot__avatar{
      text-align : center;
    }
    .img-responsive{
      display: revert;
    }
    .newsletters__list{
      margin-left: 25%;
    }
  }
}


@media (max-width: 992px) {
  /* Liste développée à la main : ces sélecteurs n'ont pas la même spécificité, et `&` prend celle du plus */
  /* spécifique d'entre eux (il vaut :is(…)), là où Sass écrivait la liste. Imbriquée, la règle changerait */
  /* de rang dans la cascade sans changer de texte (docs/hotwire.md, étape 6d). */
  .page--bots .bot__content:hover .mybot-settings__menu,
  .bundle__bot:hover .mybot-settings__menu {
    display: none;
  }
  .page--bots .bot__content:hover .mybot-description__menu,
  .bundle__bot:hover .mybot-description__menu {
    display: none;
  }
  .botheader__nav-container {
    display: block;
  }

  .botheader__screen {
    margin-top: 3%;
  }
}

@media (max-width: 767px) {

  .bots__days-checkbox{
    flex-wrap: wrap;
    margin-top: 10px;
    width: 90%;
  }
  .bots__vacation-checkbox{
    margin-top: 10px;
  }

  .botheader__container{
    display: unset;
  }
  #bot_name {
    margin-top: 6px;
  }
  .bot-message{
    padding: 4%;
  }

  .botheader__avatar-name{
    margin-top: 20px;
    margin-right: 0;
  }

  .bot-message__content{
    display: revert;
    img{
      margin-top: 20px;
    }
  }
  .bot-message__body{
    margin-top: 20px;
  }

  .botheader__avatar-name{
    .botheader__avatar{
      img{
        max-width: 70px;
      }
    }
  }

  /* Liste développée à la main : ces sélecteurs n'ont pas la même spécificité, et `&` prend celle du plus */
  /* spécifique d'entre eux (il vaut :is(…)), là où Sass écrivait la liste. Imbriquée, la règle changerait */
  /* de rang dans la cascade sans changer de texte (docs/hotwire.md, étape 6d). */
  .page--bots .bot__content:hover .mybot-settings__menu,
  .bundle__bot:hover .mybot-settings__menu {
    display: none;
  }
  .page--bots .bot__content:hover .mybot-description__menu,
  .bundle__bot:hover .mybot-description__menu {
    display: none;
  }

  .page--bots .bot__content{
    width: 160px;
  }

  .botheader__nav-container{
    margin-top: 0;
  }
  .botheader__nav {
    bottom: 0;
  }
  .page--settings{
    .form-group{
      width: 100%;
      display: revert;
    }
    .transfer-owner__cta{
      margin-top: 20px;
    }
    .delete-bot__text-and-cta{
      margin-top: 20px;
      display: revert;
      text-align: center;
      p{
        margin-right: 0;
      }
      a{
        margin-top: 20px;
      }
    }
  }
  .bot-space__share .form-horizontal{
    display: revert;
    width: 92%;
  }

  .new_whitelist_address .form-group{
    display: revert;
    width: 92%;
    input {
      margin-bottom: 20px;
      font-size: 16px;
    }
  }
  .info-text{
    margin-bottom: 10px;
  }
  .botheader__description{
    text-align: center;
  }
  #mybot-history__container{
    width: 100%;
  }

  .botheader__explain{
    display: flex;
    .botheader__explaintext{
      display: none;
    }
    .botheader__scoretext{
      font-size: 12px;
    }
  }

  .history__samples{
    margin-top: 40px;
  }
  .history__samples{
    .history__button{
      text-align: right;
      width: 100%;
    }
  }

  .header__container{
    .img-responsive{
      display: revert;
    }
    .bot__avatar{
      text-align: center;
    }
  }

  .history-bot-header img{
    text-align: center;
  }

  .history__samples{
    margin-bottom: 40px;
  }

  .page--history{
    .col-md-12{
      padding: 0;
    }
  }

  #training-history-table {
    max-width: 100%;
  }
  .page--collaborators{
    .form-horizontal{
      .input-group {
        width: 100%;
      }
    }
  }

  .bot-creation__content{
    padding: 30px 15px 30px 15px;
  }

  p.normal-text {
    span{
      font-size: 16px;
    }
  }
  .bot-space__content{
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    .bot-space-message{
      margin-bottom: 40px;
      border-radius: 5px;
      p{
        font-size: 16px;
      }
      span{
        font-size: 16px;
      }
    }
  }

  h3{
    font-size: 16px;
  }
  .botheader__screen {
    margin-left: 0px;
  }
  .botcolright{
    padding-right: 15px;
    display: block;
  }
  a.mybot-submit{
    margin-left: 0;
  }
  p{
    font-size: 16px;
  }
  p.large-text {
    font-size: 16px;
  }

  p.normal-text {
    font-size: 16px;
  }
  .botheader__screen{
    padding: 10px;
    height: fit-content;
  }

  .carousel{
    max-width: 40%;
  }
  .bots__langs, .bots__days, .bots__vacation{
    display: flex;
    flex-wrap: wrap;
  }
  .bots__days{
    width: 101%;
  }
  .collaborators__buttons{
    display: table-cell;
    input{
      margin-bottom: 20px;
      margin-left: 9px;
    }
  }
}
