.activePath { /* on click */
  fill: #000000;
}

.form-control {
  width: auto;
  font-size: 100%;
}

#ranking_mode {
  font-weight: bold !important;
}

.form-inline {
  font-size: 50%;
}

.form-group {
  margin-right: 0.25rem;
}

#ranking-tbl {
  font-size: 55%;
  border-color: black;
}

#ranking-selected, #relations-table {
  font-size: 0.6vw;
}

#ranking-selected td, #relations-table td {
  padding: 0.1rem;
}

#ranking-selected colgroup {
  display: inline-block;
}

#selection {
  padding: 5rem;
  padding-top: 1rem;
  padding-bottom: 10rem;
}

#content {
  margin-left: 0;
}

.container {
  margin: auto !important;
  max-width: 100%;
}

#scroll {
  width: 50;
  height: 50;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: rgb(187, 187, 187);
  color: white;
  cursor: pointer;
  padding: 25px;
  border-radius: 50px;
  font-size: 18px;
}

#scroll:hover {
  background-color: #555;
}

#scroll-icon {
  margin-top: -0.75rem;
}

.datamaps-subunit {
  fill: gray;
}

.current_view>:not(caption)>*>* {
  padding: 0rem;
}

.table>thead {
  vertical-align: auto !important;
}

.selected-ccs {
  border: 2px dotted black;
  border-width: 2px 0 2px 0;
  background:#DDD;
}

tr {
  background-blend-mode: screen;
  background: linear-gradient(rgb(242, 242, 242) 0%, rgb(251, 251, 251) 35%, rgb(255, 255, 255) 100%);
}

table.table {
  border: black;
}

#ranking-selected thead th  {
  padding: 0.1rem;
}

#ranking-selected tr, #relations-table tr {
  position: relative;
  transform: scale(1); /*hack, since pos:relative doesn't work on <tr>s*/
}

#ranking-selected .selected-ccs::after {
  content: '';
  display: block;
  width: 3rem;
  border-top: 2px solid;
  border-left: 2px solid;
  position: absolute;
  left: -3rem;
  top:0.3rem;
  height: 100%;        
}

#ranking-selected .selected-ccs~tr:not(.selected-ccs)::after {
  content: '';
  display: block;
  width: 3rem;
  border-left: 2px solid;
  position: absolute;
  left: -3rem;
  top:0;
  height: 150%;        
}

#relations-table tbody tr:first-child::after {
  content: '';
  display: block;
  width: 3rem;
  border-left: 2px solid;
  border-bottom: 2px solid;
  position: absolute;
  left: -3.05rem;
  bottom:0;
  height: calc(100% + 1.1rem);
}

#relations-table {
  border-style: dotted;
  border-width: 2px 0 2px 2px;
}


#ranking-selected > tbody > tr > td:nth-child(1), 
#ranking-tbl > tbody > tr > td:nth-child(1),
#ranking-selected > tbody > tr > td:nth-child(2), 
#ranking-tbl > tbody > tr > td:nth-child(2), 
#relations-table > tbody > tr > td:nth-child(1),
.sel_rank,
.datamaps-subunit { 
  cursor: pointer; 
}