/* Place all the styles related to the Letters controller here. */
/* They will automatically be included in application.css. */
/* You can use Sass (SCSS) here: http://sass-lang.com/ */

#error_explanation {
  border: 1px solid red;
  padding: 0.5em;
  margin-bottom: 2em;
  margin-top: 1em;
  background-color: var(--color-red);
  border-radius: 5px;
}

#error_explanation h2 {
  text-align: left;
  font-weight: bold;
  padding: 5px 5px 5px 15px;
  font-size: 12px;
  margin: -7px;
  background-color: #cc0000;
  color: var(--color-white);
}

#error_explanation ul li {
  font-size: 18px;
  color: var(--color-white);
  list-style: square;
}

.letter__author__avatar {
  border-radius: 100px;
  width: 100px;
  height: 100px;
  margin: auto;
}

.help {
  display: flex;
  flex-wrap: wrap;
  background-color: var(--color-hover-yellow);
  padding: 22px;
  border-radius: 5px;
  align-items: center;
  color: #222222;

  p, a, span {
    font-size: 16px;
    color: #222222;
  }

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

.help > * {
  margin-right: 22px;
}

.element--fade-out {
  visibility: collapse;
  opacity: 0;
  transition: visibility 0s 1s, opacity 2s linear;
}

.element--fade-in {
}

.actions__archive--top{
  width: 92%;
  margin: auto;
}

.actions--top, .actions__archive--top{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  .action {
    margin-bottom: 10px;
    margin-left: 5px;
    .btn{
      border-radius: 20px;
      padding: 10px 12px;
    }
    a{
      font-size: 15px;
      color: var(--color-purple);
      width: 100%;
    }
    img{
      filter: invert(22%) sepia(13%) saturate(2299%) hue-rotate(242deg) brightness(93%) contrast(90%);
      margin-right: 5px;
    }
  }
  .action:hover{
    img{
      filter: invert(100%) sepia(25%) saturate(357%) hue-rotate(191deg) brightness(118%) contrast(100%);
    }
    a{
      text-decoration: none;
      font-weight: bold;
      color: var(--color-white);
    }
  }
}
.letters {
  .table__head{
    font-weight: bold;
    text-shadow: 0px 0px 0.4px;
  }
  .table > tbody > tr > td{
    border-top: 0px;
  }
  .table > thead > tr > th{
    border-bottom: 0px;
    padding: 8px 0 8px 0;
  }
  .letters_container{
    .feeds {
      display: flex;
      flex-wrap: wrap;
      flex-direction: column;
      overflow: auto;
    }

    .feed {
      display: flex;
      flex-direction: row;
      align-items: center;
      padding: 0.5em 0em;
    }

    .feed > * {
      padding-right: 16px;
    }

    .feed__actions {
      display: flex;
      margin-left: auto;
    }

    .feed--odd {
      background-color: var(--color-white);
    }

    .feed--even {
      background-color: #f9f9f9;
    }

    td, a{
      color: var(--color-dark-blue);
    }
    td, a:hover{
      font-weight: bold;
      text-decoration: none;
    }
    a{
      font-size: 14px;
      line-height: 22px;
    }
    .letters__actions{
      display: flex;
      justify-content: start;
      a{
        margin-right: 7px;
      }
      img{
        filter: invert(16%) sepia(92%) saturate(706%) hue-rotate(206deg) brightness(96%) contrast(95%);
      }
    }
  }
  .modal__content-body h2{
    font-size: 24px;
  }
  /* .page__content { */
  /*   max-width: 80rem; */
  /* } */

  h1 {
    font-size: 3em;
  }

  h2 {
    font-size: 2.0em;
  }

  .archives__list {
    list-style-type: none;
    margin: 0;
    padding: 0;
  }

  .archives__list-item {
    text-align: center;
    a {
      font-size: 16px;
      font-family: "Lexend", sans-serif;
      color: var(--color-black);
    }
  }

  .card {
    border-radius: 15px;
    padding: 2em;
  }

  .card--subscribe {
    width: 38em;
    margin: 0 auto;
    overflow: initial;
  }

  .subscribe__submit {
    padding: .5em 1em;
    background: #eeeeee;
    border: 1px solid #cccccc;
    border-left-color: transparent;
    border-radius: 0 10px 10px 0;
  }

  .subscribe__email {
    margin: 0;
    border: 1px solid #cccccc;
    border-right-color: transparent;
    border-radius: 10px 0 0 10px;
  }

  .letter__subject{
    text-align: center;
    margin: 0 auto 20px auto;
    font-weight: bold;
  }

  .element__toolbar {
    visibility: collapse;
    margin-top: -5px;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    float: right;
    img{
      filter: invert(65%) sepia(10%) saturate(19%) hue-rotate(154deg) brightness(92%) contrast(83%);
      margin-left: 3px;
    }
    img:hover{
      filter: invert(100%) sepia(7%) saturate(1392%) hue-rotate(294deg) brightness(116%) contrast(79%);
    }
  }

  .element__toolbar-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;

    a {
      line-height: normal;
    }

    .element__toolbar-icon-plus {
      position: relative;

      &:hover {
        cursor: pointer;
      }
    }

    .element__toolbar-menu-plus-container {
      position: absolute;
      z-index: var(--z-toolbar-menu);
      width: 225px;
      left: -200px;

      visibility: collapse;

      &:hover {
        visibility: visible;
      }
    }

    .element__toolbar-menu-plus-separator {
      height: 8px;
    }

    .element__toolbar-menu-plus {
      display: flex;
      flex-direction: column;
      flex-wrap: wrap;
      background: var(--color-white);
      background-color: var(--color-white);
      border-radius: 4px;
      border: 1px solid var(--color-purple);
      box-shadow: 2px 2px 10px 0 rgba(0,0,0,0.05);

      a.element__toolbar-menu-plus-link {
        color: var(--color-purple);
        border-bottom: 1px solid var(--color-purple);
        line-height: 35px;
        font-size: 16px;
        text-align: right;
        padding-right: 0.5em;
      }
    }
  }

  .element__toolbar-icon-plus:hover .element__toolbar-menu-plus-container {
    visibility: visible;
  }

  .element-wrapper {
    position: relative;

    img.element--validated {
      position: absolute;
      top: -3px;
      right: -7px;
    }

    &:hover {
      opacity: 1;
    }
  }

  .element-wrapper:hover .element__toolbar {
    visibility: visible;
  }

  .element-wrapper .element__toolbar--visible {
    visibility: visible;
  }

  .header {
    width: 100%;
  }

  .avatar {
    width: 5em;
    height: 5em;
    border-radius: 100%;
    z-index: 1;
    display: block;
    position: relative;
    color: transparent;
    margin: auto;
  }

  textarea {
    display: block;
    width:100%;
  }

  .link {
    color: inherit;
    text-decoration: underline;
  }

  .txt--bold {
    font-weight: bold;
  }

  .margin_quatro--top {
    margin-top: 4em;
  }

  .margin_quatro--bottom {
    margin-bottom: 4em;
  }

  .margin_double--top {
    margin-top: 2em;
  }

  .margin_double--bottom {
    margin-bottom: 2em;
  }

  .margin_single--top {
    margin-top: 1em;
  }

  .margin_single--bottom {
    margin-bottom: 1em;
  }

  .margin_half--top {
    margin-top: 0.5em;
  }

  .margin_half--bottom {
    margin-bottom: 0.5em;
  }

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

  .flex {
    display: flex;
  }
  .table > tbody > tr > td{
    padding: 8px 0 8px 0;
  }
  .subscriber__info{
    width: 180px;
  }
  .subscriber__title{
    width: 106px;
  }
}

