//Default styles

html {
 box-sizing: border-box;
}
*, *:before, *:after {
 box-sizing: inherit;
}

//body {
  // display: flex;
  // min-height: 100vh;
  // flex-direction: column;
//}

//main {
  // flex: 1 0 auto;
//}

button,
input,
optgroup,
select,
textarea {
  font-family: $font-stack;
}

ul {
  &:not(.browser-default) {
    padding-left: 0;
    list-style-type: none;

    & > li {
      list-style-type: none;
    }
  }
}

a.cc {
	color: $link-color;
	text-decoration: none;

  // Gets rid of tap active state
  -webkit-tap-highlight-color: transparent;
}


// Positioning
.six-storage-valign-wrapper {
  display: flex;
  align-items: center;
}


// classic clearfix
.six-storage-clearfix {
  clear: both;
}


// Z-levels
.six-storage-z-depth-0 {
  box-shadow: none ;
}

/* 2dp elevation modified*/
.six-storage-z-depth-1 {
  box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14),
              0 3px 1px -2px rgba(0,0,0,0.12),
              0 1px 5px 0 rgba(0,0,0,0.2);
}
.six-storage-z-depth-1-half {
  box-shadow: 0 3px 3px 0 rgba(0, 0, 0, 0.14), 0 1px 7px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -1px rgba(0, 0, 0, 0.2);
}

/* 6dp elevation modified*/
.six-storage-z-depth-2 {
  box-shadow: 0 4px 5px 0 rgba(0,0,0,0.14),
              0 1px 10px 0 rgba(0,0,0,0.12),
              0 2px 4px -1px rgba(0,0,0,0.3);
}

/* 12dp elevation modified*/
.six-storage-z-depth-3 {
  box-shadow: 0 8px 17px 2px rgba(0,0,0,0.14),
              0 3px 14px 2px rgba(0,0,0,0.12),
              0 5px 5px -3px rgba(0, 0, 0, 0.2);
}

/* 16dp elevation */
.six-storage-z-depth-4 {
  box-shadow: 0 16px 24px 2px rgba(0,0,0,0.14),
              0 6px 30px 5px rgba(0,0,0,0.12),
              0 8px 10px -7px rgba(0,0,0,0.2);
}

/* 24dp elevation */
.six-storage-z-depth-5 {
  box-shadow: 0 24px 38px 3px rgba(0,0,0,0.14),
              0 9px 46px 8px rgba(0,0,0,0.12),
              0 11px 15px -7px rgba(0,0,0,0.2);
}

.six-storage-hoverable {
  transition: box-shadow .25s;

  &:hover {
    box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  }
}

// Dividers

.six-storage-divider {
  height: 1px;
  overflow: hidden;
  background-color: color("six-storage-grey", "six-storage-lighten-2");
}


//  Blockquote

blockquote {
  margin: 20px 0;
  padding-left: 1.5rem;
  border-left: 5px solid $primary-color;
}

// Icon Styles

i {
  line-height: inherit;

  &.six-storage-left {
    float: left;
    margin-right: 15px;
  }
  &.six-storage-right {
    float: right;
    margin-left: 15px;
  }
  &.six-storage-tiny {
    font-size: 1rem;
  }
  &.six-storage-small {
    font-size: 2rem;
  }
  &.six-storage-medium {
    font-size: 4rem;
  }
  &.six-storage-large {
    font-size: 6rem;
  }
}

// Images
img.six-storage-responsive-img,
video.six-storage-responsive-video {
  max-width: 100%;
  height: auto;
}


// Pagination

.six-storage-pagination {

  li {
    display: inline-block;
    border-radius: 2px;
    text-align: center;
    vertical-align: top;
    height: 30px;

    a.cc {
      color: #444;
      display: inline-block;
      font-size: 1.2rem;
      padding: 0 10px;
      line-height: 30px;
    }

    &.six-storage-active a { color: #fff; }

    &.six-storage-active { background-color: $primary-color; }

    &.six-storage-disabled a {
      cursor: default;
      color: #999;
    }

    i {
      font-size: 2rem;
    }
  }


  li.six-storage-pages ul li {
    display: inline-block;
    float: none;
  }
}
@media #{$medium-and-down} {
  .six-storage-pagination {
    width: 100%;

    li.prev,
    li.next {
      width: 10%;
    }

    li.six-storage-pages {
      width: 80%;
      overflow: hidden;
      white-space: nowrap;
    }
  }
}

// Breadcrumbs
.six-storage-breadcrumb {
  font-size: 18px;
  color: rgba(255,255,255, .7);

  i,
  [class^="mdi-"], [class*="mdi-"],
  i.six-storage-material-icons {
    display: inline-block;
    float: left;
    font-size: 24px;
  }

  &:before {
    content: '\E5CC';
    color: rgba(255,255,255, .7);
    vertical-align: top;
    display: inline-block;
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 25px;
    margin: 0 10px 0 8px;
    -webkit-font-smoothing: antialiased;
  }

  &:first-child:before {
    display: none;
  }

  &:last-child {
    color: #fff;
  }
}

