:root {
  --color-primary: #177ff0;
  --font-family-primary: "Manrope", Helvetica, Arial, serif;
  --color-border: #37393f;
  --color-text: #b4b7bd;
}

body {
  background-color: #111 !important;
  font-family: var(--font-family-primary) !important;
}

body:not(.page-index)::before {
  content: '';
  position: absolute;
  width: 100%;
  max-width: 700px;
  height: 700px;
  left: 50%;
  top: -400px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.1) 70%);
  filter: blur(150px);
  box-shadow: 0 0 100px rgba(255, 255, 255, 0.5);
  z-index: -1;
  pointer-events: none;
}

.container-xxl {
  max-width: 1260px;
}

a {
  color: var(--color-primary);
}

input[type="text"]:focus {
  border-color: var(--color-primary) !important;
}

html .content.app-content {
  padding: 20px 1rem 0 !important;

  @media(min-width: 576px) {
    padding: 34px 2rem 0 !important;
  }

  @media(min-width: 768px) {
    padding: 132px 2rem 0 !important;
  }
}

.page-title {
  margin-bottom: 32px;
}

h1.content-header-title {
  margin-top: 24px;
}

.card {
  background: #141414 !important;
  border: 1px solid var(--color-border);
  border-radius: 8px !important;
}

.card .card-body {
  padding: 24px !important;
}

.text-primary {
  color: var(--color-primary) !important;
}

/** Buttons */
.button {
  display: inline-block;
  padding: 12px 16px;
  font-weight: 500;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.button--outline {
  color: #fff;
  border: 1px solid #fff;
  background: none;
}

.button--outline:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.2);
}

.button--primary {
  color: #fff;
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.button--primary:hover {
  color: #fff !important;
  background: rgba(23, 127, 240, 0.8);
}

.button--primary.button--outline {
  color: var(--color-primary);
  background: none;
}

.button--primary.button--outline:hover {
  color: var(--color-primary) !important;
  background: rgba(23, 127, 240, 0.2);
}

.button--slim {
  padding: 12px 16px;
}

.button-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  transition: background 0.2s;
}

.button-circle svg {
  stroke: #fff;
}

.button-circle:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.button--disabled {
  cursor: not-allowed !important;
  opacity: 0.25;
}

/** Nav */
.floating-nav {
  position: absolute !important;
  background-color: rgba(9, 9, 11, 0.5) !important;
}

.nav-community {
  svg,
  path {
    transition: fill 0.2s;
  }

  a {
    padding: 0 16px;
  }

  a:hover svg {
    fill: var(--color-primary);
  }

  a:hover path {
    fill: var(--color-primary);
  }
}

.header-navbar .navbar-container .nav .nav-item .nav-link {
  font-weight: 600;
  color: #fff !important;
}

.header-navbar .navbar-container .nav .nav-item + .nav-item {
  margin-left: 16px;
}

.navbar-nav .button {
  padding: 6px 10px;
  font-size: 11px;
}

.navbar-nav .button + .button {
  margin-left: 2px;
}

@media (min-width: 400px) {
  .navbar-nav .button {
    padding: 8px 12px;
    font-size: 12px;
  }

  .navbar-nav .button + .button {
    margin-left: 2px;
  }
}

@media (min-width: 768px) {
  .navbar-nav .button {
    padding: 16px 24px;
    font-size: 14px;
  }

  .navbar-nav .button + .button {
    margin-left: 8px;
  }
}

.navbar-logo {
  max-width: 64px;
}

@media (min-width: 400px) {
  .navbar-logo {
    max-width: 100px;
  }
}

@media (min-width: 992px) {
  .navbar-logo {
    max-width: 100%;
  }
}

.nav-tabs .nav-link::after {
  background: var(--color-primary) !important;
}

/** Home */
.home-water {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  object-fit: cover;
}

.home-heading {
  margin: 20px 0px 80px 0px;

  & h1 {
    font-weight: 400;
    font-size: 50px;
    line-height: 1.1;

    & strong {
      font-weight: 400;
    } 

    & svg {
      transform: translate(0, -16);
      width: 0.5em;
      height: auto;
    }
  }

  & h2 {
    margin-top: 16px;
    font-weight: 400;
    font-size: 16px;
    opacity: 0.9;
  }

  p {
    max-width: 35em;
  }

  button {
    background-color: var(--color-primary);
    color: #fff;
    border: 1px solid var(--color-primary);
    font-size: 1.25rem;
    padding: 0.5em 2em;
    border-radius: 0.25em;
    transition: color 0.2s, background-color 0.2s;

    &:hover {
      background-color: rgba(23, 127, 240, 0.6);
    }

    &:nth-of-type(1) {
      margin-right: 1em;
    }

    &:nth-of-type(2) {
      background-color: transparent;
      border: 1px solid #fff;
      color: #fff;
      padding-inline: 3em;

      &:hover {
        background-color: rgba(23, 127, 240, 0.3);
      }
    }
  }

  @media(max-width: 500px) {
    /* min-height: 100vh; */
    & h2 {
      display: none;
    }
    & h1:nth-of-type(2) {
      margin-bottom: 40px; /* Add space below h1 */
    }

    p {
      margin-bottom: 40px; /* Add space below p */
      font-size: 1.25rem;
    }

    button:nth-of-type(1) {
      margin-bottom: 20px; /* Add space below button */
  }
}
}

