@import '../common/_typography';

.viva_styles_master {
  /* statics  */
  @import '../common/_variables';
  @import '../common/_mixins';
  @import '../common/_animations';
  @import '../common/_extends';

  /* components */
  @import '../common/components/_buttons';

  @media (max-width: 1536px) {
    width: 70vw;
    max-width: 70vw;
  }

  @media (max-width: 1200px) {
    width: 80vw;
    max-width: 80vw;
  }

  @media (max-width: 900px) {
    width: 90vw;
    max-width: 90vw;
  }

  & {
    display: flex;
    flex-direction: column;
    margin: auto;
    padding: 1rem;
    width: 60vw;
    max-width: 60vw;
    font-size: 1rem;
  }

  .transcription-type-cta {
    color: darkgray;
    font-variant: all-small-caps;
    font-size: 14px;
  }

  .transcription-type-cta-active {
    color: black;
  }

  .my-1 {
    margin: 5px 0;
  }

  .my-1em {
    margin: 1em 0;
  }


  .title {
    color: $vi-dark-gray;
    text-transform: uppercase;
    font-weight: bold;
  }

  .title-value {
    color: black;
  }

  .cta-section {
    text-align: right;
    margin-top: 1rem;
  }

  .flex-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;

    @media (max-width: 600px) {
      flex-direction: column;
    }
  }

  .flex-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .title-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;

    .title-col {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      align-items: flex-start;
    }
  }

  .w-50 {
    min-width: 50%;
    max-width: 50%;
    width: 50%;

    @media (max-width: 600px) {
      min-width: 100%;
      max-width: 100%;
      width: 100%;
    }
  }

  .p-1 {
    padding: 1rem;
  }

  .hidden {
    display: none;
  }

  .section {
    .title-section {
      display: flex;
      flex-direction: row;
      justify-content: start;
      align-items: center;
    }

    .copy-btn {
      display: none;
      cursor: pointer;
      margin-left: 1rem;
      background-color: transparent;
      border: none;
      bottom: 0;
      cursor: pointer;
      padding: 0;

      & svg {
        height: 16px;
        width: 14px;

        path {
          fill: $vi-grey;
          transition: fill .2s ease-in-out;
        }
      }

      &:hover {

        svg,
        svg path {
          fill: $vi-primary-color;
        }
      }

      &--success {
        display: block;
        animation: fill 0.3s ease-in-out 0.3s forwards, scale 0.3s ease-in-out 0.6s both;

        .checkmark {
          height: 20px;
          width: 20px;

          &__circle {
            fill: $vi-green;
          }

          &__check {
            fill: white;
          }
        }
      }
    }

    &:hover .copy-btn {
      display: block;
    }
  }

  .language-picker {
    background-color: darken($vi-bg-gray, 4%);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 0 4px 4px;
    transition: background-color .3s ease-in-out;

    &:hover {
      background-color: $vi-hover-bg-gray;
      outline: none;
    }

    &:focus {
      outline: none;
    }
  }
}