body {
    background-color: #f3f3f3;
    padding: 0px;
}

svg {
    border: 1px solid #ccc;
    background-color: #fff;
}

.link {
    stroke: #999;
    stroke-opacity: 0.6;
    transition: opacity 0.5s ease;
    stroke-width: 3;
    marker-end: url(#arrowhead);
}

.arrowhead {
    opacity: 0;
}

.circle {
    stroke-width: 2px;
}

.text {
    font-size: 12px;
    text-anchor: middle;
    text-transform: capitalize;
    font-weight: lighter;
    font-family: SANS-SERIF;        
}

.node {
    stroke-width: 1px;
    stroke: #fff;
    cursor: pointer;
}

.node:hover .circle {
    fill: #79b6f2;
    stroke: #fff;
}

.node.active .circle {
    fill: #f29223;
    stroke: #fff;
}

.node.inactive .circle {
    opacity: 0.4;
}

.link.active {
    stroke: #f29223;
    stroke-width: 6;
}

.link.inactive {
    opacity: 0.4;
}

.container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0px 50px;
    width: 100%;
}

.container > * {
    width: 50%;
}

.selected .circle {
    fill: #79b6f2;
    stroke: #fff;
}

.selected .arrowhead {
    opacity: 1;
}

.selected .incoming-value {
    opacity: 1;
}

.selected .outgoing-value {
    opacity: 1;
}

.value {
    font-size: 10px;
    fill: #333;
    text-anchor: middle;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.incoming-value {
    dominant-baseline: central;
    font-family: Arial, Helvetica, sans-serif;
    fill: #333;
    text-anchor: middle;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.outgoing-value {
    dominant-baseline: central;
    transform: rotate(180deg);
    font-family: Arial, Helvetica, sans-serif;
    fill: #333;
    text-anchor: middle;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.selected .incoming-value {
    opacity: 1;
}

.selected .outgoing-value {
    opacity: 1;
}



.svg-container {
    position: relative;
    background-color: #eee;
}

#network-chart {
width: 100%;
height: 100%;
}

/* Style the full screen button */
#fullscreen-button {
position: absolute;
top: 10px;
left: 10px;
z-index: 1; 
}

.header {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 100%;
  }
  
  .icon img {
    width: 50px;
  }
  
  .settings i {
    width: 50px;
  }
  
  #preloader {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: #f3f3f3;
}

.loader {
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.selected-legend {
    /* Define how your selected legend items should look like here, for example: */
    background-color: #ccc;
  }


.legend {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    margin-right: 10px;
  }
  .legend span{
    font-size: 0.4em;
  }
  .legend-box {
    width: 20px;
    height: 20px;
    margin-right: 5px;
  }