@import url(custom-classes.css);

body {
  /* margin-top: 56px; */
  color: var(--text-dark);
  background-color: var(--bg-light);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* mouse wheel start  */
.mouse_scroll {
  display: block;
  margin: 0 auto;
  width: 24px;
  /* height: 100px; */
  /* margin-top: 125px; */
  cursor: pointer;

  & .m_scroll_arrows {
    display: block;
    width: 5px;
    height: 5px;
    -ms-transform: rotate(45deg);
    /* IE 9 */
    -webkit-transform: rotate(45deg);
    /* Chrome, Safari, Opera */
    transform: rotate(45deg);

    border-right: 2px solid white;
    border-bottom: 2px solid white;
    margin: 0 0 3px 4px;

    width: 16px;
    height: 16px;
  }

  & .unu {
    margin-top: 1px;
  }

  & .unu,
  .doi,
  .trei {
    -webkit-animation: mouse-scroll 1s infinite;
    -moz-animation: mouse-scroll 1s infinite;
    animation: mouse-scroll 1s infinite;
  }

  & .unu {
    -webkit-animation-delay: 0.1s;
    -moz-animation-delay: 0.1s;
    -webkit-animation-direction: alternate;

    animation-direction: alternate;
    animation-delay: alternate;
  }

  & .doi {
    -webkit-animation-delay: 0.2s;
    -moz-animation-delay: 0.2s;
    -webkit-animation-direction: alternate;

    animation-delay: 0.2s;
    animation-direction: alternate;

    margin-top: -6px;
  }

  & .trei {
    -webkit-animation-delay: 0.3s;
    -moz-animation-delay: 0.3s;
    -webkit-animation-direction: alternate;

    animation-delay: 0.3s;
    animation-direction: alternate;

    margin-top: -6px;
  }

  & .mouse {
    height: 42px;
    width: 24px;
    border-radius: 14px;
    transform: none;
    border: 2px solid white;
    top: 170px;
  }

  & .wheel {
    height: 5px;
    width: 2px;
    display: block;
    margin: 5px auto;
    background: white;
    position: relative;

    height: 4px;
    width: 4px;
    border: 2px solid #fff;
    -webkit-border-radius: 8px;
    border-radius: 8px;
  }

  & .wheel {
    -webkit-animation: mouse-wheel 0.6s linear infinite;
    -moz-animation: mouse-wheel 0.6s linear infinite;
    animation: mouse-wheel 0.6s linear infinite;
  }

  &.dark {

    & .m_scroll_arrows,
    .mouse,
    .wheel {
      border-color: var(--primary-color) !important;
    }

    & .wheel {
      background: var(--primary-color);
    }
  }
}

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

/* Track */
::-webkit-scrollbar-track {
  background: var(--accent-color);
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--primary-color);

  &:hover {
    background: #555;
  }
}

/* Handle on hover */
@-webkit-keyframes mouse-wheel {
  0% {
    opacity: 1;
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    -webkit-transform: translateY(6px);
    -ms-transform: translateY(6px);
    transform: translateY(6px);
  }
}

@-moz-keyframes mouse-wheel {
  0% {
    top: 1px;
  }

  25% {
    top: 2px;
  }

  50% {
    top: 3px;
  }

  75% {
    top: 2px;
  }

  100% {
    top: 1px;
  }
}

@-o-keyframes mouse-wheel {
  0% {
    top: 1px;
  }

  25% {
    top: 2px;
  }

  50% {
    top: 3px;
  }

  75% {
    top: 2px;
  }

  100% {
    top: 1px;
  }
}

@keyframes mouse-wheel {
  0% {
    top: 1px;
  }

  25% {
    top: 2px;
  }

  50% {
    top: 3px;
  }

  75% {
    top: 2px;
  }

  100% {
    top: 1px;
  }
}

@-webkit-keyframes mouse-scroll {
  0% {
    opacity: 0;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }
}

@-moz-keyframes mouse-scroll {
  0% {
    opacity: 0;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }
}

@-o-keyframes mouse-scroll {
  0% {
    opacity: 0;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }
}

@keyframes mouse-scroll {
  0% {
    opacity: 0;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }
}

