/**
 * @file
 * Utility classes.
 */

/*
  ie11-autorow

  IE11 does not automatically place new rows, which leads to overlapping
  content. We can work around this (when we know that each grid item is
  going to span the full width) by setting each child to a new row.
*/

.ie11-autorow>*:nth-child(1) {
  -ms-grid-row: 1;
}

.ie11-autorow>*:nth-child(2) {
  -ms-grid-row: 2;
}

.ie11-autorow>*:nth-child(3) {
  -ms-grid-row: 3;
}

.ie11-autorow>*:nth-child(4) {
  -ms-grid-row: 4;
}

.ie11-autorow>*:nth-child(5) {
  -ms-grid-row: 5;
}

.ie11-autorow>*:nth-child(6) {
  -ms-grid-row: 6;
}

.ie11-autorow>*:nth-child(7) {
  -ms-grid-row: 7;
}

.ie11-autorow>*:nth-child(8) {
  -ms-grid-row: 8;
}

.ie11-autorow>*:nth-child(9) {
  -ms-grid-row: 9;
}

.ie11-autorow>*:nth-child(10) {
  -ms-grid-row: 10;
}







/* POSITIONING */
.p-fixed {
  position: fixed;
}

.p-relative {
  position: relative;
}

.p-absolute {
  position: absolute;
}

.p-sticky {
  position: sticky;
}

.top-minus-1rem {
  top: -1rem;
}

.top-0 {
  top: 0;
}

.right-0 {
  right: 0;
}

.bottom-0 {
  bottom: 0;
}

.left-0 {
  left: 0;
}



/** VISIBILITY */

.visible {
  opacity: 1;
  visibility: visible;
}

.invisible {
  opacity: 0;
  visibility: hidden;
}


/* DISPLAY */
.hidden,
.d-none {
  display: none !important;
}

.d-block {
  display: block !important;
}

.inline-block {
  display: inline-block;
}

.inline {
  display: inline;
}

.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}


.overflow-hidden {
  overflow: hidden !important
}

/* FLEX */
.row {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
}

.col {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
}

/* The element with this class takes up all the remaining width of a row, 
  forcing all next elements in flex box to go to a new line :) */
.flex-break {
     flex-basis: 100%;
     height: 0;
}

  
@media (min-width: 43.75rem) { /** OVER 700px */

  
  .md-d-none {
    display: none !important;
  }

  .md-d-block {
    display: block !important;
  }

  .md-flex {
    display: flex !important;
  }

  .md-flex-one {
    flex: 1 1 0;
  }
  
  
  .md-row {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
  }

  .md-col {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
  }
}

@media screen and (min-width: 62.5rem) { /** OVER 1000px */

  .lg-d-none {
    display: none !important;
  }

  .lg-d-block {
    display: block !important;
  }

  .lg-flex {
    display: flex !important;
  }

  .lg-row {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
  }

  .lg-col {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
  }
  
  .lg-flex-one {
    flex: 1 1 0;
  }

  .lg-row {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
  }

  .lg-col {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
  }

}

@media screen and (min-width: 75rem) {

  .xlg-d-none {
    display: none !important;
  }

  .xlg-d-block {
    display: block !important;
  }

  /** OVER 1200px */
  .xlg-row {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
  }

  .xlg-col {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
  }
}

@media screen and (min-width: 90rem) {

  /** OVER 1440px */
  .xxlg-row {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
  }

  .xxlg-col {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
  }
}


.flex-nowrap {
  flex-wrap: nowrap;
}

.flex-wrap {
  flex-wrap: wrap;
}

.justify-center {
  justify-content: center;
}

.justify-start {
  justify-content: flex-start;
}

.justify-evenly {
  justify-content: space-evenly;
}

.justify-between {
  justify-content: space-between;
}

.justify-end {
  justify-content: flex-end;
}

.align-items-start {
  align-items: flex-start;
}

.align-items-center {
  align-items: center;
}

.align-items-stretch {
  align-items: stretch;
}
.align-items-baseline {
  align-items: baseline;
}

.align-items-end {
  align-items: flex-end;
}


.align-self-start {
  align-self: flex-start;
}

.align-self-center {
  align-self: center;
}

.align-self-end {
  align-self: flex-end;
}

.align-content-center{
  align-content: center;
}

.flex-zero {
  flex: 0 0 0;
}

.flex-one {
  flex: 1 1 0;
}

.flex-auto {
  flex: 1 1 auto;
}

.cell {
  flex: 0 0 auto;
  min-height: 0px;
  min-width: 0px;
  width: 100%;
}


.gap-4px {
  gap: 4px
}

.gap-8px {
  gap: 8px
}

.gap-12px {
  gap: 12px
}

.gap-16px,
.gap-1rem {
  gap: 16px
}

.gap-20px {
  gap: 20px
}

.gap-24px {
  gap: 24px
}

.gap-32px {
  gap: 32px;
}

.gap-40px {
  gap: 40px
}

.gap-72px {
  gap: 72px
}


/** TYPOGRAPHY **/
.font-size-64 { 
  /* 64px */
  font-size: 4rem !important;
}

