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 {
  padding: .75rem 1.25rem;
  background-color: var(--bs-tertiary-bg);
  border-radius: var(--bs-border-radius);
  border: 1px solid var(--bs-border-color);
  font-size: 13px;
}

pre code {
  white-space: pre;
}

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

.banner h1 {
  color: white;
}

h4 .callout {
  margin-top: 0;
  margin-bottom: 5px
}

h4 .callout-danger {
  color: #d9534f
}

h4 .callout-info {
  color: #5bc0de
}

h4 .callout-warning {
  color: #f0ad4e
}

.alert-light {
  background-color: #f3f2f2;
}

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

.callout code {
  background-color: #fff;
  border-radius: 3px
}

.callout p:last-child {
  margin-bottom: 0
}

.callout {
  margin: 20px 0;
  padding: 20px;
  border-left: 3px solid #eee
}

.callout-danger {
  background-color: #fdf7f7;
  border-color: #d9534f
}

.callout-info {
  background-color: #f4f8fa;
  border-color: #5bc0de
}

.callout-warning {
  background-color: #fcf8f2;
  border-color: #f0ad4e
}

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

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

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

.text-heavy {
  font-weight: 500
}

.text-large {
  font-size: 125%
}

.text-tiny {
  font-size: 75%
}

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

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

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

/* 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;
}

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

/* 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;
}

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

/* Used to limit the number of authors displayed
   https://stackoverflow.com/questions/3922739/limit-text-length-to-n-lines-using-css */
.giveMeEllipsis {
  margin-bottom: 0.4em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -moz-box-orient: vertical;
  -ms-box-orient: vertical;
  -webkit-line-clamp: 2; /* number of lines to show */
}

/* 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;
}
