  .containerheader,
  figure {
    width: 450px;
    height: 270px;
  }

  .containerheader {
    position: absolute;
    perspective: 1000;
    margin-top: -135px;
    top: 50%;
  }

  .card {
    position: relative;
    transition: 0.6s;
    transform-style: preserve-3d;
  }

  figure {
    background: #2e5d5a;
    color: #fff;
    backface-visibility: hidden;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    text-align: center;
    cursor: pointer;
    transition: 0.6s;
    transform-style: preserve-3d;
    box-shadow: 5px 5px 40px rgba(0, 0, 0,1);
  }

  figure.front {
    border: 3px solid;
    border-radius: 3px;
    transform: rotateY(0deg);
    z-index: 2;
  }

  figure.back,
  .card.flipped {
    border-radius: 3px;
    transform: rotateY(180deg);
  }

  figure img {
    position: relative;
    display: block;
    min-height: 100%;
    opacity: 0.7;
    filter: blur(2px);
  }

  figure .caption {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 16px;
    text-transform: uppercase;
    padding: 20px;
    backface-visibility: hidden;
  }

  .front .caption {
    font-size: 1.25em;
  }

  .front .caption:before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(72, 76, 97, 0) 0%, rgba(72, 76, 97, 0.8) 75%);
    content: '';
    opacity: 0;
    transform: translate3d(0, 50%, 0);
    transition: opacity 0.35s, transform 0.35s;
  }

  .front:hover .caption:before {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  .front h2 {
    word-spacing: -0.15em;
    font-weight: 300;
    font-size: 1.6em;
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    color: #ffffff7a;
    transition: transform 0.35s, color 0.35s;
    transform: translate3d(0, -50%, 0);
  }

  .front h2 span {
    font-weight: bold;
  }

  .front h2:after {
    position: absolute;
    bottom: -10px;
    left: 70px;
    right: 70px;
    height: 2px;
    background: #fff;
    content: '';
    transition: transform 0.35s;
    transform: translate3d(-130%, 0, 0);
  }

  .front:hover h2 {
    color: #fff;
    transform: translate3d(0, -50%, 0) translate3d(0, -40px, 0);
  }

  .front:hover h2:after {
    transform: translate3d(0, 0, 0);
  }

  .front p {
    letter-spacing: 1px;
    font-size: 68.5%;
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 2em;
    width: 100%;
    opacity: 0;
    transform: translate3d(0, 10px, 0);
    transition: opacity 0.35s, transform 0.35s;
  }

  .back .caption:before,
  .back .caption:after {
    position: absolute;
    top: 30px;
    right: 30px;
    bottom: 30px;
    left: 30px;
    content: '';
    opacity: 0;
    transition: opacity 0.45s, transform 0.45s;
    transition-delay: 0.5s;
  }

  .back .caption:before {
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
    transform: scale(0, 1);
  }

  .back .caption:after {
    border-right: 1px solid #fff;
    border-left: 1px solid #fff;
    transform: scale(1, 0);
  }

  .card.flipped .back .caption:before,
  .card.flipped .back .caption:after {
    opacity: .9;
    transform: scale(1);
  }

  .back dl {
    font-family: 'Lato', Arial, sans-serif;
    font-weight: 300;
    bottom: 40px;
    left: 40px;
    position: absolute;
    opacity: 0;
    transition: opacity .35s, transform .35s;
    transition-delay: 0.5s;
    transform: translate3d(-40px, 0, 0);
  }

  .card.flipped .back dl {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  dl dt {
    float: left;
    width: 60px;
    overflow: hidden;
    clear: left;
    text-align: right;
    font-weight: 700;
  }

  dl dd {
    margin-left: 80px;
    text-align: left;
  }

  dl dd:before,
  dl dd:after {
    display: table;
    content: " ";
  }

  dl dd:after {
    clear: both;
  }

  .front:hover p {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  figure a {
    z-index: 1000;
    text-indent: 200%;
    white-space: nowrap;
    font-size: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  @media (min-width: 450px) {
    .containerheader {
      left: 50%;
      margin-left: -225px;
    }
  }


  /* background */

  .wrapper {
    position: absolute;
    top: 0%;
    left: 0;
    width: 100%;
    height: 100%;
    /* margin-top: -200px; */
    background: linear-gradient(to bottom, var(--clr) 0%, #47C3E630 50%, #47C3E630 50%, var(--clr));
    animation: cc 15s linear infinite;
    overflow: hidden;
  }

  @keyframes cc{
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

  .bg-bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
  }
  
  .bg-bubbles li {
    position: absolute;
    list-style: none;
    display: block;
    width: 40px;
    height: 40px;
    opacity: 0.7;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2), inset 0px 10px 30px 5px rgba(255, 255, 255, 1);
    bottom: -180px;
    border-radius: 50%;
    animation: square 18s infinite;
    transition-timing-function: linear;
  }

  .bg-bubbles li::after{
    content: "";
    width: 36px;
    height: 36px;
    background: radial-gradient(ellipse at center,  rgba(255,255,255,0.5) 0%,rgba(255,255,255,0) 70%); 
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#80ffffff', endColorstr='#00ffffff',GradientType=1 );
  }

  .bg-bubbles li:nth-child(1) {
    left: var(--i);
    animation-delay: 1s;
  }

  .bg-bubbles li:nth-child(2) {
    left: var(--i);
    width: 80px;
    height: 80px;
    animation-delay: 2s;
    animation-duration: 17s;
  }

  .bg-bubbles li:nth-child(3) {
    left: var(--i);
    animation-delay: 4s;
  }

  .bg-bubbles li:nth-child(4) {
    left: var(--i);
    width: 60px;
    height: 60px;
    animation-duration: 16s;
  }

  .bg-bubbles li:nth-child(5) {
    left: var(--i);
    animation-delay: 3s;
    animation-duration: 15s;
  }

  .bg-bubbles li:nth-child(6) {
    left: var(--i);
    width: 120px;
    height: 120px;
    animation-delay: 3s;
  }

  .bg-bubbles li:nth-child(7) {
    left: var(--i);
    width: 130px;
    height: 130px;
    animation-delay: 6s;
  }

  .bg-bubbles li:nth-child(8) {
    left: var(--i);
    width: 25px;
    height: 25px;
    animation-delay: 11s;
    animation-duration: 30s;
  }

  .bg-bubbles li:nth-child(9) {
    left: var(--i);
    width: 30px;
    height: 30px;
    animation-delay: 2s;
    animation-duration: 30s;
  }

  .bg-bubbles li:nth-child(10) {
    left: var(--i);
    width: 160px;
    height: 160px;
    animation-delay: 8s;
    animation-duration: 12s;
  }
  .bg-bubbles li:nth-child(11) {
    left: var(--i);
    width: 90px;
    height: 90px;
    animation-delay: 7s;
  }
  .bg-bubbles li:nth-child(12) {
    left: var(--i);
    width: 60px;
    height: 60px;
    animation-delay: 4s;
    animation-duration: 15s;
  }

  @keyframes square {
    0% {
      transform:  translateY(0) scale(0.3);
      left: calc(var(--i) - 5%);
    }

    15% {
      left: calc(var(--i) + 10%);
    }

    45% {
      left: calc(var(--i) + 1%);
    }
  
    100% {
      transform: translateY(-1100px) scale(1.2);
      left: calc(var(--i) + 20%);
    }
  }