* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: grid;
  place-content: center;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background-color: #1e1e1e;
  color: #fff;
  opacity: 0.8;
  background-image: radial-gradient(#2e2e2e 1px, #1e1e1e 1px);
  background-size: 10px 10px;
  font-family: "Open Sans", sans-serif;
}

.flipbook {
  width: 990px;
  height: 700px;
}

.black {
  background-color: #000;
  border-radius: 8px;
}

.shadow-right {
  width: 100%;
  max-width: 600px;
  mask-image: linear-gradient(to left, black 80%, transparent 120%);
  -webkit-mask-image: linear-gradient(to left, black 80%, transparent 120%);
}

.shadow-left {
  width: 100%;
  max-width: 600px;
  mask-image: linear-gradient(to right, black 80%, transparent 120%);
  -webkit-mask-image: linear-gradient(to right, black 80%, transparent 120%);
}

.page img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: auto;
  border-radius: 8px;
  user-select: none;
  -webkit-user-drag: none;
}

.book {
  margin: auto;
}

.botones {
  position: fixed;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  z-index: -9999;
}

button {
  border: 2px solid #fff;
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 10px 20px;
  border-radius: 500px;
  cursor: pointer;
  margin: 10px;
  transition: 0.3s ease-in-out;
  width: 100px;
  height: 100px;
  font-family: "Open Sans", sans-serif;
}

button:hover {
  background-color: #fff;
  color: #1e1e1e;
}

.text {
  position: absolute;
  display: grid;
  place-content: center;
  width: 300px;
  border: 2px solid #fff;
  border-radius: 16px;
  padding: 16px;
  margin-top: 250px;
}

.text h3 {
  margin-bottom: 20px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: 1px;
  text-align: center;
}

.text p {
  font-size: 13px;
  line-height: 19px;
  margin-bottom: 20px;
}

.logo img {
  height: 32px;
  position: absolute;
  margin: 32px 0px;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 999999;
  overflow: auto;
}

#modalImage {
  display: block;
  margin: 0;
  position: absolute;
  top: 0%;
  left: 50%;
  transform-origin: center center;
  cursor: grab;
  user-select: none;
  -webkit-user-drag: none;
  top: 20px;
}

#modalImage.dragging {
  cursor: grabbing;
}

.close {
  display: none;
}

.mobile-carousel {
  display: none;
}

@media only screen and (max-width: 768px) and (max-width: 991px) {
  .flipbook,
  .botones,
  .text {
    display: none;
  }

  .logo {
    display: flex;
    justify-content: center;
    z-index: -999999;
  }

  .mobile-carousel {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .mobile-carousel img {
    flex: 0 0 100%;
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    scroll-snap-align: start;
  }
  .page-counter {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    z-index: 99999;
  }
}
