@import url("https://fonts.googleapis.com/css2?family=Roboto+Slab&display=swap");
/* Colors */
:root {
  --lightgray: #e0e0e0;
  --gray: #c0c0c0;
  --darkgray: #333;
  --almostblack: #1b1b1b;
  --navy: #17050f;
  --blue: #082840;
  --white: rgb(255, 255, 255);
  --offwhite: #f6f6f6;
  --yellowgreen: #aaff00;
  --lightblue: rgb(0, 225, 255);
  --mainRed: #cc0014;
  --mainYellow: #ffd700;
  --color-note: #2f81f7;
  --color-tip: #3fb950;
  --color-warning: #d29922;
  --color-severe: #db6d28;
  --color-caution: #f85149;
  --color-important: #a371f7;
}

/* Global stylesheet */
* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  margin-right: calc(-1 * (100vw - 100%));
}

html,
body {
  padding: 0;
  font-family: -apple-system, system-ui, sans-serif;
  color: var(--white);
  background-color: var(--almostblack);
}

body {
  max-width: 50em;
  margin: 0 auto;
}

h1 {
  margin-bottom: 6px;
}

h1,
h2,
h3,
h4,
h5,
h6,
header {
  font-family: "Roboto Slab", serif;
}

p {
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}
p,
.tmpl-post li {
  line-height: 1.45;
}

p.views {
  display: inline;
}
a[href] {
  color: var(--white);
}

a[href]:hover {
  color: var(--mainYellow);
}

main {
  padding: 1rem;
}
main > h1:first-child {
  margin-top: 0;
}
header {
  border-bottom: 1px dashed var(--lightgray);
  padding-bottom: 0.25em;
  padding-top: 0.25em;
  margin-bottom: 0.5em;
  display: flex;
  justify-content: space-between;
}

header .logoTitle {
  margin-top: 0.5em;
  display: flex;
  align-items: center;
}

/* Header */
header .home {
  padding: 0 1rem;
  float: left;
  font-weight: 500;
  font-size: 2em;
  font-family: "Segoe UI";
  /* font-family: "Montserrat", sans-serif; */
}
header .home :link {
  text-decoration: none;
}

/* For WebKit/Blink browsers */
::-webkit-scrollbar {
  width: 10px; /* Adjust the width as needed */
  background-color: var(--darkgray); /* Set the background color to dark */
}

::-webkit-scrollbar-thumb {
  background-color: var(--gray); /* Set the color of the scroll thumb */
}

/* For Firefox */
/* You may need to use !important to override Firefox's default styles */
/* To enable custom scrollbars in Firefox, you may also need to set the "layout.css.scrollbar-width.enabled" preference to "true" in about:config */
/* Note: This method doesn't support styling the scroll thumb separately */
* {
  scrollbar-color: var(--gray) var(--darkgray); /* Set the color of the scrollbar (thumb and track) */
}

