body, table, div, p, dl {
   font-family: 'Open Sans', sans-serif;
}

#scipopttopbar a:link,
#scipopttopbar a:visited,
#scipopttopbar a:hover,
#scipopttopbar a:focus,
#scipopttopbar a:active {
    font-weight: 500;
}
#scipopttopbar .navbar-nav a {
    color: white !important;
}
#scipopttopbar .navbar-nav > .active > a,
#scipopttopbar .navbar-nav > .active > a:link {
    color: var(--primary-color) !important;
}
#scipopttopbar .navbar-nav > .active > a:hover {
    color: var(--primary-color);
    text-shadow: 0px 0px 2px var(--primary-color);
}

/* scroll up headings a bit to compensate for the header */
.reveal, .reveal_faq {
  color:#06c;
  cursor: pointer;
}
/* scroll up a bit to compensate for the header */
.anchor,
#doc-content > .contents > a {
  padding-top: 50px;
  margin-top: -50px;
  display: block;
}
li.anchor {
  display: list-item;
}
.logo {
   max-height:120px;
   max-width:75%;
   padding-top:20px;
   padding-bottom:20px;
   display: block;
   margin-left: auto;
   margin-right: auto;
}
.mono {
font-family:monospace;
}
.img-padding {
   padding-top:20px;
   padding-bottom:20px;
}
/* used for download buttons */
.w-30 {
   width:30px;
}
.w-60 {
   width:60px;
}
/* used for file information on download page */
.w-120 {
   width:120px;
}
/* used for news dates */
.w-150 {
   width:150px;
}
/* used for developer names */
.w-200 {
   width:200px;
}
/* used for cooperation partner names */
.w-350 {
   width:350px;
}
.center {
   position:center;
   text-align:center;
}
.al-r {
   text-align: right;
}
.al-l {
   text-align:left;
}
.val-t {
   vertical-align:top;
}
.val-c {
   vertical-align:center;
}

/* red textcolor */
.warning {
    color:#d00;
}

.input-group-addon {
    min-width:100px;
    text-align:left;
}
body {
    position: relative;
    /* For scrollyspy */
    padding-top: 50px;
}
@media (prefers-color-scheme: light) {
body > #main .bs-docs-container {
    box-shadow: 0 10px 30px #777;
    background-color: #FFF;
}

body > .container {
    box-shadow: 0 10px 30px #777;
    background-color: #FFF;
}
}
.bs-docs-container{
    padding-bottom: 40px;
}

/* Keep code small in tables on account of limited space */
.table code {
    font-size: 13px;
    font-weight: normal;
}

/* the z index of the main navigation bar of Doxygen */
.sm{
    position:relative;
    z-index:10
}

/* smaller right margin to fit on one line with toggle button */
@media (max-width: 768px) {
  .navbar > .container .navbar-brand,
  .navbar > .container-fluid .navbar-brand {
    margin-right: -70px;
  }
}
/* text of navbar brand/title */
.bs-docs-nav .navbar-brand {
    padding-right:80px;
}

