@import '@/sass/style.scss';

.Header {
  @include z-layer-3;
  height: fit-content;
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;

  .container,
  .container--with-title {
    @include factor-a-family;
    background-color: $mostly-black-green;
    color: $very-soft-green;
    margin: 0 auto;
    max-width: 768px;
    padding: 10px 16px;
    position: relative;
  
    .logo {
      display: block;
      height: 36px;
      width: fit-content;
  
      svg {
        display: block;
        height: 36px;
        max-height: 100%;
        max-width: 100%;
        width: auto;
      }
    }
  
    .title {
      font-size: 16px;
      font-weight: 700;
      text-align: center;
    }
  
    .back {
      display: block;
      height: 36px;
      left: 8px;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 36px;
  
      svg {
        display: block;
        fill: $very-soft-green;
        height: auto;
        width: 100%;
      }
    }
  
    .toggle-menu {
      background-color: $very-dark-green;
      border-radius: 50%;
      height: 36px;
      position: absolute;
      right: 12px;
      top: 50%;
      transform: translateY(-50%);
      transition: background-color 200ms;
      width: 36px;
  
      &:hover {
        background-color: $vivid-green;
  
        svg {
          fill: $very-dark-green;
        }
      }
  
      svg {
        fill: $very-soft-green;
        transition: fill 200ms;
      }
    }
  
    .menu--hidden,
    .menu--visible {
      position: fixed;
      transition: left 600ms;
      width: 100%;
    }
  
    .menu--hidden,
    .menu--visible {
      height: 100vh;
      top: 0;
    }
  
    .menu--hidden {
      left: -120%;
    }
  
    .menu--visible {
      left: 0;
    }
  }
  
  .container--with-title {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 56px;
  }
}
