
@font-face {
  font-family: "Hack";
  src: url("assets/font/Hack-Regular.ttf");
}

* {
  color: var(--text-color);
  background-color: var(--bg-color);
  font-family: "Hack", BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
    "Helvetica", "Arial", sans-serif !important;
}

body {
  margin: 0;
  display: flex;
  justify-content: center;

}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  min-width: fit-content;
  overflow-x: hidden;
  overflow-y: scroll;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

::-webkit-scrollbar {
  display: none;
}

/* custom text highlight starts */
::-moz-selection {
  background-color: var(--accent2);
  color: white;
}

::selection {
  background-color: var(--accent2);
  text-decoration-color: var(--accent2);
  color: white;
}

/* custom text highlight ends */

/* Color variables per theme */
:root {
  /* Ligth theme */
  color-scheme: light dark;
  --text-color: black;
  --bg-color: hsl(0, 0%, 100%);
  --bg-color2: #7D7D7D;
  --bg-box: #C3C3C3;
  --accent2: #746452;
  /* --accent2: #706054; */
  --accent: #462A71;
  --box-shadow: rgb(0 0 0 / 20%);
  --box-opaque-bg: #2D2D2D;
  --box-box-bg: hsla(0, 0%, 23%, 0.9);
  --box-box-light: hsla(240, 0%, 42%, 0.3);
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Dark theme */
    --text-color: white;
    --bg-color: hsl(240, 15%, 13%);
    --bg-color2: hsl(267, 23%, 9%);
    --box-shadow: rgb(255 255 255 / 50%);
  }
}

a {
  text-decoration: none;
  /* color: white; */
  background-color: inherit;
}

a:hover, .address > a:hover, .link:hover {
  /* color: var(--accent); */
  /* color: white; */
  text-decoration: underline;
}


.background-inset {
  position: fixed;
  z-index: 0;
  pointer-events: none;
}
.background-inset > img {
  height: 100vh;
  width: 100vw;
}


.reader {
  width: min(75ch, 100% - 20px);
}
.key {
  white-space: pre-line;
  font-size: clamp(11px, 1.8vw, 16px);
  margin-bottom: 6px;
  margin-top: 6px;
}



ul {
  padding-left: 20px;
}

li {
  background-color: inherit;
}

h2, h3 {
  margin: 16px 0px 0px 0px;
}


* {
  box-sizing: border-box;
}

@media (max-width: 940px) {
  ::-webkit-scrollbar {
    display: block;
  }
  ::-webkit-scrollbar-thumb {
    height: 56px;
    border-radius: 8px;
    border: 4px solid transparent;
    background-clip: content-box;
    background-color: var(--bg-color);
  }

  ::-webkit-scrollbar-thumb:hover {
    background: var(--box-opaque-bg);
    height: 56px;
    border-radius: 8px;
    border: 4px solid transparent;
    background-clip: content-box;
  }

  ::-webkit-scrollbar-track {
    background-color: var(--bg-color2);
  }
}

