/*------------- #PIE-CHARTS --------------*/

.crumina-pie-chart-item {

  @media (max-width: 570px) {
    margin-bottom: 30px;
  }
}

.pie-chart {

  width: 170px;
  height: 170px;
  position: relative;
  border-radius: 100%;
  border: 5px solid $border-color;
  float: left;
  margin-right: 30px;

  @media (max-width: 980px) {
    float: none;
    margin-bottom: 30px;
  }

  &:after {
    content: '';
    display: block;
    width: 145px;
    height: 145px;
    background-color: transparent;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    border-radius: 100%;
    border: 5px solid $border-color;
    z-index: -1;
  }

  .content {
    font-size: 40px;
    color: $heading-color;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
  }

  img, .icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    font-size: 60px;
    line-height: 1;
  }
}

.pie-chart-content {
  overflow: hidden;

  a {
    color: $font-color;
    transition: all .3s ease;
    font-size: 16px;

    &:hover {
      color: var(--primary-accent-color);

      i {
        color: var(--primary-accent-color);
      }
    }

    i {
      margin-left: 10px;
      transition: all .3s ease;
      font-size: 12px;
    }
  }
}

.pie-chart-content-text {
  margin-bottom: 20px;
}

.pie-chart-content-title {
  line-height: 1.2;
  margin-bottom: 15px;
}

.pie-chart canvas {
  max-width: 100%
}
