/* playfair-display-regular - latin */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/playfair-display-v36-latin-regular.woff2") format("woff2");
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* playfair-display-italic - latin */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400;
  src: url("../fonts/playfair-display-v36-latin-italic.woff2") format("woff2");
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
body {
  background-image: url(../img/bg.jpg);
  background-size: auto;
  background-repeat: no-repeat;
  font-family: "Playfair Display", serif;
  font-size: 14px;
  color: #953734;
}

.imp {
  text-align: right;
  color: #fff;
}
.imp a, .imp a:visited, .imp a:active, .imp a:hover, .imp a:focus {
  color: #fff;
}

.wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.book {
  height: 550px;
  width: 550px;
  font-size: 1rem;
  box-shadow: 1rem 2rem 3rem rgba(0, 0, 0, 0.25);
  text-align: center;
  position: relative;
  color: #484e4a;
}

img {
  width: 100%;
  height: auto;
}

.page {
  width: 100%;
  height: 100%;
  perspective: 1500px;
  transition: transform 0.3s 0.5s;
  /*&:hover &__1 {
    transform: rotateY(-180deg);
    box-shadow: 1.5rem 2rem 3rem rgba(#000, .25);

    &::after { // Back of first page hover
      opacity: 1;
    }

  }*/
}
.page__1 {
  background-color: #c0c0c0;
  background-image: url(../img/bg-front.jpg);
  background-repeat: no-repeat;
  background-position: left;
  background-size: contain;
  color: #953734;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 1;
  transition: all 1s 0.3s;
  transform-origin: 0 50%;
  z-index: 2;
  box-shadow: 5px 5px 15px 5px #000000;
}
.page__1 p {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) translateX(-50%);
  left: 50%;
  margin: 0;
  padding: 0;
}
.page__1::after {
  content: "";
  color: #953734;
  position: absolute;
  padding-top: 1.5rem;
  top: 0;
  left: 0;
  background-color: #c0c0c0;
  background-image: url(../img/erika.jpg);
  background-size: cover;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
  transform: rotateY(180deg);
  transition: all 0.3s 0.5s;
}
.page__2 {
  background-color: #c0c0c0;
  width: 100%;
  height: 100%;
  position: absolute;
  background-image: url(../img/bg-bottom.jpg);
  background-repeat: no-repeat;
  background-position: bottom left;
  color: #953734;
  background-size: contain;
  top: 0;
  left: 0;
  overflow: hidden;
  opacity: 1;
  box-shadow: 5px 5px 15px 5px #000000;
  transition: all 0.7s ease-in-out;
}
.page__2 p {
  opacity: 0;
  transition: all 0.3s ease-in-out;
}
.page.open .page__1 {
  transform: rotateY(-180deg);
  box-shadow: 8px 5px 15px 5px #000000;
}
.page.open .page__1::after {
  opacity: 1;
}
.page.open .page__2 p {
  opacity: 1;
}
.page.open {
  transform: translateX(50%);
}

@media only screen and (max-width: 600px) {
  .book {
    height: 75vw;
    width: 75vw;
  }

  .over-wrapper {
    min-height: 1200px;
  }

  .page {
    /*&:hover &__1 {
      transform: rotateY(-180deg);
      box-shadow: 1.5rem 2rem 3rem rgba(#000, .25);

      &::after { // Back of first page hover
        opacity: 1;
      }

    }*/
  }
  .page__1 {
    transform-origin: 50% 0;
  }
  .page__1::after {
    transform: rotateX(180deg);
  }
  .page.open .page__1 {
    transform: rotateX(180deg);
    box-shadow: 5px 7px 15px 5px #000000;
  }
  .page.opened .page__2 {
    height: 700px;
  }
  .page.open {
    transform: translateX(0) translateY(35%);
  }
  .page.opened {
    margin-bottom: 50px;
  }
}

/*# sourceMappingURL=styles.css.map */
