/* Add your CSS code here.

For example:
.example {
    color: red;
}

For brushing up on your CSS knowledge, check out http://www.w3schools.com/css/css_syntax.asp

End of comment */ 

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.book {
  position: relative;
  width: 230px;
  height: 345px;
  transition: 1s;
  transform-style: preserve-3d;
}

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

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

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

.first-half,
.second-half {
  position: absolute;
  width: 50%;
  height: 100%;
  background-image: url("https://authorpattiswinson.com/wp-content/uploads/2024/12/front-cover-half-1-scaled.jpg");
  background-size: 100% 100%;
}

.second-half {
  left: 50%;
  background-image: url("https://authorpattiswinson.com/wp-content/uploads/2024/12/front-cover-half-2-scaled.jpg");
}

.book:before,
.book:after {
  content: "";
  position: absolute;
  background-image: url("https://authorpattiswinson.com/wp-content/uploads/2024/12/middle-cover-scaled.jpg");
	background-color: black;
  width: 65px;
  height: 100%;
  background-size: 100% 100%;
  transform-origin: left;
  transform: rotateY(90deg);
}

.book:after {
  right: 0;
  background-image: url("https://authorpattiswinson.com/wp-content/uploads/2024/12/middle-cover-2.jpg");
  transform-origin: right;
  transform: rotateY(-90deg);
}

.back-cover {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url("https://authorpattiswinson.com/wp-content/uploads/2024/12/back-cover-scaled.jpg");
  background-size: 100% 100%;
  transform: rotateY(180deg) translateZ(65px);
}
