@font-face {
  font-family: 'Fustat';
  src: url('/static/fonts/Fustat-VariableFont_wght.ttf') format('truetype');
}

:root {
  color-scheme: light;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Fustat', 'Roboto', Arial, Helvetica, sans-serif !important;
  touch-action: manipulation;
  scroll-behavior: smooth;
  min-height: 100svh;
  margin: 0;
}

/* Toasts */
.toast {
  animation: toast-hide 5s ease;
  animation-fill-mode: forwards;
}

.toast-item {
  overflow: hidden;
  transform-origin: right center;
}

.toast-close {
  display: none;
}

.toast-close:checked + .toast-item {
  opacity: 0;
  height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  pointer-events: none;
  transition: 0.5s ease;
}

@keyframes toast-hide {
  from,
  95% {
    opacity: 1;
    pointer-events: all;
  }
  to {
    opacity: 0;
    pointer-events: none;
  }
}

.errorlist li {
  font-size: 0.7rem;
  margin-top: 4px;
  font-weight: 500;
}
