/****************
*** Variables ***
****************/
:root {
  color-scheme: light dark;

  --fg-light: #333;
  --fg-dark: hsl(0, 0%, 80%);
  --fg: light-dark(var(--fg-light), var(--fg-dark));

  --wb-dynamic: light-dark(white, black);
  --bw-dynamic: light-dark(black, white);

  --bg-navbar-light: #10b146;
  --bg-navbar-dark: color-mix(in hsl, var(--bg-navbar-light), black 25%);
  --bg-navbar: light-dark(var(--bg-navbar-light), var(--bg-navbar-dark));
  --bg-navbar-hov: inherit;

  --bg-jumbotron: light-dark(var(--bg-navbar-light), color-mix(in hsl, var(--bg-navbar-light), black 25%));

  --fg-navbar: white;
  --fg-navbar-hov: #f2f2f2;

  --border-navbar-hov: #373b37;

  --bg-segment-light: white;
  --bg-segment-dark: #262b30;
  --bg-segment: light-dark(var(--bg-segment-light), var(--bg-segment-dark));

  --fg-segment-light: var(--fg-light);
  --fg-segment-dark: var(--fg-dark);
  --fg-segment-dynamic: light-dark(var(--fg-segment), var(--fg-segment-dark));

  --fg-code-light: #c7254e;
  --fg-code-dark: color-mix(in hsl, var(--fg-code-light), white 25%);
  --fg-code: light-dark(var(--fg-code-light), var(--fg-code-dark));

  --bg-btn-light: #fafafa;
  --bg-btn-dark: hsl(0, 0%, 2%);
  --bg-btn: light-dark(var(--bg-btn-light), var(--bg-btn-dark));

  --bg-btn-dl-stable-light: #32a85f;
  --bg-btn-dl-stable-dark: color-mix(in hsl, var(--bg-btn-dl-stable-light), black);
  --bg-btn-dl-stable: light-dark(var(--bg-btn-dl-stable-light), var(--bg-btn-dl-stable-dark));

  --bg-btn-dl-alpha-light: #2784d5;
  --bg-btn-dl-alpha-dark: color-mix(in hsl, var(--bg-btn-dl-alpha-light), black);
  --bg-btn-dl-alpha: light-dark(var(--bg-btn-dl-alpha-light), var(--bg-btn-dl-alpha-dark));

  --bg-btn-dl-nightly-light: #7855df;
  --bg-btn-dl-nightly-dark: color-mix(in hsl, var(--bg-btn-dl-nightly-light), black);
  --bg-btn-dl-nightly: light-dark(var(--bg-btn-dl-nightly-light), var(--bg-btn-dl-nightly-dark));

  --bg-btn-dl-pr-light: #da950b;
  --bg-btn-dl-pr-dark: color-mix(in hsl, var(--bg-btn-dl-pr-light), black);
  --bg-btn-dl-pr: light-dark(var(--bg-btn-dl-pr-light), var(--bg-btn-dl-pr-dark));

  --col-anchor-light: #337ab7;
  --col-anchor-dark: color-mix(in hsl, var(--col-anchor-light), white 15%);
  --col-anchor: light-dark(var(--col-anchor-light), var(--col-anchor-dark));

  --bg-footer: #222522;

  --col-link-shadow: #362a84;

  --fg-stack: color-mix(in hsl, darkorange, black 15%);
  --fg-stack-hov: color-mix(in hsl, darkorange, black 25%);
  --fg-social: rgba(255, 255, 255, 0.8);
  --fg-social-hov: white;

  --col-gray-overlay: rgba(16, 16, 16, 0.75);
  --col-green-overlay: rgba(16, 177, 70, 0.7);
  --col-bol-overlay: rgba(16, 16, 16, 0.2);

  --nav-height: 50px;
  --nav-height-neg: calc(-1 * var(--nav-height));
  --animation-time: 150ms;
}

/* Keep the denser 14px base size the site was designed around */
html {
  font-size: 87.5%;
}

:root {
  --bs-body-color: var(--fg);
  --bs-body-line-height: 1.428571429;
}

:root {
  --bs-primary: #337ab7;
  --bs-primary-rgb: 51, 122, 183;
  --bs-secondary: #777;
  --bs-secondary-rgb: 119, 119, 119;
  --bs-success: #5cb85c;
  --bs-success-rgb: 92, 184, 92;
  --bs-info: #5bc0de;
  --bs-info-rgb: 91, 192, 222;
  --bs-warning: #f0ad4e;
  --bs-warning-rgb: 240, 173, 78;
  --bs-danger: #d9534f;
  --bs-danger-rgb: 217, 83, 79;
  --bs-link-color: var(--col-anchor);
  --bs-link-hover-color: var(--col-anchor);
}

/* Alert tints; dark mode keeps Bootstrap's own dark variants */
:root:not([data-bs-theme="dark"]) {
  --bs-success-text-emphasis: #3c763d;
  --bs-success-bg-subtle: #dff0d8;
  --bs-success-border-subtle: #d6e9c6;
  --bs-info-text-emphasis: #31708f;
  --bs-info-bg-subtle: #d9edf7;
  --bs-info-border-subtle: #bce8f1;
  --bs-warning-text-emphasis: #8a6d3b;
  --bs-warning-bg-subtle: #fcf8e3;
  --bs-warning-border-subtle: #faebcc;
  --bs-danger-text-emphasis: #a94442;
  --bs-danger-bg-subtle: #f2dede;
  --bs-danger-border-subtle: #ebccd1;
}

