/* mixins & extensions */

@keyframes in {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes in-down {
  0% {
    opacity: 0;
    transform: translate3D(0, -5px, 0);
  }

  100% {
    opacity: 1;
    transform: translate3D(0, 0, 0);
  }
}

@keyframes in-up {
  0% {
    opacity: 0;
    transform: translate3D(0, 5px, 0);
  }

  100% {
    opacity: 1;
    transform: translate3D(0, 0, 0);
  }
}

@keyframes in-scale {
  0% {
    opacity: 0;
    transform: scale3D(0.95, 0.95, 1);
  }

  100% {
    opacity: 1;
    transform: scale3D(1, 1, 1);
  }
}

/**
* Currently only used in Checkbox.
*/

:root {
  --calcite-popper-transition: 150ms ease-in-out;
}

:host([hidden]) {
  display: none;
}

:host {
  z-index: 20;
  position: relative;
  display: flex;
}

:host([scale=s]) {
  min-height: 1.5rem;
}

:host([scale=m]) {
  min-height: 2rem;
}

:host([scale=l]) {
  min-height: 2.75rem;
}

.tab-nav {
  display: flex;
  width: 100%;
  overflow: auto;
  justify-content: flex-start;
  -webkit-overflow-scrolling: touch;
  padding: 0.25rem;
  margin: -0.25rem;
}

:host([layout=center]) .tab-nav {
  justify-content: center;
}

.tab-nav-active-indicator-container {
  width: 100%;
  right: 0;
  left: 0;
  bottom: 0;
  position: absolute;
  overflow: hidden;
  height: 0.125rem;
}

.tab-nav-active-indicator {
  position: absolute;
  bottom: 0;
  display: block;
  transition-property: all;
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
  background-color: var(--calcite-ui-brand);
  height: 0.125rem;
}

:host([position=below]) .tab-nav-active-indicator {
  bottom: unset;
  top: 0;
}

:host([position=below]) .tab-nav-active-indicator-container {
  bottom: unset;
  top: 0;
}

:host([bordered]) .tab-nav-active-indicator-container {
  bottom: unset;
}

:host([bordered][position=below]) .tab-nav-active-indicator-container {
  bottom: 0;
  top: unset;
}