/* "Xem dạng sách": a document group as a flip book (views/documents/tmpl/3d.php) */
html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #262d36;
}
body.contentpane, body {
  padding: 0;
}
.docbook {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: radial-gradient(ellipse at 50% 40%, #3a4553 0%, #262d36 70%);
  color: #fff;
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Top bar */
.docbook-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 56px;
  padding: 0 16px;
  background: #1b2129;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
  z-index: 10;
}
.docbook-back {
  flex: 0 0 auto;
  color: #c9d1da;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.docbook-back:hover, .docbook-back:focus {
  color: #fff;
  text-decoration: none;
}
.docbook-title {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.25;
}
.docbook-title strong {
  display: block;
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.docbook-title span {
  font-size: 12px;
  color: #93a0ad;
}
.docbook-toc {
  flex: 0 1 260px;
  min-width: 140px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #3a4553;
  border-radius: 6px;
  background: #262d36;
  color: #e6ebf0;
  font-size: 14px;
}
.docbook-tools {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 2px;
}
.docbook-tools button {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #c9d1da;
  font-size: 17px;
  line-height: 34px;
  cursor: pointer;
}
.docbook-tools button:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}
.docbook-tools button.wowbook-disabled {
  opacity: .35;
  cursor: default;
  background: transparent;
}
.docbook-page-no {
  min-width: 84px;
  padding: 0 6px;
  color: #e6ebf0;
  font-size: 13px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.docbook-sep {
  width: 1px;
  height: 22px;
  margin: 0 8px;
  background: #3a4553;
}

/* Stage the book scales into */
.docbook-stage {
  flex: 1 1 auto;
  position: relative;
  min-height: 0;
  margin: 24px 32px;
}
#features {
  margin: auto;
}

/* Pages */
.docbook-page {
  box-sizing: border-box;
  padding: 44px 48px 52px;
  overflow: auto;
  background: #fff;
  color: #2b2f33;
  font-size: 15px;
  line-height: 1.65;
}
.docbook-page h2 {
  margin: 0 0 18px;
  color: #1b2129;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}
.docbook-running {
  display: block;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e6e9ed;
  color: #8a939c;
  font-size: 12px;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.docbook-eyebrow {
  display: block;
  margin-bottom: 10px;
  color: #1f5ea8;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.docbook-content h3 {
  margin: 22px 0 8px;
  color: #1f5ea8;
  font-size: 17px;
  font-weight: 600;
}
.docbook-content p, .docbook-content ul, .docbook-content ol {
  margin: 0 0 12px;
}
.docbook-content ul, .docbook-content ol {
  padding-left: 22px;
}
.docbook-content li {
  margin-bottom: 4px;
}
.docbook-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}
.docbook-content table {
  max-width: 100%;
}

/* Chapter opener */
.docbook-chapter {
  padding-top: 120px;
  background: linear-gradient(180deg, #f3f7fc 0, #fff 220px);
}
.docbook-chapter h2 {
  font-size: 30px;
}
.docbook-chapter .docbook-content ul {
  margin-top: 18px;
  padding: 0;
  list-style: none;
  border-top: 1px solid #e6e9ed;
}
.docbook-chapter .docbook-content ul li {
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid #f0f2f4;
}
.docbook-chapter .docbook-content > p:last-child {
  color: #8a939c;
  font-size: 13px;
}

/* Contents page */
.docbook-contents h2 {
  font-size: 28px;
  margin-bottom: 24px;
}
.docbook-contents ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.docbook-contents li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px dotted #d5dae0;
}
.docbook-contents a {
  flex: 1 1 auto;
  color: #2b2f33;
  text-decoration: none;
}
.docbook-contents a:hover {
  color: #1f5ea8;
}
.docbook-contents small {
  flex: 0 0 auto;
  color: #8a939c;
}
.docbook-blank p {
  margin-top: 40%;
  color: #c3c9d0;
  text-align: center;
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* The site's floating hotline buttons would sit on the book */
.hotline-zalo-ring-wrap, .hotline-phone-ring-wrap {
  display: none !important;
}

/* Covers */
.docbook-cover {
  box-sizing: border-box;
  overflow: hidden !important;
  background: linear-gradient(150deg, #1f5ea8 0%, #123b6d 60%, #0d2a4f 100%);
  color: #fff;
  cursor: pointer;
}
.docbook-cover-back {
  background: linear-gradient(210deg, #1f5ea8 0%, #123b6d 60%, #0d2a4f 100%);
  cursor: default;
}
.docbook-cover-inner {
  position: relative;
  box-sizing: border-box;
  height: 100%;
  padding: 120px 56px 56px;
}
.docbook-cover .docbook-eyebrow {
  color: #9cc4ea;
}
.docbook-cover h1 {
  margin: 0;
  color: #fff;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
}
.docbook-rule {
  display: block;
  width: 64px;
  height: 4px;
  margin: 28px 0;
  border-radius: 2px;
  background: #f4b400;
}
.docbook-cover-note {
  max-width: 420px;
  color: #d6e4f3;
  font-size: 17px;
  line-height: 1.55;
}
.docbook-cover-count {
  margin-top: 18px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}
.docbook-cover-foot {
  position: absolute;
  right: 56px;
  bottom: 48px;
  left: 56px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .2);
  color: #b9cde3;
  font-size: 13px;
}
.docbook-cover-foot strong {
  display: block;
  color: #fff;
  font-size: 16px;
}

/* Page numbers drawn by wowbook */
.wowbook-page-number {
  color: #8a939c;
  font-size: 12px;
}

@media (max-width: 767px) {
  .docbook-bar {
    gap: 8px;
    padding: 0 8px;
  }
  .docbook-title span {
    display: none;
  }
  .docbook-toc {
    flex-basis: 120px;
    min-width: 0;
  }
  .docbook-page-no {
    min-width: 60px;
  }
  .docbook-stage {
    margin: 12px;
  }
}
