/* variables */
$progress-bar-height: 6px;
$progress-bar-border-radius: 10px;
$milestone-border: $progress-bar-height/1.2;
$milestone-size: $milestone-border + $progress-bar-height;
$milestone-offset: $milestone-size/2;
$start-size: 16px;

$crowdstart-price-high: $royal;
$crowdstart-default: lighten($normal-grey,40%);

/* progress bar container */
.progress-bar {
  display: inline-block;
  width: 90%;
  margin-top: $padding-large-vertical;
  text-align: left;
  margin-left: $start-size/2;

  .backer-numbers {
    text-align: center;
    padding-bottom: 10px;

    span {
      padding-left: $padding-x-small-horizontal;
    }
  }
}

/* bar default */
.bar-default {
  width: 100%;
  height: $progress-bar-height;
  background: $crowdstart-default;
  border-radius: $progress-bar-border-radius;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.milestone {
  position: relative;
  float: right;
  align-self: center;
  z-index: 200;
  right: -$milestone-offset;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;

  .milestone-outline {
    width: $milestone-size;
    height: $milestone-size;
    background: $crowdstart-default;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;

    &.reached{
      background-color: $royal;
    }
  }
}

/* full bar */
.bar-100 {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  order: 2;
  flex: 1 0 auto;
  align-self: center;
  height: auto;
  z-index: 5;
}

/* backer bar */
.backer-progress {
  position:relative;
}

.backer-high {
  position:absolute;
  left:0;
  background: $crowdstart-price-high;
  height: $progress-bar-height;
  border-radius: $progress-bar-border-radius;
  float: left;
  z-index: 0;
  width: 50%;
}

/* needed label section */

.needed-label-default {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}