@media (prefers-color-scheme: light) {
/* style for mouse over in navbar */
.bs-docs-nav .navbar-nav > li > a:hover {
    background-color: black;
    text-shadow: 0px 0px 2px white;
}
.bs-docs-nav .navbar-toggle {
    border-color: #ddd;
}
.bs-footer {
    color: #777;
    border-top: 1px solid #e5e5e5;
}
}
.bs-footer {
    padding-top: 40px;
    padding-bottom: 30px;
    margin-top: 50px;
    text-align: center;
}
.footer-links {
    margin: 10px 0;
    padding-left: 0;
}
.footer-links li {
    display: inline;
    padding: 0 2px;
}
.footer-links li:first-child {
    padding-left: 0;
}
@media (min-width: 768px) {
    .bs-footer {
        text-align: left;
    }
    .bs-footer p {
        margin-bottom: 0;
    }
}
/* Masthead (headings and download button) */
 .bs-masthead {
    position: relative;
    padding: 30px 15px;
    text-align: center;
}
.bs-masthead h1 {
    font-size: 50px;
    line-height: 1;
}
@media (prefers-color-scheme: light) {
.bs-masthead h1 {
    color: #fff;
}
.bs-masthead-links a {
    color: #fff;
}
.bs-header h1 {
    color: #fff;
}
}
.bs-masthead .btn-outline {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 18px 24px;
    font-size: 21px;
}
/* Links to project-level content like the repo, Expo, etc */
 .bs-masthead-links {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 0 15px;
    list-style: none;
    text-align: center;
}
.bs-masthead-links li {
    display: inline;
}
.bs-masthead-links li + li {
    margin-left: 20px;
}
@media screen and (min-width: 768px) {
    .bs-masthead {
        text-align: left;
        padding-top: 140px;
        padding-bottom: 140px;
    }
    .bs-masthead h1 {
        font-size: 100px;
    }
    .bs-masthead .lead {
        margin-right: 25%;
        font-size: 30px;
    }
    .bs-masthead-links {
        padding: 0;
        text-align: left;
    }
}
/* Page headers */
.bs-header {
    padding: 30px 15px 40px;
    /* side padding builds on .container 15px, so 30px */
    font-size: 16px;
    text-align: center;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .15);
}
.bs-header p {
    font-size: 21px;
    font-weight: 300;
    line-height: 1.5;
}
.bs-header .container {
    position: relative;
}
@media screen and (min-width: 768px) {
    .bs-header {
        font-size: 21px;
        text-align: left;
    }
    .bs-header h1 {
        font-size: 60px;
        line-height: 1;
    }
}
@media screen and (min-width: 992px) {
    .bs-header h1, .bs-header p {
        margin-right: 380px;
    }
}
#openNav {
  position: fixed;
  display: none;
  border-radius: 10px;
}
@media (prefers-color-scheme: light) {
#openNav {
  color: #fff;
  background-color: #9999;
}
}
.container {
   max-width: 100%;
}
.bs-sidebar.affix {
    position: static;
}
/* First level of nav */
.bs-sidenav {
    margin-top: 30px;
    margin-bottom: 30px;
    padding-top: 10px;
    padding-bottom: 10px;
/*     text-shadow: 0 1px 0 #fff; */
    background-color: #f5f5f5;
    border-radius: 5px;
}
/* Nav: second level (shown on .active) */
.bs-sidebar .nav .nav {
    display: none;
    /* Hide by default, but at >768px, show it */
    margin-bottom: 8px;
}
.bs-sidebar .nav .nav > li > a {
    padding-top: 3px;
    padding-bottom: 3px;
    padding-left: 30px;
    font-size: 90%;
}
/* Show and affix the side nav when space allows it */
@media screen and (min-width: 992px) {
    .bs-sidebar .nav > .active > ul {
        display: block;
    }
    /* Widen the fixed sidebar */
    .bs-sidebar.affix, .bs-sidebar.affix-bottom {
        width: 213px;
    }
    .bs-sidebar.affix {
        position: fixed;
        /* Undo the static from mobile first approach */
        top: 80px;
    }
    .bs-sidebar.affix-bottom {
        position: absolute;
        /* Undo the static from mobile first approach */
    }
    .bs-sidebar.affix-bottom .bs-sidenav, .bs-sidebar.affix .bs-sidenav {
        margin-top: 0;
        margin-bottom: 0;
    }
}
@media screen and (min-width: 1200px) {
    /* Widen the fixed sidebar again */
    .bs-sidebar.affix-bottom, .bs-sidebar.affix {
        width: 263px;
    }
}
/* Space things out */
 .bs-docs-section + .bs-docs-section {
    padding-top: 40px;
}
/* Offset anchored headings below the fixed navbar when jumped to via #anchor.
   scroll-margin-top only affects scrolling, so it adds no layout offset and
   cannot push a heading up over the previous content (unlike the old
   padding-top/negative-margin hack). */
 h1[id], h2[id], h3[id] {
    scroll-margin-top: 80px;
}

