:root {
  --body-sans-font: Geist, sans-serif;
  --body-preformatted-font: Iosevka Curly Iaso, monospace;
  --body-title-font: Podkova, serif;

  --background: #111111;
  --text: #f9f5d7;
  --text-selection: #d3869b;
  --preformatted-background: #232323;
  --link-foreground: #d3869b;
  --link-background: #181818;
  --blockquote-border-left: 1px solid #bdae93;

  --progress-bar-outline: #b16286 solid 4px;
  --progress-bar-fill: linear-gradient(90deg, #b16286 0%, #d3869b 100%);
}
@media (prefers-color-scheme: light) {
  :root {
    --background: #f9f5d7;
    --text: #181818;
    --text-selection: #d3869b;
    --preformatted-background: #ebdbb2;
    --link-foreground: #b16286;
    --link-background: #fbf1c7;
    --blockquote-border-left: 1px solid #655c54;
  }
}

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("./geist.woff2") format("woff2");
}

@font-face {
  font-family: "Podkova";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("./podkova.woff2") format("woff2");
}

@font-face {
  font-family: "Iosevka Curly";
  font-style: normal;
  font-display: swap;
  src: url("./iosevka-curly.woff2") format("woff2");
}

body,
html {
  height: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--body-sans-font);
  display: flex;
  justify-content: center;
  align-items: center;
}

main {
  font-family: var(--body-sans-font);
  max-width: 420px;
  width: 100%;
  padding: 2.5rem 2rem;
  margin: auto;
  background: rgba(20,20,20,0.98);
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px #000a, 0 2px 8px #2228;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1, h2, h3, h4, h5 {
  color: #f9f9fa;
  font-family: var(--body-title-font);
  font-weight: 600;
  margin-bottom: 0.1rem;
}

a, a:active, a:visited {
  color: var(--link-foreground);
  background-color: var(--link-background);
  text-decoration: underline;
}

pre {
  background-color: var(--preformatted-background);
  padding: 1em;
  border: 0;
  font-family: var(--body-preformatted-font);
  border-radius: 0.5em;
  color: #e6e6e6;
}

::selection {
  background: var(--text-selection);
}

.centered-div {
  text-align: center;
}

#status {
  font-variant-numeric: tabular-nums;
  margin: 1.5rem 0 0.5rem 0;
  font-size: 1.2rem;
  color: #ebdbb2;
  letter-spacing: 0.02em;
}

#progress {
  display: block;
  width: min(22rem, 95%);
  height: 2.15rem;
  border-radius: 1.1rem;
  overflow: hidden;
  margin: 1rem 0 2.2rem;
  background: linear-gradient(90deg, #222 40%, #191919 100%);
  box-shadow: 0 1px 8px #0006;
  outline: none;
  outline-offset: 2px;
  position: relative;
  border: none;
}

.bar-inner {
  background: var(--progress-bar-fill);
  height: 100%;
  width: 0;
  transition: width 0.25s cubic-bezier(.45,.05,.55,.95);
  box-shadow: 0 0 6px #b16286aa, 0 1px 10px #d3869b64;
  border-radius: 1.1rem 0 0 1.1rem;
  position: absolute;
  left: 0; top: 0; bottom: 0;
}

@media (max-width: 600px) {
  main {
    padding: 1.2rem 0.5rem;
    max-width: 100vw;
    border-radius: 0.8rem;
  }
  #progress {
    width: 99vw;
    max-width: 100vw;
  }
}

/* Optional: nice dark scrollbars */
::-webkit-scrollbar {
  width: 12px;
  background: #181818;
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 6px;
}

.anubisbb-challenge-img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 256px;
  margin-bottom: 1em;
}

#progress[role="progressbar"] {
  display: block;
  width: min(22rem, 98%);
  height: 2.3rem;
  border-radius: 1.15rem;
  overflow: hidden;
  margin: 1.2rem 0 2.2rem;
  background: linear-gradient(90deg, #222 40%, #191919 100%);
  box-shadow: 0 2px 16px #0006;
  outline: none;
  outline-offset: 2px;
  border: none;
  position: relative;
}
#progress[role="progressbar"] .bar-inner {
  background: linear-gradient(90deg, #2196f3 0%, #64b5f6 100%);
  height: 100%;
  width: 0;
  transition: width 0.25s cubic-bezier(.45,.05,.55,.95);
  box-shadow: 0 0 12px #1976d2cc, 0 2px 20px #90caf9aa;
  border-radius: 1.15rem 0 0 1.15rem;
  position: absolute;
  left: 0; top: 0; bottom: 0;
}