.card {
  display: inline-block;
  position: relative;
  width: 100%;
  margin-bottom: 30px;
  border-radius: $border-radius-large;
  color: $mdb-card-body-text;
  background: $mdb-card-body-background;
  @include shadow-2dp();
  .card-height-indicator {
    margin-top: 100%;
  }
  &.no-shadow {
    .card-image,
    .card-image .img {
      box-shadow: none;
    }
  }
  .card-image {
    height: 60%;
    position: relative;
    z-index: 1;
    margin-left: 15px;
    margin-right: 15px;
    margin-top: -30px;
    border-radius: $border-radius-large;
    .img {
      width: 100%;
      min-height: 150px;
      max-height: 300px;
      border-radius: $border-radius-large;
      pointer-events: none;
      @include shadow-big-image();
      background-position: center;
      background-size: cover;
    }
    /*
        .badge-image {
            position: absolute;
            top: calc(50% - 50px);
            left: calc(50% - 50px);
        }
        */
    .badge-image {
      position: absolute;
      top: calc(50% - 50px);
      left: calc(50% - 50px);
      margin: 0;
      padding: 0;
      img {
        //width: 100%;
        margin: 0 auto;
        max-height: 80px;
        vertical-align: middle;
        object-fit: contain;
      }
    }
    .card-title {
      position: absolute;
      bottom: 15px;
      left: 15px;
      color: $mdb-card-image-headline;
      font-size: $font-size-h4;
      text-shadow: 0 2px 5px rgba(33, 33, 33, 0.5);
    }
    .colored-shadow {
      transform: scale(0.94);
      top: 12px;
      filter: blur(12px);
      position: absolute;
      width: 100%;
      height: 100%;
      background-size: cover;
      z-index: -1;
      transition: opacity 0.45s;
      opacity: 0;
    }
    &.no-shadow {
      box-shadow: none;
      &.shadow-normal {
        @include shadow-big();
      }
      .colored-shadow {
        display: none !important;
      }
    }
  }
  .category:not([class*="text-"]) {
    color: $gray-color;
  }
  .card-content {
    padding: 15px 30px;
  }
  .card-body {
    height: 30%;
    padding: 18px;
  }
  .card-footer {
    height: 10%;
    padding: 18px;
    button,
    a {
      margin: 0 !important;
      position: relative;
      bottom: 25px;
      width: auto;
      &:first-child {
        left: -15px;
      }
    }
  }
  .header {
    @include shadow-big();
    margin: $margin-base;
    border-radius: $border-radius-base;
    padding: $padding-base 0;
    background-color: $white-color;
    .title {
      color: $white-color;
    }
  }
  .header-primary,
  .content-primary {
    background: linear-gradient(60deg, $purple-400, $purple-700);
  }
  .header-info,
  .content-info {
    background: linear-gradient(60deg, $cyan-400, $cyan-700);
  }
  .header-success,
  .content-success {
    background: linear-gradient(60deg, $green-400, $green-700);
  }
  .header-warning,
  .content-warning {
    background: linear-gradient(60deg, $orange-400, $orange-700);
  }
  .header-danger,
  .content-danger {
    background: linear-gradient(60deg, $red-400, $red-700);
  }
  .header-rose,
  .content-rose {
    background: linear-gradient(60deg, $pink-400, $pink-700);
  }
  .header-primary {
    @include shadow-big-color(
      $brand-primary
    ); //@include shadow-8dp-color($brand-primary);
    // @include shadow-16dp-color($brand-primary);
  }
  .header-danger {
    @include shadow-big-color($brand-danger);
  }
  .header-rose {
    @include shadow-big-color($brand-rose);
  }
  .header-warning {
    @include shadow-big-color($brand-warning);
  }
  .header-info {
    @include shadow-big-color($brand-info);
  }
  .header-success {
    @include shadow-big-color($brand-success);
  }
  [class*="header-"],
  [class*="content-"] {
    color: $white-color;
    .card-title a,
    .card-title,
    .icon i {
      color: $white-color;
    }
    .icon i {
      border-color: rgba(255, 255, 255, 0.25);
    }
    .author a,
    .footer .stats,
    .category,
    .card-description {
      color: $white-transparent;
    }
    .author a {
      &:hover,
      &:focus,
      &:active {
        color: $white-color;
      }
    }
  }
  [class*="content-"] {
    border-radius: $border-radius-large;
    h1,
    h2,
    h3 {
      small {
        color: $white-transparent;
      }
    }
  }
  .img {
    width: 100%;
    height: auto;
  }
  .category {
    .material-icons {
      position: relative;
      top: 6px;
      line-height: 0;
    }
  }
  .category-social {
    .fa {
      font-size: 24px;
      position: relative;
      margin-top: -4px;
      top: 2px;
      margin-right: 5px;
    }
    .material-icons {
      position: relative;
      top: 5px;
    }
  }
  .author {
    .avatar {
      width: 30px;
      height: 30px;
      overflow: hidden;
      border-radius: 50%;
      margin-right: 5px;
    }
    a {
      color: $black-color;
      text-decoration: none;
      .ripple-container {
        display: none;
      }
    }
  }
  .footer {
    margin-top: 15px;
    div {
      display: inline-block;
    }
    .author {
      color: $gray-color;
    }
    .stats {
      float: right;
      line-height: 30px;
      color: $gray-color;
      .material-icons {
        position: relative;
        top: 4px;
        font-size: 18px;
      }
    }
  }
  .carousel & {
    max-width: 650px;
    margin: 60px auto;
  }
  .checkbox,
  .radio {
    margin-top: 16px;
  }
}
.card-signup {
  .header {
    @include shadow-big();
    margin-left: 20px;
    margin-right: 20px;
    margin-top: -40px;
    padding: 20px 0;
  }
  .text-divider {
    margin-top: 30px;
    margin-bottom: 0px;
    text-align: center;
  }
  .card-content {
    padding: 0px 30px 0px 10px;
  }
  .checkbox {
    margin-top: 20px;
    label {
      margin-left: 17px;
    }
    .checkbox-material {
      padding-right: 12px;
    }
  }
  .social-line {
    margin-top: $margin-base;
    text-align: center;
    padding: 0;
    .btn {
      color: $white-color;
      margin-left: 5px;
      margin-right: 5px;
    }
  }
}
.card-contact {
  .header {
    margin-top: -20px;
    .title {
      margin: 10px 0 10px;
    }
  }
}
.card-nav-tabs {
  margin-top: 45px;
  .header {
    margin-top: -$margin-base * 2;
  }
  .nav-tabs {
    background: transparent;
  }
}
.card-plain {
  background: transparent;
  box-shadow: none;
  .header {
    margin-left: 0;
    margin-right: 0;
  }
  .card-content {
    padding-left: 5px;
    padding-right: 5px;
  }
  .card-image {
    margin: 0;
    border-radius: $border-radius-large;
    .img {
      border-radius: $border-radius-large;
    }
  }
}
.iframe-container {
  iframe {
    width: 100%;
    @include shadow-big();
  }
}
.card-form-horizontal {
  .card-content {
    padding-left: 15px;
    padding-right: 15px;
  }
  .form-group {
    padding-bottom: 0px;
    margin: 3px 0 0 0;
    .form-control {
      margin-bottom: 0;
    }
  }
  .btn {
    margin: 0;
  }
  .input-group .input-group-addon {
    padding-left: 0;
  }
}
.card-profile,
.card-testimonial {
  margin-top: 30px;
  text-align: center;
  .btn-just-icon.btn-raised {
    margin-left: 6px;
    margin-right: 6px;
  }
  .card-avatar {
    max-width: 130px;
    max-height: 130px;
    margin: -50px auto 0;
    border-radius: 50%;
    overflow: hidden;
    @include shadow-big();
    & + .card-content {
      margin-top: 15px;
    }
  }
  &.card-plain {
    .card-avatar {
      margin-top: 0;
    }
  }
}
.card-testimonial {
  .card-avatar {
    max-width: 100px;
    max-height: 100px;
  }
  .footer {
    margin-top: 0;
    .card-avatar {
      margin-top: 10px;
      margin-bottom: -50px;
    }
  }
  .card-description {
    font-style: italic;
    & + .card-title {
      margin-top: 30px;
    }
  }
  .icon {
    margin-top: 30px;
    .material-icons {
      font-size: 40px;
    }
  }
}
.card-blog {
  margin-top: 30px;
  .row {
    .category {
      margin-bottom: 0;
    }
  }
  .card-title {
    margin-top: 5px;
  }
  .card-image + .category {
    margin-top: 20px;
  }
  .card-raised {
  }
}
.card-pricing {
  text-align: center;
  .card-title {
    margin-top: 30px;
  }
  .card-content {
    padding: 15px !important;
  }
  .icon {
    padding: 10px 0 0px;
    color: $gray-color;
    i {
      font-size: 55px;
      border: 1px solid #e5e5e5;
      border-radius: 50%;
      width: 130px;
      line-height: 130px;
      height: 130px;
    }
  }
  h1 {
    small {
      font-size: 18px;
      &:first-child {
        position: relative;
        top: -17px;
        font-size: 26px;
      }
    }
  }
  ul {
    list-style: none;
    padding: 0;
    max-width: 240px;
    margin: 10px auto;
    li {
      color: $gray-color;
      text-align: center;
      padding: 12px 0;
      border-bottom: 1px solid rgba($gray-color, 0.3);
      &:last-child {
        border: 0;
      }
      b {
        color: $black-color;
      }
      i {
        top: 6px;
        position: relative;
      }
    }
  }
  &.card-background,
  [class*="content-"] {
    ul {
      li {
        color: $white-color;
        border-color: rgba($white-color, 0.3);
        b {
          color: $white-color;
        }
      }
    }
    [class*="text-"] {
      color: $white-color;
    }
  }
  &.card-background:after {
    background-color: rgba(0, 0, 0, 0.7);
  }
}
.card-raised {
  @include shadow-big();
}
.card-background,
.back-background,
.front-background {
  background-position: center center;
  background-size: cover;
  text-align: center;
  .card-content {
    position: relative;
    z-index: 2;
    min-height: 280px;
    padding-top: 40px;
    padding-bottom: 40px;
    max-width: 440px;
    margin: 0 auto;
  }
  .category,
  .card-description,
  small {
    color: rgba($white, 0.7);
  }
  .card-title {
    color: $white-color;
    margin-top: 10px;
  }
  &:not(.card-pricing) .btn {
    margin-bottom: 0;
  }
  &:after {
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
    left: 0;
    top: 0;
    content: "";
    background-color: rgba(0, 0, 0, 0.56);
    border-radius: $border-radius-large;
  }
}
.back-background {
  .card-content {
    min-height: auto;
    padding-top: 15px;
    padding-bottom: 15px;
  }
}
.card-product {
  margin-top: 30px;
  .btn-simple.btn-just-icon {
    padding: 0;
  }
  .footer {
    margin-top: 5px;
    .price {
      h4 {
        margin-bottom: 0;
      }
    }
    .stats {
      margin-top: 5px;
    }
  }
  .card-title,
  .category,
  .card-description {
    text-align: center;
  }
  .category {
    margin-bottom: 0;
  }
  .category ~ .card-title {
    margin-top: 0;
  }
  .price {
    font-size: 18px;
    color: #9a9a9a;
  }
  .price-old {
    text-decoration: line-through;
    font-size: 16px;
    color: #9a9a9a;
  }
  .price-new {
    color: $brand-danger;
  }
}
.rotating-card-container {
  @include perspective(800px);
  .card-rotate {
    background: transparent;
    box-shadow: none;
    &:after {
      display: none;
    }
  }
  .card {
    @include transition-transform(0.8s, $transition-bezier-rotating-card);
    @include transform-style(preserve-3d);
    position: relative;
    .back,
    .front {
      @include backface-visibility(hidden);
      @include shadow-2dp();
      position: absolute;
      background-color: $white-color;
      border-radius: $border-radius-large;
      top: 0;
      left: 0;
      .card-content {
        height: 100%;
        justify-content: center;
        align-content: center;
        display: -webkit-flex;
        display: -moz-flex;
        display: -ms-flexbox;
        display: -o-flex;
        display: flex;
        -webkit-flex-direction: column;
        -moz-flex-direction: column;
        -ms-flex-direction: column;
        -o-flex-direction: column;
        flex-direction: column;
      }
    }
    .front {
      z-index: 2;
      position: relative;
    }
    .back {
      @include rotateY-180();
      z-index: 5;
      text-align: center;
      width: 100%;
      height: 100%;
      &.back-background {
        &:after {
          position: absolute;
          z-index: 1;
          width: 100%;
          height: 100%;
          display: block;
          left: 0;
          top: 0;
          content: "";
          background-color: rgba(0, 0, 0, 0.56);
          border-radius: $border-radius-large;
        }
        .card-content {
          position: relative;
          z-index: 2;
        }
      }
      .footer {
        .btn {
          margin: 0;
        }
      }
      .card-content {
        padding-left: 15px;
        padding-right: 15px;
      }
    }
  }
  &:not(.manual-flip):hover {
    .card {
      @include rotateY-180();
    }
  }
  &.hover.manual-flip {
    .card {
      @include rotateY-180();
    }
  }
  .card-profile & {
    .front {
      text-align: left;
    }
  }
}
/* Fix bug for IE
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  .rotating-card-container .card .front,
  .rotating-card-container .card .back {
    -ms-backface-visibility: visible;
    backface-visibility: visible;
  }
  .rotating-card-container .card .back {
    visibility: hidden;
    transition: visibility 0.3s cubic-bezier(0.34, 1.45, 0.7, 1);
  }
  .rotating-card-container .card .front {
    z-index: 4;
  }
  .rotating-card-container:not(.manual-flip):hover .card .back,
  .rotating-card-container.manual-flip.hover .card .back {
    z-index: 5;
    visibility: visible;
  }
} */
