/* ==========================================================================
   Al-Mithaliyah School of Literature — Interactive Digital Library
   ========================================================================== */

/* ------------------------- Library section in page ------------------------- */
.alm-library {
  position: relative;
  margin: 2.2rem auto 3.4rem;
  max-width: 1260px;
  padding: 0 1rem;
  font-family: "Cairo", "Tajwal", system-ui, sans-serif;
}

.alm-lib-head {
  text-align: center;
  margin-bottom: 2rem;
}
.alm-lib-head .alm-lib-eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: #b8923a;
  border: 1px solid rgba(184, 146, 58, 0.45);
  border-radius: 999px;
  padding: 0.28rem 0.95rem;
  margin-bottom: 0.7rem;
}
.alm-lib-head h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  color: #5d4037;
  margin: 0.15rem 0 0.5rem;
  font-weight: 700;
}
.alm-lib-head p {
  color: #7a6a5f;
  max-width: 640px;
  margin: 0.2rem auto 0;
  line-height: 1.9;
  font-size: 0.98rem;
}
.alm-lib-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.9rem;
}
.alm-lib-ornament i {
  display: block;
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d4af37);
}
.alm-lib-ornament i:last-child {
  background: linear-gradient(90deg, #d4af37, transparent);
}
.alm-lib-ornament span {
  width: 9px;
  height: 9px;
  border: 1px solid #d4af37;
  transform: rotate(45deg);
  background: #fff8e7;
}

/* Section card */
.alm-lib-section {
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(212, 175, 55, 0.1), transparent 60%),
    linear-gradient(180deg, #fffdf8 0%, #f7efe0 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 20px;
  padding: 1.4rem 1.2rem 2rem;
  margin-bottom: 1.6rem;
  box-shadow: 0 14px 40px rgba(93, 64, 55, 0.08);
}
.alm-lib-section-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.4rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px dashed rgba(212, 175, 55, 0.5);
}
.alm-lib-section-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #6f4e37, #5d4037);
  color: #f3e6c8;
  box-shadow: 0 8px 18px -8px rgba(62, 44, 36, 0.7);
}
.alm-lib-section-icon svg {
  width: 26px;
  height: 26px;
}
.alm-lib-section-head h3 {
  margin: 0;
  font-size: 1.28rem;
  color: #5d4037;
  font-weight: 700;
}
.alm-lib-section-head p {
  margin: 0.15rem 0 0;
  color: #8a7a6d;
  font-size: 0.88rem;
  line-height: 1.7;
}
.alm-lib-section-count {
  margin-inline-start: auto;
  font-size: 0.8rem;
  color: #b8923a;
  border: 1px solid rgba(184, 146, 58, 0.4);
  border-radius: 999px;
  padding: 0.22rem 0.7rem;
  white-space: nowrap;
}

/* Books grid */
.alm-lib-books {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.6rem 2rem;
}

/* ---------------------- 3D book card ---------------------- */
.alm-book-card {
  cursor: pointer;
  border: 0;
  background: transparent;
  padding: 0;
  flex: 0 1 calc((100% - 4rem) / 3);
  width: 100%;
  max-width: 360px;
  min-width: 0;
  text-align: center;
  font-family: inherit;
  outline: none;
}
.alm-book-card.is-soon {
  cursor: not-allowed;
}

.alm-book-3d {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  perspective: 1100px;
  perspective-origin: 50% 40%;
  margin-bottom: 0.9rem;
}

.alm-book-shadow {
  position: absolute;
  left: 8%;
  right: 14%;
  bottom: -14px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(40, 26, 18, 0.42), rgba(40, 26, 18, 0) 72%);
  filter: blur(6px);
  z-index: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.alm-book {
  position: absolute;
  inset: 0;
  z-index: 1;
  transform: rotateX(7deg) rotateY(-18deg);
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}
.alm-book-card.is-tilting .alm-book {
  transition: transform 0.06s linear;
}

/* Page block / thickness */
.alm-book-pages {
  position: absolute;
  inset: 0;
  border-radius: 3px 7px 7px 3px;
  transform: translateZ(-8px) translateX(7px) translateY(5px);
  background: repeating-linear-gradient(
    to bottom,
    #fffdf6 0 2.5px,
    #e7dcc4 2.5px 3.6px
  );
  box-shadow:
    0 12px 22px -12px rgba(62, 44, 36, 0.55),
    inset 0 0 0 1px rgba(150, 120, 70, 0.28);
  transition: filter 0.4s;
}

