@import url("https://fonts.googleapis.com/css2?family=Russo+One&display=swap");

:root {
  --font: "Oleo Script", system-ui;
  --primary-color: #1a1a1a;
  --body-color: #101010;
  --secondary-color: #010101;
  --contrast-color: #0d6efd;
  --hover-text-color: #e2e2e2;
  --text-color: white;
  --gradient: linear-gradient(45deg, rgba(121, 114, 219, 0.75), rgb(121, 114, 219), rgba(121, 114, 219, 0.6));
}
/* width */
::-webkit-scrollbar {
  width: 7px;
  height: 10px;
}
/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

.font-russo {
  font-family: "Russo One", sans-serif;
}

body.addon {
  background-color: var(--body-color);
  &::before {
    content: "";
    background-image: url("../images/hero-section-bg.webp");
    /* background-size: cover; */
    /* background-repeat: no-repeat; */
    background-position: center;
    position: fixed;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    z-index: -10;
  }
  &::after {
    background: linear-gradient(180deg, black, var(--contrast-color));
    content: "";
    position: fixed;
    width: 100%;
    height: 100vh;
    z-index: -999999999;
    opacity: 0.5;
    left: 0;
    top: 0;
  }
}
#navbar {
  .navbar-brand {
    & img.main_logo {
      height: 50px;
    }
  }
  & .nav-link {
    color: #fff !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;
    }
  }
}
.sideMenu {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  & ul li {
    cursor: pointer;
    position: relative;

    & .content {
      position: absolute;
      background: white;
      top: 50%;
      left: -500px;
      transform: translateY(-50%);
      opacity: 0;
      z-index: -1;
      transition: 0.3s;
    }

    & span.btnIcon {
      background: var(--body-color);
      color: white;
      width: 50px;
      aspect-ratio: 1;
      display: inline-block;
      text-align: center;
      line-height: 50px;
    }
  }
  & li:hover .content {
    left: 50px;
    transition: 0.3s;
    opacity: 1;
  }
}

*[contenteditable]:hover,
*[contenteditable]:focus-visible {
  border: 1px solid;
  cursor: pointer;
  outline: none;
}

[id$="-wrap"]:not(.off) {
  width: fit-content;
}

.cursor-pointer {
  cursor: pointer;
}

.btnAdd {
  /* color: #000; */
  font-size: 14px;
  cursor: pointer;
}

.btnAdd::after {
  content: "\2b";
  font-family: "Font Awesome 5 Free";
}

.btnRemove {
  color: #f56262;
  font-size: 14px;
  cursor: pointer;
}

.btnRemove::after {
  content: "\f2ed";
  font-family: "Font Awesome 5 Free";
}

section:hover {
  border: 1px dashed #f56262;
}
body.share {
  section:hover {
    border: unset;
  }
}
.main-container {
  & .content {
    height: 100%;
  }
}
section {
  position: relative;
  overflow: hidden;
}

.actionButtons {
  display: flex;
  justify-content: center;
  position: absolute;
  top: 0;
  right: 5%;
  /* transform: translateX(-50%); */
  gap: 5px;
  flex-direction: row-reverse;
}
.sectionRemove {
  /* position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%); */
  background: #f56262d0;
  cursor: pointer;
  display: none;
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 0 0 5px 5px;
  z-index: 9999;
  user-select: none;
}

.btn-drag {
  /* position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%); */
  background: #62f5b0d0;
  cursor: pointer;
  display: none;
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 0 0 5px 5px;
  user-select: none;
  color: #000;
}

section:hover .sectionRemove,
section:hover .btn-drag {
  display: block;
}

.exp-item {
  position: relative;
}

.btn-sort:active {
  color: var(--contrast);
}

.btnAddEle {
  width: 100%;
  background: transparent;
  border: 1px dashed #4fff4f;
  color: #4fff4f;
}

.guide {
  position: absolute;
  /* background-color: red; */
  border: 1px dashed red;
  z-index: 1000;
  display: none;
}

.horizontal-guide {
  height: 1px;
  width: 100%;
}

.vertical-guide {
  width: 1px;
  height: 100%;
}

.toolbar {
  display: none;
  position: absolute;
  background: #f1f1f1;
  border: 1px solid #ccc;
  padding: 5px;
  z-index: 1000;
}

