﻿.card {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
}
.card > .overlay {
  border-radius: 2px;
}
.card--link {
  transition: box-shadow 0.15s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.card--link > a,
.card--link > a:hover {
  border: 0 none;
  text-decoration: none;
}
.card--link:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
  transition: box-shadow 0.15s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.card__image > img {
  width: auto;
  height: auto;
}
.card__image > .landscape {
  width: 100%;
  height: auto;
}
.card__image > .portrait {
  width: auto;
  height: 100%;
}
.card__image > * {
  z-index: 100;
}
.card__image {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
  line-height: 0;
}
.grid-container > .card .card__image {
  height: auto;
}
.card__image--ratio-4-3,
.card__image--ratio-16-9 {
  position: relative;
  background-color: #000;
}
.card__image--ratio-4-3:before {
  display: block;
  padding-top: 75%;
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
  content: '';
}
.card__image--ratio-16-9:before {
  display: block;
  padding-top: 56.25%;
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
  content: '';
}
.card__image--ratio-4-3 > img,
.card__image--ratio-16-9 > img {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}
.card__image--has-header {
  position: relative;
}
.card__header {
  padding: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.card .card__header * {
  margin: 0;
}
.card__header--accent {
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0);
}
.card__header--accent:before {
  position: absolute;
  right: 85%;
  bottom: 0;
  left: 10px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  padding-right: 10px;
  padding-left: 10px;
  width: auto;
  height: 1px;
  background: #00aeef;
  content: '';
  -webkit-transition: 0.3s ease-in-out;
  -moz-transition: 0.3s ease-in-out;
  -o-transition: 0.3s ease-in-out;
  transition: 0.3s ease-in-out;
}
.card__image--has-header .card__header {
  position: absolute;
  bottom: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}
.card__body {
  display: flex;
  flex-direction: column;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  padding: 10px;

  flex-grow: 1;
}
.card__body p {
  margin: 0;
}
.card__body p + p {
  margin-top: 1em;
}
.card__footer {
  box-sizing: border-box;
  padding: 10px;
  width: 100%;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.card__header + .card_footer {
  border-top: 0;
}
.card__footer--accent {
  background-color: rgba(0, 0, 0, 0.02);
}
.card__footer--fixed {
  position: absolute;
  bottom: 0;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  width: 100%;
}
.card__body--scroll {
  overflow-y: scroll;
}
.card__body--scroll::-webkit-scrollbar-track {
  border-radius: 10px;
  background-color: #f1f3f4;
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}
.card__body--scroll::-webkit-scrollbar {
  width: 8px;
  background-color: #f1f3f4;
}
.card__body--scroll::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background-color: #ccc;
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}
.card__body--short {
  height: 150px;
}
.card__body--medium {
  height: 250px;
}
.card__body--tall {
  height: 400px;
}
.card__header--tabs {
  padding: 0;
}
.card__header--tabs .bcu-tabs {
  background-color: rgba(0, 0, 0, 0.35);
  box-shadow: inset 3px 0px 0px 0px rgba(0, 0, 0, 0.1);
}
.card__header--tabs .bcu-tabs--material {
  background-color: transparent;
  box-shadow: none;
}
.card__body > .bcu-tabs-panel {
  border: 0;
}
.card__header--tabs .bcu-tabs li,
.card__header--tabs .bcu-tabs li.ui-state-active {
  top: 0;
  margin-top: 0 !important;
  border: 0 none;
  background-color: transparent;
}
.card__header--tabs .bcu-tabs li:hover {
  background-color: rgba(0, 0, 0, 0.1);
  -webkit-transition: background-color 0.3s ease;
  transition: background-color 0.3s ease;
}
.card__header--tabs > .bcu-tabs > li > a {
  padding-right: 10px;
  padding-left: 10px;
}
.card__header--tabs .bcu-tabs li.bcu-tab-active,
.card__header--tabs .bcu-tabs li.ui-tabs-active {
  top: 0;
  background-color: #fff;
}
.bcu-tabs--material > li > a,
.bcu-tabs--material > li > a:hover {
  color: inherit;
}
.bcu-tabs--material .ui-tabs-active:after,
.bcu-tabs--material > li:after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: transparent;
  content: '';
  -webkit-transition: all ease 250ms;
  transition: all ease 250ms;
}
.bcu-tabs--material .ui-tabs-active:after,
.bcu-tabs--material li:hover:after {
  width: 3px;
  background-color: #00AEEF;
}
.card__header--tabs .bcu-tabs--material li:hover {
  background-color: transparent;
}
@media only screen and (min-width: 900px) {
  .card__header--tabs .bcu-tabs {
    box-shadow: inset 0px -3px 0px 0px rgba(0, 0, 0, 0.1);
  }
  .card__header--tabs .bcu-tabs--material {
    box-shadow: none;
  }
}
@media only screen and (min-width: 900px) {
  .card__header--tabs .bcu-tabs .ui-tabs-active {
    box-shadow: 0px 1px 0px 0px #fff;
  }
  .card__header--tabs .bcu-tabs--material .ui-tabs-active {
    box-shadow: none;
  }
  .bcu-tabs--material .ui-tabs-active:after,
  .bcu-tabs--material > li:after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: transparent;
    content: '';
    -webkit-transition: all ease 250ms;
    transition: all ease 250ms;
  }
  .bcu-tabs--material .ui-tabs-active:after,
  .bcu-tabs--material li:hover:after {
    width: 100%;
    height: 3px;
    background-color: #00AEEF;
    -webkit-transition: all ease 250ms;
    transition: all ease 250ms;
  }
}
.flip {
  position: relative;
  margin: 20px auto;
  width: 100%;
  height: 255px;

  perspective: 1000px;
  -webkit-perspective: 1000px;
  -moz-perspective: 1000px;
  -o-perspective: 1000px;
  -ms-perspective: 1000px;
}
.flip .card {
  position: relative;
  overflow: visible;
  width: 100%;
  height: 100%;
  cursor: pointer;
  -webkit-transition: 0.5s ease-out;
  -moz-transition: 0.5s ease-out;
  -ms-transition: 0.5s ease-out;
  -o-transition: 0.5s ease-out;
  transition: 0.5s ease-out;

  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  -moz-transform-style: preserve-3d;
  -o-transform-style: preserve-3d;
  -ms-transform-style: preserve-3d;
  /* content backface is visible so that static content still appears */
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
  -moz-backface-visibility: visible;
  -o-backface-visibility: visible;
  -ms-backface-visibility: visible;
}
.flip.flipped .card {
  -webkit-transform: rotateY(180deg);
  -moz-transform: rotateY(180deg);
  -ms-transform: rotateY(180deg);
  -o-transform: rotateY(180deg);
  transform: rotateY(180deg);
}
.flip .card .front,
.flip .card .back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Backface visibility works great for all but IE. As such, we mark the backface visible in IE and manage visibility ourselves */

  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -ms-backface-visibility: visible;
  backface-visibility: hidden;
}
.flipped .card .back {
  /* Backface visibility works great for all but IE. As such, we mark the backface visible in IE and manage visibility ourselves */
  -ms-backface-visibility: visible;
}
.flip .card .front {
  color: white;
}
.flip .card .back {
  background: white;
  color: black;
}
.flip .card .front,
.flip.flipped .card .front {
  -webkit-transform: rotateY(0deg);
  -moz-transform: rotateY(0deg);
  -ms-transform: rotateY(0deg);
  -o-transform: rotateY(0deg);
  transform: rotateY(0deg);
}
.flip .card .back,
.flip.flipped .card .back {
  -webkit-transform: rotateY(-180deg);
  -moz-transform: rotateY(-180deg);
  -ms-transform: rotateY(-180deg);
  -o-transform: rotateY(-180deg);
  transform: rotateY(-180deg);
}
.flip .card .front,
.flip.flipped .card .back {
  visibility: visible;
  -ms-transition: visibility 0s linear 0.17s;
  -webkit-animation: stayvisible 0.5s both;
  -moz-animation: stayvisible 0.5s both;
  -ms-animation: donothing 0.5s;
  -o-animation: stayvisible 0.5s both;
  /* IE Hack. Halfway through the card flip, set visibility. Keep other browsers visible throughout the card flip. */
  animation: stayvisible 0.5s both;
}
.flip.flipped .card .front,
.flip .card .back {
  visibility: hidden;
  -ms-transition: visibility 0s linear 0.17s;
  -webkit-animation: stayvisible 0.5s both;
  -moz-animation: stayvisible 0.5s both;
  -ms-animation: donothing 0.5s;
  -o-animation: stayvisible 0.5s both;
  /* IE Hack. Halfway through the card flip, set visibility. Keep other browsers visible throughout the card flip. */
  animation: stayvisible 0.5s both;
}
@keyframes stayvisible {
  from {
    visibility: visible;
  }
  to {
    visibility: visible;
  }
}
@-webkit-keyframes stayvisible {
  from {
    visibility: visible;
  }
  to {
    visibility: visible;
  }
}
@-moz-keyframes stayvisible {
  from {
    visibility: visible;
  }
  to {
    visibility: visible;
  }
}
@-o-keyframes stayvisible {
  from {
    visibility: visible;
  }
  to {
    visibility: visible;
  }
}
.flip .card__image {
  position: absolute;
  top: 0;
  overflow: hidden;
  width: 100%;
  height: 100%;
}
.flip .card__image img {
  max-width: none !important;
  width: auto;
  height: 100%;
}
.card__text {
  position: absolute;
  bottom: 0;
  max-height: 50%;
  width: 100%;
  background-color: #000000;
  background-color: rgba(0, 0, 0, 0.8);
  -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#000000, endColorstr=#000000)";
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#000000, endColorstr=#000000);
}
.card__flip-icon {
  top: 10px;
  right: 6px;
  z-index: 100;
}