.index-title {
  color: rgba(0, 0, 0, 0.84);
  margin-top: 20px;
}

.index-sub {
  color: rgba(0, 0, 0, 0.54);
}

.index-text {
  margin-top: 20px;
  color: rgba(0, 0, 0, 0.44);
}

.index-image {
  width: 400px;
}

.social-icon {
  color: rgba(0, 0, 0, 0.44);
  font-size: 1.5rem;
}

.clock {
  margin-left: 25px;
}

.jumbotron.fortags a {
  background: #1c9963 !important;
}

.error {
  text-align: center !important;
}

@media (min-width: 769px) {
  .md-nopad-right {
    padding-right: 0px !important;
  }

  .md-nopad-left {
    padding-left: 0px !important;
  }
}

.donation {
  background: #f7f7f7;
  padding: 1em;
  font-size: 0.9em;
  box-shadow: 0 0 20px -5px rgba(0, 0, 0, 0.3);
  margin: 5em auto;
  opacity: 1;
  overflow: hidden;
  z-index: 1;
}

.donation dd>p {
  margin: 0;
}

.donation dd>p+p {
  margin-top: 0.5em;
}

.donation dl {
  margin: 0;
}

.donation dd {
  display: block;
  position: relative;
  margin-left: 0;
  padding-left: 1.5em;
}

.donation dd:before {
  content: "◾";
  position: absolute;
  left: 0;
  top: 0;
}

.donation .thanks {
  font-size: 1.6em;
  font-weight: bolder;
  margin: auto;
  text-align: center;
}

.donation .close-button {
  font-size: 1em;
  margin: -0.5em -0.1em;
  cursor: pointer;
  float: right;
}

@keyframes heartbeat {
  0% {
    transform: scale(0.75);
  }

  20% {
    transform: scale(1);
  }

  40% {
    transform: scale(0.75);
  }

  60% {
    transform: scale(1);
  }

  80% {
    transform: scale(0.75);
  }

  100% {
    transform: scale(0.75);
  }
}

.donation .heart {
  display: inline-block;
  animation: heartbeat 1s infinite;
}

.donation.hidding {
  opacity: 0;
  margin-top: -80%;
  transition: all 0.3s linear;
}

.hidden {
  display: none;
}

.article-post>p:first-of-type {
  font-size: 1.5rem;
  font-style: italic;
  padding-left: 20px;
  border-left: 4px solid #00ab6b;
  color: rgba(0, 0, 0, 0.5);
}

/* Blank page */
.article-post a[target="_blank"]::after {
  content: " 🌍";
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol", "Noto Color Emoji";
}

.cryptodonate-btn {
  background: transparent !important;
  width: 100%;
  margin: 0.2em 0;
}

.popup {
  width: 400px;
  position: fixed;
  top: 20%;
  left: calc(50% - (400px / 2));
  z-index: 3;
  background: var(--light);
  opacity: 1;
  border-radius: 1em;
}

.popup pre {
  border: none;
}

.popup .close-button {
  float: right;
  cursor: pointer;
}

#docker-donation-popup {
  width: 480px;
}

#docker-donation-popup pre {
  box-shadow: none;
}

details {
  border: 1px solid #aaa;
  border-radius: 4px;
  padding: 0.5em 0.5em 0;
}

summary {
  font-weight: bold;
  margin: -0.5em -0.5em 0;
  padding: 0.5em;
}

details[open] {
  padding: 0.5em;
}

details[open] summary {
  border-bottom: 1px solid #aaa;
  margin-bottom: 0.5em;
}

.overlay {
  position: fixed;
  margin-top: -200px;
  height: calc(100% + 200px);
  width: 100%;
  background-color: #000000aa;
  z-index: 2;
}

span.emoji {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 1.5em;
}

.twitter-widget {
  margin: auto;
  box-shadow: 0 0 24px -9px rgba(0, 0, 0, 0.3);
}

.hljs {
  white-space: pre-wrap;
  background-color: #272822;
  border-radius: 0 0 1em 1em;
  margin: 0;
  padding: 1em !important;
}

pre {
  border: none;
  margin: 0 0 2em 0;
  padding: 0;
  box-shadow: 0 0 23px 7px rgba(0, 0, 0, 0.3);
  border-radius: 1em;
  margin-bottom: 2em;
}

pre::before {
  color: #CCC;
  content: var(--before-content, " ");
  width: 100%;
  display: block;
  background-color: black;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol", "Noto Color Emoji";
  text-align: left;
  padding-left: 2.5em;
  font-size: 1.3em;
}

pre>i:has(+code) {
  padding: 0.3em 0;

  &::before {
    font-size: .8em !important;
  }
}

.hljs code {
  background: none;
}

pre code.hljs {
  position: relative;
  padding-right: 2em;
  white-space: pre;
  overflow: hidden !important;
  tab-size: 2em;
  line-height: 1.4em !important;
  font-size: 1.1em !important;
}

pre:has(code.hljs) {
  transition: width 0.3s;
}

pre code:hover {
  overflow-x: auto !important;
}

/* bug */
pre:has(code.hljs):hover {
  /*  width: fit-content;*/
  /*  min-width: 100%;*/
}

pre code.hljs.language-makefile {
  line-height: 1.2em !important;
}

pre code.hljs.language-shell {
  line-height: 1.1em !important;
  font-size: 1.1em !important;
}

pre code.hljs.language-text {
  white-space: break-spaces;
  background-color: #474949;
  display: block;
  color: white;
  padding: 1em;
}

