[data-md-color-scheme="cpalgo"] {
  --md-primary-fg-color:        #7777aa;
  --md-primary-fg-color--light: #7777aa;
  --md-primary-fg-color--dark:  #333371;
}

[data-md-color-scheme="slate"] {
  --md-hue: 210; 
  --md-typeset-a-color: #c973d9;
}

[data-md-color-scheme="slate"] img {
  background-color: lightgray;
}

/* Move primary sidebar to the right */
.md-sidebar--primary {
  order: 100;
}

/* For proper rendering of contribution meta */
.metadata{
  list-style:none;
  padding:0;
  margin:0;
  margin-bottom: 15px;
  color: #999;
  font-size:0.85em;
}
.metadata.page-metadata .contributors-text{
  margin-right:5px
}
body[dir=rtl] .metadata.page-metadata .contributors-text{
  margin-right:0;
  margin-left:5px
}
.page-metadata .contributors{
  display:inline-block;
  list-style:none;
  margin:0!important;
  padding:0!important
}
.page-metadata .contributors li{
  display:inline-block;
  vertical-align:top;
  margin:0;
  padding:0
}

/* Visually hide latex code */
.mjx-copytext {
    font-size: 0;
}

.arithmatex{
  overflow-y: hidden !important;
}

/* Donation banner */
#donation-banner {
  margin: 0.75rem 0.75rem 0;
}

.donation-banner {
  display: flex;

  background: #fff9c4;
  border: 1px solid #f0e68c;
  color: #2b2b2b;

  padding: 0.5rem 0.5rem;
  border-radius: 8px;
  font-size: 0.75rem;
}

.donation-text { margin: 0; }
.donation-link {
  color: revert;
  text-decoration: underline;
}

.donation-close {
  margin-left: auto;
  font-size: 1rem;
  cursor: pointer;
}

[data-md-color-scheme="slate"] .donation-banner {
  background: #3b3200;
  border-color: #665c1e;
  color: #fff7b3;
}
