/*
    Meet-the-Fans
    https://github.com/evoluteur/meet-the-fans
    (c) 2026 Olivier Giulieri
*/

html,
body {
  padding: 0;
  margin: 0;
}
body {
  font-size: 14px;
  font-family: arial;
  color: rgb(112, 112, 112);
  scroll-behavior: smooth;
  background-color: #1a212d;
  > h1 {
    margin-bottom: 50px;
  }
}

.sort-dir,
a {
  text-decoration: none;
  color: #dbeef3;
  font-weight: 500;
  &:hover {
    text-decoration: underline;
    color: #b7dde8;
  }
}
.sort-dir {
  display: inline-block;
  padding: 2px;
  cursor: pointer;
}
footer {
  position: fixed;
  bottom: 0;
  left: 10px;
  padding: 10px;
  color: white;
  a {
    color: #ffb74d;
    &:hover {
      color: #ffcc80;
    }
  }
}

#graph svg {
  /*background-color: white;*/
  width: 100%;
  height: 100%;
}
label {
  color: silver;
  display: inline-block;
  margin-bottom: 4px;
  font-size: 15px;
}
.bold {
  font-weight: 700;
}
svg.home {
  position: fixed;
  top: 5px;
  right: 5px;
  height: 40px;
  width: 40px;
  fill: #86bddc;
  cursor: pointer;
  &:hover {
    fill: white;
  }
}
#details {
  background-color: #2d3848;
  color: white;
  display: none;
  position: fixed;
  top: 0;
  z-index: 100;
  min-height: 140px;
  max-height: 100%;
  overflow-y: scroll;
  top: -1px;
  width: 230px;
  border: solid grey 1px;
  padding: 10px 0;
  overflow-x: hidden;
  box-shadow:
    0 4px 8px 0 rgba(0, 0, 0, 0.2),
    0 6px 20px 0 rgba(0, 0, 0, 0.19);
  &.right {
    right: -1px;
    display: block;
    border-bottom-left-radius: 10px;
  }
  &.left {
    left: -1px;
    display: block;
    border-bottom-right-radius: 10px;
  }
  &.w220 {
    width: 240px;
  }
  > h1 {
    font-size: 20px;
  }
  > label {
    color: grey;
    margin: 0 0 5px;
  }
  > * {
    padding: 5px;
  }
  > div {
    > img {
      height: 190px;
      min-height: 190px;
      width: 190px;
      border-radius: 50%;
    }
  }
  .profile-top {
    padding: 0 15px;
    > .icon {
      margin-left: 10px;
    }
    > span {
      display: inline-block;
    }
  }
  .repo-body {
    padding: 0 15px;
  }
}
.w220 {
  width: 220px;
}
.h190 {
  min-height: 190px;
  text-align: center;
}
#summary-count {
  margin-left: 10px;
  color: silver;
}
.project {
  cursor: pointer;
  > .div {
    display: flex;
    align-items: center;
  }
}
.reposList {
  padding: 10px 0;
  margin-bottom: 10px;
  > div {
    padding: 5px 10px 2px;
    transition: background-color 0.3s 0.01s;
    &:hover {
      background-color: #3c495f;
    }
  }
  .repoIco {
    display: inline-block;
    margin-bottom: 5px;
  }
}
.profile-top > .field.multi {
  display: inline-block;
}
.gituser {
  color: white;
}
h1 {
  font-size: 22px;
  > a {
    text-decoration: none;
    &:hover {
      text-decoration: underline;
    }
  }
}
.topics {
  margin: 15px 0 0 0 !important;
  > div {
    display: inline-block;
    border: solid 1px transparent;
    padding: 0 5px 2px;
    font-size: 0.9em;
    margin: 0 5px 5px 0;
    box-sizing: border-box;
    text-decoration: none;
    font-size: 12px;
    white-space: nowrap;
    border-radius: 2em;
    padding: 0 10px;
    line-height: 22px;
    margin-bottom: 8px;
    background-color: #3a4d5d;
  }
}
.morelink {
  cursor: pointer;
}

.field {
  display: block;
  margin: 10px 0;
}
input.field {
  width: 90px;
}
.field.multi > div:not(:first-child) {
  display: inline-block;
  margin-left: 10px;
}
.field.multi {
  margin-left: 10px;
  > a {
    margin-right: 5px;
  }
  div {
    margin-right: 5px;
  }
}
.reposList .field.multi div {
  margin-left: 10px;
}

.field.ellipsis > a {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: calc(100% - 25px);
}
.repo-circle {
  position: relative;
  top: 3px;
  display: inline-block;
  background-color: silver;
  width: 14px;
  height: 14px;
  display: inline-block;
  border-radius: 50%;
  margin-right: 5px;
  border: solid 1px #f6f6f6;
}
.lbl-10 {
  margin-left: 10px;
}
.f-desc {
  margin: 15px 0;
}

#topbar > div,
.score,
.score > div {
  display: inline-block;
}

/* Icons */
.icon {
  position: relative;
  top: 4px;
  display: inline-block;
  width: 20px;
  height: 20px;
}
.icon.w-star {
  background-image: url(../svg/star.svg);
}
.icon.w-fork {
  background-image: url(../svg/fork.svg);
}
.icon.star {
  background-image: url(../svg/star-outline.svg);
}
.icon.fork {
  background-image: url(../svg/source-fork.svg);
}
.icon.tag {
  background-image: url(../svg/tag-outline.svg);
}
.icon.repos {
  background-image: url(../svg/book-outline.svg);
}
.icon.link {
  background-image: url(../svg/link-variant.svg);
}
.icon.location {
  background-image: url(../svg/map-marker.svg);
}
.icon.followers {
  background-image: url(../svg/account-multiple.svg);
}
.icon.license {
  background-image: url(../svg/scale-balance.svg);
}
.icon.chart {
  background-image: url(../svg/chart-bell-curve-cumulative.svg);
}

/* Graph */
line {
  stroke-opacity: 0.6;
}
g {
  > circle {
    stroke-width: 1.5px;
    cursor: pointer;
  }
  > circle.disabled {
    cursor: default;
  }
  > circle:hover {
    stroke: black !important;
    opacity: 1 !important;
  }
}
.graph {
  width: 100%;
}

/* Graph Tooltip */
.ln-dot {
  display: inline-block;
  height: 10px;
  width: 10px;
  border-radius: 50%;
  margin: 0 7px;
}
div.tooltip {
  display: block;
  position: absolute;
  padding: 5px;
  border-radius: 8px;
  pointer-events: none;
  border: solid 1px silver;
  background-color: #1a212d;
  color: white;
}
.avatar-small > img {
  height: 80px;
  width: 80px;
  border-radius: 50%;
  margin: 0 5px 0 10px;
}
.field-holder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px 0 10px !important;
  margin: 0 !important;
  > .search-div {
    flex-grow: 1;
    > input {
      display: inline-block;
      height: 24px;
      border: solid 1px #61656b;
      border-radius: 4px;
      padding: 4px 7px;
      font-size: 16px;
      max-width: 100px;
      color: white;
      background-color: #1a212d;
    }
  }
}

  }
}