// Parallax
.six-storage-parallax-container {
  position: relative;
  overflow: hidden;
  height: 500px;

  .six-storage-parallax {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;

    img {
      opacity: 0;
      position: absolute;
      left: 50%;
      bottom: 0;
      min-width: 100%;
      min-height: 100%;
      transform: translate3d(0,0,0);
      transform: translateX(-50%);
    }
  }
}

// Pushpin
.six-storage-pin-top, .six-storage-pin-bottom {
  position: relative;
}
.six-storage-pinned {
  position: fixed ;
}

/*********************
  Transition Classes
**********************/

ul.six-storage-staggered-list li {
  opacity: 0;
}

.six-storage-fade-in {
  opacity: 0;
  transform-origin: 0 50%;
}


/*********************
  Media Query Classes
**********************/
.six-storage-hide-on-small-only, .six-storage-hide-on-small-and-down {
  @media #{$small-and-down} {
    display: none ;
  }
}
.six-storage-hide-on-med-and-down {
  @media #{$medium-and-down} {
    display: none ;
  }
}
.six-storage-hide-on-med-and-up {
  @media #{$medium-and-up} {
    display: none ;
  }
}
.six-storage-hide-on-med-only {
  @media only screen and (min-width: $small-screen) and (max-width: $medium-screen) {
    display: none ;
  }
}
.six-storage-hide-on-large-only {
  @media #{$large-and-up} {
    display: none ;
  }
}
.six-storage-hide-on-extra-large-only {
  @media #{$extra-large-and-up} {
    display: none ;
  }
}
.six-storage-show-on-extra-large {
  @media #{$extra-large-and-up} {
    display: block ;
  }
}
.six-storage-show-on-large {
  @media #{$large-and-up} {
    display: block ;
  }
}
.six-storage-show-on-medium {
  @media only screen and (min-width: $small-screen) and (max-width: $medium-screen) {
    display: block ;
  }
}
.six-storage-show-on-small {
  @media #{$small-and-down} {
    display: block ;
  }
}
.six-storage-show-on-medium-and-up {
  @media #{$medium-and-up} {
    display: block ;
  }
}
.six-storage-show-on-medium-and-down {
  @media #{$medium-and-down} {
    display: block ;
  }
}


// Center text on mobile
.six-storage-center-on-small-only {
  @media #{$small-and-down} {
    text-align: center;
  }
}

// Footer
.six-storage-page-footer {
  padding-top: 20px;
  color: $footer-font-color;
  background-color: $footer-bg-color;

  .six-storage-footer-copyright {
    overflow: hidden;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0px;
    color: $footer-copyright-font-color;
    background-color: $footer-copyright-bg-color;
  }
}

// Tables
table, th, td {
   border: none;
}

table {
  width:100%;
  display: table;
  border-collapse: collapse;
  border-spacing: 0;

  &.six-storage-striped {
    tr {
      border-bottom: none;
    }

    > tbody {
      > tr:nth-child(odd) {
        background-color: $table-striped-color;
      }

      > tr > td {
        border-radius: 0;
      }
    }
    &.six-storage-striped.six-storage-grey.six-storage-six-storage-lighten-3{
      > tbody {
        > tr:nth-child(odd) {
          background-color: #f2f2f2;
        }
      }
    }
  }

  &.six-storage-highlight > tbody > tr {
    transition: background-color .25s ease;
    &:hover {
      background-color: $table-striped-color;
    }
  }

  &.six-storage-centered {
    thead tr th, tbody tr td {
      text-align: center;
    }
  }
}

tr {
  border-bottom: 1px solid $table-border-color;
}

td, th{
  padding: 15px 5px;
  display: table-cell;
  text-align: left;
  vertical-align: middle;
  border-radius: 2px;
}

// Responsive Table
@media #{$medium-and-down} {

  table.six-storage-responsive-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    display: block;
    position: relative;

    td:empty:before {
      content: '\00a0';
    }

    th,
    td {
      margin: 0;
      vertical-align: top;
    }

    th { text-align: left; }
    thead {
      display: block;
      float: left;

      tr {
        display: block;
        padding: 0 0 0 0;

        th::before {
          content: "\00a0";
        }
      }
    }
    tbody {
      display: block;
      width: auto;
      position: relative;
      overflow-x: auto;
      white-space: nowrap;

      tr {
        display: inline-block;
        vertical-align: top;
      }
    }
    th {
      display: block;
      text-align: right;
    }
    td {
      display: block;
      min-height: 1.25em;
      text-align: left;
    }
    tr {
      border-bottom: none;
      padding: 0 10px;
    }

    /* sort out borders */
    thead {
      border: 0;
      border-right: 1px solid $table-border-color;
    }
  }

}


