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

@layer base {
  .paused {
    animation-play-state: paused;
  }

  :root {
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;
    --card: 0 0% 100%;
    --card-foreground: 222.2 84% 4.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 222.2 84% 4.9%;
    --primary: 221.2 83.2% 53.3%;
    --primary-foreground: 210 40% 98%;
    --secondary: 210 40% 96.1%;
    --secondary-foreground: 222.2 47.4% 11.2%;
    --muted: 210 40% 96.1%;
    --muted-foreground: 215.4 16.3% 46.9%;
    --accent: 210 40% 96.1%;
    --accent-foreground: 222.2 47.4% 11.2%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;
    --border: 214.3 31.8% 91.4%;
    --input: 214.3 31.8% 91.4%;
    --ring: 221.2 83.2% 53.3%;
    --radius: 1rem;
    --chart-1: 12 76% 61%;
    --chart-2: 173 58% 39%;
    --chart-3: 197 37% 24%;
    --chart-4: 43 74% 66%;
    --chart-5: 27 87% 67%;
  }

  .dark {
    --background: 222.2 84% 4.9%;
    --foreground: 210 40% 98%;
    --card: 222.2 84% 4.9%;
    --card-foreground: 210 40% 98%;
    --popover: 222.2 84% 4.9%;
    --popover-foreground: 210 40% 98%;
    --primary: 217.2 91.2% 59.8%;
    --primary-foreground: 222.2 47.4% 11.2%;
    --secondary: 217.2 32.6% 17.5%;
    --secondary-foreground: 210 40% 98%;
    --muted: 217.2 32.6% 17.5%;
    --muted-foreground: 215 20.2% 65.1%;
    --accent: 217.2 32.6% 17.5%;
    --accent-foreground: 210 40% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;
    --border: 217.2 32.6% 17.5%;
    --input: 217.2 32.6% 17.5%;
    --ring: 224.3 76.3% 48%;
    --chart-1: 220 70% 50%;
    --chart-2: 160 60% 45%;
    --chart-3: 30 80% 55%;
    --chart-4: 280 65% 60%;
    --chart-5: 340 75% 55%;
  }
}

@layer base {
  * {
    @apply border-border;
  }

  body {
    @apply bg-background text-foreground;
  }

  button,
  [role='button'],
  a {
    user-select: none;
  }
}

.animate-strokedasharray {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: dash 15s ease-in-out forwards;
}

@keyframes dash {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

.wrapper {
  margin-top: 2rem;
  width: 90%;
  max-width: 1536px;
  margin-inline: auto;
  height: 200px;
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 1) 5%,
    rgba(0, 0, 0, 1) 95%,
    rgba(0, 0, 0, 0)
  );
}

.itemLeft img {
  height: 100%;
  width: 100%;
  border-radius: 10px;
}

.itemRight img {
  height: 100%;
  width: 100%;
  border-radius: 10px;
}

@keyframes scrollLeft {
  to {
    left: -200px;
  }
}

@keyframes scrollRight {
  to {
    right: -200px;
  }
}

.itemLeft,
.itemRight {
  width: 200px;
  height: 180px;
  /* background-color: #e11d48; */
  border-radius: 10px;
  position: absolute;
  animation-timing-function: linear;
  animation-duration: 30s;
  animation-iteration-count: infinite;
}

.itemLeft {
  left: max(calc(200px * 8), 100%);
  animation-name: scrollLeft;
}

.itemRight {
  right: max(calc(200px * 8), calc(100% + 200px));
  animation-name: scrollRight;
}

.item1 {
  animation-delay: calc(30s / 8 * (8 - 1) * -1);
}

.item2 {
  animation-delay: calc(30s / 8 * (8 - 2) * -1);
}

.item3 {
  animation-delay: calc(30s / 8 * (8 - 3) * -1);
}

.item4 {
  animation-delay: calc(30s / 8 * (8 - 4) * -1);
}

.item5 {
  animation-delay: calc(30s / 8 * (8 - 5) * -1);
}

