.flip-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  perspective: 800px;
}

.flip-main {
  width: 100%;
  height: 100%;
  /* position: absolute; */
  transform-style: preserve-3d;
  transition: transform 1s;
}

.flip-box {
  position: absolute;
  width: 640px;
  /* height: 322px; */
  /* left: 0; */
  /* right: 0; */
  margin: auto;
  /* top: 0; */
  text-align: center;
}

.dialog {
  display: none;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1001;
}

.video-box {
  max-height: 500px;
  background-color: #fff;
  padding-top: 20px;
}

.close {
  width: 20px;
  height: 20px;
  opacity: .6;
  margin-right: 10px;
  cursor: pointer;
  margin-top: -27px;
}

.close img {
  vertical-align: middle;
}

.right {
  transform-origin: right center;
}

.left {
  transform-origin: left center;
}

.fliped {
  transform: translateX(-100%) rotateY(-180deg);
}

.fliped-f {
  transform: translateX(100%) rotateY(180deg);
}

.flip-item {
  display: block;
  position: absolute;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}

.flip-back {
  transform: rotateY(180deg);
}