// Collections
.six-storage-collection {
  margin: $element-top-margin 0 $element-bottom-margin 0;
  border: 1px solid $collection-border-color;
  border-radius: 2px;
  overflow: hidden;
  position: relative;

  .six-storage-collection-item {
    background-color: $collection-bg-color;
    line-height: $collection-line-height;
    padding: 10px 20px;
    margin: 0;
    border-bottom: 1px solid $collection-border-color;

    // Avatar Collection
    &.six-storage-avatar {
      min-height: 84px;
      padding-left: 72px;
      position: relative;

      // Don't style circles inside preloader classes.
      &:not(.six-storage-circle-clipper) > .six-storage-circle,
      :not(.six-storage-circle-clipper) > .six-storage-circle {
        position: absolute;
        width: 42px;
        height: 42px;
        overflow: hidden;
        left: 15px;
        display: inline-block;
        vertical-align: middle;
      }
      i.six-storage-circle {
        font-size: 18px;
        line-height: 42px;
        color: #fff;
        background-color: #999;
        text-align: center;
      }


      .six-storage-title {
        font-size: 16px;
      }

      p {
        margin: 0;
      }

      .six-storage-secondary-content {
        position: absolute;
        top: 16px;
        right: 16px;
      }

    }


    &:last-child {
      border-bottom: none;
    }

    &.six-storage-active {
      background-color: $collection-active-bg-color;
      color: $collection-active-color;

      .six-storage-secondary-content {
        color: #fff;
      }
    }
  }
  a.six-storage-collection-item{
    display: block;
    transition: .25s;
    color: $collection-link-color;
    &:not(.six-storage-active) {
      &:hover {
        background-color: $collection-hover-bg-color;
      }
    }
  }

  &.six-storage-with-header {
    .six-storage-collection-header {
      background-color: $collection-bg-color;
      border-bottom: 1px solid $collection-border-color;
      padding: 10px 20px;
    }
    .six-storage-collection-item {
      padding-left: 30px;
    }
    .six-storage-collection-item.six-storage-avatar {
      padding-left: 72px;
    }
  }

}
// Made less specific to allow easier overriding
.six-storage-secondary-content {
  float: right;
  color: $secondary-color;
}
.six-storage-collapsible .six-storage-collection {
  margin: 0;
  border: none;
}



// Responsive Videos
.six-storage-video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;

    iframe, object, embed {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
    }
}

// Progress Bar
.six-storage-progress {
    position: relative;
    height: 4px;
    display: block;
    width: 100%;
    background-color: lighten($progress-bar-color, 40%);
    border-radius: 2px;
    margin: $element-top-margin 0 $element-bottom-margin 0;
    overflow: hidden;
  .six-storage-determinate {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    background-color: $progress-bar-color;
    transition: width .3s linear;
  }
  .six-storage-indeterminate {
    background-color: $progress-bar-color;
    &:before {
      content: '';
      position: absolute;
      background-color: inherit;
      top: 0;
      left:0;
      bottom: 0;
      will-change: left, right;
      // Custom bezier
      animation: indeterminate 2.1s cubic-bezier(0.650, 0.815, 0.735, 0.395) infinite;

    }
    &:after {
      content: '';
      position: absolute;
      background-color: inherit;
      top: 0;
      left:0;
      bottom: 0;
      will-change: left, right;
      // Custom bezier
      animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.840, 0.440, 1.000) infinite;
      animation-delay: 1.15s;
    }
  }
}
@keyframes indeterminate {
    0% {
      left: -35%;
      right:100%;
    }
    60% {
      left: 100%;
      right: -90%;
    }
    100% {
      left: 100%;
      right: -90%;
    }
}

@keyframes indeterminate-short {
    0% {
      left: -200%;
      right: 100%;
    }
    60% {
      left: 107%;
      right: -8%;
    }
    100% {
      left: 107%;
      right: -8%;
    }
}


/*******************
  Utility Classes
*******************/

.six-storage-hide {
  display: none ;
}

// Text Align
.six-storage-left-align {
  text-align: left;
}
.six-storage-right-align {
  text-align: right
}
.six-storage-center, .six-storage-center-align {
  text-align: center;
}

.six-storage-left {
  float: left ;
}
.six-storage-right {
  float: right ;
}

// No Text Select
.six-storage-no-select {
  user-select: none;
}

.six-storage-circle {
  border-radius: 50%;
}

.six-storage-center-block {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.six-storage-truncate {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.six-storage-no-padding {
  padding: 0 ;
}

tr.six-storage-i-have-my-own-ins {
  border-bottom: none;
  [type=radio].cc + span:before, [type=radio].cc + span:after {
    top: 10px;
  }
}
.six-storage-thirdparty-insurance-form {
  td {
    padding-top: 0;
    .six-storage-grid-form-row {
      width: 90%;
      margin: 0 auto;
    }
  }
}