/* mouse wheel end */
nav {
  z-index: 1000;

  & .navbar-toggler {
    color: #fff !important;

    & i {
      color: #fff !important;
    }
  }

  & ul.navbar-nav {
    & li:last-child {
      min-width: 100px;
      text-align: center;
    }
  }
}

#mobileMenu {
  & img {
    filter: grayscale(1) brightness(4.5);
  }

  & .nav-link {
    color: #fff !important;
    font-weight: bold;
    font-size: 20px;
  }
}

.landing-header {
  background: var(--gradient);
  position: relative;
  overflow: hidden;
}

button {
  &:where(:focus, :focus-visible) {
    outline: none !important;
    box-shadow: unset !important;
  }
}

#tools {
  @media (max-width: 500px) {
    overflow-y: scroll;
    height: auto !important;
  }

  & .toolsList {
    /* @media (min-width: 1024px) {
      &:hover .tool-wrap {
        filter: blur(4px);
        transition: 0.3s;
      }
    } */

    & .tool-wrap {
      border: 1px solid;
      height: 200px;
      border-radius: 10px;
      align-content: center;
      position: relative;
      transition: 0.3s;

      @media (max-width: 500px) {
        height: 20vh;
      }

      &:hover {
        filter: none;
        transition: 0.3s;
        scale: 0.95;
      }

      &:has(a[comingSoon]) {
        &::before {
          content: "";
          position: absolute;
          top: 0;
          left: 50%;
          transform: translateX(-50%);
          width: 100%;
          height: 70%;
          text-align: center;
          font-size: 12px;
          /* background: midnightblue; */
          font-weight: bold;
          /* border-radius: 0 0 50px 50px; */
          padding: 2px 0;
          background-image: url("../images/coming-soon.png");
          background-size: contain;
          background-repeat: no-repeat;
          background-position: center;

          @media (max-width: 500px) {
            height: 45%;
          }
        }

        & img {
          visibility: hidden;
        }
      }

      & a {
        display: block;
        text-align: center;

        & h4 {
          font-size: 15px;
          color: white;
          padding: 0 5px;
          height: 40px;
          align-content: center;

          @media (max-width: 500px) {
            font-size: 14px;
          }
        }

        & .tool-img {
          width: 70px;
          aspect-ratio: 1;
          display: block;
          margin: 0 auto;
          object-fit: contain;

          @media (max-width: 500px) {
            width: 40px;
          }
        }
      }
    }
  }
}

#faqAccordion {
  & .accordion-button:not(.collapsed) {
    background: var(--gradient);
    color: #fff;
    font-weight: bold;
    border-top-left-radius: 20px;

    &::after {
      filter: grayscale(1) brightness(100) contrast(100);
    }
  }

  &.full {
    & .accordion-wrap {
      margin-bottom: 10px;
      box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;

      & .accordion-button:not(.collapsed) {
        border-top-left-radius: 0;
      }
    }
  }
}

section.toolsList {
  & .tool-wrap {
    border-radius: 30px;

    & .img-wrap {
      width: 100px;
      aspect-ratio: 1;
      overflow: hidden;
      margin: 0 auto;

      & img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }

    & .content {
      border-radius: 20px;
      padding: 20px;

      & .morePara {
        display: none;
      }

      @media (max-width: 500px) {
        & p {
          font-size: 12px;

          &.morePara {
            text-align: justify;
          }
        }
      }
    }

    &:has(a[comingSoon="true"]) {
      & .content {
        &::before {
          content: "Coming Soon";
          position: absolute;
          left: 50%;
          transform: translateX(-50%);
          top: 0;
          background: red;
          color: #fff;
          padding: 3px 15px;
          font-weight: bold;
          border-radius: 0 0 10px 10px;
          box-shadow: 0px 5px 11px 1px gray;
        }
      }
    }
  }
}

[db] {
  & nav.navbar {
    height: 60px;
  }

  & footer {
    height: 50px;
  }

  & .page-content {
    width: 100%;
    /* margin: 0 auto; */
    min-height: calc(100vh - 110px);
    /* padding: 20px; */
  }

  .accordion-button:not(.collapsed) {
    background: var(--gradient);
    box-shadow: unset;
    color: #fff;

    &::after {
      filter: brightness(10) grayscale(10) contrast(10);
    }
  }

  .form-check-input {
    box-shadow: unset;

    &:checked {
      background-color: var(--primary-color);
      border-color: var(--primary-color);
    }
  }
}

