/* body {
  min-height: 100vh;
  margin: 0;
  max-height: 100vh;
  overflow: hidden;
  background-color: #264653;
} */

/* * {
  box-sizing: border-box;
} */

.centered {
  margin: auto;
  width: max-content;
}

.flipbook {
  margin: 1em auto;
  width: 100%;
  height: 560px;
  position: relative;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.flipbook .leaf {
  position: absolute;
  transform-style: preserve-3d;
  height: 100%;
  width: 50%;
  background-color: #fff;
  left: 50%;
  transition: transform 1s;
  transform: rotate3d(0, 1, 0, 0deg);
  transform-origin: left 0px;
}

.flipbook .leaf .page {
  transform-style: preserve-3d;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
}

.flipbook .leaf .page.front {
  transform: rotate3d(0, 1, 0, 0deg) translate3d(0, 0, 0.1px);
}

.flipbook .leaf .page.front:not(.external) {
  box-shadow: inset 5px 0px 5px -5px #0005;
}

.flipbook .leaf .page.back {
  transform: rotate3d(0, 1, 0, 180deg) translate3d(0, 0, 0.1px);
}

.flipbook .leaf .page.back:not(.external) {
  box-shadow: inset -5px 0px 5px -5px #0005;
}

.disable {
  user-select: none;
  opacity: 0.6;
}

.title {
  text-align: center;
  width: 100%;
  padding: 0em !important;
  padding-top: 2em;
}

.page {
  padding: 1em;
}

.page.front {
  border-radius: 0em 1em 1em 0;
}

.page.back {
  border-radius: 1em 0em 0em 1em;
}

.leaf {
  background-color: #0000 !important;
}

.pageNumber {
  font-size: 0.75em;
  position: absolute;
  bottom: 0.5em;
}

.front .pageNumber {
  right: 0.75em;
}

.back .pageNumber {
  left: 0.75em;
}

.contents-row {
  display: flex;
  flex-flow: row nowrap;
}

.contents-row .spacer {
  flex: 1 1;
  height: 1em;
  border-bottom: 1px dashed #000;
}

.contents-row .text {
  flex: 0 0 auto;
}

/* h1,
h2,
h3 {
   font-family: cursive;
} */

p {
  font-size: 0.95em;
}

body[onload] {
  transform: scale(1.5);
  transform-origin: center top;
}

body[onload] .leaf:nth-child(1) {
  transform: rotate3d(0, 1, 0, -128deg) !important;
}

body[onload] .leaf:nth-child(2) {
  transform: rotate3d(0, 1, 0, -70deg) !important;
}

body[onload] .leaf:nth-child(3) {
  transform: rotate3d(0, 1, 0, -40deg) !important;
}

body[onload] div.leaf:nth-child(4) > div:nth-child(1) {
  background-color: #e76f51;
}

.cd__intro {
  background: #c0e;
}

.img-page {
  background-image: var(--flip-image);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.flipbook-btn {
  color: #ffffff;
  background-color: #0768bd;
  border: 1px solid #0768bd;
  font-family: "Roboto-Bold";
  font-size: 20px;
  padding: 6px 12px;
  border-radius: 50%;
  margin-right: 10px;
  transition: all 0.5s ease-out;
}

.flipbook-btn:hover {
  background-color: transparent;
  color: #0768bd;
}

#flipbookContainer {
  width: 100%;
  background-color: #ffffff;
  display: block;
}

/* X-Small devices (portrait phones, less than 576px)
No media query for `xs` since this is the default in Bootstrap */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  /* #flipbookContainer {
    height: 330px;
  } */
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
}

/* X-Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .flipbook {
    height: 525px;
    margin-top: 2rem;
  }
}

/* XX-Large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .flipbook {
    height: 625px;
    margin-top: 3rem;
  }
}