/* Copy icon on top right of pre code */
pre code.hljs::before {
  content: "📋";
  opacity: 0.3;
  position: absolute;
  top: 0;
  right: 0;
  font-size: 1em;
  cursor: pointer;
  padding: 0.25em;
  background: #272822;
  border-radius: 0 0 0 1em;
  z-index: 1;
  pointer-events: all;
}

pre code.hljs:hover::before {
  opacity: 1;
}

pre code.hljs::after {
  content: "Copied to clipboard!";
  position: absolute;
  top: 0;
  right: 0;
  font-size: 0.8em;
  padding: 0.5em;
  background: #272822;
  border-radius: 1em;
  z-index: 0;
  opacity: 0;
}

pre code.copied.hljs::after {
  animation: tip 4s;
}

@keyframes tip {
  0% {
    opacity: 0;
    transform: translateX(10em);
  }

  10% {
    opacity: 1;
    transform: translateX(0);
  }

  90% {
    opacity: 1;
    transform: translateX(0);
  }

  100% {
    opacity: 0;
    transform: translateX(10em);
  }
}

figcaption h4 {
  font-size: 0.75rem;
  font-weight: normal !important;
  color: var(--secondary);
  margin-top: 0.5rem;
}

figure {
  text-align: center;
}

[data-align="center"] {
  margin: auto;
  display: block;
}

[data-align="inline"] {
  display: inline-block;
  float: left;
  margin: 1em 1em 1em 0;
}

table {
  border: 1px solid #eee;
}

table th {
  border: 1px solid #eee;
  padding: 0.2em 1em;
}

table td {
  border: 1px solid #eee;
  padding: 0.2em 1em;
}


pre code span.editable {
  text-decoration: underline;
  cursor: pointer;
  color: orange;
}

pre code span.editable:hover {
  color: green;
}

pre code span.editable:after {
  font-family: Sans, sans-serif;
  content: " 🖉";
  font-size: 1.3em;
  display: inline-block;
  position: relative;
  margin-top: -1em;
}

pre code input.editable_var {
  line-height: 1em;
  font-family: monospace;
}

.listrecent .card.h-100 {
  cursor: pointer;
}

.donate {
  background: linear-gradient(45deg, #ffffff, #f2f2f2) !important;
}

.donate:hover {
  background: linear-gradient(45deg, #f2f2f2, #ffffff) !important;
}

.listrecent .card.h-100:hover {
  background: linear-gradient(45deg, #ffffff, #f2f2f2);
}

@media (min-width: 768px) {
  .listrecent .card.h-100 {
    transition: box-shadow 0.3s linear, transform 0.3s linear,
      background 0.3s linear;
  }

  .listrecent .card.h-100:hover {
    box-shadow: 0 0 18px 9px rgba(0, 0, 0, 0.1);
    transform: scale(1.02);
  }
}

@media (min-width: 1000px) {
  :root {
    --scale: 1.8;
  }

  img.zoomable {
    position: relative;
    transition: all 0.3s;
    cursor: zoom-in;
    z-index: 5;
  }

  img.zoom {
    cursor: zoom-out;
    box-shadow: 0 0 12px 5px rgba(0, 0, 0, 0.3);
    transform: scale(var(--scale));
    background-color: white;
  }

  p:has(img.zoomable) {
    text-align: center;
  }
}

#TableOfContents ul {
  list-style-type: none;
  counter-reset: auto;
}

#TableOfContents li {
  counter-increment: main-counter;
  counter-reset: sub-counter;
}

#TableOfContents li::before {
  content: counter(main-counter) ". ";
  color: #00ab6b
}

#TableOfContents li ul li {
  counter-increment: sub-counter;
  counter-reset: none;
}

#TableOfContents li ul li::before {
  content: counter(main-counter, decimal) "." counter(sub-counter, decimal) ". ";
}

@keyframes blink-highlight {

  0%,
  100% {
    background-color: transparent;
  }

  50% {
    background-color: #00ab6b44;
  }
}

.blink-once {
  animation: blink-highlight 1s ease-in-out 3;
}

table.external-remote {
  border: 0;
  font-family: sans-serif, Arial, Helvetica;
  box-shadow: 0 0 12px -3px rgba(0, 0, 0, 0.3);
  border-radius: 1em;

  td {
    padding: 1em;
    align-items: center;
    vertical-align: middle;
    border: 0;
    text-align: center;
  }
}

.tabbed {
  display: table;
  width: 100%;

  dt {
    display: inline-block;
    padding: 0.2em 1em;
    margin: 0 0 .2em 0;
    cursor: pointer;
    border-radius: .33em .33em 0 0;
    border: 1px solid #AAA;
    transition: all 0.2s ease-in-out;
    opacity: 0.33;

    &.active {
      opacity: 1;
    }

    &::before {
      margin-right: 0.2em;
    }
  }

  dd {
    display: table-row;
  }
}

@media (min-width: 1280px) {
  .splitted {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: .5em;
    align-items: center;

    >* {
      display: block;
    }

    >*:not(:last-child) {
      margin-right: 1em;
    }
  }
}

[class^="devicon-"] {
  font-size: 1.8rem;
  position: absolute;
  z-index: 5;
  margin-top: -2.6rem;
  margin-left: .5em;
  color: white;
  opacity: 0.6;
}

p.mermaid {
  text-align: center;
  filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, .2));
}
