.effect-3d .box-3d{
 padding: 20px 0;
}
.effect-3d .box-container,
.effect-spark .box-container{
    white-space: nowrap;
}

.effect-3d .box-container{
  padding: 45px 0;
}
.effect-3d .scene {
  perspective: 700px;
  display: inline-block;
}

.effect-3d .box {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: translateZ(0px);
  animation: elastic-spin-back 1s 1 ease forwards; 
  text-align: center; 
}

.effect-3d .box-btn {
  background: #009fc2;
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    padding: 6px;
    margin: 0 5px;
}

.effect-3d .box-btn:hover{
  background: #fff;
}

.effect-3d .box-btn:hover i{
  color: #666;
}

.effect-3d .box-btn i{
  color: #fff;
  font-size: 21px !important;
  margin: 0;
  line-height: 30px;
}

@keyframes elastic-spin {
  from { transform: rotateY(0deg); }
  40% { transform: rotateY(-200deg); } 
  50% { transform: rotateY(-180deg);}
  70% { transform: rotateY(-170deg);}
  to { transform: rotateY(-180deg); }
}

@keyframes elastic-spin-back { 
    0% { transform: rotateY(-180deg);}
   50% { transform: rotateY(20deg); }
  to { transform: rotateY(0deg); }
}


.effect-3d .scene:hover .box   { animation: elastic-spin 1s ease-out forwards; }


.effect-3d .box img{
    width: 50%;
    max-width:150px;
  }

  .box h3{
    font-size: 18px;
    font-weight: bold;
    color: white;
    white-space: normal;
    margin-top: 5px;
    padding-bottom: 25px;
  }

.box .description{
  white-space: normal;
  min-height: 50px;
  padding-top:10px;
}

.box__face {
  position: absolute;
  text-align: center;
  -webkit-border-radius: 20px;
-moz-border-radius: 20px;
border-radius: 20px;
color: white !important;
margin: 0 !important;
}

.box__face--front,
.box__face--back {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}


.box__face--right,
.box__face--left {
  width: 100%;
  height: 100%;
  left: 0;
  background: none;
  padding: 0 15px;
}

.effect-3d .box__face--right .btn,
.effect-3d .box__face--left .btn {
  position: absolute;
    left: 10%;
    right: 10%;
    bottom: 10px;
}

.effect-3d .box__face--right,
.effect-3d .box__face--left 
{ 
  padding-top:30px;
  height: calc(100% - 37px);
  width: calc(100% - 22px);
  left: 11px;
  top: 18px;
  background: none;
  padding: 0 15px;
}

.effect-3d .box__face--front  { transform: rotateY(  0deg) translateZ( 1px); }
.effect-3d .box__face--back   { transform: rotateY(180deg) translateZ( 2px); }

.effect-3d .box__face--right  { transform: rotateY( 0deg) translateZ(50px); }
.effect-3d .box__face--left   { transform: rotateY(180deg) translateZ(50px); }


.effect-fade img{
  float: right;
  max-height: 50%;
}

.effect-fade .box__face--front, .effect-fade .box__face--back{
  width: calc(100% - 30px);
  padding: 10px;
  transition: all 0.5s;
}

.effect-fade .box__face--back{
  opacity: 0;
}
.effect-fade .scene{
  margin-bottom: 10px;
}
.effect-fade .scene:hover .box__face--front{ opacity: 0; }

.effect-fade .scene:hover .box__face--back{ opacity: 1; }

.effect-fade .media-heading{
  font-size: 28px;
  border-bottom: 1px solid #ffffff66;
  margin: 0 15px;
}


.effect-fade .media-body,
.effect-spark .scene{
  white-space: normal;
}


.effect-spark .scene {
  direction: rtl;
  display: inline-block;
  overflow: hidden;
}


.effect-spark .btn{
  width: 90%;
}

.effect-spark .box__face--front,
.effect-spark .box__face--back {
  transition: all 0.5s;
  
}

.effect-spark .box__face--right,
.effect-spark .box__face--left {
  bottom: 10px;
  height:fit-content;
  transition: all 0.2s;
}

.effect-spark .scene .box__face--left{ opacity: 0; bottom: -100px;}
.effect-spark .scene .box__face--back{ opacity: 0; }

.effect-spark .scene:hover .box__face--front{ opacity: 0; }
.effect-spark .scene:hover .box__face--back{ opacity: 1; }

.effect-spark .scene:hover .box__face--right{ bottom: 100px; opacity: 0; }
.effect-spark .scene:hover .box__face--left{ bottom: 10px; opacity: 1; }

.effect-spark .media-heading{
  font-size: 21px;
  margin: 0 5px;
}