.navbar-brand{
  font-size:17px;
}

/* doxygen-awesome overwrites some styles, correct them back */
#scipopttopbar .navbar-nav {
  font-size: 14px;
}

#scipopttopbar .navbar-nav a {
  color: inherit;
}

@media (prefers-color-scheme: light) {
#scipopttopbar {
  color: white;
}
#scipopttopbar .navbar-brand {
  color: white !important;
}

#scipopttopbar .navbar-nav > .dropdown > a {
  color: white !important;
}

#scipopttopbar .navbar-nav > .dropdown > .dropdown-menu > li > a {
  color: black !important;
}
}
/* The documentation dropdown keeps a white background in any colour scheme, so
   force its items dark unconditionally -- otherwise the "navbar links are white"
   rule above leaves them white-on-white (invisible) in dark mode. */
#scipopttopbar .navbar-nav > .dropdown > .dropdown-menu > li > a {
  color: #23282f !important;
}

#doc-content h2, .h2 {
  font-size: 24px;
}

#doc-content .memname {
  font-weight: 400;
}

#doc-content dd {
  margin-left: 40px;
}
#doc-content .memdoc > p,
#doc-content p.reference,
#doc-content p.definition {
  font: 400 14px/22px Roboto,sans-serif;
  line-height: 22px;
  margin-bottom: 14px;
  margin-top: 14px;
}
/* end doxygen-awesome corrections */

/* ==========================================================================
   Modern styling layer (merged in from the former modern.css). Generic
   layout / typography / nav / hero / sidebar, themed from each site's
   --primary-color (defined in custom-<site>.css). This file is loaded on the
   homepages, the blog, and the documentation pages, so the modern layer now
   travels with it -- no separate modern.css <link> needed.
   NB: appended after the base rules above, so it overrides them on ties; it
   sits before custom-<site>.css in the cascade, which is fine because the two
   touch disjoint properties (brand tokens/gradient vs. generic layout).
   ========================================================================== */
/* ---------- Typography ---------- */

/* Modern system font stack -- crisp, fast, no external request. */
/* custom.css sets `font-family: 'Open Sans'` on body, table, div, p, dl -- but
   Open Sans is never actually loaded, so it falls back to the generic
   sans-serif instead of the modern system stack. Override with the same
   selectors (this layer is appended after those base rules); headings/links/etc. inherit. */
body, table, div, p, dl {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
                 Arial, "Open Sans", sans-serif;
}
body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
.bs-docs-container {
    font-size: 14px;
    line-height: 1.5;
}
.bs-docs-container p {
    margin-bottom: 1em;
}
@media (prefers-color-scheme: light) {
    .bs-docs-container {
        color: #23282f;
    }
}

/* Section headings with a hairline divider. */
.bs-docs-container .col-md-9 > div > h1 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid color-mix(in srgb, var(--primary-color) 18%, transparent);
    scroll-margin-top: 70px;
}
.bs-docs-container .col-md-9 h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 18px 0 6px;
}
.bs-docs-container .col-md-9 h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 14px 0 6px;
}
.bs-docs-container .col-md-9 > div > h1 + h2,
.bs-docs-container .col-md-9 > div > h1 + h3 {
    margin-top: 10px;
}

/* h4 anchors aren't covered by the h1/h2/h3 scroll-margin rule earlier in
   this file; give them the same fixed-navbar offset plus a little top spacing. */
.bs-docs-container .col-md-9 h4[id] {
    scroll-margin-top: 80px;
    margin-top: 26px;
}

/* ---------- Cards & full-bleed tinted page ---------- */

