/* -------------------------------------------*\
  containers.scss
\*------------------------------------------- */
.-ta-fullContainer {
  min-width: 100%;
}

.ta-container {
  width: 100%;
  max-width: $ta-bp-xl;
  padding: 0 $container-padding;
}

.ta-flexContainer {
  @include flex();

  flex: 1;
}

@each $key, $value in $grid-breakpoints {
  $v: strip-units($value);

  .-mw#{$v} {
    max-width: rem($value);
  }
}

/* -------------------------------------------*\
        Display
\*------------------------------------------- */

.-displayBlock {
  display: block !important;
}

.-displayFlex {
  display: flex !important;
}

/* -------------------------------------------*\
        Flexbox Modifiers - Main Element
\*------------------------------------------- */

// Works on anything that has a display of flex, such as our .ta-fexContainer. Be aware of how to use with flex displays and thier children.

// Perfect center
.-flex-center {
  justify-content: center !important;
  align-items: center !important;
}

// The flex-direction property defines in which direction the container wants to stack the flex items.
.-flex-column-reverse { flex-direction: column-reverse !important; } //changing direction with css is not and accessible feature... use with caution
.-flex-row-reverse { flex-direction: row-reverse !important; } //changing direction with css is not and accessible feature... use with caution
.-flex-column { flex-direction: column !important; }
.-flex-row { flex-direction: row !important; }

//The flex-wrap property specifies whether the flex items should wrap, wrap in reverse or not wrap.
.-flex-wrap-reverse { flex-wrap: wrap-reverse !important; }
.-flex-nowrap { flex-wrap: nowrap !important; }
.-flex-wrap { flex-wrap: wrap !important; }

// The justify-content property is used to align flex items (Does not work on children unless they are also flex items with display: flex;).
.-justify-content-between { justify-content: space-between !important; }
.-justify-content-around { justify-content: space-around !important; }
.-justify-content-evenly { justify-content: space-evenly !important; }
.-justify-content-start { justify-content: flex-start !important; }
.-justify-content-center { justify-content: center !important; }
.-justify-content-end { justify-content: flex-end !important; }

// The align-items property is used to align the flex items vertically.
.-align-items-baseline { align-items: baseline !important; }
.-align-items-start { align-items: flex-start !important; }
.-align-items-stretch { align-items: stretch !important; }
.-align-items-center { align-items: center !important; }
.-align-items-end { align-items: flex-end !important; }

// The align-content property is used to align the flex lines.
.-align-content-between { align-content: space-between !important; }
.-align-content-around { align-content: space-around !important; }
.-align-content-start { align-content: flex-start !important; }
.-align-content-stretch { align-content: stretch !important; }
.-align-content-center { align-content: center !important; }
.-align-content-end { align-content: flex-end !important; }

/* -------------------------------------------*\
        Flexbox Modifiers - Child Elements
\*------------------------------------------- */

// The align-self property specifies the alignment for the selected item inside the flexible container.
// The align-self property overrides the default alignment set by the container's align-items property.
.-align-self-start { align-self: flex-start !important; }
.-align-self-end { align-self: flex-end !important; }
.-align-self-center { align-self: center !important; }
.-align-self-stretch { align-self: stretch !important; }
.-align-self-baseline { align-self: baseline !important; }

// Take up (grow) or not (shrink) x amount of remaining space as others... or it will try to, at least).
.-flex-shrink-0 { flex-shrink: 0 !important; }
.-flex-shrink-1 { flex-shrink: 1 !important; }
.-flex-shrink-2 { flex-shrink: 2 !important; }
.-flex-shrink-3 { flex-shrink: 3 !important; }
.-flex-shrink-4 { flex-shrink: 4 !important; }
.-flex-shrink-5 { flex-shrink: 5 !important; }
.-flex-shrink-6 { flex-shrink: 6 !important; }
.-flex-grow-0 { flex-grow: 0 !important; }
.-flex-grow-1 { flex-grow: 1 !important; }
.-flex-grow-2 { flex-grow: 2 !important; }
.-flex-grow-3 { flex-grow: 3 !important; }
.-flex-grow-4 { flex-grow: 4 !important; }
.-flex-grow-5 { flex-grow: 5 !important; }
.-flex-grow-6 { flex-grow: 6 !important; }

// The order property specifies the order of the flex items.
.-flex-order-0 { order: 0 !important; }
.-flex-order-1 { order: 1 !important; }
.-flex-order-2 { order: 2 !important; }
.-flex-order-3 { order: 3 !important; }
.-flex-order-4 { order: 4 !important; }
.-flex-order-5 { order: 5 !important; }
.-flex-order-6 { order: 6 !important; }
.-flex-order-7 { order: 7 !important; }
.-flex-order-8 { order: 8 !important; }
.-flex-order-9 { order: 9 !important; }
.-flex-order-10 { order: 10 !important; }
.-flex-order-11 { order: 11 !important; }
.-flex-order-12 { order: 12 !important; }
