body {
  height: 100vh;
  padding-top: 56px;
  padding-bottom: 0;
  display: flex;
  flex-flow: column;
  justify-content: space-between;
}

main > .container {
  padding-top: 20px;
  padding-bottom: 20px;
}

@media (min-width: 1140px) {
  .container {
    max-width: 1170px;
  }
}

img {
  width: 100%;
  border-radius: 4px;
}

.hljs {
  background-color: inherit;
}

pre code {
  white-space: pre;
}

pre {
  border-radius: var(--bs-border-radius);
  font-size: 13px;
}

/* targets the code block in the main documentation */
.highlight > pre {
  border: 2px solid #272822 !important;
}

/* targets the code blocks in the asciidoc pages */
.content > pre.highlight, .verseblock > pre, .literalblock pre {
  background-color: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-border-color);
}

/* targets the verse and literal code block in the asciidoc pages */
.verseblock > pre, .literalblock pre {
  padding: 0.5em;
}

.theme-dropdown .dropdown-menu {
  position: static;
  display: block;
  margin-bottom: 20px;
}

.theme-showcase > p > .btn {
  margin: 5px 0;
}

.theme-showcase .navbar .container {
  width: auto;
}

main > .container {
  padding-top: 20px;
  padding-bottom: 20px;
}

a, dt {
  word-wrap: break-word;
}

dl dt {
  margin-left: 20px;
}

dl dd {
  margin-left: 40px;
}

td, th {
  padding: 8px;
  line-height: 1.428571429;
  vertical-align: top;
  border-top: 1px solid #ddd;
}

table {
  width: 100%;
  margin-top: 20px;
  margin-bottom: 20px;
}

footer {
  width: 100%;
  padding: 20px 0;
  line-height: 20px;
}

.container .text-muted {
  margin: 20px 0;
}

.banner {
  color: inherit;
  margin-bottom: 0;
  padding: 10px 10px;
}

:target::before {
  content: "";
  display: block;
  height: 60px; /* fixed header height*/
  margin: -60px 0 0; /* negative fixed header height */
}

.navbar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-brand::before {
  content: "";
  background-image: url(../images/tw.svg);
  background-size: contain;
  width: 30px;
  height: 30px;
  margin-right: 0.5rem;
}

/* Docs */
.language-console {
  background-color: #9d9d9d;
  color: #442822;
}

.bash {
  color: #442822;
}

.bash .hljs-comment{
  color: #397300;
}

/* Tools page */
.tooltip {
  position: relative;
  display: inline-block;
  opacity: 1;
  z-index: auto;
}

/* Tooltip text */
.tooltip .tooltip-text {
  visibility: hidden;
  width: 180px;
  background-color: #555;
  color: #fff;
  text-align: center;
  padding: 5px 5px;
  border-radius: 6px;

  /* Position the tooltip text */
  position: absolute;
  z-index: 1;
  top: 125%;
  left: 50%;
  margin-left: -90px;

  /* Fade in tooltip */
  opacity: 0;
  transition: opacity 0.3s;
}

/* Tooltip arrow */
.tooltip .tooltip-text::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent #555 transparent;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.sidebar-toc {
  position: fixed;
  background: #C4CBB728;
  background: rgba(196, 203, 183, 0.16);
  padding: 16px 20px 5px 20px;
  border-radius: 10px;
}

.checkbox.search-filter {
  margin-top: 5px;
}

/* Make the badge padding smaller than Bootstrap's default */
.badge {
  --bs-badge-padding-x: 0.50em;
}

/* Text rendered inside GoAT looks better with a smaller font size */
.goat svg {
  font-size: 14px;
}

/**
 * Bootsrap 5 has table styles as opt-in by adding the class .table to <table>.
 * However Hugo converts Markdown tables to HTML directly, and there are
 * currently no Hugo render hooks for tables. As a workaround, we copy the
 * styles for .table in bootstrap.css to the table tag here.
 */
table {
  --bs-table-color-type: initial;
  --bs-table-bg-type: initial;
  --bs-table-color-state: initial;
  --bs-table-bg-state: initial;
  --bs-table-color: var(--bs-emphasis-color);
  --bs-table-bg: var(--bs-body-bg);
  --bs-table-border-color: var(--bs-border-color);
  --bs-table-accent-bg: transparent;
  --bs-table-striped-color: var(--bs-emphasis-color);
  --bs-table-striped-bg: rgba(var(--bs-emphasis-color-rgb), 0.05);
  --bs-table-active-color: var(--bs-emphasis-color);
  --bs-table-active-bg: rgba(var(--bs-emphasis-color-rgb), 0.1);
  --bs-table-hover-color: var(--bs-emphasis-color);
  --bs-table-hover-bg: rgba(var(--bs-emphasis-color-rgb), 0.075);
  width: 100%;
  margin-bottom: 1rem;
  vertical-align: top;
  border-color: var(--bs-table-border-color);
}
table > :not(caption) > * > * {
  padding: 0.5rem 0.5rem;
  color: var(--bs-table-color-state, var(--bs-table-color-type, var(--bs-table-color)));
  background-color: var(--bs-table-bg);
  border-bottom-width: var(--bs-border-width);
  box-shadow: inset 0 0 0 9999px var(--bs-table-bg-state, var(--bs-table-bg-type, var(--bs-table-accent-bg)));
}
table > tbody {
  vertical-align: inherit;
}
table > thead {
  vertical-align: bottom;
}
