.html {
    scroll-behavior: smooth;
}

h1[id], h2[id], h3[id], h4[id], div[id] {
    scroll-margin-top: 50px;
}

.david {background: blue;}

.tag-list:before{content:"\1f3f7";font-size:1.7em;}
.tag-list {word-spacing:10px; margin:0px; padding:0px;}
.post-meta {line-height:11px}
.post-list-h3 {margin-bottom:0px;}
.post-list-li {line-height:24px;}

img {
    padding: 5px;
}

.center-image, img {
    margin: 0 auto;
    display: block;
}

.left-image {
    display: unset;
}

.language-nowrap {
    white-space: pre-wrap;
}

.wrap pre {
    white-space: pre-wrap;
}

/**********************
 * TOC
 */
.navbar-nav {
    list-style: none;
    margin-left: 0px;
    padding-left: 0px;
}

nav[data-toggle="toc"] .nav > li > a:focus, nav[data-toggle="toc"] .nav > li > a:hover {
    color: #4B9CD3;
    border-left: 1px solid #4B9CD3;
}

nav[data-toggle="toc"] .nav-link.active, nav[data-toggle="toc"] .nav-link.active:focus, nav[data-toggle="toc"] .nav-link.active:hover {
    color: #4B9CD3;
    border-left: 2px solid #4B9CD3;
}

.sticky-top {
    top: 82px;
    position: -webkit-sticky;
}

nav[data-toggle="toc"] .nav > li > a {
    padding-left: 10px;
}

nav[data-toggle="toc"] .nav-link.active {
    padding-left: 10px;
} 

.toc-indent {
    padding-left: 25px;
}

/**********************
 * prev / next for series
 */
.PageNavigation {
  font-size: 20px;
  display: block;
  width: auto;
  overflow: hidden;
  margin-bottom: 20px;
}

.PageNavigation a {
  display: block;
  width: 50%;
  float: left;
  margin: 1em 0;
}

.PageNavigation .next {
  text-align: right;
  float: right;
}


/**********************
 * Overwrite bootstrap for header nav
 */
.site-nav .page-link-site:not(:last-child) {
    margin-right: 20px;
}
.site-nav .page-link-site {
    color: #e6e6e6;
}

.site-nav {
    line-height: 1;
}

th a {
   color: inherit;
}

.post-content h1, .post-content h2 { color: #DB2C17; }

.post-content h3 { color: #4B9CD3; }

.post-content h4 { color: #FFFF99; }

.wrapper { max-width: calc(1100px - (30px * 2)); }

table.details {
    width: 70%;
}

img.float {
    float: right;
    margin-left: 50px;
    margin-right: 20px;
}

img.float-left {
    float: left;
    margin-left: 20px;
    margin-right: 50px;
}

ul.toc {
    list-style-type: none;
}



/**********************
 * Sticky Nav Bar on Top 
 */
.site-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    background: #1d1d1d;
    z-index: 1200;
}

.page-content h2::before {
    content: " ";
    margin-top: -70px;
    height: 70px;
    display: block;
}

.page-content h3::before {
    content: " ";
    margin-top: -70px;
    height: 70px;
    display: block;
}

.img-av {
    width: 64px;
    height: 64px;
    border-radius: 6px;
    display: unset;
    margin: 2px;

}

.img-os {
    width: 32px;
    height: 32px;
    display: unset;
}

.include_image {
    padding-bottom: 15px;
}

.diff-Insane {
    color: #cfd0d1;
    font-weight: bold;
    text-shadow: 2px 2px 4px #FF0000;
}

.diff-Hard {
    color: #f70000;
    font-weight: bold;
}

.diff-Medium {
    color: #f9ab37;
    font-weight: bold;
}

.diff-Easy {
    color: #8DC743;
    font-weight: bold;
}

.diff-Very {
    color: #a900f9;
    font-weight: bold;
}

.obe {
    color: grey;
}

/**************************
 * fix scroll on code
 */

.language-console > div .highlight {
    display: flex;
    border-radius: 3px;
}

div .highlight > pre {
    margin-bottom: 0;
    flex: 1;

}


div#copyright {
    text-align: center;
}

div#copyright img {
    display: unset;
}


/**************************
 * customize scrollbars
 */
