
/* Fullscreen modal */
#container {
  height: 100%;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.graph-toolbar {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  background: #222;
  align-items: center;
  justify-content: flex-end;
}

#graph {

  height: 100%;
  display: flex;
  flex-direction: row;
}

.graph-toolbar button {
  padding: 6px 14px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background: #555;
  color: white;
  font-size: 1rem;
}

#graph svg {
  flex: 1;
  width: 100%;
}

.nodes .highlight {
    fill-opacity: 1
}

.texts .highlight {

  text-decoration: underline;
  fill: #000;
}

.nodes .related_child, .texts .related_child{
  fill: #2d5593;
}

#sidebar {
  width: 350px;
  padding: 20px;
  border-left: 2px solid navy;

  div{
    margin-top: 50px;
  }
  
  a{
    font-size: larger;
    display: block;
    padding: 5px 0;
    text-decoration: underline;
    color: navy;
  }
}

#legend ul {
  padding-left: 50px;
}

#legend .parents {
  font-weight: bold;
  color: #2c8ccc;
}

#legend .children {
  font-weight: bold;
  color: #2d5593;
}

#legend .neighbours {
  font-weight: bold;
  color: #cb535c;
}


.nodes .related_parent, .texts .related_parent{
  fill: #2c8ccc;
}

.links line.related_parent {
  stroke: #2c8ccc;
}
.links line.related_child {
  stroke: #2d5593;
}
.links line.related_neighbour {
  stroke: #cb535c;
}

.nodes .unrelated, .texts .unrelated, .links .unrelated {
  fill-opacity: 0.2;
  stroke-opacity: 0.2;
}

.links line {
  stroke-opacity: 0.6;
}

.links .link_parent {
  stroke-width: 2.5px;
  stroke: gray;
}

.nodes .related_neighbour, .texts .related_neighbour {
  fill: #cb535c;
}

.links .link_neighbour {
  stroke: gray;
  stroke-width: 1.7px;
}

.texts, .nodes circle {
  fill: #4c4444;
}

.nodes circle {
  fill-opacity: 0.8;
}

.texts {
  font-family: "Source Sans Pro", "Lucida Grande", Verdana, sans-serif;
}

.Relationship {
  font-size: 1.1em;
  line-height: 0.9;
  font-family: URW Chancery L, cursive
}

.Process {
  font-style: oblique;
}
