@tailwind base;
@tailwind components;
@tailwind utilities;

@media (prefers-color-scheme: dark) {
  html {
    color-scheme: dark;
  }
  body {
    color: white;
    background: #1c1c1c;
  }
}

#modal-root {
  display: flex;
  justify-content: center;
}

.prevent-scroll {
  overflow: hidden;
}

.modal {
  background: #1d1d1c;
  width: 100%;
  height: 100%;
  top: 100%;
  transition: top 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.open {
  top: 0;
}

.spinner {
  display: inline-block;
  width: 80px;
  height: 80px;
}

.spinner:after {
  content: " ";
  display: block;
  width: 64px;
  height: 64px;
  margin: 8px;
  border-radius: 50%;
  border: 6px solid #fff;
  border-color: #fff transparent #fff transparent;
  animation: lds-dual-ring 1.2s linear infinite;
}

@keyframes lds-dual-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}