@media (prefers-color-scheme: light) {
    /* Tint the whole page so the content runs full-bleed from the hero into
       the footer -- no floating panel, no outdated drop shadow. */
    body {
        background-color: #f4f5f7;
    }
    body > .bs-docs-container {
        background-color: transparent;
        box-shadow: none;
    }
    /* On documentation pages the content container is nested inside #main, so
       custom.css's `body > #main .bs-docs-container` adds the old heavy drop
       shadow. Replace it with a modern soft card (same as the homepage cards). */
    body > #main .bs-docs-container {
        background-color: #fff;
        border-radius: 12px;
        box-shadow: 0 1px 2px rgba(20, 30, 60, 0.04),
                    0 8px 24px rgba(20, 30, 60, 0.06);
    }
    .bs-footer {
        background-color: transparent;
        border-top: none;
    }
}
body > .bs-docs-container {
    padding-top: 22px;       /* small gap between hero and first card */
}
/* Doc pages: the content card is nested in #main, so give it a top margin to
   sit below the hero with the same gap (padding-top would go inside the card). */
body > #main .bs-docs-container {
    margin-top: 22px;
}
.bs-footer {
    margin-top: 8px;
}
.bs-docs-container .col-md-9 > div {
    background: #fff;
    border: 1px solid rgba(20, 30, 60, 0.08);
    border-radius: 12px;
    padding: 22px 26px;
    margin-bottom: 20px;
    box-shadow: 0 1px 2px rgba(20, 30, 60, 0.04),
                0 8px 24px rgba(20, 30, 60, 0.06);
    scroll-margin-top: 76px;
}

/* ---------- Dense tables ---------- */

.bs-docs-container .col-md-9 table.table-condensed td {
    line-height: 1.45;
}
.bs-docs-container .col-md-9 table > thead > tr > th,
.bs-docs-container .col-md-9 table > tbody > tr > td {
    padding-right: 16px;
    vertical-align: top;
}
.bs-docs-container .table-hover > tbody > tr:hover {
    background-color: color-mix(in srgb, var(--primary-color) 6%, transparent);
}

/* ---------- Hero ---------- */

.hero {
    padding: clamp(2.5rem, 6vw, 4.75rem) 0;
}
.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}
.hero-text {
    flex: 1 1 360px;
    min-width: 0;
}
.hero h1 {
    margin: 0;
    font-size: clamp(2.8rem, 6vw, 4.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    color: #fff;
}
.hero-tagline {
    margin: 0.5rem 0 0;
    font-size: clamp(1.1rem, 2.4vw, 1.6rem);
    font-weight: 400;
    opacity: 0.92;
}
/* `.hero .hero-lead` (not just `.hero-lead`) so it beats custom.css's
   `.bs-header p { font-size: 21px }`, which otherwise blows the lead up. */
.hero .hero-lead {
    margin: 16px 0 0;
    max-width: 46ch;
    font-size: 15px;
    line-height: 1.55;
    opacity: 0.88;
}
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.7rem;
}
/* Flat pills -- hover only changes colour. */
.btn-hero {
    border-radius: 999px;
    padding: 0.62em 1.4em;
    font-weight: 600;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
    text-shadow: none;   /* .bs-header sets an inherited text-shadow; cancel it */
    transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.btn-hero:hover, .btn-hero:focus, .btn-hero:active {
    color: #fff;
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: none;
    transform: none;
    text-decoration: none;
}
.btn-hero-primary {
    background: #fff;
    color: color-mix(in srgb, var(--primary-color) 82%, black);
    border-color: #fff;
    box-shadow: none;
}
.btn-hero-primary:hover, .btn-hero-primary:focus, .btn-hero-primary:active {
    color: color-mix(in srgb, var(--primary-color) 62%, black);
    background: color-mix(in srgb, var(--primary-color) 8%, white);
    border-color: #fff;
    box-shadow: none;
}
.hero-logo {
    flex: 0 0 auto;
}
.hero-logo img {
    width: clamp(120px, 15vw, 180px);
    height: auto;
    filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.28));
}
@media (max-width: 767px) {
    .hero-inner {
        flex-direction: column-reverse;
        align-items: flex-start;
        text-align: left;
        gap: 1.25rem;
    }
    .hero h1, .hero-tagline {
        text-align: left;
    }
    .hero-lead {
        max-width: none;
    }
    .hero-logo img {
        width: 104px;
    }
    .hero-cta .btn-hero {
        padding: 0.55em 1.1em;
    }
}

