@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;
}

app-header {
  flex-basis: 40px;
  position: relative;
}

#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-resources-sidebar {
  width: 100%;
  flex: 1 1 auto;
}

#loading-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;

  img {
    animation-name: bright;
    animation-duration: 3s;
    animation-iteration-count: infinite;
  }
}

@keyframes bright {
  0% {
    filter: brightness(1);
    filter: contrast(1);
    -webkit-filter: brightness(1);
    -webkit-filter: contrast(1);
  }
  50% {
    filter: brightness(0.4);
    filter: contrast(0.4);
    -webkit-filter: brightness(0.4);
    -webkit-filter: contrast(0.4);
  }
  100% {
    filter: brightness(1);
    filter: contrast(1);
    -webkit-filter: brightness(1);
    -webkit-filter: contrast(1);
  }
}

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

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

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