@keyframes pulse {
  0% {
    scale: 0.8;
  }
  20% {
    scale: 1;
  }
  100% {
    scale: 0.8;
  }
}

:root {
  --tree-color: black;
  --sans: 'AalterGrotesque', serif;
  --serif-italic: 'ExecutifItalic', sans-serif;
  --serif: 'ExecutifRegular', sans-serif;
  --font-size-base: 1rem;
  --color-red: #f85059;
}

body {
  font-size: 1rem;
  padding: 30px;
  width: 5000px;
  cursor: grab;
}

h1,
h2,
h3 {
  margin: 0;
}

#tidy-tree {
  margin-top: 2rem;
}

#legende {
  display: none;
  line-height: 3rem;
  font-family: var(--serif);
}

svg {
  overflow: visible;
  max-width: 100%;
  height: auto;

  user-select: none;

  font-family: var(--sans);
  font-size: calc(var(--font-size-base) * 1);
}

circle {
  transition: transform 0.15s ease-in-out;
}

.node line {
  transition: all 0.3s ease-in-out;
}
.node line.plain {
  transform: scaleX(0);
}

.node.open line.dashed {
  transform: scaleX(0);
}

.node .children-count {
  font-size: var(--font-size-base);
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.node.leaf:hover {
  cursor: auto;
}

.node.closed:hover circle {
  transform: scale(3);
}
.node.closed:hover .children-count {
  opacity: 1;
}

.node.closed:hover line.plain {
  transform: scaleX(1);
}

.node.closed .entry {
  text-align: right;
}

.entry h3 {
  font-size: 1rem;
}

.entry .date {
  margin-right: 0.5rem;
}

.node.with-description .name {
  text-decoration: underline dotted 2px;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2rem;
  cursor: help;
}

[data-type='title'] {
  font-size: calc(var(--font-size-base) * 2.5);
  background-color: white;
  text-align: center;
  border-radius: 1rem;
}

.description {
  display: none;
}

.description p {
  font-family: var(--serif);
  margin: 0;
  background-color: #fff;
  border: 2px solid #000;
  padding: 0.5rem;
  text-decoration: none !important;
}

.node:hover .description {
  display: block;
}
