@import "https://dev.cdn.unyt.org/uix/style/fontawesome.css";
body {
  margin: 0;
  background: var(--bg);
  overflow-x: hidden;
  overflow-y: auto;
  scroll-margin-top: 100px;
  scroll-padding-top: -100px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji";
}
body input:-webkit-autofill,
body input:-webkit-autofill:hover,
body input:-webkit-autofill:focus,
body input:-webkit-autofill:active {
  transition: background-color 5000s ease-in-out 0s;
  -webkit-text-fill-color: var(--text) !important;
}
body a {
  text-decoration: none;
}
body a:hover {
  text-decoration: underline;
}
body .grid {
  --grid-size: 48px;
  --grid-size-min: 0%;
  --grid-color: rgba(78, 78, 78, 0.1);
  opacity: 0.6;
  --grid-color-min: transparent;
  --grid-weight: 1px;
  --grid-weight-min: 1px;
  position: absolute;
  animation: move 1.5s linear infinite !important;
  box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, #09090b 0px 0px 80px 48px inset;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: 1000px;
  background-size: var(--grid-size) var(--grid-size);
  background-image: linear-gradient(90deg, #8882 1px, transparent 0), linear-gradient(180deg, #8882 1px, transparent 0);
  background-position: 15px 0;
}
@keyframes move {
  0% {
    transform: translate(0);
  }
  to {
    transform: translateY(-48px);
  }
}
body[data-color-scheme=light] uix-sitemap img, body[data-color-scheme=light] uix-homepage-header img {
  filter: brightness(0);
}
body[data-color-scheme=light] .grid {
  box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, white 0px 0px 80px 48px inset !important;
}
body a {
  text-decoration: none;
  color: var(--accent);
}
body .error-page {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100svh;
  flex-direction: column;
  text-align: center;
  width: calc(100% - 20px);
  margin: auto;
}
body .error-page > h1 {
  margin: 0;
  font-size: 70px;
}
body .error-page > span {
  font-size: x-large;
  opacity: 0.8;
}
body .error-page > a {
  padding: 14px 20px;
  border: 2px solid var(--accent);
  background-color: var(--accent);
  transition: color 0.2s, background-color 0.2s;
  margin-top: 20px;
  color: white;
  border-radius: 10px;
}
body .error-page > a:hover {
  background-color: transparent;
  color: var(--accent);
}
body .error-page .grid {
  height: 100svh;
  border-radius: 0px;
  width: 100vw;
}
body blockquote:has(div[data-type]) {
  border: none;
}

#overview uix-article-view:has(a:hover) img {
  contain: layout;
  view-transition-name: preview-image;
}

uix-article #articleHeaderContainer img#articleImage {
  contain: layout;
  view-transition-name: preview-image;
}

::view-transition-group(preview-image) {
  animation-duration: 0.5s;
}
