html {
  background-color: #0b0f1a;
}

@media (prefers-reduced-motion: no-preference) {
  body {
    animation: pageFadeIn 0.35s ease both;
  }

  body.page-leaving {
    animation: none;
    opacity: 0;
    transition: opacity 0.22s ease;
  }
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

[data-i18n],
#notFoundText,
#homeLink {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

body.lang-switching [data-i18n] {
  opacity: 0;
  transform: translateY(6px);
}

body.lang-switching #notFoundText,
body.lang-switching #homeLink {
  opacity: 0;
  transform: translateY(6px);
}

@media (prefers-reduced-motion: reduce) {
  [data-i18n],
  #notFoundText,
  #homeLink {
    transition: none;
  }
}
