* {
  margin: 0;
}
.fake-body,
.rulez-container {
  height: 100%;
}

.rulez-container {
  container: da-rulez / inline-size;
  display: flex;
  background: black;
}

.rulez-flex-item {
  flex: 1;
  background: black;
}
.fake-body {
  background: black;
  color: #839496;
  flex: 2;
}

hr {
  border-color: #2aa198;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  padding-bottom: 1em;
}
figure {
  display: flex;
  flex-direction: column;
  max-width: 100%;
  padding: 1em 0;
}
img {
  margin: 0 auto;
}
figcaption {
  font-size: x-small;
  text-align: center;
}

p,
ul {
  padding-bottom: 1rem;
}

pre {
  font-size: 1.3rem;
  background: #121212;
  padding: 1rem;
  line-height: 1.5rem;
  border-radius: 7px;
  border: 1px solid #2aa198;
  filter: drop-shadow(0px 4px 5px black);
}

code {
  font-family: "Crux", "Source Sans Pro";
  font-size: 1.5rem !important;
  line-height: 1rem;
  color: unset;
}

/*Useful if Code^ or Pre^ aren't behaving right.*/
div.text-block {
  background-color: #121212;
  padding: 1rem;
  border-radius: 7px;
  border: 1px solid #2aa198;
}

/* Switch quickly to a different font. */
.retro {
  font-family: "Retro Gaming", "Source Sans Pro";
  color: #b58900;
  font-size: 1rem;
}

.crux {
  font-family: "Crux", "Source Sans Pro";
  font-size: 1.4rem !important;
  line-height: 1rem;
  color: #b58900;
}

details {
  font-family: "Retro Gaming", "Source Sans Pro";
  border: none;
  cursor: pointer;
  display: inline;
  color: #2aa198;
  user-select: none;
}

details > span,
details > div {
  font-family: "Source Sans Pro";
  position: absolute;
  left: 0;
  padding: 0.5rem;
  margin: 0 1rem;
  background-color: rgba(18, 18, 18, 0.95);
  border-radius: 0.4rem;
  border: solid 1px #b58900;
  color: #b58900;
  cursor: auto;
}

/** 
       *  only supported in firefox <=119 if 
       * layout.css.has-selector.enabled 
       * is enabled in about:config 
       **/
p:has(+ details) {
  display: inline;
}

@container (max-width:600px) {
  .fake-body {
    flex: unset;
    padding: 1em;
  }
  .rulez-flex-item {
    flex: unset;
    background: black;
  }
}
a.anchored-rule {
  color: inherit;
  text-decoration: none;
}