.item6 {
  animation-delay: calc(30s / 8 * (8 - 6) * -1);
}

.item7 {
  animation-delay: calc(30s / 8 * (8 - 7) * -1);
}

.item8 {
  animation-delay: calc(30s / 8 * (8 - 8) * -1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .wrapper {
    height: 150px;
  }

  .itemLeft,
  .itemRight {
    width: 150px;
    height: 130px;
  }

  .itemLeft {
    left: max(calc(150px * 8), 100%);
  }

  .itemRight {
    right: max(calc(150px * 8), calc(100% + 150px));
  }
}

@media (max-width: 480px) {
  .wrapper {
    height: 100px;
  }

  .itemLeft,
  .itemRight {
    width: 100px;
    height: 80px;
  }

  .itemLeft {
    left: max(calc(100px * 8), 100%);
  }

  .itemRight {
    right: max(calc(100px * 8), calc(100% + 100px));
  }
}

.scroll-container {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  position: relative;
}

.scroll-content {
  display: flex;
  animation: scroll 30s linear infinite;
}

.scroll-content::after {
  content: '';
  display: flex;
  animation: scroll 30s linear infinite;
}

.scroll-content a {
  flex: 0 0 auto;
}

@keyframes scroll {
  0% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* For small devices */
@media (max-width: 600px) {
  .scroll-content,
  .scroll-content::after {
    animation: scroll-small 1s linear infinite;
  }

  @keyframes scroll-small {
    0% {
      transform: translateX(0%);
    }

    100% {
      transform: translateX(-50%);
    }
  }
}

.loader {
  border: 8px solid #f3f3f3;
  border-radius: 50%;
  border-top: 8px solid #3498db;
  width: 40px;
  height: 40px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Custom styles for Quill editor */
html.dark.ql-toolbar.ql-snow {
  border: none !important;
  background-color: #1f2937 !important;
  border-bottom: 1px solid #374151 !important;
}

.ql-toolbar.ql-snow {
  border: none !important;
  border-bottom: 1px solid #a9aaac !important;
}

.ql-container.ql-snow {
  border: none !important;
  max-height: 30rem !important;
  white-space: wrap !important;
  width: '100%' !important;
  /* Set a fixed height */
  overflow-y: auto;
  /* Hide vertical overflow */
  overflow-x: auto;
  /* Allow horizontal scrolling */
}

.ql-editor.ql-blank::before {
  color: #6b7280 !important;
}

.ql-snow .ql-stroke {
  stroke: #9ca3af !important;
}

.ql-snow .ql-fill {
  fill: #9ca3af !important;
}

.ql-snow .ql-picker {
  color: #9ca3af !important;
}

/* Ensure the editor takes up full width of its container */
.job-description-editor {
  width: 100% !important;
}

/* Ensure long content does not wrap within the editor */
.job-description-editor .ql-editor {
  min-height: 6rem;
  white-space: nowrap !important;
  overflow-x: auto !important; /* Allow horizontal scrolling */
  overflow-y: hidden !important; /* Hide vertical overflow */
}

.pac-container {
  background-color: black !important;
  color: #fff;
  border-radius: 8px;
  padding-top: 5px;
  padding-bottom: 5px;
  font-family: '__Inter_36bd41', '__Inter_Fallback', sans-serif !important;
  font-size: 14px !important;
}

.pac-item {
  color: #fff !important;
  border: none;
  font-size: 14px;
}

.pac-item:hover {
  background-color: hsl(0, 0%, 14.9%) !important;
  cursor: pointer;
}

.pac-item-query {
  color: white;
  font-weight: bold;
}

.pac-logo.hdpi::after {
  content: none;
}

html {
  scroll-behavior: smooth;
}

.career-span {
  display: inline-block;
  transform: rotate(-2deg);
}

.react-tweet-theme {
  height: 100%;
}
.tweet-container_article__0ERPK {
  height: 100%;
}
html {
  scroll-behavior: smooth;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