.toolbar button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}
.badge-item li {
  position: relative;
}
.removeBadge {
  display: none;
}
.badge-item li:hover .removeBadge {
  width: 20px;
  height: 20px;
  position: absolute;
  right: 0px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #ff0000;
  font-size: 12px;
  transition: 0.2s;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.badge-item li:has(.progress-wrap) span[contenteditable] {
  min-width: 100px;
}
.page {
  max-width: 8.5in;
  height: 11in;
  margin: 10px auto;
  background-color: var(--bg);
  position: relative;
  border: 1px solid lightgray;
  @media (max-width: 500px) {
    zoom: 0.5;
  }
  & .content {
    overflow: hidden;
  }
  & .pageButtons {
    position: absolute;
    right: -40px;
    top: 40px;
    & button {
      width: 40px;
      aspect-ratio: 1;
      border-radius: 0 5px 5px 0;
      display: block;
      color: white;
      border: unset;
      margin-bottom: 5px;
    }
  }
}

p {
  margin: 0;
}

a,
a:hover {
  color: inherit;
  text-decoration: none;
}
label.avatar {
  aspect-ratio: 1;
  & img#avatar-img {
    object-fit: cover;
  }
}

.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(--contrast-color);
        color: white;
      }
    }
  }
}

label.colorPicker {
  width: 100%;
  height: 30px;
  align-content: center;
  background-color: var(--contrast);
  color: var(--contrast);
  /* font-weight: bold; */
  border: 1px solid var(--primary-color);
  border-radius: 5px;

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

  & p {
    filter: invert(1) grayscale(1);
  }
}

ul.sd_fontFamilyList {
  max-height: 200px;
  width: 100%;
  overflow-y: scroll;
  overflow-x: hidden;
}

[template-wrap] {
  & nav {
    &.navbar {
      background: #fff !important;

      & .nav-link {
        color: var(--primary-color);

        &:hover {
          color: var(--accent-color);
        }
      }

      & .navbar-toggler {
        color: var(--primary-color) !important;

        & i {
          color: var(--primary-color) !important;
        }
      }

      & .btn-outline-light {
        color: var(--primary-color) !important;
        border-color: var(--primary-color) !important;
      }
    }
  }
}

#skills-wrap {
  &[progress] {
    & :where(.intermediate, .knowledge_of) {
      display: none;
    }
    & ul {
      & li {
        display: flex;
      }
    }
  }
}

.sortable-placeholder {
  border: 2px dashed #afafaf;
  background-color: #f0f0f0;
  height: 100px; /* Adjust as per your section size */
  margin: 10px 0;
  border-radius: 5px;
  position: relative;
  &::before {
    content: "Drag here";
    position: absolute;
    color: rgb(90, 90, 90);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

[icons] {
  & li {
    &::before {
      content: attr(icon);
      font-family: "bootstrap-icons";
      font-style: normal;
      font-weight: normal;
      font-variant: normal;
      margin-right: 5px;
      vertical-align: middle;
    }
  }
}

.page {
  & .content {
    & [parentSec] {
      transition: 0.3s;
    }
    &:has(.activeSection) {
      & [parentSec]:not(.activeSection) {
        opacity: 0.7;
        filter: blur(2px);
        /* transition: 0.3s; */
      }
    }
  }
  & .activeSection {
    transition: 0.3s;
    border: 1px solid var(--accent-color);
  }
}

/* HTML: <div class="loader"></div> */
[loader-wrap] {
  position: fixed;
  width: 100vw;
  height: 100vh;
  display: grid;
  place-content: center;
  z-index: 9999;
  &::before {
    content: "";
    background-color: var(--accent-color);
    backdrop-filter: blur(10px);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.7;
  }
  /* HTML: <div class="loader"></div> */
  .loader {
    width: 40px;
    aspect-ratio: 1;
    --c: no-repeat linear-gradient(#fff 0 0);
    background: var(--c) 0 0, var(--c) 0 100%, var(--c) 50% 0, var(--c) 50% 100%, var(--c) 100% 0, var(--c) 100% 100%;
    background-size: 8px 50%;
    animation: l7-0 1s infinite;
    position: relative;
    overflow: hidden;
    &:before {
      content: "";
      position: absolute;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #fff;
      top: calc(50% - 4px);
      left: -8px;
      animation: inherit;
      animation-name: l7-1;
    }
  }
}

@keyframes l7-0 {
  16.67% {
    background-size: 8px 30%, 8px 30%, 8px 50%, 8px 50%, 8px 50%, 8px 50%;
  }
  33.33% {
    background-size: 8px 30%, 8px 30%, 8px 30%, 8px 30%, 8px 50%, 8px 50%;
  }
  50% {
    background-size: 8px 30%, 8px 30%, 8px 30%, 8px 30%, 8px 30%, 8px 30%;
  }
  66.67% {
    background-size: 8px 50%, 8px 50%, 8px 30%, 8px 30%, 8px 30%, 8px 30%;
  }
  83.33% {
    background-size: 8px 50%, 8px 50%, 8px 50%, 8px 50%, 8px 30%, 8px 30%;
  }
}

@keyframes l7-1 {
  20% {
    left: 0px;
  }
  40% {
    left: calc(50% - 4px);
  }
  60% {
    left: calc(100% - 8px);
  }
  80%,
  100% {
    left: 100%;
  }
}