/* Front cover */
.alm-book-cover {
  position: absolute;
  inset: 0;
  border-radius: 4px 8px 8px 4px;
  overflow: hidden;
  transform: translateZ(0);
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(255, 255, 255, 0.2), transparent 55%),
    linear-gradient(150deg, #7b5642 0%, #5d4037 55%, #3e2c24 100%);
  box-shadow:
    0 20px 30px -16px rgba(62, 44, 36, 0.65),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset -2px 0 4px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  padding: 1.1rem 0.95rem;
  transition: filter 0.4s, box-shadow 0.5s;
}
.alm-book-card:not(.is-soon):hover .alm-book-cover {
  box-shadow:
    0 34px 48px -20px rgba(62, 44, 36, 0.8),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset -2px 0 4px rgba(0, 0, 0, 0.35);
}
.alm-book-card:not(.is-soon):hover .alm-book-shadow {
  transform: scale(1.06) translateY(2px);
  opacity: 0.9;
}

/* Gold frame on the cover */
.alm-book-cover::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 2px 5px 5px 2px;
  pointer-events: none;
  z-index: 2;
}

/* Gloss */
.alm-book-gloss {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.06) 26%,
    rgba(255, 255, 255, 0) 44%,
    rgba(0, 0, 0, 0.14) 100%
  );
  opacity: 0.7;
}

/* Spine (left) */
.alm-book-spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 13px;
  z-index: 3;
  border-radius: 4px 0 0 4px;
  transform: translateZ(1.5px);
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.08));
  box-shadow: inset -1px 0 0 rgba(212, 175, 55, 0.55);
  pointer-events: none;
  transition: filter 0.4s;
}
.alm-book-spine::before,
.alm-book-spine::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #d4af37, #8a6a20);
  opacity: 0.85;
}
.alm-book-spine::before {
  top: 12%;
}
.alm-book-spine::after {
  bottom: 12%;
}

/* Cover artwork */
.alm-book-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.alm-book-cover .alm-book-kind {
  position: relative;
  z-index: 1;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: #f3d98b;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.alm-book-cover .alm-book-title {
  position: relative;
  z-index: 1;
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  font-weight: 700;
  color: #fff8e7;
  line-height: 1.5;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  overflow-wrap: anywhere;
}
.alm-book-cover .alm-book-rule {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
}
.alm-book-cover .alm-book-author {
  position: relative;
  z-index: 1;
  font-size: 0.9rem;
  color: #ecd9a8;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Coming-soon grayscale */
.alm-book-card.is-soon .alm-book-cover,
.alm-book-card.is-soon .alm-book-pages,
.alm-book-card.is-soon .alm-book-spine {
  filter: grayscale(1) brightness(0.9) contrast(0.95);
}

/* Status sticker */
.alm-book-tag {
  position: absolute;
  z-index: 4;
  top: 9px;
  left: 50%;
  transform: translateX(-50%) translateZ(10px) rotate(-5deg);
  max-width: 90%;
  padding: 0.26rem 0.66rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.32);
  pointer-events: none;
  backface-visibility: hidden;
}
.alm-book-tag.tag-soon {
  background: linear-gradient(145deg, #55514c, #3b3834);
  color: #f2ede4;
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.alm-book-tag.tag-review {
  background: linear-gradient(145deg, #e8c766, #c39a2f);
  color: #3a2a12;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.alm-book-card-name {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
  color: #5d4037;
  margin-top: 0.2rem;
}
.alm-book-card-author {
  display: block;
  font-size: 0.85rem;
  color: #93806f;
  margin-top: 0.12rem;
}
.alm-book-card.is-soon .alm-book-card-name {
  color: #8b857d;
}
.alm-book-card.is-soon .alm-book-card-author {
  color: #a39d94;
}
.alm-book-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: #6f4e37;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
}
.alm-book-card.is-soon .alm-book-badge {
  color: #7a766f;
  background: rgba(120, 120, 120, 0.12);
  border-color: rgba(120, 120, 120, 0.35);
}
.alm-book-badge svg {
  width: 14px;
  height: 14px;
}

/* ------------------------------ Book reader ------------------------------ */
.alm-reader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(111, 78, 55, 0.96), rgba(24, 17, 13, 0.99));
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.alm-reader.open {
  opacity: 1;
  visibility: visible;
}

.alm-reader-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  color: #f3e6c8;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  background: rgba(0, 0, 0, 0.18);
}
.alm-reader-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  min-width: 0;
}
.alm-reader-meta b {
  font-size: 1rem;
  color: #fff8e7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.alm-reader-meta span {
  font-size: 0.78rem;
  color: #d9c79c;
}
.alm-reader-count {
  margin-inline-start: auto;
  font-size: 0.85rem;
  color: #f3d98b;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.alm-reader-close {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: rgba(0, 0, 0, 0.25);
  color: #f3e6c8;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}
.alm-reader-close:hover {
  background: rgba(212, 175, 55, 0.25);
  transform: rotate(90deg);
}
.alm-reader-close svg {
  width: 20px;
  height: 20px;
}

.alm-reader-body {
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 5.2rem;
  overflow: hidden;
}
.alm-stage-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.alm-stage {
  position: relative;
  width: min(92vw, 560px, calc((100vh - 170px) * 2 / 3));
  width: min(92vw, 560px, calc((100dvh - 170px) * 2 / 3));
  aspect-ratio: 2 / 3;
  perspective: 1700px;
  perspective-origin: 100% 50%;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.alm-stage:active {
  cursor: grabbing;
}
.alm-stage.alm-stage-in {
  animation: almStageIn 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes almStageIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.alm-stage.alm-spread::before {
  display: none;
}
.alm-stage.alm-spread::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 16px;
  margin-left: -8px;
  z-index: 4;
  transform: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.28) 45%, rgba(0, 0, 0, 0) 100%);
  border-radius: 0;
  pointer-events: none;
}