.home-heading .market-sentiment-indicator {
  font-size: 2.375em;
}

.home-heading__image {
  position: relative;
  margin-left: -10%;
}

.home-heading__image img {
  position: relative;
  margin-left: -32px;
  max-width: calc(100% + 32px);
}

@media (min-width: 992px) {
  .home-heading {
    padding-top: 20px;
  }

  .home-heading h1 {
    font-size: 84px;
  }

  .home-heading h2 {
    font-size: 20px;
  }
}

.coins-table {
  .coins-table__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid var(--color-border);
  }

  .coins-table__table {
    padding: 24px 0 0;

    tr {
      th,
      td {
        &:first-child {
          padding-left: 24px !important;
        }

        &:last-child {
          padding-right: 24px !important;
        }
      }

      th {
        opacity: 0.75;
      }
    }

    .token-row {
      display: none;

      &.is-visible {
        display: table-row;
      }
    }
  }

  .coins-table__footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    border-top: 1px solid var(--color-border);

    a {
      display: flex;
      align-items: center;
      color: #fff;
      font-size: 16px;
      font-weight: 700;

      svg {
        margin-left: 4px;
        fill: #fff;
        transition: transform 0.2s;
      }

      &:hover {
        svg {
          transform: translateX(4px);
        }
      }
    }

    .footer__coins {
      display: flex;
      margin-right: 12px;

      img {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        transition: margin 0.2s;

        + img {
          margin-left: -6px;
        }
      }
    }
  }

  .table > :not(caption) > * > * {
    font-size: 14px;
  }

  #searchToken {
    width: 100%;
    margin-right: 24px;
  }

  @media (min-width: 992px) {
    #searchToken {
      width: 50%;
      margin-right: 0;
    }
  }

  .table-options {
    position: relative;

    button {
      display: flex;
      align-items: center;
      padding: 5px 12px;

      @media (min-width: 992px) {
        padding: 8px 16px;
      }

      svg {
        margin-left: 4px;
        fill: #fff;
      }
    }

    .table-options__dropdown {
      position: absolute;
      z-index: 1;
      top: 100%;
      right: 0;
      display: flex;
      padding: 16px 0;
      background: #111;
      border-radius: 8px;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-8px);
      transition: opacity 0.2s, visibility 0.2s, transform 0.2s;

      &.is-visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
      }

      p {
        margin: 0 0 4px;
        color: #fff;
        font-weight: 700;
      }

      ul {
        margin: 0;
        padding: 0;
        list-style: none;

        li {
          display: flex;
          align-items: center;
          padding: 4px 0;
          cursor: pointer;

          input {
            cursor: pointer;
          }

          label {
            order: 1;
            padding-left: 4px;
            cursor: pointer;
          }
        }
      }

      .dropdown__col {
        padding: 0 16px;

        + .dropdown__col {
          border-left: 1px solid var(--color-border);
        }
      }
    }
  }

  #tokensTableBody {
    border-top: 1px solid var(--color-border) !important;

    a:not(.button) {
      color: #fff;
    }

    .badge-pill {
      padding: 6px 12px;
      font-size: 10px;

      @media (min-width: 992px) {
        font-size: 12px;
      }
    }
  }

  .token-table-buttons a {
    margin-left: 4px;
    padding: 6px 10px;
  }
}

html:not(.page-markets) .coins-table .token-row:nth-child(n+7 of .is-visible) {
  display: none !important;
}

.home-products {
  margin-bottom: 60px !important;
  > h2 {
  font-size: 20px !important;
  font-weight: 700;
  margin-top: 60px !important;
  margin-bottom: 60px !important;

    @media (min-width: 992px) {
      font-size: 34px !important;
      margin-top: 120px !important;
    }
  }


  @media (min-width: 992px) {
    margin-bottom: 90px !important;

    > h2 {font-size: 40px !important;}
  }
}

