md-content {
  font-size: 18px;
  line-height: 1.25;
}

div[md-whiteframe] {
  background-color: white;
}

.md-title {
  font-size: 24px;
}

h1, h2, h3, h4, h5, .md-headline {
  width: 100%;
  box-sizing: border-box;
  font-weight: 500;
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, p, pre {
  margin: 0;
}

h2 { /* .md-headline */
  font-size: 24px;
  line-height: 32px;
}

h3 { /* .md-title */
  font-size: 20px;
  letter-spacing: .005em;
}

a {
  color: currentColor;
  text-decoration: none;
}

p a {
  text-decoration: underline #2222;
}

p a:hover {
  text-decoration: underline;
}

h2 a, h3 a {
  display: none;
  user-select: none;
}

h2:hover a, h3:hover a {
  display: unset;
  color: #2222;
}

ul {
  margin: 0;
}

li:not(:last-child) {
  margin-bottom: 16px;
}

details {
  padding: 8px !important;
  border: 1px solid #ececec;
  border-radius: 3px;
}

summary:hover {
  cursor: pointer;
}

details[open] summary ~ * {
  animation: slide .3s ease-in-out;
}

@keyframes slide {
  0%    {opacity: 0; margin-top: -10px}
  100%  {opacity: 1; margin-top: 0px}
}

/* code highlighting */
div.highlight {
  width: 100%;
  box-sizing: border-box;
}

details > div.highlight {
  margin: 8px 0;
}

details > div.highlight:last-child {
  margin: 8px 0 0 0;
}

pre.highlight {
  padding: 8px;
  overflow: auto;
  font-size: 85%;
  line-height: 1.45;
  background-color: #f9f9f9;
  border: 1px solid #ececec;
  border-radius: 3px;
}

a > code, p > code {
  font-size: 90%;
  border: 1px solid #ececec;
}

/* Scroll-up fub-button */
.md-fab.scroll-fab {
  position: fixed !important;
  transform: scale(0);
  transition: transform 0.2s;
}

.scroll-fab.scrolling {
  transform: scale(1);
}