.alm-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 3px 9px 9px 3px;
  transform: translateZ(-14px) translateX(-6px) translateY(5px);
  background: repeating-linear-gradient(
    to bottom,
    #fffdf8 0 3px,
    #e7dcc4 3px 4px
  );
  box-shadow: 0 26px 50px -22px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}
/* Spine highlight on the right */
.alm-stage::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 12px;
  z-index: 3;
  transform: translateZ(6px);
  background: linear-gradient(270deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0));
  border-radius: 0 9px 9px 0;
  pointer-events: none;
}

.alm-under {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  border-radius: 3px 9px 9px 3px;
  background: #fffdf8;
  box-shadow:
    0 30px 60px -22px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(0, 0, 0, 0.18);
}
/* Two-page spread layout (desktop) — RTL: current page left, next page right */
.alm-page-static {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  border-radius: 3px;
  background: #fffdf8;
  visibility: hidden;
  box-shadow:
    0 30px 60px -22px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(0, 0, 0, 0.18);
}
.alm-page-static img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fffdf8;
}
.alm-stage.alm-single-page .alm-page-static {
  display: none;
}
.alm-stage.alm-spread .alm-page-static {
  left: 50%;
  width: 50%;
  border-radius: 9px 3px 3px 9px;
  box-shadow:
    0 30px 60px -22px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(0, 0, 0, 0.18),
    inset -6px 0 14px -8px rgba(0, 0, 0, 0.5);
}
.alm-stage.alm-spread .alm-under,
.alm-stage.alm-spread .alm-sheet {
  left: 0;
  right: auto;
  width: 50%;
}
.alm-stage.alm-spread .alm-under {
  border-radius: 3px 9px 9px 3px;
  box-shadow:
    0 30px 60px -22px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(0, 0, 0, 0.18),
    inset 6px 0 14px -8px rgba(0, 0, 0, 0.5);
}
.alm-stage.alm-spread .alm-face {
  border-radius: 3px 9px 9px 3px;
}
.alm-stage.alm-spread .alm-front::after,
.alm-stage.alm-spread .alm-under-shade {
  display: none;
}
.alm-stage.alm-spread .alm-sheet {
  transform-origin: 100% 50%;
}



.alm-under-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0) 42%);
  opacity: 0;
  transition: opacity 0.08s linear;
}