.text-bg-info,
.text-bg-warning {
  color: #fff !important;
}

.text-warning {
  color: light-dark(#8a6d3b, rgb(var(--bs-warning-rgb))) !important;
}

.text-danger {
  color: light-dark(#a94442, rgb(var(--bs-danger-rgb))) !important;
}

.form-control,
.form-select {
  color: light-dark(#555, var(--bs-body-color));
  border-color: light-dark(#ccc, var(--bs-border-color));
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}

.form-control,
.form-select {
  padding: 6px 12px;
  line-height: 1.428571429;
}

.form-select {
  padding-right: 36px;
}

/* Bootstrap 3 form layout, which Bootstrap 5 dropped */
.form-group {
  margin-bottom: 15px;
}

label {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-control:focus,
.form-select:focus {
  border-color: #66afe9;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
}

.form-check-input:checked {
  background-color: #337ab7;
  border-color: #337ab7;
}

.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--fg);
  --bs-table-striped-color: var(--fg);
  --bs-table-striped-bg: rgba(0, 0, 0, 0.025);
  --bs-table-border-color: light-dark(#ddd, var(--bs-border-color));
}

.table {
  margin-bottom: 20px;
}

/* Row dividers above each row, like Bootstrap 3 */
.table> :not(caption)>*>* {
  padding: 8px;
  border-top-width: var(--bs-border-width);
  border-bottom-width: 0;
}

/* Links in navs stay bold like every other link */
.nav,
.navbar-nav {
  --bs-nav-link-font-weight: bold;
}

ul.lsp-sort {
  margin-bottom: 5px;
}

.nav-pills .nav-item+.nav-item {
  margin-left: 2px;
}

.nav-pills {
  --bs-nav-link-padding-x: 15px;
  --bs-nav-link-padding-y: 10px;
  --bs-nav-pills-border-radius: 4px;
  --bs-nav-pills-link-active-bg: #337ab7;
}

.pagination {
  --bs-pagination-color: var(--col-anchor);
  --bs-pagination-hover-color: var(--col-anchor);
  --bs-pagination-focus-color: var(--col-anchor);
  --bs-pagination-border-color: light-dark(#ddd, var(--bs-border-color));
  --bs-pagination-hover-border-color: light-dark(#ddd, var(--bs-border-color));
  --bs-pagination-hover-bg: light-dark(#eee, var(--bs-tertiary-bg));
  --bs-pagination-focus-bg: light-dark(#eee, var(--bs-tertiary-bg));
  --bs-pagination-disabled-color: #777;
  --bs-pagination-disabled-border-color: light-dark(#ddd, var(--bs-border-color));
  --bs-pagination-active-bg: #337ab7;
  --bs-pagination-active-border-color: #337ab7;
}

#lspnav {
  min-height: 50px;
  border: 1px solid light-dark(#e7e7e7, var(--bs-border-color));
  border-radius: 4px;
}

#lspnav .nav {
  --bs-nav-link-padding-x: 15px;
  --bs-nav-link-padding-y: 15px;
  line-height: 20px;
  --bs-nav-link-color: light-dark(#777, var(--bs-secondary-color));
  --bs-nav-link-hover-color: var(--fg);
  --bs-nav-link-disabled-color: light-dark(#ccc, var(--bs-tertiary-color));
}

p {
  margin-bottom: 10px;
}

hr {
  margin: 20px 0;
}

ul,
ol {
  margin-bottom: 10px;
  padding-left: 40px;
}

pre {
  padding: 9.5px;
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.428571429;
  word-break: break-all;
  overflow-wrap: break-word;
  background-color: light-dark(#f5f5f5, hsl(0, 0%, 4%));
  border: 1px solid light-dark(#ccc, #444);
  border-radius: 4px;
}

pre code {
  padding: 0;
  font-size: inherit;
  white-space: pre-wrap;
  background-color: transparent;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 20px;
  margin-bottom: 10px;
  line-height: 1.1;
}

h4, h5, h6 {
  margin-top: 10px;
}

h1 { font-size: 36px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
h4 { font-size: 18px; }
h5 { font-size: 14px; }
h6 { font-size: 12px; }

.container,
.row {
  --bs-gutter-x: 30px;
}

@media (min-width: 576px) {
  .container {
    max-width: 100%;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 750px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 970px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1170px;
  }
}

/* If the browser _doesn't_ support the light-dark() function, set the default value */
@supports not (background: light-dark(white, black)) {
  :root {
    --fg: var(--fg-light);

    --wb-dynamic: white;
    --bw-dynamic: black;

    --bg-navbar: var(--bg-navbar-light);

    --bg-jumbotron: var(--bg-navbar-light);

    --bg-segment: var(--bg-segment-light);

    --fg-segment-dynamic: var(--fg-segment-light);

    --bg-btn: var(--bg-btn-light);

    --bg-btn-dl-stable: var(--bg-btn-dl-stable-light);

    --bg-btn-dl-alpha: var(--bg-btn-dl-alpha-light);

    --bg-btn-dl-nightly: var(--bg-btn-dl-nightly-light);

    --bg-btn-dl-pr: var(--bg-btn-dl-pr-light);

    --col-anchor: var(--col-anchor-light);
  }
}

body {
  padding-top: var(--nav-height);
  color: var(--fg);
  background-color: var(--bg-segment);
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: "Noto Sans", sans-serif;
}

/* extend the main div, so the footer extends to the end */
.main-div {
  display: flex;
  flex-direction: column;
  flex: 1;
}

a {
  color: var(--col-anchor);
  font-weight: bold;
  text-decoration: none;
  transition: all 0.15s ease-in-out;
}

a:hover {
  text-decoration: underline;
}

.btn:hover,
.nav-link:hover,
.page-link:hover {
  text-decoration: none;
}

.img-thumbnail {
  padding: 4px;
  border-radius: 4px;
}

/* Bootstrap 3's .well, which Bootstrap 5 dropped */
.well {
  min-height: 20px;
  padding: 19px;
  margin-bottom: 20px;
  background-color: light-dark(#f5f5f5, var(--bs-tertiary-bg));
  border: 1px solid light-dark(#e3e3e3, var(--bs-border-color));
  border-radius: 4px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
}

.page-header {
  padding-bottom: 9px;
  margin: 40px 0 20px;
  border-bottom: 1px solid var(--bs-border-color);
}

.card {
  --bs-card-border-radius: 1px;
  --bs-card-inner-border-radius: 3px;
  --bs-card-spacer-y: 15px;
  --bs-card-spacer-x: 15px;
  --bs-card-cap-padding-y: 10px;
  --bs-card-cap-padding-x: 15px;
  --bs-card-bg: transparent;
  --bs-card-border-color: light-dark(#ddd, var(--bs-border-color));
  --bs-card-cap-bg: light-dark(#f5f5f5, var(--bs-tertiary-bg));
  margin-bottom: 20px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.card-header .card-title {
  font-size: 16px;
  margin: 0;
}

.card-title>a {
  color: inherit;
}

.alert {
  --bs-alert-padding-x: 15px;
  --bs-alert-padding-y: 15px;
  --bs-alert-margin-bottom: 20px;
  --bs-alert-border-radius: 1px;
  border: 0;
}

small,
.small {
  font-size: 85%;
}

/* Previous/next links, styled like Bootstrap 3's .pager */
.pager {
  --bs-pagination-padding-x: 14px;
  --bs-pagination-padding-y: 5px;
  --bs-pagination-font-size: 14px;
  --bs-pagination-disabled-bg: var(--bs-pagination-bg);
  margin: 20px 0;
  line-height: 1.428571429;
}

.pager .page-link {
  border-radius: 15px !important;
}

blockquote {
  padding: 10px 20px;
  border-left: 5px solid var(--bs-border-color);
}

.lsp-image {
  max-width: 100%;
}

/* LSP Login Sidebar*/
#login-div form {
  padding: 0.5em;
}

.alert.lsp {
  margin-bottom: 0;
}

/* Star ratings */
/* Same padding as the .nav links it sits next to */
.lsp-starrating {
  padding: var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);
}

.lsp-starrating .badge {
  display: inline-block;
  margin-left: 5px;
  padding: 0.25em 0.4em;
  font-size: 9px;
  line-height: 1;
  vertical-align: middle;
}

.lsp-stars {
  display: inline-flex;
  flex-direction: row-reverse;
  vertical-align: middle;
  font-size: 16px;
}

.lsp-stars>* {
  padding: 0 2px;
  color: #aaa;
}

.lsp-stars>a:hover {
  text-decoration: none;
}

.lsp-stars.disabled {
  cursor: not-allowed;
}

.lsp-stars .star-full {
  color: #fde16d;
  filter: drop-shadow(1px 1px 0 #999);
}

.lsp-stars .star-full path {
  stroke: #777;
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
}

/* Each star holds both glyphs; show the one matching its state */
.lsp-star .star-full,
.lsp-star.filled .star-empty {
  display: none;
}

.lsp-star.filled .star-full {
  display: inline;
}

/* While hovering, preview the rating under the cursor instead of the saved one */
.lsp-stars:not(.disabled):hover .lsp-star .star-full {
  display: none;
}

.lsp-stars:not(.disabled):hover .lsp-star .star-empty {
  display: inline;
}

.lsp-stars:not(.disabled)>a:hover .lsp-star .star-full,
.lsp-stars:not(.disabled)>a:hover~a .lsp-star .star-full {
  display: inline;
}

.lsp-stars:not(.disabled)>a:hover .lsp-star .star-empty,
.lsp-stars:not(.disabled)>a:hover~a .lsp-star .star-empty {
  display: none;
}

/* Fix for forum back-to-top button */
.back-to-top {
  z-index: 1;
  bottom: 30px;
}

/* Do not display the edit button in docs */
.mw-editsection {
  display: none;
}

div.p-pagination span.label a:link {
  color: #fff;
}

.inputbox {
  line-height: normal;
}

.dl-vert-label {
  position: relative;
  top: -2px;
  margin-left: 55px;
}

.lsp-row {
  margin-top: 10px;
  text-align: left;
}

/* Stacked columns are flex items, so the title margin no longer collapses into the sidebar's */
@media (max-width: 991.98px) {
  .lsp-row .col-lg-9> :first-child {
    margin-top: 0;
  }
}

.btn-file {
  margin-right: 0.75em;
  margin-top: 0.15em;
}

span.lsp-badge {
  opacity: 0.7;
}

pre.lsp-filename {
  float: right;
  text-align: right;
  margin: auto;
}

div.lsp-sidebar {
  margin-right: 0.5em;
  margin-top: 1.6em;
}

.fl-tab {
  position: relative;
  left: 0.1em;
  top: 0.05em;
  margin-left: 0.3em;
}

.lsp-small {
  display: block;
  position: relative;
  bottom: -1.5em;
  text-align: right;
}

.release-notes {
  position: relative;
  display: inline-block;
  text-align: left;
  max-width: 800px;
}

/* Button base, before the variants below so they can override it */
.btn {
  --bs-btn-padding-y: 6px;
  --bs-btn-padding-x: 12px;
  --bs-btn-line-height: 1.428571429;
  --bs-btn-border-width: 0;
  --bs-btn-border-radius: 1px;
  margin-bottom: 0;
}

.btn-lg {
  --bs-btn-padding-y: 10px;
  --bs-btn-padding-x: 16px;
  --bs-btn-font-size: 18px;
  --bs-btn-line-height: 1.3333333;
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #337ab7;
  --bs-btn-border-color: #2e6da4;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #286090;
  --bs-btn-hover-border-color: #204d74;
  --bs-btn-focus-shadow-rgb: 51, 122, 183;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #286090;
  --bs-btn-active-border-color: #204d74;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #337ab7;
  --bs-btn-disabled-border-color: #2e6da4;
}

.btn-success {
  --bs-btn-color: #fff;
  --bs-btn-bg: #5cb85c;
  --bs-btn-border-color: #4cae4c;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #449d44;
  --bs-btn-hover-border-color: #398439;
  --bs-btn-focus-shadow-rgb: 92, 184, 92;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #449d44;
  --bs-btn-active-border-color: #398439;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #5cb85c;
  --bs-btn-disabled-border-color: #4cae4c;
}

.btn-info {
  --bs-btn-color: #fff;
  --bs-btn-bg: #5bc0de;
  --bs-btn-border-color: #46b8da;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #31b0d5;
  --bs-btn-hover-border-color: #269abc;
  --bs-btn-focus-shadow-rgb: 91, 192, 222;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #31b0d5;
  --bs-btn-active-border-color: #269abc;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #5bc0de;
  --bs-btn-disabled-border-color: #46b8da;
}

.btn-warning {
  --bs-btn-color: #fff;
  --bs-btn-bg: #f0ad4e;
  --bs-btn-border-color: #eea236;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #ec971f;
  --bs-btn-hover-border-color: #d58512;
  --bs-btn-focus-shadow-rgb: 240, 173, 78;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #ec971f;
  --bs-btn-active-border-color: #d58512;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #f0ad4e;
  --bs-btn-disabled-border-color: #eea236;
}

.btn-danger {
  --bs-btn-color: #fff;
  --bs-btn-bg: #d9534f;
  --bs-btn-border-color: #d43f3a;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #c9302c;
  --bs-btn-hover-border-color: #ac2925;
  --bs-btn-focus-shadow-rgb: 217, 83, 79;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #c9302c;
  --bs-btn-active-border-color: #ac2925;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #d9534f;
  --bs-btn-disabled-border-color: #d43f3a;
}

/* download button bg colors */
.btn-dl {
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
  --bs-btn-bg: var(--btn-dl-bg);
  --bs-btn-hover-bg: var(--btn-dl-bg);
  --bs-btn-active-bg: var(--btn-dl-bg);
  --bs-btn-border-width: 1px;
  --bs-btn-border-color: var(--btn-dl-border);
  --bs-btn-hover-border-color: var(--btn-dl-border);
  --bs-btn-active-border-color: var(--btn-dl-border);
  min-width: 16em;
  position: relative;
  margin: 4px;
  text-align: left;
  padding: 1em 1em 1em 5em;
}

.btn-dl:hover {
  filter: brightness(1.1);
}

.btn-dl.btn-dl-stable {
  --btn-dl-bg: var(--bg-btn-dl-stable);
  --btn-dl-border: var(--bg-btn-dl-stable-light);
}

.btn-dl.btn-dl-alpha {
  --btn-dl-bg: var(--bg-btn-dl-alpha);
  --btn-dl-border: var(--bg-btn-dl-alpha-light);
}

.btn-dl.btn-dl-nightly {
  --btn-dl-bg: var(--bg-btn-dl-nightly);
  --btn-dl-border: var(--bg-btn-dl-nightly-light);
}

.btn-dl.btn-dl-pr {
  --btn-dl-bg: var(--bg-btn-dl-pr);
  --btn-dl-border: var(--bg-btn-dl-pr-light);
}

.btn-dl .small {
  position: relative;
  font-size: 0.9em;
}

.btn-dl .big {
  font-size: 1.2em;
}

.btn-dl .download-icon {
  display: block;
  position: absolute;
  left: 0.2em;
  top: 0.3em;
  opacity: 0.9;
}

/* Prevent cutting off of images on narrow devices*/
@media (max-width: 767px) {
  img {
    max-width: 100%;
    height: auto;
  }
}

.dl-horiz-label {
  margin-left: 57px;
}

.code-block {
  display: inline-block;
  text-align: left;
  margin: 0 auto;
  background-color: var(--wb-dynamic);
  color: var(--bw-dynamic);
}

div.code-block {
  background-color: transparent;
}

div.code-block pre {
    background-color: var(--wb-dynamic);
    color: var(--bw-dynamic);
  }

.top {
  float: top;
}

.overflow-auto {
  overflow: auto;
}

.overflow-hidden {
  overflow: hidden;
}

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

li.dropdown-split-left>a {
  padding-right: 0;
}

li.dropdown-split-right>a {
  padding-left: 7px;
}

.ellipsis {
  font-size: 1em;
  font-weight: 900;
  display: inline;
}

.bandcamp-iframe {
  border: 0;
  width: 700px;
  height: 1000px;
}

@media (max-width: 700px) {
  .bandcamp-iframe {
    width: 100%;
  }
}

.art-thumb {
  float: left;
  margin-right: 10px;
}

.spacey {
  padding: 5px;
}

p.forum-stats {
  font-size: 0.75em;
}

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

code {
  padding: 2px 4px;
  font-size: 90%;
  background-color: var(--wb-dynamic);
  color: var(--fg-code);
  border-radius: 4px;
}

/* navbar styling */
.navbar-custom {
  --bs-navbar-padding-y: 0;
  --bs-navbar-color: var(--fg-navbar);
  --bs-navbar-hover-color: var(--fg-navbar-hov);
  --bs-navbar-active-color: var(--fg-navbar-hov);
  --bs-navbar-brand-color: var(--fg-navbar);
  --bs-navbar-brand-hover-color: var(--fg-navbar);
  --bs-navbar-brand-padding-y: 15px;
  --bs-navbar-brand-margin-end: 15px;
  --bs-navbar-brand-font-size: 16px;
  --bs-navbar-nav-link-padding-x: 15px;
  --bs-navbar-toggler-border-color: transparent;
  --bs-navbar-toggler-focus-width: 0;
  background-color: var(--bg-navbar);
  background-image: url("/img/hexagon.png");
  background-position: 0px 0px;
  font-family: "Titillium Web", sans-serif;
  font-weight: 600;
  transition: top 0.15s ease-in-out;
}

.navbar-custom a {
  box-shadow: none;
  text-decoration: none;
}

.navbar-custom .navbar-brand {
  height: var(--nav-height);
  font-family: "Orbitron", sans-serif;
  letter-spacing: 1px;
  line-height: 22px;
}

.navbar-custom .navbar-nav {
  --bs-nav-link-padding-y: 15px;
  --bs-nav-link-padding-x: 15px;
}

.navbar-custom .nav-link {
  line-height: 20px;
  transition: all 0.15s linear;
}

/* Caret placed like Bootstrap 3's: centered, after a space */
.navbar-custom .dropdown-toggle::after {
  margin-left: calc(0.22em + 2px);
  vertical-align: middle;
}

.navbar-custom .dropdown-menu {
  --bs-dropdown-border-width: 0;
  --bs-dropdown-border-radius: 0;
  --bs-dropdown-bg: var(--border-navbar-hov);
  --bs-dropdown-link-color: var(--fg-navbar);
  --bs-dropdown-link-hover-color: var(--border-navbar-hov);
  --bs-dropdown-link-hover-bg: rgba(255, 255, 255, 0.9);
  --bs-dropdown-link-active-color: var(--border-navbar-hov);
  --bs-dropdown-link-active-bg: rgba(255, 255, 255, 0.9);
  margin-top: 0;
  transition: all 0.15s linear;
}

.navbar-custom .dropdown-item {
  transition: all 0.15s linear;
}

.navbar-custom .navbar-toggler {
  align-self: flex-start;
  margin-block: 8px;
  padding: 9px 10px;
  border: 0;
  border-radius: 4px;
}

.navbar-custom .icon-bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background-color: var(--fg-navbar);
}

.navbar-custom .icon-bar+.icon-bar {
  margin-top: 4px;
}

.navbar-custom .navbar-toggler:where(:hover, :focus) {
  background-color: rgba(255, 255, 255, 0.2);
}

/* inner bottom border on hover over navbar items*/
@media (min-width: 768px) {

  .navbar-custom .navbar-nav .nav-link:hover {
    box-shadow: inset 0px -4px 0px 0px var(--border-navbar-hov);
  }

  /* Dropdown menu appears on :hover and :focus */
  .navbar-custom .dropdown-menu {
    display: block;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.15s;
  }

  .navbar-custom .dropdown:where(:hover, :focus-within) .dropdown-menu {
    visibility: visible;
    opacity: 1;
  }
}

/* mobile version */
@media (max-width: 767.98px) {
  .navbar-custom {
    background-image: none;
  }

  .navbar-custom .navbar-nav {
    --bs-nav-link-padding-y: 10px;
  }

  .navbar-custom .nav-link,
  .navbar-custom .dropdown-menu {
    box-shadow: inset 0px -1px 0px 0px rgba(255, 255, 255, 0.1);
  }

  .navbar-custom .nav-link.show {
    box-shadow: none;
  }

  .navbar-custom .dropdown-menu {
    --bs-dropdown-bg: transparent;
    --bs-dropdown-link-hover-bg: transparent;
    --bs-dropdown-link-active-bg: transparent;
  }
}

.nav-up {
  top: var(--nav-height-neg);
}

.logo-sm {
  position: relative;
  top: -2px;
  margin-right: 5px;
  width: 22px;
  height: 22px;
}

/* Footer */
footer {
  background-color: var(--bg-footer);
  background-image: url("/img/hexagon.png");
  display: flex;
  align-items: center;
}

footer .column-md-6 {
  margin: 20px 4px;
}

footer #redux {
  text-align: left;
  margin: 28px 4px;
  line-height: 80%;
  font-size: 0.95em;
  color: var(--fg-social);
}

footer #redux a {
  box-shadow: none;
}

footer #redux img {
  width: 180px;
  opacity: 0.8;
  transition: opacity 0.15s linear;
}

footer #redux img:hover {
  opacity: 1;
}

/* header */
.jumbotron {
  margin: 0;
  padding-block: 30px;
}

.jumbotron h1 {
  font-size: 36px;
}

.jumbotron p {
  margin-bottom: 15px;
  font-size: 21px;
  font-weight: 200;
}

@media (min-width: 768px) {
  .jumbotron {
    padding-block: 48px;
  }

  .jumbotron h1 {
    font-size: 63px;
  }
}

.jumbotron :where(h1, h2, h3, h4, h5, p) {
  font-family: "Titillium Web", sans-serif;
  font-weight: 400;
}

h1.jumbo {
  margin-top: 14px;
}

p.jumbo {
  margin-top: -14px;
  margin-left: 4px;
}

div.jumbo {
  overflow: hidden;
  display: flex;
  align-items: center;
  background: url("/img/screen.png"), url("/img/hexagon.png"), var(--bg-jumbotron);
  background-position: right bottom, 0px var(--nav-height-neg);
  background-size: auto 80%, auto;
  background-repeat: no-repeat, repeat;
  color: #fff;
  min-height: 50vh;
}

.jumbo div.header {
  margin-bottom: 100px;
}

div.mini {
  overflow: hidden;
  display: flex;
  align-items: center;
  background: url("/img/hexagon.png"), var(--bg-jumbotron);
  background-position: 0px var(--nav-height-neg);
  color: #fff;
  min-height: 15vh;
  padding: 5px;
  margin-bottom: 20px;
}

div.error {
  overflow: hidden;
  display: flex;
  align-items: center;
  background: url("/img/hexagon.png"), var(--bg-jumbotron);
  background-position: 0px var(--nav-height-neg);
  color: #fff;
  flex: 1;
}

div.error a {
  color: #fff;
  box-shadow: inset 0px -2px 0px 0px var(--col-link-shadow);
  transition: box-shadow 0.15s ease-in-out;
}

div.error a:where(:hover, :focus) {
  color: #fff;
  text-decoration: none;
  box-shadow: inset 0px -1.4em 0px 0px var(--col-link-shadow);
}

/* responsive bg change */
@media (max-width: 992px) and (min-width: 768px) {
  div.jumbo {
    background-size: auto 55%, auto;
  }

  .jumbo div.header {
    margin-bottom: 80px;
  }
}

@media (max-width: 768px) {
  div.jumbo {
    background: linear-gradient(var(--col-green-overlay), var(--col-green-overlay)), url("/img/screen.png"), var(--bg-jumbotron);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .jumbo div.header {
    margin-bottom: 50px;
  }
}

/* icons */
.icon {
  vertical-align: -0.125em;
}

.icon-fw {
  width: 1.25em;
}

.icon-2x {
  font-size: 2em;
}

.icon-3x {
  font-size: 3em;
}

.icon-4x {
  font-size: 4em;
}

.icon-5x {
  font-size: 5em;
}

.icon-6x {
  font-size: 6em;
}

/* stack */
.icon-stack {
  display: inline-grid;
  place-items: center;
  width: 1.25em;
  height: 1em;
  vertical-align: -0.125em;
}

.icon-stack>.icon {
  grid-area: 1 / 1;
  vertical-align: top;
}

.icon-stack .icon-stack-inner {
  font-size: 0.625em;
  color: #fff;
}

a.stack {
  color: var(--fg-stack);
  box-shadow: none;
  transition: color 0.15s linear;
}

j a.stack:visited {
  color: var(--fg-stack);
}

a.stack:hover,
a.stack:focus {
  color: var(--fg-stack-hov);
}

a.social {
  color: var(--fg-social);
  box-shadow: none;
  transition: color 0.15s linear;
}

a.social .icon-stack-inner {
  color: var(--border-navbar-hov);
}

a.social .icon-stack {
  margin-right: -0.3em;
}

a.social:visited {
  color: var(--fg-social);
}

a.social:hover,
a.social:focus {
  color: var(--fg-social-hov);
  text-decoration: none;
}

.segment {
  padding: 60px 0 70px 0;
  background-color: var(--bg-segment);
  color: var(--fg-segment-dynamic);
}

.segment .page-header {
  border-bottom-color: #d4d4d4;
}

.segment#home1 .col-xl-4 :where(h4, p) {
  text-align: left;
}

.segment:where(#home3, #home7) {
  background-image: url("/img/hexagon2.png");
  background-repeat: repeat;
  background-position: 0px 0px;
}

/* Browsers without image-set() type() support drop the second declaration and keep the JPEG */
.segment#home2 {
  background: linear-gradient(var(--col-gray-overlay), var(--col-gray-overlay)), url("/img/promoshot1.jpg");
  background: linear-gradient(var(--col-gray-overlay), var(--col-gray-overlay)), image-set(url("/img/promoshot1.webp") type("image/webp"), url("/img/promoshot1.jpg") type("image/jpeg"));
}

.segment#home4 {
  background: linear-gradient(var(--col-gray-overlay), var(--col-gray-overlay)), url("/img/promoshot2.jpg");
  background: linear-gradient(var(--col-gray-overlay), var(--col-gray-overlay)), image-set(url("/img/promoshot2.webp") type("image/webp"), url("/img/promoshot2.jpg") type("image/jpeg"));
}

.segment#home6 {
  background: url("/img/videopattern.png"), url("/vid/promo.jpg");
  background: url("/img/videopattern.png"), image-set(url("/vid/promo.webp") type("image/webp"), url("/vid/promo.jpg") type("image/jpeg"));
  background-size: auto, cover;
  background-repeat: repeat, no-repeat;
}

.segment#home8 {
  background: linear-gradient(var(--col-gray-overlay), var(--col-gray-overlay)), url("/img/promoshot3.jpg");
  background: linear-gradient(var(--col-gray-overlay), var(--col-gray-overlay)), image-set(url("/img/promoshot3.webp") type("image/webp"), url("/img/promoshot3.jpg") type("image/jpeg"));
}

.segment:where(#home2, #home4, #home6, #home8) {
  color: #fff;
  background-position: center;
  background-size: cover;
}

/* Video gets shown on bigger screens*/
@media screen and (min-width: 768px) {
  .segment#home6 {
    color: #fff;
    position: relative;
    width: 100%;
    height: 356px;
    background: none;
  }

  .video-front,
  .video-bg {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
  }

  .video-front {
    padding: 45px 0 70px 0;
    background: url("/img/videopattern.png");
  }

  .video-bg {
    overflow: hidden;
  }

  .video-bg video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
  }

  .modal-custom .modal-dialog {
    margin-top: 60px;
    width: 800px;
  }
}

.modal-backdrop {
  --bs-backdrop-opacity: 0.7;
}

.modal-custom {
  /* Custom close modal dialog text */
  /* The text is a button so the user can click it but behaves like normal text */
}

.modal-custom.fade .close-modal {
  opacity: 0;
  transition: opacity 0.5s ease-out 0.3s;
}

.modal-custom.show .close-modal {
  opacity: 0.7;
}

.modal-custom .close-modal {
  background: none;
  border: none;
  cursor: default;
}

.modal-custom .modal-dialog {
  max-width: 100%;
  margin-bottom: 5px;
}

.modal-custom .modal-dialog .modal-content {
  padding: 5px;
  background-color: var(--border-navbar-hov);
}

/* Get Involved Panels */
.card-custom {
  --bs-card-border-color: #dedede;
}

.card-custom>.card-header {
  background: url("/img/hexagon-panel.png");
  background-color: var(--border-navbar-hov);
  color: #fff;
  background-repeat: repeat;
  background-position: 0px 0px;
}

.btn-default {
  --bs-btn-color: var(--fg);
  --bs-btn-bg: var(--bg-btn);
  --bs-btn-border-width: 1px;
  --bs-btn-border-color: #c9c9c9;
  --bs-btn-hover-color: var(--fg);
  --bs-btn-hover-bg: color-mix(in srgb, var(--bg-btn), var(--fg) 10%);
  --bs-btn-hover-border-color: #adadad;
  --bs-btn-active-color: var(--fg);
  --bs-btn-active-bg: color-mix(in srgb, var(--bg-btn), var(--fg) 10%);
  --bs-btn-active-border-color: #adadad;
}

.btn-file {
  position: relative;
  overflow: hidden;
}

.btn-file input[type=file] {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 100%;
  min-height: 100%;
  font-size: 100px;
  text-align: right;
  filter: alpha(opacity=0);
  opacity: 0;
  outline: none;
  background: white;
  cursor: inherit;
  display: block;
}

.btn-outline {
  --bs-btn-color: #fff;
  --bs-btn-border-width: 2px;
  --bs-btn-border-color: #fff;
  --bs-btn-border-radius: 8px;
  --bs-btn-hover-color: #706d6d;
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-border-color: #fff;
  --bs-btn-active-color: #706d6d;
  --bs-btn-active-bg: #fff;
  --bs-btn-active-border-color: #fff;
  transition: all 0.15s linear;
}

.btn-outline#involved {
  --bs-btn-border-width: 0;
  margin-top: 6px;
}

.btn-xl {
  --bs-btn-font-size: 24px;
}

/*
 * nav-tabs style
 */
.nav-tabs {
  --bs-nav-link-padding-x: 15px;
  --bs-nav-link-padding-y: 10px;
  --bs-nav-tabs-link-active-color: light-dark(#555, var(--bs-emphasis-color));
  border-bottom: none;
  line-height: 1.428571429;
}

.nav-tabs .nav-link {
  margin-right: 2px;
  border-radius: 0;
  border-style: none;
  border-bottom: 2px solid rgba(0, 0, 0, 0);
  background-color: var(--wb-dynamic);
}

.nav-tabs .nav-link:where(:hover, :focus) {
  border-bottom-color: #75a3ca;
}

.nav-tabs .nav-link.active {
  border-style: none;
  border-bottom: 2px solid #428bca;
  background-color: var(--wb-dynamic);
}

.comp-header {
  width: 100%;
  padding: 0.1em 0.5em;
  vertical-align: middle;
  font-size: 3.3em;
  background-position: center, center center;
  background-size: auto, cover;
  color: #fcfcfc;
}

.comp-header:hover {
  cursor: pointer;
  cursor: hand;
}

.comp-header span {
  font-family: "Lato", sans-serif;
  line-height: 1.5em;
  font-weight: 300;
  font-style: italic;
}

.comp-header .carret {
  float: right;
  transition: transform 0.15s;
  margin: 0.25em 0;
}

.comp-header[aria-expanded="true"] .carret {
  transform: rotate(180deg);
}

@media screen and (max-width: 767px) {
  .comp-header {
    font-size: 2em;
  }
}

#bol1 {
  background: linear-gradient(var(--col-bol-overlay), var(--col-bol-overlay)), url("/img/tbolv1.jpg");
  background: linear-gradient(var(--col-bol-overlay), var(--col-bol-overlay)), image-set(url("/img/tbolv1.webp") type("image/webp"), url("/img/tbolv1.jpg") type("image/jpeg"));
  background-position: center, center center;
  background-size: auto, cover;
}

#bol2 {
  background: linear-gradient(var(--col-bol-overlay), var(--col-bol-overlay)), url("/img/tbolv2.jpg");
  background: linear-gradient(var(--col-bol-overlay), var(--col-bol-overlay)), image-set(url("/img/tbolv2.webp") type("image/webp"), url("/img/tbolv2.jpg") type("image/jpeg"));
  background-position: center, center center;
  background-size: auto, cover;
}

#bol3 {
  background: linear-gradient(var(--col-bol-overlay), var(--col-bol-overlay)), url("/img/tbolv3.jpg");
  background: linear-gradient(var(--col-bol-overlay), var(--col-bol-overlay)), image-set(url("/img/tbolv3.webp") type("image/webp"), url("/img/tbolv3.jpg") type("image/jpeg"));
  background-position: center, center center;
  background-size: auto, cover;
}

#bol4 {
  background: linear-gradient(var(--col-bol-overlay), var(--col-bol-overlay)), url("/img/tbolv4.jpg");
  background: linear-gradient(var(--col-bol-overlay), var(--col-bol-overlay)), image-set(url("/img/tbolv4.webp") type("image/webp"), url("/img/tbolv4.jpg") type("image/jpeg"));
  background-position: center, center center;
  background-size: auto, cover;
}

#bol5 {
  background: linear-gradient(var(--col-bol-overlay), var(--col-bol-overlay)), url("/img/tbolv5.jpg");
  background-position: center, center center;
  background-size: auto, cover;
}

#bol6 {
  background: linear-gradient(var(--col-bol-overlay), var(--col-bol-overlay)), url("/img/tbolv6.jpg");
  background: linear-gradient(var(--col-bol-overlay), var(--col-bol-overlay)), image-set(url("/img/tbolv6.webp") type("image/webp"), url("/img/tbolv6.jpg") type("image/jpeg"));
  background-position: center, center center;
  background-size: auto, cover;
}

