html {
  position: relative;
  min-height: 100%;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}
body .container {
  margin-top: 54px !important;
}
.container {
  max-width: 100vw;
  overflow: hidden;
}

.footer .container {
  max-width: 100%;
  overflow: hidden;
}

.navbar-fixed-top{
  top:20px !important;
}
div.logo {
  position: relative;
  width: 150px;

  height: 54px;
}
div.logo img {
  height: 60px;
  width: auto;
  position: absolute;
  left: 0;
  top: -3px;
  max-width: initial;
  padding: initial;
}

.arrow {
  border: solid #797979;
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 3px;
  margin-bottom: 3px;
}

.right {
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
}

.left {
  transform: rotate(135deg);
  -webkit-transform: rotate(135deg);
}

.up {
  transform: rotate(-135deg);
  -webkit-transform: rotate(-135deg);
}

.down {
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
}

.topnav {
  /* overflow: hidden; */
  background-color: #000;
  position: fixed;
  width: 100%;
  top:0;
  left: 0;
  z-index: 5005;
}

.topnav a,
.topnav div.logo,
.topnav div.subnav {
  float: left;
  display: block;
  color: #797979 !important;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

.topnav a:hover {
  color: #cacaca !important;
  border: none !important;
}

.topnav a.active,
.topnav a.active:hover,
.subnavbtn.active,
.subnav:hover .subnavbtn.active,
.subnavbtn.active .arrow {
  color: #40a6ff !important;
  border-color: #40a6ff !important;
}

.topnav .icon {
  display: none;
  position: relative;
  z-index: 1;
  -webkit-user-select: none;
  user-select: none;
  padding: 16px 16px 11px;
}

.topnav .icon span {
  display: block;
  width: 33px;
  height: 4px;
  margin-bottom: 5px;
  position: relative;

  background: #797979;
  border-radius: 3px;

  z-index: 1;

  transform-origin: 4px 0px;

  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
  background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
  opacity 0.55s ease;
}
.topnav .icon span:first-child
{
  transform-origin: 0% 0%;
}
.topnav .icon span:nth-last-child(3)
{
  transform-origin: 0% 100%;
}

.subnav {
  float: left;
  overflow: visible;
  position: relative;
}

.subnav .subnavbtn {
  padding: 0;
  border: none;
  outline: none;
  background: none;

}

.subnav-content {
  /* display: none !important; */
  position: absolute;
  top:100%;
  left: 50%;
  transform: translateX(-50%);
  /* top: 0; */
  /* background-color: #151515; */
  z-index: 1001;
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
  pointer-events: none;
}
.subnav:hover {
  color: #cacaca !important;
  background-color: #151515;
}
.subnav:hover .subnavbtn,
.subnav:hover .subnavbtn .arrow {
  color: #cacaca !important;
  border-color: #cacaca;
}

.subnav-content a {
  /* float: left; */
  text-decoration: none;
  display: block;
  width: 190px;
  background-color: #151515;
}

.subnav:hover > .subnav-content {
  /* display: block !important; */
  opacity: 1;
  pointer-events: all;
}

/*
* Transform all the slices of hamburger
* into a crossmark.
*/
.topnav.responsive .icon span:nth-last-child(3)
{
  opacity: 1;
  transform: rotate(45deg) translate(-2px, -2px);;
}

/*
* But lets hide the middle one.
*/
.topnav.responsive .icon span:nth-last-child(2)
{
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}

/*
* Ohyeah and the last one should go the other direction
*/
.topnav.responsive .icon span
{
  transform: rotate(-45deg) translate(-1px, 0px);
}

@media screen and (max-width: 992px) {
  .topnav a, .topnav div.subnav {display: none;}
  .topnav div.logo a {display: inline-block;}
  .topnav a.icon {
    float: right;
    display: block;
  }
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a,
  .topnav.responsive div.subnav {
    padding-top: 5px;
    padding-bottom: 5px;
  }
  .topnav.responsive {
    padding-bottom: 25px;
  }
  .topnav.responsive a.icon {
    padding-top: 16px;
  }
  .topnav.responsive a,
  .topnav.responsive div.logo,
  .topnav.responsive div.subnav {
    float: none;
    display: block;
    text-align: left;
  }
  .topnav.responsive .subnav-content {
    display: block !important;
    position: relative;
    left: 0;
    top: 0;
    background-color: transparent;
    width: 100%;
    z-index: 1;
    padding-left: 0;
    transform: none;
    opacity: 1;
    padding: 10px 0 0;
  }
  .topnav.responsive .subnav-content a{

    background-color: transparent;

  }
  .topnav.responsive .subnav:hover {
    background-color: transparent;
  }

}
#toc ul#nav {
  padding-bottom:100px;
}

