/* 
https://dev.to/alvaromontoro/create-a-tag-cloud-with-html-and-css-1e90
*/
ul.cloud {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
}
ul.cloud a {
    --color: #a00;
    --size: 26pt; /* if there is no data-weight attr */
    display: block;
    position: relative;
    padding: 0.125rem 0.25rem;
    font-family: Georgia, Cambria, 'Times New Roman', Times, serif;
    /* font-size: 1.5rem; */
    /* font-size: calc(var(--size) * 0.32rem + 0.7rem); */
    font-size: var(--size);
    letter-spacing: var(--lt-space);
    line-height: var(--line-hgt);
    font-optical-sizing: auto;
    text-decoration: none;
    color: var(--color);
    /* opacity: calc((15 - (10 - var(--font-fit))) / 15); */
    z-index: calc(24-var(--font-fit));
  }
ul.cloud[data-show-value] a::after {
    content: "|" attr(data-frequency);
    font-size: 0.8rem;
    letter-spacing: 0px;
    line-height: auto;
}
ul.cloud a[data-weight="1"]   { --font-fit: 1;  --size: 12pt; --line-hgt: 1.0; --lt-space: 0px; }
ul.cloud a[data-weight="2"]   { --font-fit: 2;  --size: 13pt; --line-hgt: 1.0; --lt-space: 0px; }
ul.cloud a[data-weight="3"]   { --font-fit: 3;  --size: 14pt; --line-hgt: 1.0; --lt-space: 0px; }
ul.cloud a[data-weight="4"]   { --font-fit: 4;  --size: 15pt; --line-hgt: 1.0; --lt-space: 0px; }
ul.cloud a[data-weight="5"]   { --font-fit: 5;  --size: 16pt; --line-hgt: 1.0; --lt-space: 0px; }
ul.cloud a[data-weight="6"]   { --font-fit: 6;  --size: 18pt; --line-hgt: 1.0; --lt-space: 0px; }
ul.cloud a[data-weight="7"]   { --font-fit: 7;  --size: 20pt; --line-hgt: 1.0; --lt-space: 0px; }
ul.cloud a[data-weight="8"]   { --font-fit: 8;  --size: 22pt; --line-hgt: 1.0; --lt-space: 0px; }
ul.cloud a[data-weight="9"]   { --font-fit: 9;  --size: 24pt; --line-hgt: 1.0; --lt-space: 0px; }
ul.cloud a[data-weight="10"]  { --font-fit: 10; --size: 26pt; --line-hgt: 1.0; --lt-space: 0px; }
ul.cloud a[data-weight="11"]  { --font-fit: 11; --size: 28pt; --line-hgt: 1.0; --lt-space: 0px; }
ul.cloud a[data-weight="12"]  { --font-fit: 12; --size: 32pt; --line-hgt: 0.9; --lt-space: -1px; }
ul.cloud a[data-weight="13"]  { --font-fit: 13; --size: 36pt; --line-hgt: 0.9; --lt-space: -1px; }
ul.cloud a[data-weight="14"]  { --font-fit: 14; --size: 40pt; --line-hgt: 0.9; --lt-space: -1px; }
ul.cloud a[data-weight="15"]  { --font-fit: 15; --size: 44pt; --line-hgt: 0.9; --lt-space: -1px; }
ul.cloud a[data-weight="16"]  { --font-fit: 16; --size: 48pt; --line-hgt: 0.9; --lt-space: -1px; }
ul.cloud a[data-weight="17"]  { --font-fit: 17; --size: 54pt; --line-hgt: 0.9; --lt-space: -2px; }
ul.cloud a[data-weight="18"]  { --font-fit: 18; --size: 60pt; --line-hgt: 0.9; --lt-space: -2px; }
ul.cloud a[data-weight="19"]  { --font-fit: 19; --size: 66pt; --line-hgt: 0.9; --lt-space: -2px; }
ul.cloud a[data-weight="20"]  { --font-fit: 20; --size: 72pt; --line-hgt: 0.9; --lt-space: -2px; }
ul.cloud a[data-weight="21"]  { --font-fit: 21; --size: 80pt; --line-hgt: 0.8; --lt-space: -3px; }
ul.cloud a[data-weight="22"]  { --font-fit: 22; --size: 88pt; --line-hgt: 0.8; --lt-space: -3px; }
ul.cloud a[data-weight="23"]  { --font-fit: 23; --size: 96pt; --line-hgt: 0.8; --lt-space: -3px; }
/*
ul.cloud li:nth-child(5n+1) a { --color: #b36; }
*/
ul.cloud li:nth-child(2n+1) a { --color: #a00; }
ul.cloud li:nth-child(3n+1) a { --color: #33a; }
ul.cloud li:nth-child(4n+1) a { --color: #306; }
ul.cloud li:nth-child(6n+1) a { --color: #171; }
ul.cloud li:nth-child(7n+1) a { --color: #000; }

ul.cloud a:focus {
    outline: 1px dashed;
} 
ul.cloud a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 100%;
    background: var(--color);
    transform: translate(-50%, 0);
    opacity: 0.15;
    transition: width 0.25s;
}
ul.cloud a:focus::before,
ul.cloud a:hover::before {
  width: 100%;
}
@media (prefers-reduced-motion) {
  ul.cloud * {
    transition: none !important;
  }
}
ul.lexical {
  display: block;
  list-style: none;
}
ul.lexical li {
  display: flex;
  border-bottom: 1px dotted #666;
}
ul.lexical li:hover {
  border-bottom: 1px solid #666;
}
ul.lexical li span:nth-child(1) {
  padding: 5px 10px;
}
ul.lexical li span:nth-child(2) {
  display: flex;
  align-items: flex-end;
  flex-wrap: nowrap;
  justify-content: space-between;
  min-width: 160px;
  padding: 0px 7px;
  margin-bottom: 7px;
}
ul.lexical a {
  font-family: Cambria, 'Times New Roman';
  font-size: 32pt;
  color: #000049;
  text-decoration: none;
}
ul.lexical a:hover {
  background-color: #00000020;
  text-decoration: underline;
}
ul.lexical[data-show-value] a::after {
  content: "|" attr(data-frequency);
  font-size: 0.9rem;
  line-height: auto;
}
ul.lexical a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 100%;
  background: var(--color);
  transform: translate(-50%, 0);
  opacity: 0.15;
  transition: width 0.25s;
}
ul.lexical i {
  font-size: 1rem;
  color: #494949;
  background-color: #eef;
  border: 1px solid #fff;
  border-radius: 3px;
  padding: 7px;
  margin-left: 3px;
  cursor: pointer;
}
ul.lexical i:hover {
  color: var(--form-btn-hover-color);
  background-color: var(--form-btn-hover-bg);
  border: 1px solid var(--form-btn-hover-bg);
}
