.flip-boxes {
    justify-content: center;
  }
  .flip-box {
    display: flex;
    align-content: stretch;
    min-height: 200px;
    flex-wrap: wrap;
    position: relative;
    border: 10px solid transparent;
    padding:0;
    border-top: 0;  
    -webkit-perspective: 1000;
            perspective: 1000;
    
    &:hover {
      .back {
        transform: rotateY(0deg);
        z-index: 10;
      }
      
      .front {
        transform: rotateY(180deg);
        z-index: -1;
      }
      
    }
    
    .back, .front {
      position: relative;
      background-color: #1b2d61;
      color: white;
      display: flex;
      justify-content: center;
      align-content: center;
      flex: 0 0 100%;
      -webkit-transition: all 1s cubic-bezier(.5,1,.5,1);
      transition: all 1s cubic-bezier(.5,1.3,.5,1.3);
      transform-style: preserve-3d;
      background-size: cover;
      background-position: center;
    }
    
    .back {
      background-color: #cecece;
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 100%;
      z-index: -1;
      transform: rotateY(-180deg);
      
      &:after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 30px;
        height: 30px;
        border: 15px solid transparent;
        border-bottom-color: white;
        border-left-color: white;
      }
    }
    
    .front {
      z-index: 10;
      
      .content {
        font-size: 2rem;
      }
      
      &:after {
        content: "";
        position: absolute;
        bottom: 0;
        right: 0;
        width: 30px;
        height: 30px;
        border: 15px solid #cecece;
        border-bottom-color: white;
        border-right-color: white;
      }
    }