#phases-wrapper {
	position: absolute;
	bottom: 8px;
	left: 50%;
	z-index: 9;
}

#phases-wrapper .label-wrapper {
    text-align: center;
}
#phases-wrapper .ui.label {
    /*width: 120px;
    margin-left: calc(50% - 60px);*/
    margin-bottom: 20px;
    color: #222222;
    background: rgba(255,255,255,0.65);
}

#phases-wrapper .range {
  position: relative;
  height: 5px;
  overflow: hidden;
  /*width: 250px*/
}

#phases-wrapper .range input {
  width: 100%;
  position: absolute;
  top: 2px;
  height: 1.1px;
  background-color: #ffffff;
  -webkit-appearance: none;
  z-index: -1;
}
#phases-wrapper .range input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: -8px 0 0;
  border-radius: 50%;
  background: #febe10;
  cursor: pointer;
  border: 0 !important;
}
#phases-wrapper .range input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  margin: -8px 0 0;
  border-radius: 99%;
  background: #febe10;
  cursor: pointer;
  border: 0 !important;
}
#phases-wrapper .range input::-ms-thumb {
  width: 18px;
  height: 18px;
  margin: -8px 0 0;
  border-radius: 99%;
  background: #febe10;
  cursor: pointer;
  border: 0 !important;
}
#phases-wrapper .range input::-webkit-slider-runnable-track {
  width: 100%;
  height: 1px;
  cursor: pointer;
  /*background: #ffffff;*/
}
#phases-wrapper .range input::-moz-range-track {
  width: 100%;
  height: 1px;
  cursor: pointer;
  /*background: #ffffff;*/
}
#phases-wrapper .range input::-ms-track {
  width: 100%;
  height: 1px;
  cursor: pointer;
  /*background: #ffffff;*/
}
#phases-wrapper .range input:focus {
  background: none;
  outline: none;
}
#phases-wrapper .range input::-ms-track {
  width: 100%;
  cursor: pointer;
  background: transparent;
  border-color: transparent;
  color: transparent;
}

#phases-wrapper .range-labels {
  margin-top: 18px;
  margin-bottom: 0;
  /*margin-left: -45px;
  margin-right: -45px;*/
  padding: 0;
  list-style: none;
}
#phases-wrapper .range-labels li {
  word-wrap: break-word;
  position: relative;
  float: left;
  /*width: 100px;*/
  text-align: center;
  color: #ffffff;
  font-size: 15px;
  cursor: pointer;
  text-shadow: 1.3px 1.3px rgba(0,0,0,0.8);
  padding: 3px;
  display: flex;
  justify-content: center;
}
#phases-wrapper .range-labels li::before {
  position: absolute;
  top: -25px;
  right: 0;
  left: 0;
  content: "";
  margin: 0 auto;
  width: 9px;
  height: 9px;
  background: #ffffff;
  border-radius: 99%;
}
#phases-wrapper .range-labels .active {
    color: #febe10;
    text-shadow: none;
    background-color: rgba(0,0,0,0.5);
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
#phases-wrapper .range-labels .selected::before {
  background: #febe10;
}
#phases-wrapper .range-labels .active.selected::before {
  display: none;
}

#phases-wrapper .range-labels li .phase-number {
    position: absolute;
    left: 50%;
    top: -30px;
    text-align: center;
    z-index: 3;
    background-color: #febe10;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    text-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 1px;
    font-size: 12px;
    transform: translate(-50%,0);
    margin-left: 0 !important;
}
#phases-wrapper .range-labels li .phase-name {
    text-shadow: 1px 1px 4px rgba(0,0,0,0.88);
    font-size: 100%;
    line-height: 120%;
    margin-right: auto !important;
    margin-left: auto !important;
    display: inline-flex;
    padding: 3px;
    justify-content: center;
    font-weight: 600;
    width: auto !important;
    max-width: 100%;
}
#phases-wrapper .range-labels li.active .phase-name {
    text-shadow: none;
}
#phases-wrapper .range-labels li.long:first-child .phase-name {
    left: 0;
    -webkit-transform: none;
    transform: none;
}
#phases-wrapper .range-labels li.long:last-child .phase-name {
    right: 0;
    left: auto;
    -webkit-transform: none;
    transform: none;
    justify-content: flex-end;
}

#phases-wrapper .range input::-webkit-slider-thumb {
  display: none;
    visibility: hidden;
}
#phases-wrapper .range input::-moz-range-thumb {
  display: none;
    visibility: hidden;
}
#phases-wrapper .range input::-ms-thumb {
  display: none;
    visibility: hidden;
}
@media screen and (max-width: 650px), (max-height: 500px) {
    #phases-wrapper .range-labels li.active {
        background-color: transparent;
        box-shadow: none;
    }
    #phases-wrapper .range-labels li .phase-name {
        display: none !important;
    }
	#phases-wrapper .range-labels li .after-phase {
	  display: none !important;
	}
    #phases-wrapper .range-labels li.active .phase-name {
        display: inline-block !important;
        max-width: none;
    }
	#phases-wrapper .range-labels li.active .after-phase {
		display: inline-flex !important;
		top: -70px;
		transform: translateX(50%);
	}
    #phases-wrapper .range-labels li.active .phase-name {
        position: absolute !important;
        left: 50%;
        -webkit-transform: translate(-50%,0);
        transform: translate(-50%, 0);
        margin-left: 0 !important;
        margin-right: 0 !important;
        bottom: 50px;
        text-align: center;
        justify-content: center;
        background-color: rgba(0,0,0,0.5);
        border-radius: 23px;
        color: #ffffff;
        max-width: none;
        /*max-width: 200%;*/
        display: flex !important;
        white-space: nowrap;
    }
    #phases-wrapper .range-labels li.active.long:first-child .phase-name {
        left: 0;
        -webkit-transform: none;
        transform: none;
    }
    #phases-wrapper.large .range-labels li.active.long:last-child .phase-name {
        right: 0;
        left: auto;
        -webkit-transform: none;
        transform: none;
    }
}
@media screen and (max-width: 450px) {
    #phases-wrapper {
        bottom: 30px;
    }
}
body.mobile #phases-wrapper {
    bottom: 20px;
}

