/* ======= Vocabulary ======= */
.vocabulary {
  width: 49%;
  position: relative;
  display: inline-block;
  margin-top: 0px;
}

.vocab-img {
  float: left;
}

.vocab-text {
  float: right;
  margin-left: 1%;
}

.textvoc-trans {
  size: 14px;
  cursor: pointer;
  font-weight: bold;
  line-height: 1.6;
  margin-top: -10px;
  margin-left: 10px;
  color: #778492;
}

.textvoc-hidden {
  display: none;
  size: 14px;
  font-weight: bold;
  line-height: 1.6;
  margin-top: -10px;
  margin-left: 30px;
  color: #778492;
}

@media(max-width:992px) {
  .vocabulary {
    width: 98%
  }

  .vocab-text {
    margin-top: 10px;
  }

}

/* Vocabulary flash-card presentation. */
/* entire container, keeps perspective */
.card-container {
  -webkit-perspective: 800px;
  -moz-perspective: 800px;
  -o-perspective: 800px;
  perspective: 800px;
  margin-bottom: 30px;
}

/* flip the pane when hovered */
.card-container:not(.manual-flip):hover .card, .card-container.hover.manual-flip .card {
  -webkit-transform: rotateY( 180deg );
  -moz-transform: rotateY( 180deg );
  -o-transform: rotateY( 180deg );
  transform: rotateY( 180deg );
}

.card-container.static:hover .card, .card-container.static.hover .card {
  -webkit-transform: none;
  -moz-transform: none;
  -o-transform: none;
  transform: none;
}

/* flip speed goes here */
.card {
  -webkit-transition: -webkit-transform .5s;
  -moz-transition: -moz-transform .5s;
  -o-transition: -o-transform .5s;
  transition: transform .5s;
  -webkit-transform-style: preserve-3d;
  -moz-transform-style: preserve-3d;
  -o-transform-style: preserve-3d;
  transform-style: preserve-3d;
  position: relative;
}

/* hide back of pane during swap */
.front, .back {
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -o-backface-visibility: hidden;
  backface-visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  background-color: #FFF;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.14);
}

/* front pane, placed above back */
.front {
  z-index: 2;
}

/* back, initially hidden pane */
.back {
  -webkit-transform: rotateY( 180deg );
  -moz-transform: rotateY( 180deg );
  -o-transform: rotateY( 180deg );
  transform: rotateY( 180deg );
  z-index: 3;
}

/*        Style       */
.card {
  background: none repeat scroll 0 0 #FFFFFF;
  border-radius: 4px;
}

.card-container, .front, .back {
  width: 100%;
  height: 450px;
  border-radius: 4px;
}

.card .cover {
  height: 280px;
  overflow: hidden;
  border-radius: 4px 4px 0 0;
}

@media (min-width: 768px) {
  .card .cover {
    height: 140px;
  }

  .card .third-title {
    display: none;
  }

  .card-container, .front, .back {
    height: 420px;
  }

}

@media (min-width: 992px) {
  .card .third-title {
    display:inherit;
  }

  .card .cover {
    height: 180px;
  }

}

@media (min-width: 1200px) {
  .card .cover {
    height: 220px;
  }

}

.card .cover img {
  width: 100%;
}

.card .content {
  background-color: rgba(0, 0, 0, 0);
  box-shadow: none;
  padding: 10px 20px 20px;
}

.card .content .main {
  min-height: 40px;
}

.card .back .content .main {
  height: 215px;
}

.card .first-title {
  font-size: 22px;
  line-height: 28px;
  margin: 10px 0 0;
  text-align: center;
  text-transform: capitalize;
}

.card h5 {
  margin: 5px 0;
  font-weight: 400;
  line-height: 20px;
}

.card .second-title {
  color: #999999;
  text-align: center;
  margin-bottom: 20px;
}

.card .third-title {
  color: #999999;
  text-align: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #EEEEEE;
}

.card .footer {
  border-top: 1px solid #EEEEEE;
  color: #999999;
  position: absolute;
  bottom: 0px;
  width: calc(100% - 34px);
  padding: 10px 0 0;
  text-align: center;
}

.card .footer-b {
  border: none;
  bottom: -10px;
  width:100%;
}

.card .details-hold {
  width: 100%;
  margin-top: 50px;
}

.card .details {
  display: block;
  float: left;
  width: 33.333333%;
  text-align: center;
}

.card .details:first-child {
  border-right: 1px solid #EEEEEE;
}

.card .details:last-child {
  border-left: 1px solid #EEEEEE;
}

.card .details h4 {
  font-weight: 300;
  margin-bottom: 5px;
}

.card .details p {
  color: #777777;
  font-size: 10px;
}

.footer .btn-submit {
  width: 120px;
}

/*       Fix bug for IE      */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  .front, .back {
    -ms-backface-visibility: visible;
    backface-visibility: visible;
  }

  .back {
    visibility: hidden;
    -ms-transition: all 0.2s cubic-bezier(.92,.01,.83,.67);
  }

  .front {
    z-index: 4;
  }

  .card-container:not(.manual-flip):hover .back, .card-container.manual-flip.hover .back {
    z-index: 5;
    visibility: visible;
  }

}
