@import '../assets/styles/responsive-base.scss';

/*mat-toolbar{
    box-shadow: 0px 2px 5px rgba(0,0,0,0.4);
}

mat-toolbar {
    position: relative;
}

mat-sidenav-container{
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

mat-sidenav-content{
    display: flex;
    flex-direction: column;
    max-height: 100%;
    position: relative;
}*/

#page-content {
  padding: 0;
  margin: 0;
  display: flex;
  height: 100%;
  flex-direction: column;
  //overflow: hidden; //this fixes mobile view chat input overscrolling when mobile keyboard is open
}

#body-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: row;

  @include screen('phone') {
    position: relative;
  }
}

#dragger {
  height: 100%;
  width: 10px;
  cursor: ew-resize;
  margin-right: -10px;
  z-index: 99;

  @include screen('phone') {
    display: none;
  }
}

#resource-side {
  min-width: 200px;
  width: 280px;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  user-select: none;
  // resize: horizontal;
  // overflow-x: auto;

  @include screen('phone') {
    position: absolute;
    height: 100%;
    max-width: 100%;
    left: -100%;
    transition: left ease-in-out 0.25s;
    width: 100%;
    z-index: 99;

    &.mobileSideBarActive {
      left: 0;
    }
  }
}

#content-side {
  flex: 1 1 0;
}

app-sidebar {
  width: 100%;
  height: 100%;
  flex: 1 1 auto;
}

#loading-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  flex-direction: column;
  gap: 20px;

  h1{
    user-select: none;
    animation-name: bright;
    animation-duration: 3s;
    animation-iteration-count: infinite;
  }

  img {
    animation-name: bright;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    max-width: 300px;
  }
}

@keyframes bright {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

#offers {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  cursor: pointer;
  align-items: center;

  #offers-close {
    padding: 15px;
  }

  mat-icon {
    font-size: 16px;
  }
}

#accept-cookies {
  padding: 8px;
  text-align: center;
}
