@import 'jquery/jquery-ui.css';
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400&display=swap');

/* layout */
body {
  color: #000000;
  background-color: #ffffff;
  padding: 0;
  margin: 0;
  font-family: 'Open Sans', Helvetica, sans-serif;
  min-height: calc(100vh - 125px);
}
a {
  color: #0077c8;
  border: none;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

div#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 75px;
  background-color: #f5f5f5;
  display: flex;
  flex-wrap: nowrap;
  gap: 0px 30px;
  box-shadow: 0 1px 5px #aaa;
  z-index: 20;
}

div#header input {
  -webkit-appearance: searchfield;
  -moz-appearance: searchfield;
  appearance: searchfield;
}
div#content {
  position: relative;
  min-height: calc(100vh - 325px);
  padding-bottom: 200px;
  padding-top: 5px;
  margin-top: 75px;
  margin-bottom: 42px;
}
#allSideBoxes {
  position: fixed;
  top: 70px;
  right: 0px;
  line-height: 1.5;
  padding: 10px;
  padding-bottom: 0;
  height: 100%;
  z-index: 10;
  background-color: white;
  width: 260px;
  border-left: 1px solid #0077c8;
  transition: 0.5s;
}

#hideSideBoxes {
  position: absolute;
  width: 30px;
  height: 30px;
  right: 281px;
  z-index: -10;
  border-radius: 2px;
  top: 15px;
  opacity: 0.4;
  transition: 0.5s;
}

#hideSideBoxes::after {
  background-image: url('./closeArrow.png');
  background-size: 13px 26px;
  display: inline-block;
  width: 13px;
  height: 26px;
  content: '';
  position: relative;
  top: 2px;
  left: 8px;
}

#hideSideBoxes:hover {
  opacity: 1;
}

#allSideBoxes:hover > #hideSideBoxes {
  opacity: 1;
}

.rotate::after {
  transform: rotate(180deg);
}

.moveRight {
  right: -280px !important;
}
.sideBox {
  padding: 1ex;
  border-radius: 0.5ex;
  overflow: hide;
  font-size: smaller;
  margin-bottom: 1em;
  max-height: 100%;
}
.sideBox h3 {
  width: 100%;
  cursor: pointer;
  cursor: hand;
  margin: 0;
}
.sideBox ul {
  display: block;
  overflow: auto;
  max-width: 20em;
  max-height: 20em;
  list-style: none;
  margin: 0;
  padding: 0;
  padding-top: 1em;
}
.sideBox li {
  list-style-type: none;
  padding: 0;
  margin-right: 1ex;
}
.marginAuto {
  margin: auto;
}
.flexStyle {
  display: flex;
  gap: 0px 30px;
}
.flexGrow {
  flex-grow: 4;
}

.padRightTen {
  padding-right: 10px;
}
#toggle {
  padding: 4px;
  padding-top: 3px;
  border-radius: 3px;
  width: 80px;
  min-width: 80px;
  text-align: center;
}

.lineNumOn {
  background-color: #ff329d;
  border: 1px solid #d2006e;
}
.lineNumOff {
  background-color: #aaa;
  border: 1px solid #888;
}

#toggle a {
  color: white;
}

#stylename {
  padding-right: 4px;
  font-size: 14px;
  color: #999;
  margin-left: -13px;
}
.code {
  border-collapse: collapse;
  width: 100%;
  padding: 0;
}
.code {
  font-family: monospace;
}
table.code {
  table-layout: fixed;
  width: 100%;
} /* This improves performence.  The idea is that the second column just overflows */
.code th {
  width: 10ex;
  padding-right: 1ex;
  text-align: right;
  color: black;
  font-weight: normal;
  -moz-user-select: none;
  user-select: none;
  border-right: 1px solid #ff329d;
}
.code td {
  padding-left: 1ex;
  white-space: pre;
}
.cb_imprint {
  display: flex;
  gap: 30px;
}
#footercontainer {
  line-height: 2;
  z-index: 20;
  background: white;
  padding: 10px;
  padding-bottom: 30px;
  border-top: 1px solid lightgray;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  box-sizing: border-box;
  width: 100%;
  bottom: -5px;
  position: absolute;
}
#footer {
  font-size: smaller;
  color: #333;
  text-align: right;
  margin-left: auto;
}
#footer img {
  vertical-align: middle;
}
img {
  border: none;
}