.font-size-48 {
  /* 48px */
  font-size: 3em !important;
}

.font-size-44 {
  /* 44px */
  font-size: 2.75em !important;
}

.font-size-40 {
  /* 40px */
  font-size: 2.5em !important;
}

.font-size-32,
.text-h1 {
  /* 32px */
  font-size: 2em !important;
}

.font-size-28, 
.text-h2 {
  /* 28px */
  font-size: 1.75em !important;
}

.font-size-24, 
.text-h3 {
  /* 24px */
  font-size: 1.5em !important; 
}

.font-size-22, 
.text-h4 {
  font-size: 1.375em !important;
}

.font-size-20,
.text-h5 {
  font-size: 1.25em !important;
}

.font-size-18,
.text-h6 {
  font-size: 1.125em !important;
}

body .font-size-16,
.font-size-base {
  /* 16px */
  font-size: 1em !important;
}

.font-size-14 {
  /* 14px */
  font-size: 0.875em !important;
}

.font-size-13 {
  /* 13px */
  font-size: 0.8125rem !important;
}

.font-size-12 {
  /* 12px */
  font-size: 0.75rem !important;
}

.font-size-10 {
  /* 10px */
  font-size: 0.625em !important;
}


@media (min-width: 43.75rem) { /** OVER 700px */

  .md-font-size-h1 { 
    font-size: 4rem !important;
  }
  .md-font-size-28 { 
    font-size: 1.75em !important;
  }

  .md-font-size-16 {
    font-size: 1rem !important
  }
  .md-font-size-20 {
    font-size: 1.25rem !important
  }

}

.line-height-32px {
  line-height: 32px !important;
}

.line-height-100 {
  line-height: 100% !important;
}

.line-height-125 {
  line-height: 125%;
}

.line-height-140 {
  line-height: 140%;
}

.line-height-150 {
  line-height: 150%;
}

.text-bold,
.font-weight-bold,
.font-weight-700 {
  font-weight: 700 !important;
}

.font-weight-600 {
  font-weight: 600 !important;
}

.font-weight-500 {
  font-weight: 500 !important;
}

.font-weight-400,
.font-weight-normal {
  font-weight: normal !important;
}

.font-weight-300 {
  font-weight: 300 !important;
}


.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}


.white-space-nowrap {
  white-space: nowrap;
}

.word-break-all {
  word-break: break-all;
}

.word-break-word {
  word-break: break-word;
}



.text-decoration-underline {
  text-decoration: underline;
}

.text-decoration-none {
  text-decoration: none !important;
}

.text-decoration-line-through {
  text-decoration: line-through
}



/* SIZES */
.w-auto {
  width: auto;
}

.w-0 {
  width: 0 !important;
}

.w-50 {
  width: 50% !important;
}

.w-100 {
  width: 100% !important;
}

.h-100 {
  height: 100% !important;
}

.h-100vh {
  height: 100vh;
}

.mh-100vh {
  min-height: 100vh;
}

.aspect-ratio-1 {
  aspect-ratio: 1;
}



/* PADDINGS */
.p-0 {
  padding: 0 !important;
}

.p-1 {
  padding: 1rem !important;
}

.p-2 {
  padding: 2rem !important;
}

.p-3 {
  padding: 3rem !important;
}


.pt-0 {
  padding-top: 0 !important;
}

.pt-1 {
  padding-top: 1rem !important;
}

.pt-2 {
  padding-top: 2rem !important;
}

.pt-3 {
  padding-top: 3rem !important;
}

.pb-0 {
  padding-bottom: 0rem !important;
}

.pb-1 {
  padding-bottom: 1rem !important;
}

.pb-2 {
  padding-bottom: 2rem !important;
}

.pb-3 {
  padding-bottom: 3rem !important;
}
.pb-4 {
  padding-bottom: 4rem !important;
}

.py-0 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.py-1 {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.py-2 {
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
}

.py-3 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}


.pl-half {
  padding-left: 0.5rem !important;
}

.pl-0 {
  padding-left: 0rem !important;
}

.pl-1 {
  padding-left: 1rem !important;
}

.pl-2 {
  padding-left: 2rem !important;
}

.pl-3 {
  padding-left: 3rem !important;
}



.pr-half {
  padding-right: 0.5rem !important;
}

.pr-0 {
  padding-right: 0rem !important;
}

.pr-1 {
  padding-right: 1rem !important;
}

.pr-2 {
  padding-right: 2rem !important;
}


.px-0 {
  padding-right: 0rem !important;
  padding-left: 0rem !important;
}

.px-1 {
  padding-right: 1rem !important;
  padding-left: 1rem !important;
}

.px-24px {  
  padding-right: 1.5rem !important;
  padding-left: 1.5rem !important;
}

.px-2 {
  padding-right: 2rem !important;
  padding-left: 2rem !important;
}

.px-3 {
  padding-right: 3eem !important;
  padding-left: 3rem !important;
}

.px-4 {
  padding-right: 4rem !important;
  padding-left: 4rem !important;
}

/* MARGINS */

.m-half {
  margin: 0.5rem !important;
}

.m-0 {
  margin: 0 !important;
}

.m-1 {
  margin: 1rem !important;
}

