/* custom css here */
html,
body {
  height: 100%;
}

.h-100 {
  height: 100%;
}

#holy {
  display: grid;
  /* auto: as wide as its content
   * fr: all available space */
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "header header"
    "main side"
    "footer side";
}

#header {
  grid-area: header;
}

#main {
  grid-area: main;
  max-width: 782px;
}

#side {
  grid-area: side;
  width: 250px;
}

#footer {
  grid-area: footer;
}

aside {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  max-height: 100vh;
  display: block;
  overflow-y: auto;
}

/* Menu */
.flex-column {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.dropdown:hover .dropdown-content {
  visibility: visible;
  opacity: 1;
}

.dropdown-content:hover {
  visibility: visible;
  opacity: 1;
}

.dropdown-content {
  visibility: hidden;
  opacity: 0;
  transition: all 0.2s ease;
  top: 55px;
  right: 0;
  white-space: nowrap;
  min-width: 160px;
  z-index: 1;
}

/* TOC */
#toc {
  margin-top: 1.5rem;
  padding: 0.7rem;
}

#toc * {
  list-style: none;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#toc ul {
  padding-left: 0.8rem;
}

#toc li {
  margin-top: 0.3rem;
}

@media screen and (max-width: 1012px) {
  #holy {
    display: block;
  }

  #header {}

  #main {
    max-width: 1012px;
  }

  #side {
    display: none;
  }
}

.markdown-body img {
  border-style: solid;
  border-width: 1px;
  border-color: lightgray;
}

.markdown-body h1 {
  font-size: 26px;
}

.markdown-body h2 {
  border-bottom: 4px solid lightgray;
  border-left: 8px solid lightgray;
  padding-left: 10px;
  font-size:20px;

}

.markdown-body h3 {
  border-bottom: 2px solid lightgray;
  border-left: 4px solid lightgray;
  padding-left: 10px;
  padding-bottom: 0.3em;
  font-size:18px;

}

.amazon-ad {
  display: block;
}

@media screen and (max-width: 900px) {
  .amazon-ad {
    display: none;
  }
}

.top-google-ads {
  width: 320px;
  height: 100px;
}

@media(min-width: 500px) {
  .top-google-ads {
    width: 468px;
    height: 60px;
  }
}

@media(min-width: 800px) {
  .top-google-ads {
    width: 728px;
    height: 90px;
  }
}

.top-ad {
  margin-bottom: 16px;
}


.notice.info {
  padding: 0px 18px 18px 18px;
  font-size: 14px;
}


.notice.note {
  margin-top: 50px;
  padding: 0px 18px 18px 18px;
  font-size: 13px;
}

code[class*='language-'],
pre[class*='language-'] {
  white-space: pre-wrap;
  line-height: 1.3;
  font-size: 14px;
}



code, pre {
  white-space:pre;
  line-height: 1.3;
  font-size: 14px;
  color: #f8f8f2;
  background: 0 0;
  text-shadow: 0 1px rgba(0, 0, 0, .3);
  font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  word-wrap: normal;
  -moz-tab-size: 4;
  -o-tab-size: 4;
  tab-size: 4;
  -webkit-hyphens: none;
  -moz-hyphens: none;
  -ms-hyphens: none;
  hyphens: none;
}

pre {
  padding: 1em;
  margin: 0.5em 0;
  overflow: auto;
  border-radius: 0.3em;
}
:not(pre)>code, pre {
  background: #272822
}

.markdown-body {
  line-height: 1.7;
}

.highlight-title {
  position: relative;
  background-color: gray;
  width: fit-content;
  margin-top: -14px;
  margin-left: -14px;
  margin-bottom: 10px;
  padding: 3px;
  color: white;
}

.highlight > pre > code {
  white-space:pre;
  text-wrap: balance;
}

code[class*=language-] {
  white-space:pre;
}

code[class*=language-], pre[class*=language-] {
  word-wrap: break-word;
}