/* https://codepen.io/hakimel/pen/ZYRgwB */

.confirm-btn.is-open ~ .description {
  opacity: 0;
}
.confirm-btn {
  display: block;
  position: relative;
  width: 200px;
  height: 80px;
  transition: width 0.8s cubic-bezier(0.23, 1, 0.32, 1), height 0.8s cubic-bezier(0.23, 1, 0.32, 1), transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  text-align: center;
}

.confirm-btn-perfect {
  background-color: #2196f3;
  color: #fff;
}

.confirm-btn-perfect:hover {
  background-color: #51adf6;
}

.confirm-btn-correction {
  background-color: #FFF;
  border: 2px solid #51adf6;
  color: #51adf6;
}

.confirm-btn-correction:hover {
  background-color: #51adf6;
  color: #FFF;
}

.confirm-btn-front {
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  line-height: 80px;
  cursor: pointer;
  backface-visibility: hidden;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  transition: background 0.15s ease, line-height 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}
.confirm-btn-front:hover {
  /*background-color: #f77066;*/
}
.confirm-btn.is-open .confirm-btn-front {
  pointer-events: none;
  line-height: 160px;
}
.confirm-btn-back {
  position: absolute;
  width: 100%;
  height: 100%;
  /*background-color: #eee;*/
  background-color: #FFF;
  color: #222;
  transform: translateZ(-2px) rotateX(180deg);
  overflow: hidden;
  /*transition: box-shadow 0.8s ease;*/
  box-shadow: none;
}
.confirm-btn-back p {
  margin-top: 27px;
  margin-bottom: 25px;
}
.confirm-btn-back button {
  padding: 12px 20px;
  width: 30%;
  margin: 0 5px;
  background-color: transparent;
  border: 0;
  border-radius: 2px;
  font-size: 1em;
  cursor: pointer;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  transition: background 0.15s ease;
}
.confirm-btn-back button:focus {
  outline: 0;
}
.confirm-btn-back button.yes {
  background-color: #2196f3;
  color: #fff;
}
.confirm-btn-back button.yes:hover {
  background-color: #51adf6;
}
.confirm-btn-back button.no {
  color: #2196f3;
}
.confirm-btn-back button.no:hover {
  background-color: #ddd;
}
.confirm-btn.is-open .confirm-btn-back {
  /*box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);*/
  box-shadow: none;
}
.confirm-btn[data-direction="left"] .confirm-btn-back, .confirm-btn[data-direction="right"] .confirm-btn-back {
  transform: translateZ(-2px) rotateY(180deg);
}

#block_SubmitCorrection.is-open {
  height: 60px !important; /* DOWN TO 60 BECAUSE I'M DROPPING THE CONTENT*/
}
.confirm-btn.is-open {
  width: 400px;
  height: 160px;
}
.confirm-btn[data-direction="top"].is-open {
  transform: rotateX(180deg);
}
.confirm-btn[data-direction="right"].is-open {
  transform: rotateY(180deg);
}
.confirm-btn[data-direction="bottom"].is-open {
  transform: rotateX(-180deg);
}
.confirm-btn[data-direction="left"].is-open {
  transform: rotateY(-180deg);
}