.home-faq > h2:nth-of-type(1) {
  font-size: 24px !important;
  font-weight: 700;
  margin-left: 24px;

  @media (min-width: 992px) {
    font-size: 34px !important;
  }
}


.home-faq .card-body__content {
  margin-top: 24px;
}

@media (min-width: 992px) {
  .home-faq {
    margin-top: 64px;
  }
}
div[role="tabpanel"] > p > b {color: #fff;}
#indicators-explained {
  h4 {
    margin-bottom: 24px;
    font-size: 1rem;
    color: #fff;
  }

  .badge {
    margin-bottom: 10px;
    padding: 6px 14px;
  }
}

#indicators-explained .nav-pills {
  border-right: 1px solid var(--color-border);
}

#indicators-explained .nav-pills a {
  display: block;
  margin: 4px 0;
  padding: 4px 12px;
  color: #fff;
  transition: box-shadow 0.2s, color 0.2s;
}

#indicators-explained .nav-pills a.active {
  font-weight: 600;
  color: var(--color-primary);
  box-shadow: -2px 0 0 var(--color-primary);
}

@media (min-width: 768px) {
  #indicators-explained h4 {
    margin-bottom: 32px;
    font-size: calc(1.2964rem + 0.5568vw);
  }
}

@media (min-width: 1200px) {
  #indicators-explained h4 {
    font-size: 1.714rem;
  }
}

/** User Pages */
.page-user .tabs-nav {
  margin-top: 24px;
  padding: 8px;
}

.page-user .tabs-nav ul {
  margin: 0;
}

.page-user .tabs-nav .nav-link {
  padding: 16px 24px;
}

.page-user .progress-bar {
  background-color: var(--color-primary);
}

/** Header Nav **/
.app-content {
  margin-left: 0 !important;
}

.sub-overlay {
  content: "";
  position: fixed;
  z-index: 90;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  background: rgba(0, 0, 0, 0.1);

  &.is-visible {
    display: block;
  }
}

