:root {
  --banner-url: black;
  --profile-url: black;
}

#main-hero {
  background: var(--banner-url);
  background-position: center;
  background-size: cover;
}

.avatar-col {
  padding: 0px;
  position: relative;
}

#profile-avatar {
  margin-top: -18px;
  display: inline-block;
  border-radius: 100%;
  border: 5px solid #ccc;
  width: 140px;
  height: 100px;
  z-index: 1;
  box-shadow: 0 1px 1px rgba(136, 153, 166, 0.15);
  position: relative;
  background: var(--profile-url);
  background-position: center;
  background-size: cover;
}

.middle-gap {
  position: absolute;
}

.user-stats {
  background: #530b0bdf;
  border-radius: 5px;
  margin: 25px 4vw 0;
  padding-bottom: 5px;
  justify-content: center;
}

.edit-profile {
  display: flex;
  align-items: center;
}

.stat {
  text-align: center;
  height: 60px;
  padding: 14px 7px 7px;
  line-height: 1;
}

.stat .small {
  font-weight: bold;
  font-size: 8px;
  letter-spacing: 0.02em;
  margin-bottom: 0;
}

.stat .small + h4 {
  font-size: 18px;
  font-weight: bold;
  padding-top: 3px;
}

#sidebar-username {
  margin-top: 15px;
  font-size: 1.3rem;
  font-weight: bold;
  word-wrap: break-word;
}

.byline {
  white-space: nowrap;
}

.user-location {
  position: relative;
}

.user-location .fa-map-marker {
  position: absolute;
  top: 6px;
}

.user-location .location {
  margin-left: 27px;
  font-size: small;
}

/* move avatar above middle gap small screen */
main div.container > div.row.justify-content-end {
  margin-top: -98px;
}

/*first instance of pills-tab hidden on xs screens.*/
#pills-tab {
  display: none;
}

.sticky {
  position: relative;
}

@media screen and (min-width: 576px) {
  #profile-avatar {
    margin-top: -33px;
  }
  main div.container > div.row.justify-content-end {
    margin-top: 0px;
  }
  .user-stats {
    background: transparent;
    margin: 0px;
    justify-content: start;
  }
  .stat > .small {
    font-size: 10px;
  }
  .byline {
    white-space: normal;
  }
  .card-columns {
    column-count: 1;
  }
  div[role='tablist'] .nav-link,
  .user-location .location,
  .byline {
    font-size: x-small;
  }
  #pills-tab {
    display: block;
  }
  #pills-tab-2 {
    display: none;
  }
}

@media screen and (min-width: 768px) {
  #profile-avatar {
    width: 163px;
    height: 116px;
    margin-top: -46px;
  }
  .stat > .small {
    font-size: 12px;
  }
}

@media screen and (min-width: 992px) and (min-height: 600px) {
  #profile-avatar {
    width: 240px;
    height: 171px;
    margin-top: -100px;
  }
  .user-stats {
    margin-left: 10px;
  }
  .stat {
    padding: 14px 15px 7px;
  }
  #sidebar-username {
    font-size: 2.5rem;
  }
  .user-location .location {
    margin-left: 27px;
    font-size: medium;
  }
  .card-columns {
    column-count: 2;
  }
  div[role='tablist'] .nav-link,
  .user-location .location,
  .byline {
    font-size: initial;
  }
}

@media screen and (min-width: 1200px) {
  #profile-avatar {
    margin-top: -120px;
    width: 280px;
    height: 200px;
  }
  .user-stats {
    margin-left: 50px;
  }
}

@media screen and (min-width: 2000px) {
  #profile-avatar {
    margin-top: -163px;
    width: 350px;
    height: 250px;
  }
  .user-stats {
    margin-left: 135px;
  }
}

@media screen and (orientation: landscape) and (max-width: 992px) and (min-width: 576px) {
  #sidebar-username {
    margin-top: 0px;
    margin-bottom: 0px;
  }
  .byline {
    margin-bottom: 0px;
  }
  .nav-pills {
    margin-top: 10px !important;
  }
}

/* For smallest height screens make sure profile user profile can fit on screen */
@media screen and (max-height: 305px) and (min-width: 576px) {
  #profile-avatar {
    margin-top: -35px;
    width: 98px;
    height: 70px;
  }
  #pills-tab {
    margin-top: 4px !important;
  }
  .byline {
    margin-bottom: 0px;
  }
  #sidebar-username {
    margin-top: 0px;
    margin-bottom: 0px;
  }
}

/* For medium height screens make sure profile user profile can fit on screen */
@media screen and (min-height: 306px) and (max-height: 400px) and (min-width: 576px) {
  #profile-avatar {
    margin-top: -30px;
    width: 140px;
    height: 100px;
  }
  #pills-tab {
    margin-top: 4px !important;
  }
  .byline {
    margin-bottom: 0px;
  }
  #sidebar-username {
    margin-top: 0px;
    margin-bottom: 0px;
  }
}

/* For medium height screens make sure profile user profile can fit on screen */
@media screen and (min-height: 401px) and (max-height: 600px) and (min-width: 576px) {
  #profile-avatar {
    margin-top: -30px;
    width: 140px;
    height: 100px;
  }
  .byline {
    margin-bottom: 0px;
  }
}
