@import './variables.css';

* {
  padding: 0;
  margin: 0;
}

html,
body {
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial,
    sans-serif, Apple Color Emoji, Segoe UI Emoji;
  color: var(--text-primary);
}

a {
  text-decoration: none;
}

h1,
h2 {
  font-weight: 600;
}

.wrapper {
  width: 90%;
  margin: auto;
}

.flex-col-btw {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.p-16 {
  padding: 16px;
}

.p-l-r-16 {
  padding: 0 16px;
}

.p-l-r-16-content {
  padding: 0 16px;
}

.d-none-mobile {
  display: block !important;
}

.d-none-desktop {
  display: none !important;
}

.flex-align-center {
  align-items: center;
}

.align-center {
  align-items: center;
}

.d-cols {
  flex-direction: column;
}

.f-col-row-reverse {
  flex-direction: column-reverse;
}

.main-header {
  width: 100%;
  background-color: var(--header-color);
}

.main-header .wrapper {
  padding: 16px;
}

.m-r-16 {
  margin-right: 0;
}

.m-b-16 {
  margin-bottom: 16px;
}

.m-b-30 {
  margin-bottom: 30px;
}

.font-16 {
  font-size: 16px;
}

.m-b-16 {
  margin-bottom: 16px;
}

.d-flex {
  display: flex;
}

.no-ls-style {
  list-style: none;
}

.no-decor {
  text-decoration: none;
}

.scrolling {
  top: 0 !important;
  position: fixed !important;
}

.nav-open {
  display: block;
}

.repo-link {
  color: var(--link-color);
  font-size: 20px;
  font-weight: 600;
}

.repo-label {
  padding: 0 7px;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  border-radius: 30px;
  background-color: initial !important;
  border: 1px solid transparent;
  border: 1px solid var(--bg-primary);
  color: var(--text-secondary);
  margin-left: 4px;
}

.repo-lang-stamp {
  color: var(--text-secondary);
  font-size: 12px;
  margin-top: 8px;
}

.repo-lang-stamp .lang {
  margin-right: 16px;
  align-items: center;
}

.repo-lang-stamp .lang .indentifier {
  border-radius: 50%;
  width: 12px;
  height: 12px;
  background: #e34c26;
  display: block;
  margin-right: 5px;
}
.repo-lang-stamp span svg {
  margin-right: 5px;
  fill: var(--text-secondary);
}

.main-header a {
  color: #ffffff;
}
.main-header a svg {
  fill: #ffffff;
}

.main-header a.notification {
  position: relative;
}

.main-header .sub-nav {
  display: flex;
  align-items: center;
}

.main-header .sub-nav a.notification span.notify {
  position: absolute;
  top: -6px;
  left: 6px;
  z-index: 2;
  width: 10px;
  height: 10px;
  background-image: linear-gradient(#54a3ff, #006eed);
  background-clip: padding-box;
  border: 2px solid var(--header-color);
  border-radius: 50%;
}

.main-header .sub-nav a {
  margin-right: 15px;
}

.main-header .sub-nav a.cta-menus {
  position: relative;
}

.main-header .sub-nav a.cta-menus::after {
  display: inline-block;
  width: 0;
  height: 0;
  vertical-align: middle;
  content: '';
  position: absolute;
  border-top-style: solid;
  border-top-width: 4px;
  border-right: 4px solid transparent;
  border-bottom: 0 solid transparent;
  border-left: 4px solid transparent;
  top: 30%;
  left: 20px;
}
.with-drop {
  margin-right: 25px !important;
}

.main-header .sub-nav a.cta-menus img {
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-radius: 50%;
}

.main-header .main-nav {
  flex: auto;
  display: flex;
  position: absolute;
  flex-direction: column;
  top: 59px;
  background: var(--header-color);
  left: 0;
  width: 100%;
  display: none;
}

.main-header .main-nav .search-bar {
  width: 100%;
}

.main-header .main-nav .search-bar form {
  padding: 16px;
}

.main-header .main-nav .search-bar label {
  display: flex;
  align-items: center;
  background: var(--header-color);
  border: 1px solid var(--header-borders-color);
  border-radius: 6px;
}

.main-header .main-nav .search-bar label input {
  min-height: 28px;
  background: none;
  border: none;
  width: 100%;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
}

/* Chrome, Firefox, Opera, Safari 10.1+ */
.main-header .main-nav .search-bar label input::placeholder {
  color: #ffffff;
  opacity: 0.8;
}

/* Internet Explorer 10-11 */
.main-header .main-nav .search-bar label input:-ms-input-placeholder {
  color: #ffffff;
  opacity: 0.8;
}

/* Microsoft Edge */
.main-header .main-nav .search-bar label input::-ms-input-placeholder {
  color: #ffffff;
  opacity: 0.8;
}

.main-header .main-nav .search-bar label img {
  margin-right: 8px;
}

.main-header .main-nav nav {
  margin-right: 0;
  width: 100%;
}

.main-header .main-nav nav ul {
  display: flex;
  font-size: 14px;
  font-weight: 600;
  flex-direction: column;
  padding: 0 16px 16px 16px;
}

.main-header .main-nav nav ul li {
  display: block;
  padding: 8px 0;
  border-top: 1px solid var(--nav-items-border-color);
}

.main-header .main-nav nav ul li a {
  display: flex;
  align-items: center;
}

.main-header .main-nav nav ul li a:hover {
  opacity: 0.7;
}

.main-header .main-nav nav ul li a img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
}

/*
Main content styling
*/

.main-content {
  margin-top: 5px;
  display: flex;
  flex-direction: column;
}

.main-content .profile-section .user-details {
  display: flex;
  margin-bottom: 24px;
}

.main-content .profile-section .user-details div {
  padding-left: 8px;
}

.main-content .profile-section .user-details div h1 {
  font-size: 26px;
}

.main-content .profile-section .user-details div span {
  color: var(--text-secondary);
  font-size: 20px;
  font-weight: 300;
}

.main-content .profile-section .user-details img {
  width: 55px;
  height: 55px;
  border: 1px solid var(--bg-primary);
  border-radius: 50%;
  margin-right: 16px;
}

.main-content .profile-section .user-status {
  width: 100%;
  border: 1px solid var(--bg-primary);
  border-radius: 6px;
  margin: 8px auto;
  display: flex;
  align-items: center;
}

.main-content .profile-section .user-status p {
  padding: 4px 8px;
  display: flex;
  align-items: center;
}

.main-content .profile-section .user-status p span {
  font-size: 12px;
  margin-left: 10px;
}

.btn {
  width: 100%;
  display: block;
  text-align: center;
  color: var(--text-primary);
  padding: 7px 16px;
  border-radius: 6px;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  font-size: 14px;
  font-weight: 500;
  outline: none;
}

.primary {
  background: var(--btn-bg-secondary);
  color: #ffffff;
  opacity: 1;
  outline: none;
}

.primary svg {
  fill: #ffffff;
  margin-right: 5px;
}

.caret-down {
  display: inline-block;
  width: 0;
  height: 0;
  vertical-align: middle;
  content: '';
  border-top-style: solid;
  border-top-width: 4px;
  border-right: 4px solid transparent;
  border-bottom: 0 solid transparent;
  border-left: 4px solid transparent;
}

.repos-section {
  display: flex;
  flex-direction: column;
}

.menu-navigation {
  position: sticky;
  top: 0;
  border-bottom: 1px solid var(--light-grey);
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  justify-content: space-between;
  background: #ffffff;
  z-index: 20;
}

.menu-navigation nav {
  padding: 0 16px;
  display: flex;
}

.menu-navigation nav a {
  margin-right: 0;
  line-height: 30px;
  white-space: nowrap;
  padding: 8px 16px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: 0.3s;
}
.menu-navigation nav a:hover {
  border-bottom: 2px solid #d1d5da;
  transition: 0.3s;
}

.menu-navigation nav a svg {
  fill: var(--nav-icons-color);
  margin-right: 6px;
  display: none;
}

.menu-navigation nav a.active {
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 2px solid var(--active-anv-color);
  outline: 1px dotted transparent;
  outline-offset: -1px;
}

.menu-navigation nav a.active svg {
  fill: var(--text-primary);
}

.repos-section .filter {
  padding: 16px 0;
  display: flex;
  flex-direction: column;
}

.repos-section .filter input {
  padding: 7px 12px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid var(--bg-primary);
  width: 100%;
}

.repos-section .filter .filter-options {
  display: flex;
  justify-content: space-between;
}

.repos-section .filter .filter-options .btn {
  display: flex;
  align-items: center;
  padding: 7px 18px;
}

.repos-section .filter .filter-options .btn i {
  font-style: normal;
  font-weight: 500;
  opacity: 0.75;
}

.repos-section .filter .filter-options .btn .caret-down {
  opacity: 0.8;
  margin-left: 4px;
}

.repository-list {
  border-top: 1px solid var(--bg-primary);
}

.repository-list ul li {
  padding: 24px 0;
  align-items: center;
  border-bottom: 1px solid var(--bg-primary);
}

.repository-list ul li .repo-det {
  flex: 3;
}

.repository-list ul li .repo-det h3 {
  margin-bottom: 10px;
}

.repository-list ul li .repo-det p {
  padding-right: 24px;
  margin-bottom: 15px;
  color: var(--text-secondary);
  width: 75%;
  font-size: 14px;
}

.repository-list ul li .star {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.repository-list ul li .star button {
  display: flex;
  align-items: center;
  font-size: 12px;
  justify-content: center;
  font-weight: 500;
  max-width: 70px;
  font-weight: 500;
}

.repository-list ul li .star button svg {
  margin-right: 4px;
}

footer {
  border-top: 1px solid var(--bg-primary);
  margin: 40px auto;
  padding: 40px 0 8px 0;
  font-size: 12px;
}

footer ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
}

footer ul li {
  line-height: 1.5;
  margin-right: 16px;
}

footer ul li a {
  color: var(--link-color);
}

#repos-count {
  display: inline-block;
  font-size: 12px;
  min-width: 20px;
  padding: 0 6px;
  font-weight: 500;
  line-height: 18px;
  color: var(--text-primary);
  text-align: center;
  background-color: var(--nav-item-not-color);
  border: 1px solid transparent;
  border-radius: 2em;
  margin-left: 6px;
}