.header-nav {
  position: relative;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  padding: 0 0 0 1rem;
  background: rgba(0, 0, 0, 0.5);
  
  @media(min-width: 576px) {
    padding: 0 2rem;
  }

  @media (min-width: 768px) {
    position: absolute;
  }

  &.has-sub-visible {
    background: rgba(0, 0, 0, 0.85);
  }

  &.has-mobile-dropdown-visible {
    background: #0d0d0d;

    @media (min-width: 992px) {
      background: rgba(0, 0, 0, 0.85);
    }
  }

  nav {
    position: relative;
    display: block;
  }

  ul {
    margin: 0;
    padding: 0;
    list-style: none;

    a:not(.button) {
      position: relative;
      color: #fff;
      font-size: 18px;

      @media (min-width: 992px) {
        &::after {
          content: "";
          position: absolute;
          right: 100%;
          bottom: -2px;
          left: 0;
          height: 2px;
          opacity: 0;
          visibility: hidden;
          background: var(--color-primary);
          transition: opacity 0.3s, visibility 0.3s, right 0.2s;
        }

        &:hover {
          &::after {
            opacity: 1;
            visibility: visible;
            right: 0;
          }

          &.has-dropdown {
            &::after {
              right: 26px;
            }
          }
        }
      }
    }
  }

  .header-nav__container {
    padding: 24px 0;
    max-width: 1260px;
    margin: auto;
    svg { margin-right: -10px; }
    
    @media(min-width: 576px) {
      svg { margin: 0; }
    }

    @media (min-width: 992px) {
      display: flex;
    }
  }

  .header-nav__logo {
    align-self: flex-start;
    margin-right: auto;
  }

  .header-nav__main {
    display: none;

    @media (min-width: 992px) {
      display: flex;
      align-items: center;
    }

    &.is-visible {
      display: block;

      @media (min-width: 992px) {
        display: flex;
      }
    }

    > li {
      padding: 16px 0;
      border-bottom: 1px solid var(--color-border);

      &:last-child {
        padding: 32px 0 0;
        border: 0;

        @media (min-width: 992px) {
          padding: 0;
        }
      }

      @media (min-width: 992px) {
        margin-left: 48px;
        padding: 0;
        border-bottom: 0;
      }

      &:first-child {
        margin-left: 0;
      }

      > a {
        display: flex;
        align-items: center;
        justify-content: space-between;

        @media (min-width: 992px) {
          justify-content: flex-start;
        }

        svg {
          margin-left: 4px;
          fill: #fff;
          transition: transform 0.2s;
        }

        &.is-active {
          svg {
            transform: rotate(-180deg);
          }
        }
      }
    }

    .sub__content {
      @media (min-width: 992px) {
        display: none !important;
      }
    }
  }

  .sub__content {
    display: none;
    padding: 24px 0;

    &.is-visible {
      display: block;
    }

    .content__title {
      margin: 0 0 24px;
      font-size: 12px;
    }

    .content__list {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
      margin: 0;
      padding: 0;
      list-style: none;

      .list__item {
        display: flex;
        align-items: flex-start;

        svg,
        img {
          max-width: 24px;
          max-height: 24px;
          flex-shrink: 0;
          transform: translateY(2px);
        }

        .item__content {
          padding-left: 8px;

          a {
            display: inline-block;
          }

          p {
            margin: 4px 0 0;
          }
        }

        &.list__item--coming-soon {
          opacity: 0.5;

          a > span:not(.coming-soon) {
            display: inline-block;
            vertical-align: middle;
            margin-right: 4px;
          }

          a:hover {
            &::after {
              display: none;
            }
          }
        }
      }

      .coming-soon {
        display: inline-block;
        vertical-align: middle;
        padding: 4px 8px;
        font-size: 10px;
        color: #111;
        background: rgba(255, 255, 255, 0.75);
        border-radius: 16px;
        text-transform: uppercase;
      }
    }

    .content__all {
      display: flex;
      align-items: center;
      margin-top: 24px;
      color: #fff;
      font-size: 18px;

      svg {
        margin-left: 4px;
        fill: #fff;
        transition: transform 0.2s;
      }

      &:hover {
        svg {
          transform: translateX(8px);
        }
      }
    }
  }

  .header-nav__account {
    display: block;

    @media (min-width: 992px) {
      display: flex;
    }

    .button {
      display: block;
      width: 100%;
      text-align: center;

      @media (min-width: 992px) {
        display: inline-block;
        width: auto;
      }

      + .button {
        margin-top: 16px;

        @media (min-width: 992px) {
          margin: 0 0 0 8px;
        }
      }
    }

    .dropdown-toggle {
      &:hover {
        &::after {
          display: none;
        }
      }

      .user-nav {
        flex-direction: column;
        align-items: flex-end;
        margin-right: 8px;
        font-size: 14px;
      }
    }

    .dropdown-menu {
      a {
        font-size: 14px;

        &:hover {
          &::after {
            display: none;
          }
        }

        + a {
          margin-left: 0;
        }
      }
    }
  }

  .header-nav__toggle-mobile {
    position: absolute;
    top: 36px;
    right: 24px;

    @media (min-width: 992px) {
      display: none;
    }

    svg {
      fill: #fff;
    }

    .toggle-mobile__close,
    .toggle-mobile__open {
      display: none;
      cursor: pointer;

      &.is-visible {
        display: block;
      }
    }
  }
}

/**
Fear and Greed Scores (Circles)
 */
.fg-scores {
  grid-column: 2 / span 2;
  height: 100%;
  min-height: 240px;

  .card {
    height: 100%;
    padding: 24px;
  }

  h4 {
    margin-bottom: 0;

    +p {
      margin-top: 4px;
      opacity: 0.8;
    }
  }

  .fg-scores__indicators {
    display: flex;
    flex-direction: column;

    /* display: grid; */
    /* grid-template-columns: repeat(3, minmax(0, 1fr)); */
    margin-top: 16px;
    gap: 16px;
    
    @media (min-width: 992px) {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    h5 {
      margin: 0 8px 0 0;
      font-size: 12px;
      color: #fff;
      white-space: nowrap;

      @media (min-width: 992px) {
        font-size: 16px;
      }
    }

    .indicators__item {
      margin-bottom: 0;
      padding: 8px;

      @media (min-width: 992px) {
        padding: 16px;
      }
    }

    .indicators__circle {
      width: 24px;
      height: 24px;
      flex-shrink: 0;

      @media (min-width: 992px) {
        width: 40px;
        height: 40px;
      }
    }
  }
}

.fg-alerts {
  .alert-box {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 1rem;

    h4 {
      font-size: 20px;
    }
  }

  .alert-des {
    font-size: 10px;
    white-space: nowrap;

    @media (min-width: 768px) {
      font-size: 12px;
    }
  }

  .alert-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 14px;
    padding: 1.5rem;
    min-height: 160px;
  }

  .button-alert {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
    padding: 8px;
    border-radius: 8px;
    background-color: #177FF0;
    color: #fff;
    transition: background-color 0.3s;

    &:hover {
      color: #fff !important;
      background-color: rgba(23, 127, 240, 0.8);
    }
  }
}