.alm-sheet {
  position: absolute;
  inset: 0;
  z-index: 2;
  transform-origin: 100% 50%;
  transform-style: preserve-3d;
  will-change: transform;
  transform: rotateY(0deg);
}
.alm-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 3px 9px 9px 3px;
  background: #fffdf8;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 16px 34px -18px rgba(0, 0, 0, 0.6);
}
.alm-front img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fffdf8;
}
.alm-front::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 16px;
  background: linear-gradient(270deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0));
  pointer-events: none;
}
.alm-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.55));
  opacity: 0;
  transition: opacity 0.08s linear;
}

.alm-reader-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: rgba(0, 0, 0, 0.3);
  color: #f3e6c8;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s, transform 0.2s, opacity 0.25s;
}
.alm-reader-nav:hover:not(:disabled) {
  background: rgba(212, 175, 55, 0.3);
}
.alm-reader-nav:disabled {
  opacity: 0.28;
  cursor: default;
}
.alm-reader-nav svg {
  width: 22px;
  height: 22px;
}
.alm-reader-nav.alm-prev {
  left: 1rem;
}
.alm-reader-nav.alm-next {
  right: 1rem;
}

.alm-reader-hint {
  position: absolute;
  left: 50%;
  bottom: 0.4rem;
  transform: translateX(-50%) translateY(8px);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #f0e4c4;
  font-size: 0.76rem;
  padding: 0.34rem 0.9rem;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s, transform 0.4s;
  white-space: nowrap;
}
.alm-reader-hint.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.alm-reader-state {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  text-align: center;
  padding: 2rem;
  color: #f3e6c8;
  z-index: 8;
  background: rgba(24, 17, 13, 0.94);
}
.alm-reader-state[hidden] {
  display: none;
}
.alm-spinner {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid rgba(212, 175, 55, 0.25);
  border-top-color: #d4af37;
  animation: alm-spin 0.9s linear infinite;
}
@keyframes alm-spin {
  to {
    transform: rotate(360deg);
  }
}
.alm-reader-state h4 {
  margin: 0;
  font-size: 1.15rem;
  color: #fff8e7;
}
.alm-reader-state p {
  margin: 0;
  font-size: 0.86rem;
  color: #cdbb92;
  max-width: 460px;
  line-height: 1.8;
}
.alm-progress-track {
  width: min(320px, 70vw);
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.alm-progress-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #b8923a, #f3d98b);
  transition: width 0.2s ease;
}
.alm-reader-state code {
  direction: ltr;
  font-size: 0.78rem;
  color: #f3d98b;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  padding: 0.3rem 0.6rem;
  word-break: break-all;
}

body.alm-reader-open {
  overflow: hidden;
}

@media (max-width: 1023px) {
  .alm-lib-books {
    gap: 2rem 1.4rem;
  }
  .alm-book-card {
    flex-basis: calc((100% - 1.4rem) / 2);
    max-width: 320px;
  }
}

@media (max-width: 760px) {
  .alm-reader-body {
    padding: 0.7rem 0.7rem 4.6rem;
  }
  .alm-reader-nav {
    top: auto;
    bottom: 1rem;
    transform: none;
    padding: 0.5rem 0.75rem;
  }
  .alm-reader-nav .alm-nav-label {
    display: none;
  }
  .alm-reader-nav.alm-prev {
    left: 1rem;
  }
  .alm-reader-nav.alm-next {
    right: 1rem;
  }
  .alm-stage {
    width: min(94vw, 460px, calc((100vh - 150px) * 2 / 3));
    width: min(94vw, 460px, calc((100dvh - 150px) * 2 / 3));
  }
  .alm-reader-hint {
    bottom: 4.4rem;
  }
  .alm-lib-books {
    gap: 1.6rem 0.9rem;
  }
  .alm-book-card {
    flex-basis: calc((100% - 0.9rem) / 2);
    max-width: none;
  }
  .alm-book-tag {
    font-size: 0.6rem;
    padding: 0.2rem 0.45rem;
  }
  .alm-book {
    transform: rotateX(6deg) rotateY(-14deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .alm-stage.alm-stage-in {
    animation: none;
  }
  .alm-sheet,
  .alm-shade,
  .alm-under-shade,
  .alm-book {
    transition: none !important;
  }
}