body {
  display: flex;
  font-size: 18px;
  perspective: 1000px;
  background-color: #f5f5f5;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.description {
  margin-top: 50px;
  text-align: center;
  color: #999;
  transition: opacity 0.3s ease;
}
.description a {
  color: #4A9DF6;
  text-decoration: none;
}
.btn1.is-open ~ .description {
  opacity: 0;
}
.btn1 {
  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;
}
.btn-front1 {
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  line-height: 80px;
  background-color: #4A9DF6;
  color: #fff;
  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);
}
.btn-front1:hover {
  background-color: #f77066;
}
.btn1.is-open .btn-front {
  pointer-events: none;
  line-height: 160px;
}
.btn-back1 {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #eee;
  color: #222;
  transform: translateZ(-2px) rotateX(180deg);
  overflow: hidden;
  transition: box-shadow 0.8s ease;
}
.btn-back1 p {
  margin-top: 27px;
  margin-bottom: 25px;
}
.btn-back1 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;
}
.btn-back1 button:focus {
  outline: 0;
}
.btn-back1 button.yes1 {
  background-color: #2196F3;
  color: #fff;
}
.btn-back1 button.yes1:hover {
  background-color: #51adf6;
}
.btn-back1 button.no1 {
  color: #2196F3;
}
.btn-back1 button.no1:hover {
  background-color: #ddd;
}
.btn1.is-open .btn-back1 {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}
.btn1[data-direction="left"] .btn-back1, .btn1[data-direction="right"] .btn-back1 {
  transform: translateZ(-2px) rotateY(180deg);
}
.btn1.is-open {
  width: 400px;
  height: 160px;
}
.btn1[data-direction="top"].is-open {
  transform: rotateX(180deg);
}
.btn1[data-direction="right"].is-open {
  transform: rotateY(180deg);
}
.btn1[data-direction="bottom"].is-open {
  transform: rotateX(-180deg);
}
.btn1[data-direction="left"].is-open {
  transform: rotateY(-180deg);
}
