* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
.bar-chart {
  margin: 0 auto;
  max-width: 600px;
  position: relative;
}
.bar-chart h2 {
  text-align: center;
  margin: 0;
  font-size: 1.5em;
  font-weight: 600;
}
.bar-chart .row {
  position: relative;
  line-height: 1.25em;
  margin-bottom: 2em;
}
.bar-chart .row .segment {
    -webkit-box-flex: 1;
        -ms-flex: 1 100%;
            flex: 1 100%;
    display: block;
    position: relative;
    -ms-flex-item-align: end;
        align-self: flex-end;
}
.bar-chart .row .segment:before {
  content: "";
  display: block;
  width: 100%;
  bottom: 0;
  position: absolute;
  height: 1px;
  background-color: #414245;
  z-index: -1;
}
.bar-chart .label {
  display: block;
  font-size: .9em;
  text-align: center;
  color: #666;
  font-style: italic;
}
/* X Axis */
.bar-chart .x-axis {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
    padding: 0 2em 0 .5em;
  height: 100%;
  margin-bottom: 3.5em;
}
.bar-chart .x-axis .year {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    position: relative;
}
.bar-chart .x-axis .year .col {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    height: 50%;
    margin: 0 12%;
    position: relative;
}
.bar-chart .x-axis .year .col .bar {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  background-color: #2493bf;
  -ms-flex-item-align: end;
      align-self: flex-end;
  position: relative;
  margin: 0;
  height: 0px;
  -webkit-transition: height, 1s ease;
  -o-transition: height, 1s ease;
  transition: height, 1s ease;
}
.bar-chart .x-axis .year .col .bar[style*="height"] {
  min-height: 2px;
}
.bar-chart .x-axis .year .col .bar.negative {
    -ms-flex-item-align: start;
        align-self: flex-start;
    top: 100%;
}
.bar-chart .x-axis .label {
    padding: .5em .25em 0;
    /* top: 328px; */
    position: absolute;
    line-height: 1.25em;
    width: 100%;
    z-index: 99;
}
.bar-chart .x-axis .label a {
    text-decoration: none;
    display: block;
}
.bar-chart .x-axis .label a .name {
    display: none;
}
.bar-chart .x-axis .year .col .bar .tooltip,
.bar-chart .x-axis .year .col .bar .tooltip:after {
    display: block;
    position: absolute;
  z-index: 2;
  left: 50%;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
}
.bar-chart .x-axis .year .col .bar .tooltip {
    top: -2.5em;
    font-size: .75em;
    padding: 2px 5px;
}
@media screen and (min-width: 639px) {
    .bar-chart .x-axis .label a .name {
        display: inline-block;
    }
    .bar-chart .x-axis .label a .nickname::before {
        content: "(";
    }
    .bar-chart .x-axis .label a .nickname::after {
        content: ")";
    }
}
/* Y Axis */
.bar-chart .y-axis {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  height: 100%;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  position: absolute;
  width: 100%;
  padding: 0 1.5em 0 .25em;
}
.bar-chart .y-axis .label {
    margin: 0 -2.5em -10px auto;
    width: 2.5em;
    text-align: left;
    padding-right: 0;
    padding-left: .5em;
}

.bar-chart { 
  display: none;
 }

.bar-chart.active {
  display: block;
}

.bar-chart h3 {
    font-size: 20px;
    font-weight: 200;
    color: #6a6a6a;
    letter-spacing: 1px;
    text-align: center;
}

label.returns-percent {
  position: relative;
  top: 264px;
  text-align: center;
  display: block;
  width: 100%;
  color: #666;
  font-size: 12px;
  font-style: italic;
  z-index: 99;
}

#returns-chart-container {
  position: relative;
  width: 740px;
  margin: 0 auto;
}

.return-chart-nav {
  position: absolute;
  top: 400px;
}

.return-chart-nav.prev {
  left: 0;
}

.return-chart-nav.next {
  right: 0;
}

  div#slideArrows {
    margin: 0 auto;
    width: 80px;
    text-align: center;
  }
  div.slideArrow {
    font-weight: bold;
    font-size: 48px;
    float: left;
    margin-right: 12px;
    cursor: pointer;
  }
  div.slideArrow.inactive {
    font-weight: normal;
    color: #999;
    cursor: default;
  }

  div.slideArrow {
    opacity: 1;
    transition: opacity .1s ease-in-out;
    -moz-transition: opacity .1s ease-in-out;
    -webkit-transition: opacity .1s ease-in-out;
    width: 53px;
    height: 53px;
  }
  div.slideArrow.inactive, div.slideArrow:hover {
    opacity: 0.5;
    transition: opacity .1s ease-in-out;
    -moz-transition: opacity .1s ease-in-out;
    -webkit-transition: opacity .1s ease-in-out;
  }

  div#prevArrow {
    background: url(/assets/images/prev-active.png);
    position: absolute;
    top: 144px;
    left: 0;
  }

  div#nextArrow {
    background: url(/assets/images/next-active.png);
    position: absolute;
    top: 144px;
    right: 0;
  }

/* Mobile */
@media only screen and (max-width: 767px) {

    #returns-chart-container {
        width: 100%;
        min-width: 390px;
        max-width: unset;
        margin-left: 10px;
    }

    .bar-chart .x-axis .year .col {
        height: 100%;
    }

    div#prevArrow {
        top: 0;
        left: 12px;
    }

    div#nextArrow {
        top: 0;
        right: 22px;
    }

    .bar-chart h3 {
        padding-top: 12px;
        margin-left: -22px;
    }

    .bar-chart .x-axis .label {
        position: relative;
    }

}