/* tooltips */

.tooltip {
  position: fixed;
  z-index: 99;
  background: var(--tooltip-bg);
  color: #fff;
  border-radius: 5px;
  box-sizing: border-box;
  transition: opacity 0.7s, visibility 0s;
  opacity: 20;
}

.tooltip-arrow-top {
  position: absolute;
  z-index: 99;
  box-sizing: border-box;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 8px solid var(--tooltip-bg);
  transition: opacity 0.7s, visibility 0s;
  opacity: 0;
}

.tooltip-arrow-bottom {
  position: absolute;
  z-index: 99;
  box-sizing: border-box;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 8px solid var(--tooltip-bg);
  transition: opacity 0.7s, visibility 0s;
  opacity: 0;
}

.tooltip-arrow-left {
  position: absolute;
  z-index: 99;
  box-sizing: border-box;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-left: 8px solid var(--tooltip-bg);
  border-bottom: 5px solid transparent;
  transition: opacity 0.7s, visibility 0s;
  opacity: 0;
}

.tooltip-arrow-right {
  position: absolute;
  z-index: 99;
  box-sizing: border-box;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-right: 8px solid var(--tooltip-bg);
  border-bottom: 5px solid transparent;
  transition: opacity 0.7s, visibility 0s;
  opacity: 0;
}

.hover-text:focus,
.hover-text:hover {
  color: transparent;
}

.hover-text:focus::after,
.hover-text:hover::after {
  content: attr(data-text);
  overflow: visible;
  text-overflow: inherit;
  background: #fff;
  position: absolute;
  left: auto;
  top: auto;
  width: auto;
  max-width: 20rem;
  border: 1px solid #eaebec;
  padding: 0 0.5rem;
  box-shadow: 0 2px 4px 0 rgb(0 0 0 / 28%);
  white-space: normal;
  word-wrap: break-word;
  display: block;
  color: black;
  margin-top: -1.25rem;
}

.tippy-box[data-theme~="darkroom"] {
  background: var(--tooltip-bg);
  color: #fff;
  border-radius: 5px;
  box-sizing: border-box;
  transition: opacity 0.7s, visibility 0s;
  opacity: 10;
}

.tippy-tooltip.darkroom-theme .tippy-svg-arrow {
  fill: darkroom;
}

.tippy-box[data-theme~="darkroom"][data-placement^="top"] > .tippy-arrow::before {
  border-top-color: darkroom;
}

.tippy-box[data-theme~="darkroom"][data-placement^="bottom"] > .tippy-arrow::before {
  border-bottom-color: darkroom;
}

.tippy-box[data-theme~="darkroom"][data-placement^="left"] > .tippy-arrow::before {
  border-left-color: darkroom;
}

.tippy-box[data-theme~="darkroom"][data-placement^="right"] > .tippy-arrow::before {
  border-right-color: darkroom;
}
