/* Bold words */

/* Each word on one line */
.bold-word {
  position: relative;
  white-space: nowrap;
}

.bold-word-bold {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.bold-word-regular {
  position: absolute;
  top: 0;
  left: 0;
  font-weight: var(--bold-word-weight, normal);
  color: var(--bold-word-color);
  line-height: normal;
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
  transition: opacity 0.3s ease;
}

.bold-word.is-bold .bold-word-bold {
  opacity: 1;
}

/* Turning bold */
.bold-word.is-bold .bold-word-regular {
  opacity: 0;
  transition: opacity 0.3s ease 0.2s;
}
