@import url('https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400;700&display=swap');

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

body {
  overflow: hidden;
}

#bgCanvas {
  position: fixed !important;
  top: 0;
  left: 0;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 0;
  pointer-events: auto;
  opacity: 1;
  cursor: pointer;
  background: #ffffff;
}

#contentLayer {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10pt;
  pointer-events: auto;
  max-width: calc(100vw - 48px);
}

.contentBlock {
  background: #ffffff;
  color: #000000;
  padding: 10pt;
  box-sizing: border-box;
  font-family: "Pixelify Sans", sans-serif;
  line-height: 1.2;
}

.logoBlock {
  padding: 10pt;
}

#contentLogo {
  display: block;
  height: 175px;
  width: auto;
  max-width: 100%;
  transition: filter 0.2s ease;
}

.titleBlock {
  font-size: 40px;
}

.subtitleBlock {
  font-size: 25px;
}

.taglineBlock {
  font-size: 20px;
}

.paragraphBlock {
  max-width: 50vw;
  font-size: 20px;
}

.linksBlock {
  font-size: 20px;
}

.linksBlock a {
  color: #1e5bff;
  text-decoration: none;
  transition: color 0.15s ease;
}

.linksBlock a:hover,
.linksBlock a:focus-visible {
  color: #8a8a8a;
}

#hudOverlay {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5pt;
  text-align: right;
  pointer-events: none;
}

.hudLine {
  background: #ffffff;
  color: #000000;
  padding: 5pt;
  font-family: "Pixelify Sans", sans-serif;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
}

.hudItemLine {
  font-size: 20px;
}

#leaderboardFooter {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 5;
  width: 100vw;
  height: 30px;
  overflow: hidden;
  pointer-events: none;
  background: #ffffff;
  border-top: 1px solid #000000;
}

#leaderboardTrack {
  display: flex;
  width: max-content;
  animation: leaderboardScroll 28s linear infinite;
  will-change: transform;
}

#leaderboardText,
#leaderboardTextClone {
  display: inline-flex;
  align-items: center;
  height: 29px;
  padding-right: 60px;
  white-space: nowrap;
  color: #000000;
  font-family: "Pixelify Sans", sans-serif;
  font-size: 15px;
  line-height: 1;
}

.lbEntry,
.lbSep {
  color: #000000;
}

.lbCount {
  color: #39ff14;
}

.lbFlag {
  display: inline-block;
  margin-right: 1px;
  transform: translateY(1px);
}

#modeToggle {
  position: fixed;
  right: 24px;
  bottom: 42px;
  z-index: 11;
  display: inline-block;
  padding: 10pt;
  font-family: "Pixelify Sans", sans-serif;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  background: #ffffff;
  color: #000000;
}

body.andunny-dark #hudOverlay .hudLine,
body.andunny-dark #leaderboardFooter,
body.andunny-dark #modeToggle,
body.andunny-dark .contentBlock {
  background: #000000;
  color: #ffffff;
}

body.andunny-dark #leaderboardText,
body.andunny-dark #leaderboardTextClone,
body.andunny-dark .lbEntry,
body.andunny-dark .lbSep {
  color: #ffffff;
}

body.andunny-dark #leaderboardFooter {
  border-top: 1px solid #ffffff;
}

body.andunny-dark .lbCount {
  color: #39ff14;
}

@media (max-width: 900px) {
  #contentLayer {
    top: 16px;
    left: 16px;
    max-width: calc(100vw - 32px);
  }

  #contentLogo {
    height: 120px;
  }

  .titleBlock {
    font-size: 28px;
  }

  .subtitleBlock {
    font-size: 20px;
  }

  .taglineBlock,
  .paragraphBlock,
  .linksBlock {
    font-size: 16px;
  }

  .paragraphBlock {
    max-width: calc(100vw - 32px);
  }
}

@keyframes leaderboardScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}
