body {
  overflow-y: hidden;
}

.full-height-flex-wrapper {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content-container {
  display: flex;
  flex: 1 0 auto;

  position: relative;
  height: calc(100vh - #{$header-height});

  .main-content {
    width: 100%;
    overflow-y: auto;
    background-color: #ecf0f5;
    position: relative;

    .fade-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: rgba(0,0,0,0.3);
      z-index: 1000;

      @include ng-if-fade(.3s);
    }
  }
}

.search-sidebar {
  position: absolute;
  z-index: 2000;
  top: 0;
  bottom: 0;
  right: -400px;
  left: auto;
  width: auto;
  background-color: white;
  box-shadow: 0 3px 4px 0 rgba(33, 43, 54, 0.3);
  transition: transform .3s ease-in-out;

  &.open {
    transform: translateX(-400px);
  }

  bb-omni-search {
    .input-group {
      display: flex;
      margin: 10px;
    }

    .omni-search-input {
      border: 1px solid #eee;
      border-right: 0;
      min-width: auto;
      box-shadow: none;
    }

    .input-group-addon {
      border: 1px solid #eee;
      border-left: 0;
      padding: 0;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    #omni-search-results-append {
      display: flex;
    }

    .omni-search-results-wrapper {
      top: 60px;
      height: calc(100vh - 110px);
      width: 100%;
    }

    .omni-search-form__no-results,
    .omni-search-form__invalid-term {
      box-shadow: none;
      top: 60px;
    }

    .omni-search-results__category-heading {
      background-color: white;
    }
  }
}

//Animation for the content
.main-content {
  position: relative;

  [ui-view].animated {
    &.ng-enter, &.ng-leave {
      position: absolute;
      left: 0;
      right: 0;
      -webkit-transition: all .3s ease-in-out;
      -moz-transition: all .3s ease-in-out;
      -o-transition: all .3s ease-in-out;
      transition: all .3s ease-in-out;
    }

    &.ng-enter {
      opacity: 0;
      -webkit-transform: translate3d(0, 10%, 0);
      -moz-transform: translate3d(0, 10%, 0);
      transform: translate3d(0, 10%, 0);
    }

    &.ng-enter-active {
      opacity: 1;
      -webkit-transform: none;
      -moz-transform: none;
      transform: none;
    }

    &.ng-leave {
      opacity: 1;
    }

    &.ng-leave-active {
      opacity: 0;
    }
  }
}