.page--subscriber{
  border: 0px solid var(--color-light-gray);
  max-width: 668px;
  width: 100%;
  margin: auto;
  border-radius: 5px;
  h1, h2{
    font-family: var(--font-family-text);
    font-weight: bold;
    margin-left: 10px;
    margin-right: 10px;
  }
  h1{
    font-size: 30px;
  }
  h2{
    font-size: 18px;
  }
}

@media screen and (max-width: 767px){
  .letters{
    .section__editor-bar{
      width: 24%;
    }
    .article__editor-bar{
      width: 34%;
    }
    .actions__archive--top{
      display: revert;
    }

    .actions--top{
      display: flex;
      width: 85%;
      justify-content: space-between;
      .action{
        a{
        font-size: 13px;
        }
      }
    }

    .card--subscribe{
      width: 95%;
    }
  }
  .page--subscriber{
    h2{
      font-size: 16px;
      margin-top: 20px;
      line-height: 1.4;
      margin-left: 10px;
      margin-right: 10px;
    }
    h1 {
      margin-left: 10px;
      margin-right: 10px;
    }
  }
}

@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
and (orientation : portrait)  {
  .letters{
    .actions--top{
      width: 50%;
    }
    .hidden-xs{
      display: initial !important;
    }
    .visible-xs{
      display: none !important;
    }
  }
}

@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
and (orientation : landscape)  {
  .letters{
    .page__content {
      max-width: 98rem;
    }
    .hidden-xs{
      display: initial !important;
    }
    .visible-xs{
      display: none !important;
    }
  }
}
@media only screen
and (min-device-width : 1024px)
and (max-device-width : 1366px)
and (orientation : portrait)  {
  .letters{
    .page__content {
      max-width: 100rem;
    }
  }
}

@media screen and (min-width: 1600px) {
  .modal .modal__container {
    width: 60em;
    height: 50em;
  }
}