.nav-open {
  display: block !important;
}

.account-stats-contacts {
  width: 100%;
}

.account-stats {
  color: var(--text-secondary);
  font-size: 14px;
  flex-wrap: wrap;
}

.account-stats .stat a {
  text-decoration: none;
  color: var(--text-secondary);
}

.account-stats .stat a:hover,
.account-stats .stat a:hover span.count {
  color: var(--link-color);
}

.account-stats .stat a:hover svg {
  fill: var(--link-color);
}

.account-stats .stat a svg {
  fill: var(--text-secondary);
}

.account-stats .stat a span,
.account-stats .stat a svg {
  margin-right: 3px;
}

.account-stats .stat a span.count {
  font-weight: 600;
  color: var(--text-primary);
}

.account-contact {
  font-size: 14px;
  margin-bottom: 8px;
}

.account-contact ul li {
  padding: 4px 0;
}

.account-contact ul li span svg {
  margin-right: 5px;
  fill: var(--text-secondary);
  width: 16px;
}

.account-contact ul li span a {
  color: var(--text-primary);
}

.account-contact ul li span a.org {
  font-weight: 600;
}

@media (min-width: 768px) {
  .d-none-mobile {
    display: none !important;
  }

  .d-none-desktop {
    display: block !important;
  }

  .m-r-16 {
    margin-right: 16px;
  }

  .p-l-r-16-content {
    padding: 0 32px;
  }

  .f-col-row-reverse {
    flex-direction: column;
  }

  .main-header .wrapper {
    width: auto;
    padding: 16px 32px;
  }
  .main-header a.menu-toggle {
    margin-right: 16px;
  }
  .main-header .main-nav .search-bar {
    max-width: 272px;
  }
  .main-header .main-nav {
    position: relative;
    flex-direction: row;
    top: 0;
    display: flex;
  }
  .main-header .main-nav .search-bar {
    flex: auto;
  }

  .main-header .main-nav .search-bar form {
    padding: 0;
  }

  .main-header .main-nav nav {
    margin-right: auto;
  }

  .main-header .main-nav .search-bar,
  .main-header .main-nav nav {
    padding: 0;
  }
  .main-header .main-nav nav ul {
    flex-direction: row;
    padding: 0;
  }
  .main-header .main-nav nav ul li {
    border-top: none;
  }
  .main-header .main-nav nav ul li:first-child {
    display: none;
  }
  .main-content {
    flex-direction: row;
    max-width: 1280px;
    margin: auto;
  }
  .menu-navigation {
    position: absolute;
    width: 100%;
    top: 90px;
    left: 0;
  }

  .menu-navigation nav {
    padding-left: 27%;
  }

  .profile-section,
  .repos-section {
    margin-top: 70px;
  }
  .profile-section {
    width: 20%;
    position: relative;
  }
  .repos-section {
    width: 75%;
    margin: 70px 16px 0 16px;
  }
  .user-details {
    flex-direction: column;
  }
  .main-content .profile-section .user-details img {
    width: 110%;
    height: auto;
    margin-top: -40px;
    z-index: 25;
  }
  .repos-section .filter {
    flex-direction: row;
  }
  .repos-section .filter input,
  .repos-section .filter .filter-options .option {
    margin-right: 16px;
  }

  .repos-section .filter .filter-options .option:last-child {
    margin-right: 0;
  }

  .main-content .profile-section .user-status {
    position: absolute;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    top: 130px;
    right: -18px;
    z-index: 34;
    overflow: hidden;
  }
  .main-content .profile-section .user-status p span {
    display: none;
  }

  .menu-navigation nav a svg {
    display: block;
  }
  .main-content .profile-section .user-details div {
    padding-left: 0;
  }

  footer {
    max-width: 1280px;
  }
  footer ul {
    justify-content: space-evenly;
  }
}
@media (max-width: 960px) {
  .main-header .main-nav nav ul li:nth-child(2) a {
    text-indent: -9999px;
    line-height: 0; /* Collapse the original line */
  }
  .main-header .main-nav nav ul li:nth-child(2) a::after {
    content: 'Pulls';
    visibility: visible;
    display: block;
    left: 0;
    text-indent: 0;
    line-height: initial;
  }
}

@media (min-width: 1500px) {
  .menu-navigation nav {
    padding-left: 612px;
  }
}
