#coverspace {
  min-height: 500px;
  margin-left: auto;
  margin-right: auto;
  max-width:1000px;
  min-width:800px;
}


#coverspace-inner {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
  perspective: 1000px;
  width:400px;
}



.book {
  position: relative;
  width: 270px;
  height: 400px;
  transition: 1s;
  transform-style: preserve-3d;
  transform: rotateY(16deg);
}

.book.flip {
  transform: rotateY(-150deg);
}

.rotateLeft {
  transform: rotateY(45deg);
}

.rotateRight {
  transform: rotateY(-45deg);
}

.first-half,
.second-half {
  position: absolute;
  width: 50%;
  height: 100%;
  background-image: url("./img/front-cover-half-1.jpg");
  background-size: 100% 100%;
}

.second-half {
  left: 50%;
  background-image: url("./img/front-cover-half-2.jpg");
}

.book:before,
.book:after {
  content: "";
  position: absolute;
  background-image: url("./img/middle-cover.jpg");
  width: 80px;
  height: 100%;
  background-size: 100% 100%;
  transform-origin: left;
  transform: rotateY(90deg);
}

.book:after {
  right: 0;
  background-image: url("./img/middle-cover-2.jpg");
  transform-origin: right;
  transform: rotateY(-90deg);
}

.back-cover {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url("./img/back-cover.jpg");
  background-size: 100% 100%;
  transform: rotateY(180deg) translateZ(80px);
  box-shadow: 0.3em 0.3em 40em rgb(207 113 187 / 60%);
}