/* On documentation pages the hero is embedded inside #main, which the nav
   sidebar narrows (margin-left). A full-size hero there wraps the logo
   underneath the title, so use a slimmer, no-wrap header with a small logo
   that stays beside the title. (#main only exists on the doc pages, so the
   homepages are unaffected.) */
@media (min-width: 768px) {
    #main .hero {
        padding: 1.5rem 0;
    }
    #main .hero-inner {
        flex-wrap: nowrap;
        align-items: center;
        gap: 1.25rem;
    }
    #main .hero h1 {
        font-size: clamp(1.9rem, 3.2vw, 2.7rem);
    }
    #main .hero-tagline {
        font-size: clamp(0.95rem, 1.7vw, 1.15rem);
    }
    #main .hero-logo img {
        width: clamp(64px, 8vw, 92px);
    }
}

/* ---------- Top nav: solid black ---------- */

.navbar.bs-docs-nav {
    background-color: #000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 1px 14px rgba(0, 0, 0, 0.16);
}
.bs-docs-nav .navbar-nav > li > a:hover,
.bs-docs-nav .navbar-nav > li > a:focus {
    background-color: rgba(255, 255, 255, 0.1);
    text-shadow: none;
    border-radius: 6px;
}
/* Bootstrap gives the active item a slightly different black background
   (#080808). Make it transparent so it blends with the bar; the active item is
   marked by its coloured text instead. */
.bs-docs-nav .navbar-nav > .active > a,
.bs-docs-nav .navbar-nav > .active > a:hover,
.bs-docs-nav .navbar-nav > .active > a:focus {
    background-color: transparent;
}

/* ---------- Section sidebar: sticky + left-accent highlight ---------- */

@media (min-width: 992px) {
    .bs-sidebar {
        position: -webkit-sticky;
        position: sticky;
        top: 66px;
    }
}
@media (prefers-color-scheme: light) {
    .bs-sidebar .nav > li > a {
        display: block;
        color: #4a5160;
        padding: 4px 16px;
        border-left: 2px solid transparent;
        border-right: 0;
        border-radius: 0 6px 6px 0;
        transition: color 0.12s ease, background-color 0.12s ease, border-color 0.12s ease;
    }
    .bs-sidebar .nav > li > a:hover,
    .bs-sidebar .nav > li > a:focus {
        text-decoration: none;
        color: color-mix(in srgb, var(--primary-color) 80%, black);
        background-color: color-mix(in srgb, var(--primary-color) 8%, transparent);
        border-left-color: color-mix(in srgb, var(--primary-color) 45%, transparent);
        border-right: 0;
    }
    .bs-sidebar .nav > .active > a,
    .bs-sidebar .nav > .active:hover > a,
    .bs-sidebar .nav > .active:focus > a {
        font-weight: 600;
        color: var(--primary-color);
        background-color: color-mix(in srgb, var(--primary-color) 12%, transparent);
        border-left: 3px solid var(--primary-color);
        border-right: 0;
    }
}

/* ---------- Links ---------- */

.bs-docs-container .col-md-9 a:not(.btn) {
    color: var(--link, var(--primary-color));
}
.bs-docs-container .col-md-9 a:not(.btn):hover,
.bs-docs-container .col-md-9 a:not(.btn):focus {
    color: var(--link-hover, color-mix(in srgb, var(--primary-color) 62%, black));
    text-decoration: underline;
}

/* ---------- Documentation sidebar scrollbar ---------- */
/* Thin, subtle scrollbar on the doc nav sidebar (only present on doc pages). */
.w3-sidebar {
    scrollbar-width: thin;
    scrollbar-color: rgba(120, 130, 150, 0.35) transparent;
}
.w3-sidebar::-webkit-scrollbar {
    width: 8px;
}
.w3-sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.w3-sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(120, 130, 150, 0.3);
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: content-box;
}
.w3-sidebar:hover::-webkit-scrollbar-thumb {
    background-color: rgba(120, 130, 150, 0.55);
}
