:root {
  --darkest: #000000;
  --darker: #1D1D1D;
  --bg: #232323;
  --lessdark: #464646;
  --muted: #696969;
  --text: #D1D1D1;
  --current: #FFD100;
  --contrasta : #eae2b7;
  --container-max: 1200px;
  --footer-link-width: 65px;
}

html, body {
  height: 100%;
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  font-family: "Quattrocento", Georgia, serif;
  padding-bottom: 120px;
}

.site-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding-top: 2.5vw;
  padding-left: 5vw;
  padding-right: 5vw;
  padding-bottom: 2.5vw;
  z-index: 1080;
  background: var(--darker);
}

.header-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.header-icon-only {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--muted);
}

.header-icon-only:hover,
.header-icon-only:focus,
.header-icon-only:active {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--current);
  outline: none;
}

.header-icon-only i {
  font-size: 1.25rem;
  line-height: 1;
}

header a {
  color: inherit;
}

.wrap {
  min-height: 7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-bottom: 10vh;
  padding-top: 2.5vh;
}

.topline {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 18px;
  color: var(--current);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: "Chelsea Market", cursive;
}

.typing-area {
  position: relative;
  padding-top: 10vh;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.window {
  position: relative;
  width: min(90vw, var(--container-max));
  max-width: 1100px;
  min-height: 160px;
  overflow: hidden;
}

.text-line {
  position: relative;
  display: block;
  width: 100%;
  white-space: pre-wrap;
  word-break: break-word;
}

.line {
  display: block;
  margin: 0;
  padding: 0;
  height: 1.5em;
  overflow: hidden;
}

.chunk {
  color: #6b7280;
  opacity: 1;
  transition: opacity 0.3s ease-in;
}

.chunk.correct {
  color: var(--current);
}

.chunk.current {
  color: var(--text);
  opacity: 1;
  transition: opacity 0.3s ease-in;
}

.chunk.current.revealed {
  opacity: 1;
}

.chunk.current.highlighted.new {
  opacity: 0.3;
  transition: opacity 0.2s ease-out, background 0.2s ease-out;
  color: var(--bg);
}

.chunk.current.highlighted.new.revealed {
  opacity: 1;
}

.chunk.current.previous.faded {
  opacity: 1;
  transition: opacity 0.2s ease-in, background 0.2s ease-in;
}

.chunk.current.previous.faded.faded-out {
  opacity: 0.4;
  background: transparent !important;
}

.highlighted-spacer {
  display: inline-block;
  width: 0.3em;
  height: 1.2em;
  vertical-align: middle;
  margin-left: 0.1em;
  transition: all 0.2s ease-out;
}

.highlighted-spacer.new {
  opacity: 0.3;
}

.highlighted-spacer.new.revealed {
  opacity: 1;
}

.caret {
  display: inline-block;
  width: 0.2em;
  height: 1.2em;
  vertical-align: middle;
}

.final-caret {
  display: inline-block;
  width: 0.6em;
  height: 1.4em;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
  color: var(--current);
}

.summary {
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
}

#navOverlay .modal-content {
  background: var(--darker);
  backdrop-filter: blur(8px);
  border: 0;
}

#navOverlay .nav-link {
  font-family: "JetBrains Mono", monospace;
  color: var(--muted);
}

#navOverlay .nav-link:hover {
  color: var(--text);
}

.app-footer {
  z-index: 1030;
  background: var(--bg);
  padding: 1rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
}

.footer {
  display: flex;
  padding-left: 5vw;
  padding-right: 5vw;
  padding-bottom: 2.5vw;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.2rem;
}

.footer-left {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 0.75rem;
}

.footer-left a {
  flex: 0 0 1;
  width: auto;
  color: var(--muted);
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.45rem;
  font-size: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.footer-left a:hover {
  color: var(--text);
}

.footer-right {
  flex: 0 1 180px;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-end;
  align-content: flex-end;
  gap: 0.75rem 0.75rem;
  text-align: right;
}

.footer-clock,
.footer-version {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .45rem;
  white-space: nowrap;
  color: var(--muted);
}

#clock-seconds {
  color: var(--current);
}

#theclock {
  display: flex;
  justify-content: flex-start;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

@media (max-width: 640px) {
  .footer-left a {
    flex: 0 0 var(--footer-link-width);
    width: var(--footer-link-width);
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: inherit;
    text-decoration: none;
    white-space: nowrap;
  }

  .window {
    padding-left: 14px;
    padding-right: 14px;
  }

  .text-line {
    font-size: 1.25rem;
  }

  .footer {
    align-items: flex-start;
  }

  .footer-right {
    justify-content: flex-end;
    text-align: left;
  }

  .wrap {
    min-height: 7rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-bottom: 5vh;
    padding-top: 5vh;
  }
}

.text-line-placeholder {
  display: inline-block;
  height: 1.4rem;
  border-radius: 0.5rem;
  opacity: 0.6;
}

#textPlaceholder {
  width: 100%;
  padding-top: 0.5rem;
}

#text.d-none {
  display: none !important;
}

#newbadge {
  font-weight: 100;
  color: var(--lessdark);
  vertical-align: text-top;
  background-color: var(--current);
}

.icon-svg {
  height: 2em;
  width: auto;
  display: inline-block;
}

#modalcontainer {
  height: 75vh;
  overflow: scroll;
  overflow-x: hidden;
}

#pagetitle {
  font-family: "JetBrains Mono", monospace;
}

#pagedescript {
  font-family: "JetBrains Mono", monospace;
}

.hero {
  background: var(--darker);
}

#modalcard {
  font-family: "JetBrains Mono", monospace;
  border: 0px;
  background: var(--lessdark);
  color: var(--text);
  padding: 10px;
  transition: transform .2s ease;
}

#modalcard:hover {
  transform: scale(1.05);
  background: var(--contrasta);
  color: var(--lessdark);
}

* {
  cursor: url('https://cdn.cursors-4u.net/previews/cheese-dd380ef6-32.webp') 32 32, auto !important;
}