body * {
  box-sizing: border-box;
}
#network-viz-main {
  width: 100%;
  max-width: 1280px;
  margin-bottom: 60px;
  display: flex;
  align-items: start;
  justify-content: space-between;
}
#projection {
  background: #fff;
  width: 100%;
  border: 1px solid black;
  position: relative;
  overflow: hidden;
}

#network-viz-main svg {
  background: #fff;
  width: 100%;
  /* height: auto; */
}

#network-viz-main .node:hover {
  cursor: pointer;
  opacity: 0.9;
  color: black;
}

#network-viz-main .node text:first-of-type {
  stroke-width:  0;
}

#network-viz-main .node:hover text:first-child {
  fill: black;
}

#projection-sidebar {
  width: 100%;
}

#network-viz-main .legend-box:after {
  content: "";
  display: block;
  clear: both;
}

#network-viz-main .search-box {
  width: 100%;
}

#network-viz-main .legend-box {
  width: 100%;
  border: 1px solid silver;
  padding: 30px;
  margin-bottom: 30px;
}

#network-viz-main line:hover {
  stroke: black;
  cursor: pointer;
}

#network-viz-main path:hover {
  stroke: black;
  cursor: pointer;
}


#network-viz-main #js-coPubs {
  background: #fff;
  position: absolute;
  border: 1px solid black;
  padding: 20px;
  z-index: 2;
  width: 500px;
}

#network-viz-main #js-coPubs > a {
  margin-top: 14px;
  float: right;
  color: #165485;
  text-decoration: none;
}

#network-viz-main #js-coPubs > a:hover {
  text-decoration: underline;
}

#network-viz-main .show {
  display: block;
}

#network-viz-main .hide {
  display: none;
}

#network-viz-main .active-node {
  transition: fill 0.5s;
  fill: #333;
}

#network-viz-main .active-link {
  transition: stroke-opacity 0.5s, stroke 0.5s;
  stroke: #333;
  stroke-opacity: 1;
}

#network-viz-main label {
  cursor: pointer;
  display: block;
}

#network-viz-main .legend-entry {
  /* width: 49.9%;
  float: left; */
  position: relative;
  margin-bottom: 20px;
}

#network-viz-main .legend-entry .circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  position: absolute;
  /* top: calc(50% - 15px); */
    
}

#network-viz-main .legend-entry p {
  margin: 0;
  /* width: calc(100% - 40px); */
  width:auto;
  margin-left: 40px;
}

.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

#node-graph-filters {
  margin-bottom: 30px;
}

#node-graph-filters p,
#node-graph-filters label {
  margin: 0;
}

#selected-node-name {
  font-weight: bold;
}

@media screen and (max-width: 400px) {
  #network-viz-main .legend-box { padding: 10px; }
  #network-viz-main .legend-box {
    padding: 10px;
  }
}

@media screen and (max-width: 650px) {
  #network-viz-main {
    flex-direction: column;
    margin-bottom: 30px;
  }
  #projection-sidebar {
    margin-top: 40px;
  }
}

@media screen and (max-width: 850px) {
  #network-viz-main .legend-box {
    padding: 22px;
  }
  #network-viz-main .legend-entry {
    margin-bottom: 14px;
    font-size: 12px;
  }
  #network-viz-main .legend-entry .circle {
    width: 22px;
    height: 22px;
    top: calc(50% - 11px);
  }
}

@media screen and (min-width: 650px) {
  #projection-sidebar {
    max-width: 400px;
    width: 35%;
  }
  #network-viz-main #projection {
    width: 70%;
    margin-right: 2%;
  }
  #network-viz-main .legend-entry {
    float: none;
    width: 100%;
  }
}

@media screen and (min-width: 1200px) {
   #network-viz-main .legend-box {
    margin-top: 40px;
  }
  #network-viz-main #projection {
    height: 800px;

    width: 75%;
    max-width: 800px;
    margin-right: 30px;
  }
}

.legend-box div:last-child {
  display:none;
}