html {
  position: relative;
  min-height: 100%;
  font-size: 21px;

  @media only screen and (min-resolution: 3dppx) {
    /* iPhone/iPad */
    font-size: 25px;
  }

  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: #fefefe;
  color: #212121;
  font-family: "EB Garamond", "Noto Serif JP", serif;
  font-weight: normal;
  line-height: 1.41421356;
}

a {
  color: #1976d2;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.material-symbols-sharp {
  vertical-align: -20%; /* Align icons in texts. */
}

#container {
  max-width: 32rem;
  margin: auto;
  padding: 0.5rem;
}

#footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 32px;
  text-align: center;
  font-size: 0.8rem;
  padding-top: 0.4rem;
  background-color: #eeeeee;
}

#toc {
  margin-bottom: 4rem;
}

h2 {
  padding-top: 2rem;
  line-height: 1;
}

h2:not(#toc_title) {
  margin-bottom: -1rem;
}

img:not(header img) {
  max-width: 100vw;
  max-height: 100vw;
  width: auto;
  height: auto;
  display: block;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 2rem;
  margin-bottom: 2rem;
}

code,
pre {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  padding: 0.33rem;
  overflow-wrap: break-all;
  white-space: pre-wrap;
  word-break: break-all;
  border-radius: .33rem;
  background: #F6F8FA; /* https://github.com/sbarex/QLMarkdown/blob/main/Resources/default.css */
}

blockquote {
  font-size: 0.9rem;
  margin-left: 0rem;
  padding-left: 1em;
  border-left: 1px solid #bdbdbd;
}

/* Style ul/ol. ::marker doesn't work. https://stackoverflow.com/a/70928342 https://csshtml.work/li-position/#spanvertical-align */
ul {
  padding-left: 1rem;
}

ul > li::before {
  content: "";
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #212121;
  position: absolute;
  left: -0.7rem;
  top: 0.7em;
}

ul li {
  list-style: none;
  position: relative;
  line-height: 1.5;
}

ol {
  padding-left: 1.4rem; /* Move to the left. */
}

[style*="-typora-class: dracula"] {
  background: #363747;
  color: #eaeaea; /* Default text color */
  overflow-wrap: break-all;
  word-break: break-all;
}

.youtube_embed {
  aspect-ratio: 16/9;
}