:root {
  --uc-red: #E00122;
  --uc-dark-red: #B8011C;
  --uc-black: #000000;
  --uc-bearcats-black: #333333;
  --uc-grey: #F3F3F3;
  --uc-steger-silver: #A7A5AA;
  --uc-main-street-mist: #D8D5D0;
  --uc-gettler-gold: #D1B179;
  --uc-tangeman-tan: #EADBC1;
  --uc-body-font: "Open Sans", Arial, sans-serif;
  --uc-display-font: "Jost", Arial, sans-serif;
  --uc-serif-font: "Gentium Book Basic", Georgia, serif;
  --uc-mono-font: "JetBrains Mono", "Fira Code", "Courier New", monospace;
}

body {
  font-family: var(--uc-body-font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--uc-bearcats-black);
  background:
    linear-gradient(180deg, rgba(224, 1, 34, 0.04), rgba(224, 1, 34, 0) 5rem),
    #ffffff;
}

.main-container {
  max-width: 1080px;
}

h1,
h2 {
  font-family: var(--uc-display-font);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--uc-red);
}

h3,
h4,
h5,
h6 {
  font-family: var(--uc-display-font);
  font-weight: 700;
  color: var(--uc-dark-red);
}

a,
a > code {
  color: var(--uc-dark-red);
  text-decoration-color: rgba(184, 1, 28, 0.35);
}

a:hover,
a:active,
a:focus {
  color: var(--uc-red);
}

code {
  font-family: var(--uc-mono-font);
  color: var(--uc-dark-red);
  background: rgba(243, 243, 243, 0.9);
}

p code {
  white-space: inherit;
}

pre {
  word-break: normal;
  word-wrap: normal;
  border: 1px solid rgba(216, 213, 208, 0.75);
  border-left: 4px solid var(--uc-red);
  border-radius: 0;
  background: #fbfbfb;
}

pre code {
  white-space: inherit;
  color: inherit;
  background: transparent;
}

blockquote {
  margin: 1.25rem 0;
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--uc-red);
  background: var(--uc-grey);
  color: var(--uc-bearcats-black);
}

p.caption {
  color: #666666;
  margin-top: 10px;
}

table {
  border-collapse: collapse;
}

thead {
  background: var(--uc-red);
  color: #ffffff;
}

tbody tr:nth-child(even) {
  background: rgba(243, 243, 243, 0.9);
}

hr {
  border: 0;
  border-top: 2px solid rgba(216, 213, 208, 0.9);
  margin: 2rem 0;
}

div.puzzle,
div.fyi,
div.demo,
div.note {
  margin: 1.25rem 0;
  padding: 1rem 1rem 1rem 5.5rem;
  min-height: 120px;
  color: var(--uc-bearcats-black);
  background-color: rgba(243, 243, 243, 0.92);
  background-size: 58px;
  background-repeat: no-repeat;
  background-position: 16px center;
  border-left: 6px solid var(--uc-red);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

div.puzzle {
  background-image: url("div-icons/Your-turn.png");
  border-left-color: var(--uc-red);
}

div.fyi {
  background-image: url("div-icons/fyi.png");
  border-left-color: var(--uc-dark-red);
}

div.demo {
  background-image: url("div-icons/Live-code.png");
  border-left-color: var(--uc-bearcats-black);
}

div.note {
  background-image: url("div-icons/Lightbulb.png");
  border-left-color: var(--uc-gettler-gold);
}

#TOC,
.tocify {
  font-family: var(--uc-body-font);
}

.tocify {
  border-left: 1px solid rgba(216, 213, 208, 0.85);
}

.tocify .list-group-item {
  border-left: 3px solid transparent;
}

.tocify .list-group-item.active,
.tocify .list-group-item:hover {
  border-left-color: var(--uc-red);
  color: var(--uc-red);
  background: linear-gradient(90deg, rgba(224, 1, 34, 0.12), rgba(224, 1, 34, 0));
}
