[data-bs-theme="light"] {
  --bg-h: #fafafa;
  --bg: #f8f8f2;
  --bg-s: #f5f5f5;
  --bg1: #eeeeee;
  --bg2: #e0e0e0;
  --bg3: #bdbdbd;
  --bg4: #9e9e9e;
  --fg: #272822;
  --fg1: #383830;
  --fg2: #49483e;
  --fg3: #5b5a4f;
  --fg4: #75715e;
  --red: #f80d62;
  --green: #119909;
  --yellow: #bbaa0d;
  --blue: #0db4d3;
  --purple: #8d4eff;
  --aqua: #75e8d7;
  --orange: #fd8b06;
  --gray: #737373;
  --red-dim: #f80d62;
  --green-dim: #119909;
  --yellow-dim: #bbaa0d;
  --blue-dim: #0db4d3;
  --purple-dim: #8d4eff;
  --aqua-dim: #75e8d7;
  --orange-dim: #fd8b06;
  --gray-dim: #737373; }

[data-bs-theme="dark"] {
  --bg-h: #272822;
  --bg: #272822;
  --bg-s: #49483E;
  --bg1: #3E3D32;
  --bg2: #49483E;
  --bg3: #5b5a4f;
  --bg4: #75715e;
  --fg: #f8f8f2;
  --fg1: #f8f8f2;
  --fg2: #e6e6e6;
  --fg3: #d4d4d4;
  --fg4: #bcbcbc;
  --red: #f92672;
  --green: #a6e22e;
  --yellow: #e6db74;
  --blue: #66d9ef;
  --purple: #ae81ff;
  --aqua: #a1efe4;
  --orange: #fd971f;
  --gray: #75715e;
  --red-dim: #f80d62;
  --green-dim: #119909;
  --yellow-dim: #bbaa0d;
  --blue-dim: #0db4d3;
  --purple-dim: #8d4eff;
  --aqua-dim: #75e8d7;
  --orange-dim: #fd8b06;
  --gray-dim: #737373; }

.highlight pre,
.literal-block {
  background-color: var(--bg-s);
  color: var(--fg);
  padding: 12px;
  margin: 0;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
  overflow-x: auto;
  border: none; }

.highlight pre, .literal-block, code {
  word-wrap: break-word; }

.highlight {
  background-color: var(--bg-s);
  border: 1px solid var(--card-border-color);
  border-radius: 4px;
  padding: 0.1rem;
  margin: 1rem 0;
  overflow: auto; }
  .highlight pre {
    margin: 0;
    font-size: 0.9rem; }
    .highlight pre code {
      line-height: 1.5;
      padding-left: 0; }

tt,
code {
  padding: 4px 4px;
  font-size: 90%;
  background-color: var(--bg-s);
  border-radius: 4px; }

tt,
code,
.highlight pre code {
  transition: color 0.3s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out; }
  tt .gp,
  code .gp,
  .highlight pre code .gp {
    color: var(--purple);
    font-weight: bold; }
  tt .w,
  code .w,
  .highlight pre code .w {
    color: var(--fg); }
  tt .go,
  code .go,
  .highlight pre code .go {
    color: var(--fg3); }
  tt .c, tt .c1, tt .ch, tt .cm, tt .cp, tt .cpf, tt .cs,
  code .c,
  code .c1,
  code .ch,
  code .cm,
  code .cp,
  code .cpf,
  code .cs,
  .highlight pre code .c,
  .highlight pre code .c1,
  .highlight pre code .ch,
  .highlight pre code .cm,
  .highlight pre code .cp,
  .highlight pre code .cpf,
  .highlight pre code .cs {
    color: var(--gray);
    font-style: italic; }
  tt .k, tt .kd, tt .kn, tt .kp, tt .kr, tt .kt,
  code .k,
  code .kd,
  code .kn,
  code .kp,
  code .kr,
  code .kt,
  .highlight pre code .k,
  .highlight pre code .kd,
  .highlight pre code .kn,
  .highlight pre code .kp,
  .highlight pre code .kr,
  .highlight pre code .kt {
    color: var(--blue);
    font-weight: bold; }
  tt .nn,
  code .nn,
  .highlight pre code .nn {
    color: var(--fg1); }
  tt .s, tt .sa, tt .sb, tt .sc, tt .sd, tt .s2, tt .se, tt .sh, tt .si, tt .sx, tt .sr, tt .s1, tt .ss,
  code .s,
  code .sa,
  code .sb,
  code .sc,
  code .sd,
  code .s2,
  code .se,
  code .sh,
  code .si,
  code .sx,
  code .sr,
  code .s1,
  code .ss,
  .highlight pre code .s,
  .highlight pre code .sa,
  .highlight pre code .sb,
  .highlight pre code .sc,
  .highlight pre code .sd,
  .highlight pre code .s2,
  .highlight pre code .se,
  .highlight pre code .sh,
  .highlight pre code .si,
  .highlight pre code .sx,
  .highlight pre code .sr,
  .highlight pre code .s1,
  .highlight pre code .ss {
    color: var(--yellow); }
  tt .m, tt .mb, tt .mf, tt .mh, tt .mi, tt .mo,
  code .m,
  code .mb,
  code .mf,
  code .mh,
  code .mi,
  code .mo,
  .highlight pre code .m,
  .highlight pre code .mb,
  .highlight pre code .mf,
  .highlight pre code .mh,
  .highlight pre code .mi,
  .highlight pre code .mo {
    color: var(--purple); }
  tt .nf, tt .fm,
  code .nf,
  code .fm,
  .highlight pre code .nf,
  .highlight pre code .fm {
    color: var(--green); }
  tt .nc,
  code .nc,
  .highlight pre code .nc {
    color: var(--green); }
  tt .n, tt .nv, tt .vm,
  code .n,
  code .nv,
  code .vm,
  .highlight pre code .n,
  .highlight pre code .nv,
  .highlight pre code .vm {
    color: var(--fg); }
  tt .nb,
  code .nb,
  .highlight pre code .nb {
    color: var(--fg1); }
  tt .no,
  code .no,
  .highlight pre code .no {
    color: var(--blue); }
  tt .o, tt .ow,
  code .o,
  code .ow,
  .highlight pre code .o,
  .highlight pre code .ow {
    color: var(--red);
    font-weight: bold; }
  tt .p, tt .punctuation,
  code .p,
  code .punctuation,
  .highlight pre code .p,
  .highlight pre code .punctuation {
    color: var(--fg); }
  tt .sc,
  code .sc,
  .highlight pre code .sc {
    color: var(--orange); }
  tt .kc, tt .ke,
  code .kc,
  code .ke,
  .highlight pre code .kc,
  .highlight pre code .ke {
    color: var(--blue);
    font-weight: bold; }
  tt .se,
  code .se,
  .highlight pre code .se {
    color: var(--purple);
    font-weight: bold; }
  tt .nd,
  code .nd,
  .highlight pre code .nd {
    color: var(--green); }
  tt .bp,
  code .bp,
  .highlight pre code .bp {
    color: var(--fg); }
  tt .o + .n,
  code .o + .n,
  .highlight pre code .o + .n {
    color: var(--fg); }

@font-face {
  font-family: "Quarkslab";
  src: url("../webfonts/Quarkslab.woff2") format("woff2"); }

.qb-icon {
  font-family: "Quarkslab";
  font-style: normal;
  vertical-align: unset;
  speak: none; }

.qb-icon-logo:before {
  content: '\e001'; }

.qb-icon-www:before {
  content: '\e003'; }

.qb-icon-www.inverted:before {
  content: '\e004'; }

.qb-icon-globe:before {
  content: '\e005'; }

/* Var definitions */
/* Default/Light mode */
[data-bs-theme="light"] {
  --main-title-color: rgb(66, 72, 147);
  --bs-body-bg: rgba(0, 0, 0, 0.05);
  --bs-body-color: #333;
  --bs-link-color: #147281;
  --bs-link-hover-color: darken($link-color, 10%);
  --bs-link-color-rgb: 20, 114, 129;
  --bs-link-hover-color-rgb: darken($link-color, 10%);
  --card-bg: #ffffff;
  --card-border-color: rgba(0, 0, 0, 0.15);
  --form-control-bg: #fcfcfc;
  --color-text-red: #d00000;
  --color-text-blue: #4550e1;
  --color-text-green: #497B00;
  --color-text-orange: #b55500;
  --color-text-weight: normal;
  --img-background-color: unset; }
  [data-bs-theme="light"] .card .card-footer {
    background-color: white; }
    [data-bs-theme="light"] .card .card-footer:hover {
      background-color: #f2f2f2; }
    [data-bs-theme="light"] .card .card-footer .footer-link:hover {
      color: #115e6b; }
  [data-bs-theme="light"] blockquote {
    background-color: #f2f2f2;
    border: solid 2px #e6e6e6; }

/* Dark mode */
[data-bs-theme="dark"] {
  --main-title-color: #c5c8ff;
  --bs-body-bg: #121212;
  --bs-body-color: #e0e0e0;
  --bs-link-color: #8ab4f8;
  --bs-link-hover-color: #aecbfa;
  --bs-link-color-rgb: 138, 180, 248;
  --bs-link-hover-color-rgb: 174, 203, 250;
  --card-bg: #1e1e1e;
  --card-border-color: rgba(255, 255, 255, 0.15);
  --bs-card-cap-bg: #252525;
  --bs-secondary-bg: #252525;
  --bs-tertiary-bg: #2c2c2c;
  --bs-primary-text-emphasis: #6ea8fe;
  --form-control-bg: #2b2b2b;
  --color-text-red: #e8544d;
  --color-text-blue: #7d84e3;
  --color-text-green: #79AC2D;
  --color-text-orange: #d97d2c;
  --color-text-weight: bold;
  --img-background-color: #c7c6c4; }
  [data-bs-theme="dark"] .card .card-footer {
    background-color: #2b2b2b; }
    [data-bs-theme="dark"] .card .card-footer:hover {
      background-color: #262626; }
    [data-bs-theme="dark"] .card .card-footer .footer-link:hover {
      color: #72a5f7; }
  [data-bs-theme="dark"] blockquote {
    background-color: #383838;
    border: solid 2px #444444; }

:root {
  --border-color: var(--card-border-color);
  transition: color 0.1s linear, background-color 0.3s ease-in-out, border-color 0.15s ease-in-out, opacity 0.3s;
  /* Bootstrap theme */
  --gruvbox-bg-light: #fbf1c7;
  --gruvbox-bg-dark: #282828;
  --gruvbox-text-light: #3c3836;
  --gruvbox-text-dark: #ebdbb2;
  --gruvbox-comment: #928374;
  --gruvbox-string: #b8bb26;
  --gruvbox-keyword: #fb4934;
  --gruvbox-function: #fabd2f;
  --gruvbox-variable: #83a598;
  --gruvbox-border-light: #d5c4a1;
  --gruvbox-border-dark: #665c54; }

/* Responsiveness */
@media (min-width: 1200px) {
  .col-sm-3 {
    width: 270px; }
  .col-sm-push-3 {
    left: 270px; } }

/* fonts definition */
@font-face {
  font-family: "STIXTwoMath";
  src: url("../webfonts/STIXTwoMath-Regular.woff2") format("woff2"); }

/* Titles */
@font-face {
  font-family: "LTWave";
  src: url("../webfonts/LTWave-Regular.woff2") format("woff2"); }

/* Main text */
/* Regular */
@font-face {
  font-family: "ProximaNova";
  src: url("../webfonts/ProximaNova-Alt-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal; }

@font-face {
  font-family: "ProximaNova";
  src: url("../webfonts/ProximaNova-Alt-Regular-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic; }

/* Light */
@font-face {
  font-family: "ProximaNova";
  src: url("../webfonts/ProximaNova-Alt-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal; }

@font-face {
  font-family: "ProximaNova";
  src: url("../webfonts/ProximaNova-Alt-Light-Italic.woff2") format("woff2");
  font-weight: 300;
  font-style: italic; }

/* Bold */
@font-face {
  font-family: "ProximaNova";
  src: url("../webfonts/ProximaNova-Alt-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal; }

@font-face {
  font-family: "ProximaNova";
  src: url("../webfonts/ProximaNova-Alt-Bold-Italic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic; }

/* base */
body {
  font-family: "ProximaNova", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14pt;
  line-height: 1.5em;
  letter-spacing: 0.04em;
  transition: color 0.1s linear, background-color 0.3s ease-in-out, border-color 0.15s ease-in-out, opacity 0.3s; }

html,
body {
  overflow-x: clip; }

a {
  text-decoration: none;
  transition: color 0.1s linear, background-color 0.3s ease-in-out, border-color 0.15s ease-in-out, opacity 0.3s; }
  a:hover {
    opacity: 75%; }
  a:has(> .no-break) {
    display: inline-block;
    white-space: nowrap; }

i {
  transition: 0.15s transform ease-in-out; }

h1, h2, h3, h4, h5, h6 {
  font-family: "LTWave";
  color: inherit;
  text-rendering: optimizelegibility;
  letter-spacing: 0pt; }

.h1, .h2, .h3, h1, h2, h3 {
  margin-top: 20px;
  margin-bottom: 20px; }

h1 {
  font-size: 2.3rem; }

h1 .icon-large {
  margin-right: 5px; }

p {
  text-align: justify; }
  p.center-text {
    text-align: center !important; }

img {
  border: none;
  padding-top: 1em;
  padding-bottom: 1em; }

img.align-center {
  display: block;
  padding: inherit;
  margin: auto;
  tranform: scale(0.9); }

article img {
  max-width: 100%;
  height: auto;
  background-color: var(--img-background-color); }

footer .qb-logo {
  width: 25%;
  min-width: 150px; }

footer a {
  color: var(--bs-emphasis-color) !important; }

footer .nav-link {
  padding: 0 10px 0 10px; }

.qb-bg {
  background-color: #252143; }

.qb-title {
  color: var(--main-title-color); }

/* Categories */
#categories > li > a > i {
  margin-right: 5px; }

/* Navbar */
.navbar {
  background-color: #252143;
  transition: color 0.1s linear, background-color 0.3s ease-in-out, border-color 0.15s ease-in-out, opacity 0.3s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.1); }

.navbar-toggler {
  background: unset; }

.navbar-brand {
  color: white;
  transition: color 0.1s linear, background-color 0.3s ease-in-out, border-color 0.15s ease-in-out, opacity 0.3s; }
  .navbar-brand:hover {
    color: #e6e6e6; }

.navbar-buttons {
  border: unset;
  background: none; }

.navbar-nav .nav-item a.nav-link {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.1s linear, background-color 0.3s ease-in-out, border-color 0.15s ease-in-out, opacity 0.3s; }
  .navbar-nav .nav-item a.nav-link:focus, .navbar-nav .nav-item a.nav-link:hover {
    color: white;
    text-shadow: 0px 0px 5px rgba(255, 255, 255, 0.45); }

.navbar-nav .nav-item button.nav-link {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.1s linear, background-color 0.3s ease-in-out, border-color 0.15s ease-in-out, opacity 0.3s; }
  .navbar-nav .nav-item button.nav-link:focus, .navbar-nav .nav-item button.nav-link:hover {
    text-shadow: 0px 0px 5px rgba(255, 255, 255, 0.45);
    color: white; }

button[aria-label="Close"] {
  color: #fafafa;
  transition: text-shadow 0.3s ease-in-out, color 0.3s ease-in-out; }
  button[aria-label="Close"]:focus, button[aria-label="Close"]:hover {
    color: #f2f2f2;
    text-shadow: 0px 0px 5px rgba(255, 255, 255, 0.45); }

.navbar-nav > li > a > i {
  margin-right: 5px; }

/* Sidebar */
#sidebar .row {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border-color);
  border-radius: 10px;
  transition: color 0.1s linear, background-color 0.3s ease-in-out, border-color 0.15s ease-in-out, opacity 0.3s; }

#sidebar i {
  margin-right: 5px; }

#sidebar li > a {
  border-radius: 5px;
  padding: 5px; }

#sidebar h4 {
  font-size: 15pt; }

#sidebar > .nav {
  padding: 0 9px 0 9px; }

.sticky-toc {
  position: sticky;
  top: 74px; }
  .sticky-toc .nav-header h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px; }
  .sticky-toc .nav-item {
    width: 100%;
    max-width: 100%; }
  .sticky-toc #toc ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0; }
    .sticky-toc #toc ul ul {
      padding-left: 16px;
      margin-top: 4px;
      border-left: 1px solid #e0e0e0; }
  .sticky-toc #toc li {
    margin-bottom: 5px;
    position: relative; }
  .sticky-toc .toc-href {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    padding: 4px 0;
    position: relative; }
    .sticky-toc .toc-href:hover {
      text-decoration: underline;
      color: var(--bs-link-hover-color); }
    .sticky-toc .toc-href::after {
      content: attr(title);
      position: absolute;
      left: 0;
      top: 100%;
      z-index: 999;
      background-color: #fff;
      border: 1px solid #e0e0e0;
      border-radius: 4px;
      padding: 6px 10px;
      box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
      max-width: 300px;
      white-space: normal;
      font-size: 13px;
      color: #333;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.2s ease, visibility 0.2s ease;
      pointer-events: none; }
    .sticky-toc .toc-href:hover::after {
      opacity: 1;
      visibility: visible;
      transition-delay: 0.5s; }
  .sticky-toc #toc > ul > li:has(> ul) > .toc-href {
    font-weight: 500; }
  .sticky-toc #toc > ul > li > ul > li::before {
    content: "";
    position: absolute;
    left: -16px;
    top: 12px;
    width: 10px;
    height: 1px;
    background-color: #e0e0e0; }

/* Entries */
.entry-content a {
  text-decoration: none;
  border-bottom: none; }

/* page */
.page-header {
  border-bottom: none; }
  .page-header h1 {
    margin-top: unset; }

/* posts */
.published > time {
  text-decoration: underline dotted; }

.post-info > a > i {
  margin-right: 2px; }

#content {
  border: 1px solid var(--card-border-color);
  border-radius: 10px;
  background-color: var(--card-bg);
  transition: color 0.1s linear, background-color 0.3s ease-in-out, border-color 0.15s ease-in-out, opacity 0.3s; }

@media (max-width: 760px) {
  #content {
    border: 0px solid !important;
    box-shadow: none !important; }
  body {
    background-color: var(--card-bg); } }

/* math */
math {
  direction: ltr;
  text-indent: 0;
  letter-spacing: normal;
  line-height: normal;
  word-spacing: normal;
  font-family: STIXTwoMath;
  font-size: 1em;
  font-style: normal;
  font-weight: normal;
  math-style: normal;
  math-depth: 0; }
  math[display="block" i] {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    math-style: normal; }
  math[display="inline" i] {
    math-style: compact; }

/* tooltips */
.tooltip-inner {
  word-wrap: break-word;
  white-space: pre-line; }

/* Columns */
.column {
  float: right;
  width: 48%;
  padding: 5px; }

.column2 {
  float: right;
  width: 30%;
  padding: 5px; }

/* Clearfix (clear floats) */
.row::after {
  content: "";
  clear: both;
  display: table; }

.article-preview .card-footer a {
  position: relative; }

/* Tables responsiveness */
table {
  display: block;
  width: 100%;
  overflow-x: auto;
  --webkit-overflow-scrolling: touch; }

/* Card stuff */
.card {
  background-color: var(--card-bg);
  border-color: var(--card-border-color);
  transition: color 0.1s linear, background-color 0.3s ease-in-out, border-color 0.15s ease-in-out, opacity 0.3s; }
  .card .card-footer {
    text-align: center;
    padding: 10px;
    position: relative;
    font-size: larger;
    transition: color 0.1s linear, background-color 0.3s ease-in-out, border-color 0.15s ease-in-out, opacity 0.3s; }
    .card .card-footer .footer-link {
      display: block;
      width: 100%;
      font-weight: bold;
      padding: 10px 0;
      transition: color 0.1s linear, background-color 0.3s ease-in-out, border-color 0.15s ease-in-out, opacity 0.3s; }
      .card .card-footer .footer-link i {
        vertical-align: middle;
        transform: translateY(0); }
      .card .card-footer .footer-link:hover i {
        transform: translateX(5px); }

div[data-role="card"] {
  transition: visibility 0s, opacity 0.5s linear; }

.cattag-title {
  font-size: calc(1.3rem + 0.6vw); }
  @media (min-width: 1200px) {
    .cattag-title {
      font-size: 1.75rem; } }
@media (max-width: 990px) {
  .cattag-title {
    font-size: calc(1.325rem + 0.9vw); } }
  @media (max-width: 990px) and (min-width: 1200px) {
    .cattag-title {
      font-size: 2rem; } }
@media (max-width: 768px) {
  .cattag-title {
    font-size: calc(1.375rem + 1.5vw); } }
  @media (max-width: 768px) and (min-width: 1200px) {
    .cattag-title {
      font-size: 2.5rem; } }
/* Forms */
.form-control {
  transition: color 0.1s linear, background-color 0.3s ease-in-out, border-color 0.15s ease-in-out, opacity 0.3s;
  background-color: var(--form-control-bg); }

/* Blockquotes */
blockquote {
  padding: 1rem;
  border-radius: 5px; }
  blockquote *:last-child {
    margin-bottom: 0; }
  blockquote p {
    margin-left: 2rem;
    margin-bottom: 0; }
    blockquote p:first-of-type {
      margin-left: 0; }
      blockquote p:first-of-type:not(:only-of-type) {
        font-size: larger;
        margin-bottom: 1rem; }

/* Colored spans */
.color-red {
  color: var(--color-text-red);
  font-weight: var(--color-text-weight); }

.color-blue {
  color: var(--color-text-blue);
  font-weight: var(--color-text-weight); }

.color-green {
  color: var(--color-text-green);
  font-weight: var(--color-text-weight); }

.color-orange {
  color: var(--color-text-orange);
  font-weight: var(--color-text-weight); }

/* Misc */
#back-btn {
  text-decoration: none; }

.no-break {
  vertical-align: middle; }

.sidebar-nav li a,
.tag-card,
.category-card {
  text-transform: capitalize; }
