.effect-3d .box-3d{
 padding: 20px 0;
}
.effect-3d .box-container,
.effect-spark .box-container{
    white-space: nowrap;
}

.effect-3d .box-container{
  padding: 10px 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: rotateX(0deg); }
  40% { transform: rotateX(-200deg); } 
  50% { transform: rotateX(-180deg);}
  70% { transform: rotateX(-170deg);}
  to { transform: rotateX(-180deg); }
}

@keyframes elastic-spin-back { 
    0% { transform: rotateX(-180deg);}
   50% { transform: rotateX(20deg); }
  to { transform: rotateX(0deg); }
}


.effect-3d .scene:hover .box   { animation: elastic-spin 1s ease-out forwards; }


.effect-3d .box img{
    max-width: 50%;
  }

  .box h3{
    font-size: 18px;
    font-weight: bold;
    color: white;
    white-space: normal;
    margin-top: 5px;
  }

.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-fade .scene{
  overflow: hidden;
}
.box-3d .btn{
  background: none !important;
  color: #fff !important;
}
.box-3d .scene>.btn {
  position: absolute;
    left: -40px;
    opacity: 0;
    width:calc(100% - 80px);
    bottom: 70px;
    background: none !important;
    color: #fff !important;
    text-shadow:none;
    max-width: 50%;
    transition: all 0.2s;
}
.box-3d .scene:hover>.btn {
  left: 40px;
  opacity: 1;
}

.box-3d .scene>.btn:hover {
  background-color: #fff !important;
  color: #333 !important;
}

.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;
  align-items: center;
}

.effect-3d .box__face--front  { transform: rotateX(  0deg) translateZ( 1px); }
.effect-3d .box__face--back   { transform: rotateX(180deg) translateZ( 2px); }

.effect-3d .box__face--right  { transform: rotateX( 0deg) translateZ(50px); }
.effect-3d .box__face--left   { transform: rotateX(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;
  background-size: 110%;
  background-position: center center;
}
.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;
  margin: 0 15px;
  transition: all 0.5s;
}
.effect-fade .scene:hover .media-heading{
  transform: scale(0.9);
}

.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;
}
