.tree_hierachy_wrapper {
  max-width: 100%;
  overflow-x: auto;
  text-align: center;
}

.tree_hierachy {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;

  border: 1px solid rgba(0, 0, 0, 0.15);
  color: white;
  font-weight: bold;
  font-size: small;

  flex-wrap: wrap;

  width: fit-content;
}

.tree_hierachy > canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.tree_hierachy > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.tree_hierachy > div > div {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  align-self: flex-start;
  padding: 0.1rem 0.5rem;
  margin: 0.2rem 0.2rem;
}

:root {
  --tree-label: 128;
  --tree-name: 0;
}

.tree_hierachy > div > div > div {
  background-color: rgb(var(--tree-name), var(--tree-name), 255);
  min-width: 1rem;
  padding: 0.1rem 0.5rem;
  margin: 0.1rem 0.1rem;
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
  height: 1.6rem;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.tree_hierachy > div > div > div:first-child {
  background-color: rgb(var(--tree-label), var(--tree-label), 255);
  width: 3rem;
  height: 2rem;
  padding: 0.1rem 0rem;
  margin-right: 0.5rem;
}

.tree_hierachy > div > div:first-child > div {
  background-color: rgb(255, var(--tree-name), var(--tree-name));
  font-size: medium;
}

.tree_hierachy > div > div:first-child > div:first-child {
  background-color: rgb(255, var(--tree-label), var(--tree-label));

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