.m-2 {
  margin: 2rem !important;
}

.mt-0 {
  margin-top: 0rem !important;
}

.mt-1 {
  margin-top: 1rem !important;
}

.mt-1-quarter {
  /*20px*/
  margin-top: 1.25rem !important;
}

.mt-2 {
  margin-top: 2rem !important;
}

.mt-3 {
  margin-top: 3rem !important;
}

.mt-4 {
  margin-top: 4rem !important;
}

.mt-5 {
  margin-top: 5rem !important;
}

.ml-half {
  margin-left: 0.5rem !important;
}

.ml-0 {
  margin-left: 0rem !important;
}

.ml-1 {
  margin-left: 1rem !important;
}

.ml-2 {
  margin-left: 2rem !important;
}
.ml-auto{
  margin-left: auto;
}

.mr-half {
  margin-right: 0.5rem !important;
}

.mr-0 {
  margin-right: 0rem !important;
}

.mr-1 {
  margin-right: 1rem !important;
}

.mr-1-quarter {
  /*20px*/
  margin-right: 1.25rem !important;
}

.mr-2 {
  margin-right: 2rem !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-half {
  margin-bottom: 0.5rem !important;
}

.mb-1 {
  margin-bottom: 1rem !important;
}

.mb-1-quarter {
  /*20px*/
  margin-bottom: 1.25rem !important;
}

.mb-2 {
  margin-bottom: 2rem !important;
}

.mb-2-half {
  /* 40px */
  margin-bottom: 2.5rem !important;
}


.mb-3 {
  margin-bottom: 3rem !important;
}

.mb-4 {
  margin-bottom: 4rem !important;
}

.my-1 {
  margin-top: 1rem !important;
  margin-bottom: 1rem !important;
}

.my-2 {
  margin-top: 2rem !important;
  margin-bottom: 2rem !important;
}

.mx-1 {
  margin-right: 1rem !important;
  margin-left: 1rem !important;
}

.mx-2 {
  margin-right: 2rem !important;
  margin-left: 2rem !important;
}

.mx-auto {
  margin-left: auto !important;
  margin-right: auto !important;
}



/** 
  2014 Material Design color palettes
  @see https://material.io/design/color/the-color-system.html#tools-for-picking-colors
*/

.bg-color-primary-hover:hover,
.bg-color-primary {
  background: var(--mt-color-primary) !important;
}

.bg-color-div-bg {
  background: var(--mt-color-div-bg) !important;
}

.bg-color-red {
  background: var(--mt-color-red) !important;
}

.bg-color-white {
  background-color: var(--mt-color-white) !important;
}

.bg-color-yellow {
  background-color: #cccc2c !important;
}

.bg-color-grey {
  background-color: var(--mt-color-grey) !important;
}

.bg-color-mid-grey {
  background-color: var(--mt-color-mid-grey) !important;
}

.bg-color-light-grey {
  background-color: var(--mt-color-light-grey) !important;
}

.color-primary {
  color: var(--mt-color-primary) !important;
}

.color-white {
  color: var(--mt-color-white) !important;
}

.color-black {
  color: var(--mt-color-black) !important;
}

.color-non-black,
.color-text-black {
  color: var(--mt-color-text-black) !important;
}


.color-red {
  color: var(--mt-color-red) !important;
}

.color-grey {
  color: var(--mt-color-grey) !important;
}

.color-mid-grey {
  color: var(--mt-color-mid-grey) !important;
}

.color-dark-grey {
  color: var(--mt-color-dark-grey) !important;
}

.color-primary-hover {
  color: var(--mt-color-primary) !important;
}


/** cursors **/
.cursor-pointer {
  cursor: pointer;
}


/** borders **/

.border {
  border: 1px solid transparent;
}

.border-top {
  border-top: 1px solid transparent;
}

.border-bottom {
  border-bottom: 1px solid transparent;
}

.border-radius-64 {
  border-radius: 64px !important;
}

.border-radius-60 {
  border-radius: 48px !important;
}

.border-radius-48 {
  border-radius: 48px !important;
}

.border-radius-40 {
  border-radius: 40px !important;
}

.border-radius-32 {
  border-radius: 32px !important;
}

.border-radius-20 {
  border-radius: 20px !important;
}

.border-radius-16 {
  border-radius: 16px !important;
}

.border-radius-12 {
  border-radius: 12px !important;
}

.border-width-1px {
  border-width: 1px !important;
}

.border-width-2px {
  border-width: 2px !important;
}

.border-color-primary {
  border-color: var(--mt-color-primary) !important;
}

.border-color-grey {
  border-color: var(--mt-color-grey) !important;
}

.border-color-light-grey {
  border-color: var(--mt-color-light-grey) !important;
}

.border-color-mid-grey {
  border-color: var(--mt-color-mid-grey) !important;
}

.border-color-dark-grey {
  border-color: var(--mt-color-dark-grey) !important;
}

.border-color-white {
  border-color: var(--mt-color-white) !important;
}
.border-color-non-black {
  border-color: var(--mt-color-non-black) !important;
}

.border-color-transparent {
  border-color: transparent !important;
}