.hero {
  padding: 2em;
  background: rgb(2, 0, 36);
  background: linear-gradient(238deg, #0080ff, #00f, #8000ff);
  border-radius: 5px;
  color: var(--white);
  box-shadow: black 5px 5px 2px;
}

.hero > h2 {
  margin: 0;
}

sup {
  vertical-align: top;
  line-height: 1;
  & a {
    text-decoration: none;
  }
}

pre,
code {
  font-family: Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono",
    "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono",
    "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L",
    "Courier New", Courier, monospace;
  line-height: 1.5;
}
pre {
  font-size: 14px;
  line-height: 1.375;
  direction: ltr;
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  -moz-tab-size: 2;
  -o-tab-size: 2;
  tab-size: 2;
  -webkit-hyphens: none;
  -moz-hyphens: none;
  -ms-hyphens: none;
  hyphens: none;
  padding: 1em;
  margin: 0.5em 0;
  background-color: var(--offwhite);
  color: var(--darkgray);
  border-radius: 5px;
}

abbr {
  position: relative;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  cursor: help;
}

abbr:hover {
  color: var(--mainYellow);
}

blockquote {
  border-left: 0.2em solid transparent; /* Set the border width and make it transparent */
  border-right: 0.2em solid transparent; /* Set the border width and make it transparent */
  border-image: linear-gradient(to bottom, var(--mainYellow), var(--mainRed)) 1; /* Apply linear gradient as border image */
  margin-inline-start: -2em;
  width: calc(100% + 4em);
  padding: 1.25em 1.5em;
  background-color: #322d2f;
  font-size: 105%;

  color: var(--offwhite);
}

button.likes {
  font-family: "Segoe UI";
  font-size: 63px;
  font-weight: 500;
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: flex-end;
  min-width: 100px;
  height: 100px;
  color: #ffffff;
  background-color: var(--mainRed);
  letter-spacing: -3px;
  border: 0px;
  border-radius: 9px;
  cursor: pointer;
  outline: none;
  transition: background-color 0.3s;
}

button.likes > img {
  padding-top: 12px;
  margin-bottom: -7px;
  margin-left: -7px;
}

button.likes > span {
  padding-top: 23px;
}

button.likes:hover {
  background-color: #80000d;
}

img.subtextImg {
  width: -webkit-fill-available;
  max-width: 400px;
}

img.off {
  filter: grayscale(1);
}

.highlight-line {
  display: block;
  padding: 0.125em 1em;
  text-decoration: none; /* override del, ins, mark defaults */
  color: inherit; /* override del, ins, mark defaults */
}

/* allow highlighting empty lines */
.highlight-line:empty:before {
  content: " ";
}
/* avoid double line breaks when using display: block; */
.highlight-line + br {
  display: none;
}

.highlight-line-isdir {
  color: #b0b0b0;
  background-color: #222;
}
.highlight-line-active {
  background-color: #444;
  background-color: hsla(41, 91%, 58%, 0.086);
}
.highlight-line-add {
  background-color: #45844b;
}
.highlight-line-remove {
  background-color: #902f2f;
}

/* Nav */
.nav {
  list-style: none;
  display: flex;
  align-items: center;
  margin-top: 1.25em;
}
.nav-item {
  display: inline-block;
  margin-right: 1em;
}
.nav-item a[href]:not(:hover) {
  text-decoration: none;
}
.nav-item-active {
  font-weight: 700;
  text-decoration: underline;
}

.logo-nav {
  margin-right: 5px;
}

/* Posts list */
.postlist {
  list-style: none;
  padding: 0;
  padding-bottom: 2em;
}
.postlist-item {
  /* display: flex; */
  flex-wrap: wrap;
  align-items: baseline;
  line-height: 1.8;
  padding: 20px 0;
}
.postlist-item:before {
  /* display: inline-block; */
  pointer-events: none;
  line-height: 100%;
  text-align: right;
}
.postlist-date,
.postlist-item:before {
  font-size: 0.8125em; /* 13px /16 */
  color: var(--lightgray);
}
.postlist-date {
  word-spacing: -0.5px;
}

.postlist-desc {
  margin-left: 0.35em;
}

.postlist-link {
  padding: 0.25em;
  text-underline-position: from-font;
  text-underline-offset: 0;
  text-decoration-thickness: 1px;
  border-radius: 5px;
}
a.postlist-link:hover {
  color: var(--white);
}
.postlist-item-active .postlist-link {
  font-weight: bold;
}
.tmpl-home .postlist-link {
  font-size: 1.1875em; /* 19px /16 */
  font-weight: 700;
}

/* Tags */
.post-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  font-size: 0.75em; /* 12px /16 */
  padding: 0.08em 0.66em;
  margin: 0.5em 0.3em 0.5em 0.3em;
  color: var(--white);
  /* border: 1px solid var(--gray); */
  background-color: var(--darkgray);
  border-radius: 0.25em; /* 3px /12 */
  text-decoration: none;
  line-height: 1.8;
}

.post-tag-xl {
  font-size: 1.25em; /* 12px /16 */
  padding: 0.66em 0.66em;
  margin-left: 0;
  margin-right: 0.5em;
  color: var(--white);
  border-radius: 0.5em; /* 3px /12 */
  line-height: 1.8;
  box-shadow: black 5px 5px 2px;
}

.tag-name-title {
  color: var(--mainYellow);
}
a[href].post-tag,
a[href].post-tag:visited {
  color: inherit;
}

.postlist-item > .post-tag {
  align-self: center;
}

/* Direct Links / Markdown Headers */
.direct-link {
  font-family: sans-serif;
  text-decoration: none;
  font-style: normal;
  margin-left: 0.1em;
}
a[href].direct-link,
a[href].direct-link:visited {
  color: transparent;
}
a[href].direct-link:focus,
table {
  /* border-collapse: collapse; */
  /* width: 80%; */
  padding: 1em 0;
}