#manual-content h1:before,
#manual-content h2:before,
#manual-content h3:before,
#manual-content h4:before,
#manual-content .clickable-header:before
{
  display: block;
  content: " ";
  height: 130px;
  margin-top: -130px;
  visibility: hidden;
}
@media (min-width: 992px) {
  #manual-content h1:before,
  #manual-content h2:before,
  #manual-content h3:before,
  #manual-content h4:before,
  #manual-content .clickable-header:before
  {
    display: block;
    content: " ";
    height: 75px;
    margin-top: -75px;
    visibility: hidden;
  }
}

.search-open {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color:#fff;
}
.search-open:hover {
    color: #ccc;
}

.search-panel {
    position: fixed;
    top: -80px;
    left: 0;
    right: 0;
    height: 56px;
    background: #000;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    z-index: 99999;
    box-shadow: 0 2px 12px rgba(0,0,0,0.35);
    transition: top 0.2s ease;
    border-bottom: 1px solid #1e1e1e;
}

.search-panel.active {
    top: 0;
}

.search-input {
    flex: 1;
    height: 36px;
    background: #1e1e1e;
    border: none !important;
    color: #e6e6e6;
    padding: 0 10px !important;
    font-size: 14px;
    outline: none;
    box-shadow: none;
}

.search-input::placeholder {
    color: #888;
}

.search-input:focus {
    border-color: #444;
    outline: none;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

  .close {
    float: right;
    font-size: 21px;
    font-weight: 700;
    line-height: 1;
    color: #ccc;
    text-shadow: 0 1px 0 #fff;
    filter: alpha(opacity=50);
    opacity: .5;
}

.close:focus, .close:hover {
    color: #ccc;
    text-decoration: none;
    cursor: pointer;
    filter: none;
    opacity: 1;
}

span.counter {
    white-space: nowrap;
}

/* SVG buttons */
.search-panel button {
    background: none;
    border: 1px solid #3a3a3a;
    color: #ccc;
    height: 36px;
    width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    opacity:0.85;
}

.search-panel button:hover {
    background: #1e1e1e;
    opacity:1;
}

.search-panel svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

button.exact-toggle.active {
    background: #808080;
    color: #1e1e1e;
    opacity: 1 !important;
}

/* highlight */
mark.highlight {
    background: yellow;
    color: #000;
}

mark.highlight.active {
    background: orange;
}

mark.highlight.best {
    background: red;
}
[data-tip] {
    position: relative;
}
.visible .anchor-link::after,
[data-tip]:hover::after {
    content: attr(data-tip);
    position: absolute;
    bottom: 1px;
    left: 26px;
    background: #111;
    color: #fff;
    padding: 4px 8px;
    font-size: 11px;
    white-space: nowrap;
    border-radius: 4px;
    z-index: 99999;
    opacity:1;
}

.anchor-link.peek[data-tip]:hover::after {
  display:none;
}

.anchor-link {
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  opacity: 0;
}

h1:hover .anchor-link,
h2:hover .anchor-link,
h3:hover .anchor-link,
h4:hover .anchor-link,
h5:hover .anchor-link,
h6:hover .anchor-link {
    opacity: 1;
}

.anchor-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  position: relative;
}

.anchor-link.copied {
    color: #84DD1C;
}
:focus,
:focus-visible {
  outline: none !important;
}
@media (hover: none) {
    .anchor-link {
        opacity: 0.4;
    }

    .anchor-link.visible {
        opacity: 1;
    }
}
