/*!
 * SPDX-License-Identifier: Apache-2.0
 *
 * The OpenSearch Contributors require contributions made to
 * this file be licensed under the Apache-2.0 license or a
 * compatible open source license.
 *
 * Modifications Copyright OpenSearch Contributors. See
 * GitHub history for details.
 */

.ouiBottomBar {
  bottom: 0;
  left: 0;
  right: 0;

  @include ouiBottomShadowFlat($ouiShadowColorLarge);
  background: $ouiHeaderDarkBackgroundColor;
  color: $ouiColorGhost;

  // sass-lint:disable-block mixins-before-declarations
  @include ouiCanAnimate {
    animation: ouiBottomBarAppear $ouiAnimSpeedSlow $ouiAnimSlightResistance;
  }
}

.ouiBottomBar--fixed {
  position: fixed;
  z-index: $ouiZHeader - 2;
}

.ouiBottomBar--sticky {
  position: sticky;
  z-index: $ouiZHeader - 2;
}

.ouiBottomBar--paddingSmall {
  padding: $ouiSizeS;
}

.ouiBottomBar--paddingMedium {
  padding: $ouiSize;
}

.ouiBottomBar--paddingLarge {
  padding: $ouiSizeL;
}

@keyframes ouiBottomBarAppear {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }

  100% {
    transform: translateY(00%);
    opacity: 1;
  }
}