[comingSoon] {
  position: relative;

  &::before {
    content: "Coming Soon";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    background: #ab0000;
    color: #fff;
    padding: 3px 15px;
    font-weight: bold;
    border-radius: 0 0 5px 5px;
    box-shadow: 0px 5px 11px 1px gray;
    font-size: 12px;
  }
}

.sidebar {
  & .accordion-item {
    & li {
      border-right: 3px solid transparent;
      transition: 0.3s;

      &:hover {
        border-right: 3px solid var(--accent-color);
        transition: 0.3s;
        font-weight: 600;
      }

      &.active {
        border-left: 3px solid var(--accent-color);
        font-weight: bold;
      }
    }

    & .accordion-button {
      &:not(.collapsed) {
        color: #fff;
        background-color: var(--primary-color);
        box-shadow: unset;
      }

      &::after {
        content: "\f077";
        font-family: "Font Awesome\ 5 Free";
        color: var(--accent-color);
        background-image: unset;
        font-size: 12px;
      }

      &:not(.collapsed)::after {
        transform: scaleY(-1);
      }
    }
  }
}

.uploader {
  background-image: url("../images/upload.svg");
  width: 100%;
  /* aspect-ratio: 1; */
  height: 140px;
  background-size: 100px;
  background-repeat: no-repeat;
  border: 2px dashed var(--primary-color);
  border-radius: 20px;
  background-position: center bottom;
  position: relative;
  transition: 0.3s;

  &::before {
    content: attr(uploader-text);
    text-align: center;
    width: 100%;
    display: block;
    margin-top: 15px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--primary-color);
  }

  &:hover {
    background-color: var(--accent-color);
    transition: 0.3s;
  }
}

.search-wrap {
  z-index: 111;

  & .search-result {
    max-height: 250px;
    overflow-y: auto;
    transition: 0.3s;
  }

  &[homepage] {
    & input {
      padding: 10px;
      background-color: #adbcc624;
      box-shadow: inset 0 0 20px -15px;
    }
  }

  & input {
    border-radius: 50px;
    transition: 0.3s;

    &:focus {
      border-radius: 0px;
      transition: 0.3s;
      outline: unset !important;
      box-shadow: unset !important;
      border: unset !important;

      &+.search-result {
        transition: 0.3s;
      }
    }
  }
}

