body {
  padding-left: 51px;
}

body.dark img {
  background-color: #FFFFFF;
  box-sizing: border-box;
  padding: 6px;
}

blockquote {
  margin-left: 0;
}

blockquote figure {
  margin: 0;
  padding-left: 0;
}

blockquote p {
  margin: 0;
  padding-left: 0;
}

a, button {
  cursor: pointer;
}

h1 {
  padding-bottom: 0.2em;
}

h4 {
  font-style: italic;
}

cite {
  display: block;
  margin-top: 1em;
}

cite::before {
  content: "– ";
}

dd {
  margin-left: 1.5em;
}

hr {
  border: none;
  border-bottom: 1px solid #B5B5B5;
}

ol, ul {
  list-style-position: inside;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
}

ul:last-of-type { /* references links wrap to prevent side-scrolling in chrome */
  word-break: break-all;
}

math, .mjx-chtml {
  margin-bottom: 2em !important;
  margin-top: 0.2em !important;
}

.mjx-chtml.mjx-full-width {
  display: inline-block !important;
  max-width: 100% !important;
}

pre, code {
  background-color: transparent;
  border: none;
  font-size: 0.9em;
  margin-bottom: 0;
  margin-left: 0 !important;
  padding-left: 0 !important;
}

#close-button {
  background-image: url("/?originalUrl=https%3A%2F%2Ftabreturn.github.io%2FRM-Close-24x24.svg");
  background-position: top;
  background-size: 26px 138px;
  background-repeat: no-repeat;
  height: 70px;
}

#close-button:hover, #close-button:active {
  background-image: url("/?originalUrl=https%3A%2F%2Ftabreturn.github.io%2FRM-Close-24x24.svg");
  background-position: bottom;
}

.container {
  padding-right: 11px;
}

.dropdown-popup {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.domain {
  font-size: inherit;
  font-family: inherit;
}

.highlight, .highlight * {
  background-color: transparent;
}

figure.highlight {
  padding-bottom: 0;
}

#font-type-buttons > .sans-serif-button > .name,
#font-type-buttons > .serif-button > .name {
  align-items: center;
  display: flex;
  margin-top: -0.1em;
  justify-content: center;
}

#font-type-buttons > .sans-serif-button > .name {
  font-family: Arial, Helvetica, sans-serif;
}

#font-type-buttons > .serif-button > .name {
  font-family: "Times New Roman", Times, serif;
}

#font-type-buttons > .sans-serif-button > .description,
#font-type-buttons > .serif-button > .description  {
  display: none;
}

#moz-reader-content {
  display: block;
}

#reader-header {
  display: block;
}

#reader-popup {
   top: 48px;
}

#reader-toolbar {
  border-radius: 0;
}

#reader-toolbar li:first-child {
  margin: 0;
  padding: 0;
}

#reader-toolbar li button {
  border-right: none;
}
