@media (prefers-color-scheme: dark) {
  HTML {
    --background: #303030;
    --foreground: #E8E8E8;
    --light: rgba(255,255,255,0.1);
    --dark: rgba(255,255,255,0.5);
    --title: white;
    --blue: #216580;
    --blue-light: #3398C3;
    --orange: #A05717;
  }

  IMG {
    filter: brightness(.8) contrast(1.2);
  }

  A:link {
    color: #6F8BE0;
  }
  
  A:visited {
    color: #8B6FE0;
  }

  DIV.info {
    background-color: #2F4760;
    --background: #2F4760;
  }

  DIV.warning {
    background-color: #603B17;
    --background: #603B17;
  }
 
  DIV.tip {
    background-color: #2F602F;
    --background: #2F602F;
  }
  
  DIV.vb {
    background-color: #806B2F;
    --background: #806B2F;
  }
  
  DIV.critical {
    background-color: #602F2F;
    --background: #602F2F;
  }

  .up IMG {
    filter: invert(100%);
  }
  
  DIV.since > DIV {
    background-color: #A03B3B;
  }
  
  DIV.code {
    filter: invert(100%) hue-rotate(180deg);
    border-color: rgba(0,0,0,0.5);
  }

  DIV.syntax {
    filter: invert(100%) hue-rotate(180deg);
    border-color: rgba(0,0,0,0.5);
  }
  
  .page-index .entry > A {
    color: var(--blue-light);
  }
  
  .page-index .entry > A:visited {
    color: var(--blue-light);
  }
  
  .page-index .current > A {
    color: white;
    text-decoration-color: white;
  }

  .page-index .current > A:visited {
    color: white;
    text-decoration-color: white;
  }


  DIV.inherited-title:before {
    filter: invert(100%) hue-rotate(180deg);
  }
  
  .diff-added {
    color: #2FC02F;
  }
  
  .diff-removed {
    color: #C02F2F;
  }
}

