html {
  position: relative;
  min-height: 100%;
}

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

pre code {
  white-space: pre;
}

.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;
}

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;
  background-color: #333;
}

footer .container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-item {
  margin: 0 10px
}

footer .container:before {
  content: none;
}

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

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

.navbar-brand {
  padding-left: 28px;
}

.navbar-brand::before {
  content: url(../images/tw.svg);
  margin-left: -36px;
  margin-top: -4px;
  position: absolute;
}

/* 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: 5px 20px;
  border-radius: 10px;
}

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