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

/* ::-webkit-scrollbar {
  width: 5px;
} */

/* ::-webkit-scrollbar-track {
  box-shadow: inset 0 0 2px grey;
} */

/* ::-webkit-scrollbar-thumb {
  background: var(--ifm-color-primary);
  border-radius: 3px;
} */

/* ::-webkit-scrollbar-thumb:hover {
  background: var(--ifm-color-primary-dark);
} */

:root {
  --ifm-color-primary: #2e93e2;
  --ifm-color-primary-dark: #29784c;
  --ifm-color-primary-darker: #277148;
  --ifm-color-primary-darkest: #205d3b;
  --ifm-color-primary-light: #33925d;
  --ifm-color-primary-lighter: #359962;
  --ifm-color-primary-lightest: #3cad6e;
  --ifm-code-font-size: 95%;
  --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
  --ifm-task-complete-color: #2e9e32e1;
  --ifm-task-incomplete-color: #3d78cbe1;
  --ifm-bg-color: #f8f9fa;
  --image-filter: invert(0);
  --site-color-svg-icon-favorite: #ff1100cb;
  --ifm-text-color: #000;
}

[data-theme="dark"] {
  --ifm-color-primary: #48bf84;
  --ifm-color-primary-dark: #21af90;
  --ifm-color-primary-darker: #1fa588;
  --ifm-color-primary-darkest: #1a8870;
  --ifm-color-primary-light: #29d5b0;
  --ifm-color-primary-lighter: #32d8b4;
  --ifm-color-primary-lightest: #4fddbf;
  --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
  --ifm-task-complete-color: #25c2a0;
  --ifm-task-incomplete-color: #3d78cbe1;
  --ifm-bg-color: #1a202c;
  --image-filter: invert(1);
  --site-color-svg-icon-favorite: #ff9100e5;
  --ifm-text-color: #fff;
}

body {
  background-image: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.575)
    ),
    url("/landing/grid-light.svg");
}

[data-theme="dark"] body {
  background-image: url("/landing/grid-dark.svg");
}

.header-github-link::before {
  content: "";
  width: 24px;
  height: 24px;
  display: flex;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E")
    no-repeat;
}

[data-theme="dark"] .header-github-link::before {
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='white' d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E")
    no-repeat;
}

[data-theme="dark"] .invert img {
  filter: invert(82%);
}

div[class^="announcementBar_"] {
  color: #fff;
  border-bottom: 1.8px dotted rgb(37, 184, 11);
  font-weight: bold;
  font-size: 18px;
  width: 100%;
  height: auto;
  padding-top: 10px;
  padding-bottom: 10px;
  text-align: center;
}

div[class^="announcementBar_"] a {
  font-size: 1.2em;
  padding: 1px 4px;
  /* background: linear-gradient(
    90deg,
    rgb(252 176 69 / 100%) 0%,
    rgb(253 29 29 / 100%) 50%,
    rgb(229, 223, 232) 100%
  );
  background-clip: text;
  -webkit-text-fill-color: transparent; */
  text-decoration: none;
  color: #48df84;
}

div[class^="announcementBar_"] a:hover {
  font-size: 1.2em;
  padding: 1px 4px;
  background: linear-gradient(
    90deg,
    rgb(235, 244, 243) 0%,
    #7ab3c8 50%,
    rgb(252 176 69 / 100%) 100%
  );
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] div[class^="announcementBar_"] a {
  font-size: 1.2em;
  padding: 1px 4px;
  /* background: linear-gradient(
    90deg,
    rgb(131 58 180 / 100%) 0%,
    rgb(253 29 29 / 100%) 50%,
    rgb(252 176 69 / 100%) 100%
  );
  background-clip: text;
  -webkit-text-fill-color: transparent; */
  text-decoration: none;
  color: #48df84;
}

[data-theme="dark"] div[class^="announcementBar_"] a:hover {
  font-size: 1.2em;
  padding: 1px 4px;
  background: linear-gradient(
    90deg,
    rgb(252 176 69 / 100%) 0%,
    rgb(253 29 29 / 100%) 50%,
    rgb(220, 203, 232) 100%
  );
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

div[class^="announcementBar_"] .clean-btn {
  color: #ffe11c;
  opacity: 100%;
}

.navbar__logo img {
  border-radius: 4px;
}

mark {
  padding: 0.1em;
  border-radius: 0.2em;
}

.hero__title {
  animation: fadeIn 2s;
  animation-fill-mode: forwards;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.hero__subtitle {
  transition: transform 0.5s;
  animation: fadeIn 4s;
  animation-fill-mode: forwards;
}

.hero__subtitle:hover {
  transform: scale(1.1);
}

.gradient-text {
  background: linear-gradient(
    90deg,
    rgb(255, 169, 8) 0%,
    rgb(246, 41, 41) 40%,
    rgb(152, 0, 255) 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.typing_text {
  animation: typing 3s steps(40, end);
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid;
  margin: auto auto 20px auto;
  font-size: 1.5em;
  animation-fill-mode: forwards;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 300px;
  }
}

.footer-link {
  position: relative;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-link::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -2px; /* Adjust based on text alignment */
  left: 0;
  background-color: #f0db4f;
  visibility: hidden;
  transform: scaleX(0);
  transition: all 0.3s ease-in-out;
}

.footer-link:hover::after {
  visibility: visible;
  transform: scaleX(1);
}

@media screen and (min-width: 997px) {
  .nav-emoji {
    display: none;
  }
}

@media screen and (min-width: 1205px) {
  .nav-emoji {
    display: inline-block;
  }
}

.navbar__title {
  font-size: 1.2em;
  padding: 1px 4px;
  background: linear-gradient(
    90deg,
    rgb(252 176 69 / 100%) 0%,
    rgb(253 29 29 / 100%) 50%,
    rgb(131 58 180 / 100%) 100%
  );
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dropbtn {
  width: 110px;
  background-color: transparent;
  color: var(--ifm-color-primary);
  padding: 14px;
  font-size: 18px;
  border: none;
  cursor: pointer;
  border-right: 1px solid #4e8da0db;
  margin: 2px;
}

.dropdown_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.dropdown-content {
  position: relative;
  min-width: 180px;
}
@media (max-width: 400px) {
  .dsa-content {
    flex-direction: column;
  }
}
.dropdown-content a:hover {
  text-decoration: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(252, 176, 69, 0.285) 50%,
    rgba(253, 29, 29, 0.33) 100%
  );
  border-radius: 50% 40%;
}

.nav__icons img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
}

.row .col .card {
  margin-top: 10px;
}

.yt-lite {
  border-radius: 8px;
}

/* [data-theme="dark"] #__docusaurus_skipToContent_fallback {
  background: linear-gradient(rgba(15, 23, 42, 0.796), rgba(15, 23, 42, 0.23));
} */
[data-theme="dark"] .navbar {
  background: rgba(15, 23, 42, 0.862);
  border-bottom: 1px solid #4e8da0db;
}