/* mservers.cz theme for the Anubis challenge page, styled after the KeyHelp default page.
   Served by NPMplus instead of Anubis' own xess.min.css, see /data/custom_nginx/server_proxy.conf */

:root {
  --primary: #30343f;
  --text: hsl(0, 0%, 29%);
  --muted: hsl(0, 0%, 48%);
  --footer: hsl(0, 0%, 86%);
  --border: hsl(0, 0%, 86%);
  --link: #3b82f6;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  height: auto !important;
  min-height: 100%;
  margin: 0 !important;
}

body {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem 5rem;
  background: var(--primary);
  color: var(--text);
  font-family: BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell",
    "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* the white box */
main {
  position: relative;
  width: 100%;
  max-width: 26rem;
  padding: 1.5rem 2rem 1.25rem;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 0 20px 3px hsla(0, 0%, 4%, .4), 2px 2px 20px 0 hsla(0, 0%, 4%, .4);
  text-align: center;
}

/* logo on top, like KeyHelp */
main::before {
  content: "";
  display: block;
  height: 34px;
  margin: .5rem 0 1.25rem;
  background: url("/.within.website/x/mservers/logo.png") center / contain no-repeat;
}

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

h1, #title {
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
}

/* mascot images are replaced by the logo */
main img { display: none !important; }

p { margin: .75rem 0; }

#status {
  margin: .75rem 0 0;
  color: var(--muted);
  font-size: .95rem;
  font-variant-numeric: tabular-nums;
}

#progress {
  width: min(16rem, 90%) !important;
  height: .5rem !important;
  margin: 1rem auto 1.25rem !important;
  border-radius: 999px !important;
  outline: none !important;
  background: hsl(0, 0%, 93%);
  overflow: hidden;
}

#progress .bar-inner {
  background-color: var(--link) !important;
  border-radius: 999px;
}

details {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .8rem;
  text-align: left;
}

details summary {
  cursor: pointer;
  text-align: center;
  color: var(--muted);
}

details p { margin: .5rem 0; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .85em;
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
  padding: .5rem;
  background: hsl(0, 0%, 96%);
  border-radius: 4px;
  text-align: left;
}

/* credits below the box, like the KeyHelp footer; only the first line is kept */
footer {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 1rem;
  color: var(--footer);
  font-size: .75rem;
}

footer p { margin: 0; }
footer p:not(:first-child) { display: none; }
footer a { color: var(--footer); }
