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

html,
body {
  padding: 0;
  margin: 0;
  width: 100vw;
  height: 100vh;
  color: #a9b6c3;
  background-color: #1c2128;
  font-family: "DM Sans", "sans-serif";
}

a {
  color: inherit;
  text-decoration: none;
}

* {
  box-sizing: border-box;
}

/* Width */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #1a1a19;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #707179;
  border-radius: 4px;
}

/* Handle on Hover */
::-webkit-scrollbar-thumb:hover {
  background: #707179;
  border-radius: 4px;
}

@layer utilities {
  .fix-justify {
    word-spacing: -2px;
    word-break: keep-all;
  }

  .webkit-rm-scrollbar::-webkit-scrollbar {
    width: 0px;
  }
}

.quick-search-bar {
  grid-auto-columns: 1fr;
  grid-template-columns: 0.1fr 2fr 0.1fr;
  grid-template-rows: 0.1fr;
  box-shadow: 0px 12px 24px 2px rgb(60 60 35 / 10%);
}

.banner {
  margin-top: 0;
  background-position: 50% 35%;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.3);
}

.h-under-banner {
  height: calc(35rem - 360px);
}

.ul-spacing li:not(:last-child) {
  margin-bottom: 6px;
}

.bind-episode-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.loading {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: solid 4px;
  border-color: #ffffff #ffffff10 #ffffff10;
  position: relative;
  animation-name: spin;
  animation-duration: 1s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
