// App and Bootstrap variables required
@import '~bootstrap/scss/functions';
@import '~bootstrap/scss/variables';
@import '~bootstrap/scss/mixins';
@import '../../scss/variables';
@import '../../scss/bootstrap/variables';

.statCard {
  margin-bottom: 24px;
  height: calc(100% - 24px);
}

.cardBody {
  display: inline-block;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
}

.label {
  font-weight: $font-weight-medium;
  letter-spacing: 0.15px;
  width: 100%;
  margin-bottom: 0.5rem;
}

.valueUnit {
  align-items: flex-end;
}

.value {
  font-weight: $font-weight-semibold;
  font-size: 2.125rem;
  line-height: 2.5rem;
  word-break: break-all;
}

.unit {
  flex-grow: 0;
  text-align: end;
  font-weight: $font-weight-medium;
  letter-spacing: 0.15px;
  color: $secondary;
}

.text {
  text-align: end;
  line-height: 1.5rem;
}

.statCardActionWithIconAnimation {
  svg {
    animation: rotation 1s infinite linear;
    color: $primary;

    &:hover {
      color: $primary;
    }
  }
}

.statCardActionWithIcon {
  flex-grow: 0;
}

@keyframes rotation {
  from {
    transform: rotate(0deg);
    visibility: visible;
  }

  to {
    transform: rotate(359deg);
  }
}