th,
td {
  padding: 0 2em;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  padding: 4em 0;
}

.post-footer > div {
  width: 50%;
}

.post-footer > .next-post {
  text-align: right;
}

.post-footer > div > a {
  padding: 5px;
  border-radius: 5px;
  font-weight: bold;
  line-height: 2em;
  color: var(--white);
}

.post-footer > div > a:hover {
  color: var(--white);
}

::-moz-selection {
  background: var(--mainRed);
}
::selection {
  background: var(--mainRed);
}

.tags-container {
  margin-bottom: 5em;
}

.footnotes-list {
  padding-top: 1.5em;
}

.footnote-item {
  padding-bottom: 1em;
}

footer {
  display: flex;
  flex-direction: column;
  align-items: end;
  padding: 2em 0 2em;
  font-family: "Roboto Slab", serif;
  background-color: var(--almostblack);
}

.footer-text {
  font-size: 0.75em;
  color: var(--gray);
  margin-bottom: 25px;
  margin-top: 10px;
}

@-webkit-keyframes rainbow {
  0% {
    background-position: 0% 82%;
  }
  50% {
    background-position: 100% 19%;
  }
  100% {
    background-position: 0% 82%;
  }
}
@-moz-keyframes rainbow {
  0% {
    background-position: 0% 82%;
  }
  50% {
    background-position: 100% 19%;
  }
  100% {
    background-position: 0% 82%;
  }
}
@-o-keyframes rainbow {
  0% {
    background-position: 0% 82%;
  }
  50% {
    background-position: 100% 19%;
  }
  100% {
    background-position: 0% 82%;
  }
}
@keyframes rainbow {
  0% {
    background-position: 0% 82%;
  }
  50% {
    background-position: 100% 19%;
  }
  100% {
    background-position: 0% 82%;
  }
}

.animated-rainbow-hover:hover,
.animated-rainbow-hover:focus {
  color: var(--white);
  background: linear-gradient(238deg, var(--mainRed), var(--mainYellow));
  background-size: 600% 600%;
  -webkit-animation: rainbow 2s ease infinite;
  -z-animation: rainbow 2s ease infinite;
  -o-animation: rainbow 2s ease infinite;
  animation: rainbow 2s ease infinite;
}

@media (max-width: 600px) {
  .home {
    display: none;
  }
  .logo {
    margin-left: 1em;
  }
  blockquote {
    margin: 0;
    margin-inline-start: 0;
    width: -webkit-fill-available;
  }
}

.markdown-alert {
  padding: 0.5rem 1rem;
  margin-bottom: 16px;
  color: inherit;
  /* border-left: 0.25em solid #888; */

  border-left: 0.2em solid transparent;
  border-right: 0.2em solid transparent;
  /* border-image: linear-gradient(to bottom, var(--mainYellow), var(--mainRed)) 1; */
  margin-inline-start: -2em;
  width: calc(100% + 4em);
  padding: 1.25em 1.5em;
  background-color: #322d2f;
  font-size: 105%;
}

.markdown-alert > :first-child {
  margin-top: 0;
}

.markdown-alert > :last-child {
  margin-bottom: 0;
}

.markdown-alert .markdown-alert-title {
  display: flex;
  font-weight: 500;
  align-items: center;
  line-height: 1;
}

.markdown-alert .markdown-alert-title .octicon {
  margin-right: 0.5rem;
  display: inline-block;
  overflow: visible !important;
  vertical-align: text-bottom;
  fill: currentColor;
}

.markdown-alert.markdown-alert-note {
  border-left-color: var(--color-note);
}

.markdown-alert.markdown-alert-note .markdown-alert-title {
  color: var(--color-note);
}

.markdown-alert.markdown-alert-important {
  border-left-color: var(--color-important);
}

.markdown-alert.markdown-alert-important .markdown-alert-title {
  color: var(--color-important);
}

.markdown-alert.markdown-alert-warning {
  border-left-color: var(--color-warning);
}

.markdown-alert.markdown-alert-warning .markdown-alert-title {
  color: var(--color-warning);
}

.markdown-alert.markdown-alert-tip {
  border-left-color: var(--color-tip);
}

.markdown-alert.markdown-alert-tip .markdown-alert-title {
  color: var(--color-tip);
}

.markdown-alert.markdown-alert-caution {
  border-left-color: var(--color-caution);
}

.markdown-alert.markdown-alert-caution .markdown-alert-title {
  color: var(--color-caution);
}