/* pre code::-webkit-scrollbar-thumb {
    background-color: #666;
    border-radius: .5em;
    box-shadow: inset 2px 2px 2px hsla(0, 0%, 100%, .25);
} */
::-webkit-scrollbar {
    width: 16px;
    height: 10px;
}
::-webkit-scrollbar-thumb {
    background: #777;
    border-radius: 16px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(90deg,#434343,#434343 1px,#111 0,#111);
}

/**************************
 *  banner
 */
#banner {
  position: absolute;
  top: 10px;
  right: 10px;
  max-width: 400px;
  background-color: rgba(68, 100, 155, 0.7);
  color: #9fef00e0;
  border-radius: 10px;
  padding: 10px;
  z-index: 9999;
}

#banner > p {
  padding-right: 30px;
  margin-bottom: 0px;
}

#close-banner {
  position: absolute;
  top: 5px;
  right: 5px;
  cursor: pointer;
  font-size: 12px;
  color: white;
  background-color: rgba(255, 255, 255, 0.3);
  padding: 2px 6px;
  border-radius: 50%;
  border: none;
  outline: none;
  transition: background-color 0.3s, transform 0.3s;
}

#close-banner:hover {
  background-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

#banner p a {
    color: white;
}

.expand-contract {
    height: 32px;
    background-color: black;
    border-radius: 32px;
}


/**************************
 * Timeline for sherlocks
 */
table.timeline {
    border: 0;
}

table.timeline td {
    border: 0;
    padding: 3px;
}

table.timeline td:first-child {
    font-family: "Courier New", monospace;
    font-size: smaller;
}

table.timeline td:nth-child(2) {
    padding-left: 30px;
}

table.timeline td:first-child,
table.timeline td:nth-child(3),
table.timeline th:first-child,
table.timeline th:nth-child(3) {
    text-align: center;
}

/* https://stackoverflow.com/questions/29885284/how-to-set-a-fixed-width-column-with-css-flexbox */
.npcdialog {
    border: 5px solid #cdc594;
    background: #f3ecc6;
    color: black;
    border-radius: 40px;
    padding: 3ch 3ch;
    overflow: hidden;
    display: flex;
    align-items: center;
    margin-bottom: 1em;
}

.npcimage {
    width: 150px;
    height: 100%;
    margin-right: 3ch;
    flex: 0 0 150px;
}

.npcimage img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.npcimage > h1 {
    font-size: 1em;
    color: black;
    width: 100%;
    text-align: center;
}

.npcdialogtext {
    height: 100%;
    display: flex;
    flex: 1;
}


:not(pre) > code {
    background-color: #505050;
    color: #e9e9e9;
}

p > code {
    padding: 1px 3px;
}


.language-mermaid {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: unset;
}

pre:has(.language-mermaid) {
    background-color: unset;
    border: unset;
    border-radius: unset;
}


iframe {
    display: block;
    margin: 0 auto;
    padding-bottom: 1em;
}

@font-face {
    font-family: "DSEG14";
    src: 
      url("/assets/fonts/DSEG14Classic-Regular.woff2") format("woff2"),
      url("/assets/fonts/DSEG14Classic-Regular.ttf") format("truetype");
}

.blood-time {
    /*font-family: 'Seven Segment', sans-serif; */
    font-family: 'DSEG14', sans-serif;
    font-size: xx-large;
    display: inline-block;
    vertical-align: middle;
    padding-right: 10px;
    padding-left: 10px;
}

.blood-time-days {
    font-family: 'monospace';
    font-size: x-large;
    display: inline-block;
    vertical-align: middle;
}

.code-collapse {
    overflow: hidden;
}

.hhc-toc-item {
  font-size: xx-large;
  font-family: 'Cookie', sans-serif;
}

.hhc-toc-indent {
  padding-left: 50px;
}

.hhc-toc {
  column-count: 2;
  column-gap: 20px;
}

.hhc-toc-act {
  padding-top: 30px;
}

.blurable-wrapper {
    position: relative;
    overflow: hidden;
}

.blur {
  -webkit-filter: blur(3px);
  -moz-filter: blur(3px);
  -o-filter: blur(3px);
  -ms-filter: blur(3px);
  filter: blur(3px);
}

.click-to-unblur {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 0 5px black;
    cursor: pointer;
    background: rgba(16, 16, 16, 0.5);
    padding: 10px;
    border-radius: 25px;
}

.hidden {
    display: none;
}