.loader-wrap {
  width: 100%;
  height: 100vh;
  display: grid;
  place-content: center;
  position: fixed;
  z-index: 99999;
  background-color: rgba(0, 0, 0, 0.753);
  backdrop-filter: blur(5px);

  & .loader {
    width: 64px;
    height: 64px;
    position: relative;
    background-image: linear-gradient(#fff 16px, transparent 0),
      linear-gradient(var(--primary-color) 16px, transparent 0),
      linear-gradient(var(--primary-color) 16px, transparent 0),
      linear-gradient(#fff 16px, transparent 0);
    background-repeat: no-repeat;
    background-size: 16px 16px;
    background-position: left top, left bottom, right top, right bottom;
    animation: rotate 1s linear infinite;
  }
}

@keyframes rotate {
  0% {
    width: 64px;
    height: 64px;
    transform: rotate(0deg);
  }

  50% {
    width: 30px;
    height: 30px;
    transform: rotate(180deg);
  }

  100% {
    width: 64px;
    height: 64px;
    transform: rotate(360deg);
  }
}

.loader-card {
  /* width: 320px; */
  height: 150px;
  margin: auto;
  display: block;
  position: relative;
  background: #fff;
  box-sizing: border-box;

  &::after {
    content: "";
    width: calc(100% - 30px);
    height: calc(100% - 30px);
    top: 15px;
    left: 15px;
    position: absolute;
    background-image: linear-gradient(100deg,
        transparent,
        rgba(255, 255, 255, 0.5) 50%,
        transparent 80%),
      linear-gradient(#ddd 56px, transparent 0),
      linear-gradient(#ddd 24px, transparent 0),
      linear-gradient(#ddd 18px, transparent 0),
      linear-gradient(#ddd 66px, transparent 0);
    background-repeat: no-repeat;
    background-size: 75px 130px, 55px 56px, 160px 30px, 260px 20px, 290px 56px;
    background-position: 0% 0, 0 0, 70px 5px, 70px 38px, 0px 66px;
    box-sizing: border-box;
    animation: animloader 1s linear infinite;
  }
}

@keyframes animloader {
  0% {
    background-position: 0% 0, 0 0, 70px 5px, 70px 38px, 0px 66px;
  }

  100% {
    background-position: 150% 0, 0 0, 70px 5px, 70px 38px, 0px 66px;
  }
}

.drop-area {
  border: 2px dashed var(--primary-color);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  /* height: 150px; */
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: 0.3s;

  &.dragging {
    background-color: var(--accent-color) !important;
    color: #fff;
    border-color: var(--primary-color) !important;
    transition: 0.3s;
  }
}

#tool-body {
  min-height: 300px;
  padding: 20px;
  align-content: center;
}

#tool-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  margin: 10px 0;
}

.slick-slide {
  height: auto !important;
}

#template-cards {
  & .card {
    cursor: pointer;

    & .template-preview {
      aspect-ratio: 1/1.3;
      object-fit: cover;
    }

    & .card-body {
      position: absolute;
      bottom: 0;
      left: 0;

      width: 100%;
      backdrop-filter: blur(2px);
      color: #fff;
      height: 0px;
      overflow: hidden;
      transition: 0.3s;
      padding: 0px;
      opacity: 0;

      &::before {
        content: "";
        width: 100%;
        height: 100%;
        background-color: var(--accent-color);
        opacity: 0.7;
        position: absolute;
        left: 0;
        top: 0;
        z-index: -1;
      }

      & h6.small {
        font-size: 10px;
      }
    }

    &:hover .card-body {
      height: auto;
      transition: 0.3s;
      padding: 20px 10px;
      opacity: 1;
    }
  }
}

.customDD {
  & ul {
    background-color: white;
    z-index: 9999999999;
    max-height: 200px;
    overflow-y: scroll;
    display: none;

    & li {
      font-size: 14px;
      padding: 5px;
      cursor: pointer;

      &:hover {
        background-color: var(--primary-color);
        color: white;
      }
    }
  }
}

.skeleton {
  background: #cacaca;
  border-radius: 4px;
  position: relative;
  overflow: hidden;

  &.resume {
    height: 250px;
    width: 100%;

    &::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, #cacaca 25%, #e0e0e0 50%, #cacaca 75%);
      animation: skeleton-loading 1.5s infinite linear;
    }
  }
}

@keyframes skeleton-loading {
  0% {
    transform: translateX(-100%);
  }

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

#authModal {
  backdrop-filter: blur(5px);

  & [authImage] {
    min-height: 50vh;
    background-color: var(--accent-color);
    position: relative;

    &::before {
      content: "";
      background-image: url("../images/icons.webp");
      background-repeat: no-repeat;
      background-size: cover;
      width: 100%;
      height: 100%;
      position: absolute;
      mix-blend-mode: screen;
      opacity: 0.5;
      filter: invert(1);
    }

    & img {
      filter: drop-shadow(0px 0px 10px var(--accent-color)) drop-shadow(0px 0px 20px var(--accent-color));
    }
  }
}

[hero] {
  /* background-image: url("../images/hero-bg.svg"); */
  min-height: 100vh;
  align-content: center;
}

.shade {
  position: relative;

  &::before {
    content: "";
    width: 20%;
    aspect-ratio: 1;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    filter: blur(75px);
    opacity: 0.7;
    box-shadow: 0 0 50px var(--primary-color);
  }

  &.c::before {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  &.cb::before {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
  }

  &.ct::before {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
  }

  &.lt::before {
    top: 0;
    left: 0;
  }

  &.lc::before {
    top: 50%;
    transform: translateY(-50%);
    left: 0;
  }

  &.lb::before {
    bottom: 0;
    left: 0;
  }

  &.rt::before {
    top: 0;
    right: 0;
  }

  &.rc::before {
    top: 50%;
    transform: translateY(-50%);
    right: 0;
  }

  &.rb::before {
    bottom: 0;
    right: 0;
  }
}

.png-background {
  img {
    border-radius: 100px 10px;
  }
}