input#searchline,
input#main_searchline {
  padding: 0;
  width: 100%;
  min-width: 150px;
  height: 31px;
  box-sizing: border-box;
  background: url(./search.png) no-repeat scroll 5px 5px;
  background-color: rgba(0, 0, 0, 0);
  background-color: white;
  border: 1px solid #0077c8;
  border-radius: 3px;
  padding-left: 30px;
}
#searchline:focus-visible,
#searchline:focus {
  outline: 1px solid #0077c8;
}
.opt_style:focus-visible,
.opt_style:focus {
  outline: 1px solid #0077c8;
}
#breadcrumb {
  padding: 0;
  margin: 0 1ex 0 1ex;
  font-size: inherit;
  font-weight: normal;
}
#breadcrumbplacer {
  margin-left: 1ex;
}
hr {
  margin: 0;
  border-collapse: collapse;
  background-color: #e5e5e5;
  height: 1px;
  border: none;
}

#header a.logo {
  padding: 0 0 0 0.5em;
  display: inline-block;
  margin-top: 4px;
}
#header .logo img {
  height: 68px;
}
#breadcrumb_symbol a {
  color: inherit;
}
#floatingfooter {
  position: fixed;
  background-color: #f5f5f5;
  bottom: 0px;
  width: 100%;
  box-shadow: 0 -1px 5px #aaa;
  display: flex;
  flex-wrap: wrap;
  padding: 10px;
  z-index: 50;
}
#tooltip {
  position: absolute;
  display: none;
  padding: 1em;
  padding-top: 1ex;
  border: 1px solid gray;
  background-color: white;
  font-size: smaller;
  opacity: 0.9;
  border-radius: 4px;
  max-width: 80%;
  box-shadow: 1px 1px 7px gray;
  z-index: 30;
}
#tooltip ul {
  margin: 0;
  padding-left: 1em;
}
#tooltip a.showuse {
  color: inherit;
  text-decoration: underline;
}
#tooltip b a {
  color: inherit;
}
#tooltip abbr {
  cursor: help;
  border-bottom: 1px dashed #000;
}
/*#tooltip li { border: 1px solid blue; margin:0 }*/

p.warnmsg {
  color: #a00;
  padding: 0 1ex;
  margin: 0.3ex 0;
}

.code a {
  text-decoration: none;
  color: inherit;
}
.code a:hover {
  text-decoration: none;
}

.error {
  border-bottom: 1px dashed red;
}
.warning {
  border-bottom: 1px dotted #c90;
}

#tooltip i {
  color: #888;
  white-space: pre-wrap;
  font-family: monospace;
}
#tooltip .ppcond {
  color: #063;
  white-space: pre-wrap;
  font-family: monospace;
  font-weight: bold;
}
#tooltip .ppcond a {
  font-weight: normal;
  color: inherit;
}

/* disable the keywords in strings  (macro have that)  */
.code .string em,
.code .string b,
.code .string var {
  color: inherit;
  font-style: inherit;
  font-weight: inherit;
}

/* Old Macro expansions.*/
.expansion {
  display: none;
}

.fake {
  display: inline-block;
  position: relative;
  bottom: 0.7em;
  opacity: 0.8;
  font-size: small;
}
.fake::before {
  content: '\2380';
}
.refarg::before {
  display: inline-block;
  position: relative;
  bottom: 0.7em;
  opacity: 0.8;
  font-size: x-small;
  color: gray;
  content: '&';
}

#triangles {
  position: absolute;
  width: 124px;
  height: 128px;
  bottom: 280px;
  right: 10px;
}

#triangles::after {
  background-image: url('./sideLogo.png');
  background-size: 124px 128px;
  display: inline-block;
  width: 124px;
  height: 128px;
  content: '';
}

select:not([multiple]) {
  -webkit-appearance: none;
  -moz-appearance: none;
  background-position: right 50%;
  background-repeat: no-repeat;
  background-image: url('./arrow.png');
  background-color: #0077c8;
  border: 1px solid #0071d2;
  border-radius: 3px;
  color: white;
  font-size: 16px;
  position: relative;
  padding: 4px 20px 6px 6px;
}

@media only screen and (max-width: 30em) {
  .code {
    font-size: smaller;
  }
  #style {
    display: none;
  }
  #breadcrumb span {
    display: none;
  }
  /* This makes sure that there is no horizontal scrollbar on mobile.
       Mobile users can use tab to scroll, and google does not consider we are mobile-ready otherwise */
  div#content {
    overflow-x: auto;
  }
  #rowTwo {
    gap: 0 10px;
  }
  #footercontainer {
    padding-bottom: 50px;
    bottom: 0px;
  }
}
@media only screen and (max-width: 60em) {
  #allSideBoxes {
    display: none;
  }
  div#header {
    flex-wrap: wrap;
    height: unset;
    padding: 10px;
    padding-top: 0;
  }
  #style {
    display: none !important;
  }
  .cb_imprint {
    font-size: small;
  }
  a.logo {
    margin-top: 5px;
  }
  div#content {
    margin-top: 125px;
  }
}