#bol7 {
  background: linear-gradient(var(--col-bol-overlay), var(--col-bol-overlay)), url("/img/tbolv7.jpg");
  background: linear-gradient(var(--col-bol-overlay), var(--col-bol-overlay)), image-set(url("/img/tbolv7.webp") type("image/webp"), url("/img/tbolv7.jpg") type("image/jpeg"));
  background-position: center, center center;
  background-size: auto, cover;
}

#bol8 {
  background: linear-gradient(var(--col-bol-overlay), var(--col-bol-overlay)), url("/img/tbolv8.jpg");
  background: linear-gradient(var(--col-bol-overlay), var(--col-bol-overlay)), image-set(url("/img/tbolv8.webp") type("image/webp"), url("/img/tbolv8.jpg") type("image/jpeg"));
  background-position: top, center top;
  background-size: auto, cover;
}

#bol9 {
  background: linear-gradient(var(--col-bol-overlay), var(--col-bol-overlay)), url("/img/tbolv9.jpg");
  background: linear-gradient(var(--col-bol-overlay), var(--col-bol-overlay)), image-set(url("/img/tbolv9.webp") type("image/webp"), url("/img/tbolv9.jpg") type("image/jpeg"));
  background-position: top, center top;
  background-size: auto, cover;
}

#bol10 {
  background: linear-gradient(var(--col-bol-overlay), var(--col-bol-overlay)), url("/img/tbolv10.jpg");
  background: linear-gradient(var(--col-bol-overlay), var(--col-bol-overlay)), image-set(url("/img/tbolv10.webp") type("image/webp"), url("/img/tbolv10.jpg") type("image/jpeg"));
  background-position: top, center top;
  background-size: auto, cover;
}

#bol11 {
  background: linear-gradient(var(--col-bol-overlay), var(--col-bol-overlay)), url("/img/tbolv11.jpg");
  background: linear-gradient(var(--col-bol-overlay), var(--col-bol-overlay)), image-set(url("/img/tbolv11.webp") type("image/webp"), url("/img/tbolv11.jpg") type("image/jpeg"));
  background-position: top, center top;
  background-size: auto, cover;
}

.center {
  text-align: center;
}

.competition {
  padding: 2em 0 2em 0;
}

.competition a {
  text-decoration: none;
}

.comp-desc {
  border: 1px 1px 1px 0px solid #c9c9c9;
  padding: 2ex 1em 1ex 1em;
}

.comp-desc h4 {
  margin-bottom: 1ex;
  margin-top: 2ex;
}
