:root {
  --footer-height: 50px;
  --modular-scale: 1.2;
  --heading-font-weight: bold;
  --heading-h2-margin: 3rem 0 1rem 0;
  --heading-h2-padding: 0;
  --heading-h2-border-width: 0;
  --heading-h2-font-weight: bold;
  --heading-h3-margin: 1.5rem 0 0 0;
  --heading-h4-margin: 1rem 0 0 0;
  --code-block-padding: 0.5rem 1rem;
  --table-head-border-width: 1px;
  --table-body-border-width: 1px;
  --table-cell-border-width: 1px;
  --table-cell-padding: 0.375rem 0.5rem;
}

html[data-theme="light"] {
  --code-inline-background: hsl(0, 0%, 92.5%);
  --code-inline-color: #bd3e00;
}

html[data-theme="dark"] {
  --code-inline-color: #ffb27a;
}

.search .clear-button.show {
  display: flex !important;
  align-items: center;
}

.content {
  min-height: calc(100dvh - var(--footer-height));
}

.content .anchor {
  pointer-events: none;
}

.app-nav > .btn {
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  -webkit-mask-position: center center;
  mask-repeat: no-repeat;
  mask-size: contain;
  mask-position: center center;
  width: 28px;
  height: 28px;
  display: inline-block;
  vertical-align: middle;
  text-decoration: none;
  transition: all var(--sidebar-transition-duration) ease-out;
  cursor: pointer;
}

.app-nav > .btn.change-theme-btn.dark {
  background-color: #ffc107;
  -webkit-mask-image: url("/assets/img/dark.svg");
  mask-image: url("/assets/img/dark.svg");
}

.app-nav > .btn.change-theme-btn.light {
  background-color: #ff6c00;
  -webkit-mask-image: url("/assets/img/light.svg");
  mask-image: url("/assets/img/light.svg");
}

.markdown-section p {
  margin: 0;
}

.markdown-section table {
  margin: 1rem 0 0 0;
}

.caption {
  text-align: center;
  font-size: 0.875rem;
}

footer {
  margin-left: var(--sidebar-width);
  padding-left: 2rem;
  line-height: var(--footer-height);
  width: 100%;
  transition: all var(--sidebar-transition-duration) ease-out;
  border-top: 1px solid var(--sidebar-border-color);
  font-size: 0.875rem;
}

body.close footer {
  margin-left: 0;
  transform: translateX(0);
}

.markdown-section th {
  border: 1px solid var(--table-head-border-color);
}

/* side bar customize css */
.sidebar-nav ul li a {
  padding-left: 0 !important;
  background: none !important;
  text-overflow: initial !important;
  text-wrap: auto !important;
}

@media screen and (max-width: 768px) {
  footer {
    margin-left: 0;
    padding-right: 2rem;
  }
}
