#network-container {
  height: 100vh;
  width: calc(100vw - 550px);
  width: 100%;
  position: fixed;
  right: 0;
  top: 0;
  cursor: auto;
}

#network-container.hovering {
  cursor: pointer
}

#network-container.dragging {
  cursor: grabbing
}

body {
  background-color: #111;
  color: whitesmoke;
  overflow: hidden;
  font-family: 'IBM Plex Sans', 'Helvetica Neue', sans-serif;
}



::selection {
  color: whitesmoke;
  background-color: #555;
}

::-moz-selection {
  color: whitesmoke;
  background-color: #555;
}

#main {
  z-index: -1;
}

button,
input,
textarea {
  font-family: inherit;
}

#copyright {
  color: #555;
  display: inline-block;
}
#copyright:hover {
  color: whitesmoke;
}

#copyrightFullscreenContainer {
  position: absolute;
  bottom: 10px;
  right: 70px;
  text-align: right;
}

.vis-config-s0 {
  color: whitesmoke
}

.vis-network {
  outline: none;
}

#configure-container {
  color: #111
}

.icon {
  display: inline;
  color: #777;
  vertical-align: middle;
  font-size: 1.3em;
}



/* Loading */
#loading-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  color: whitesmoke;
  user-select: none;
}

/* Full Screen */
#toggleExpandButton {
  /*display:none;*/
  cursor: pointer;
  background-color: transparent;
  border: none;
  font-size: 1em;
  margin-bottom: 15px;
  vertical-align: text-bottom;
  margin-left: 20px;
}

#toggleExpandButton:hover .icon {
  color: whitesmoke;
}

body.fullscreen #toggleExpandButton .fa-expand,
#toggleExpandButton .fa-compress {
  display: none;
}

#toggleExpandButton .fa-expand,
body.fullscreen #toggleExpandButton .fa-compress {
  display: inherit;
}


/* Info */
#infoIconContainer {
  display: none;
}

#infoContainer {
  position: fixed;
  width: 80vw;
  height: 80vh;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  margin: auto;
}

#infoContainer.hidden {
  display: none;
}

#infoIconContainer {
  position: fixed;
  right: 10px;
  top: 10px;
  color: #777;
  font-size: 1.3em;
  z-index: 1;
}

#infoIconContainer:hover {
  color: whitesmoke;

}



/* Search */
#search-container {
  position: fixed;
  display: inline-block;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  top: 10px;
  left: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1em;
  transition: left 0.5s ease;
}

#search-container.hidden {
  left: -172px;
  transition: left 0.5s ease;
}

.input-with-autocomplete {
  display: inline-block;
  position: relative;
}

.input-box {
  display: inline-block;
  vertical-align: top;
  position: relative;
  width: 150px;
  white-space: nowrap;
  overflow: hidden;
  border: 1px solid transparent;
  border-bottom: solid 1px #ddd;
  padding: 10px;
  /*font-size: 16px;*/
  cursor: text;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.input-box:focus {
  outline-style: solid;
  outline-color: #ddd;
  outline-width: 0;
}

#search-icon {
  display: inline;
  color: #777;
  vertical-align: middle;
  font-size: 1.3rem;
  margin-left: 20px;
}

#search-icon:hover {
  color: whitesmoke;
  cursor: pointer;
}

span.autocomplete {
  display: inline-block;
  color: #969696;
  cursor: text;
  width: 300px;
  white-space: pre;
}

.autocomplete-items {
  position: absolute;
  /*border: 1px solid #d4d4d4;*/
  border-bottom: none;
  border-top: none;
  z-index: 99;
  left: 0;
  right: 0;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.autocomplete-items div:nth-child(1) {
  opacity: 0.9
}

.autocomplete-items div:nth-child(2) {
  opacity: 0.75
}

.autocomplete-items div:nth-child(3) {
  opacity: 0.6
}

.autocomplete-items div:nth-child(4) {
  opacity: 0.45
}

.autocomplete-items div:nth-child(5) {
  opacity: 0.30
}

.autocomplete-items div:nth-child(6) {
  opacity: 0.15
}


.autocomplete-items div {
  padding: 10px;
  cursor: pointer;
  background-color: transparent;
  overflow: visible;
  white-space: nowrap;
  /*border-bottom: 1px solid #d4d4d4;*/
}

.autocomplete-items div:hover {
  /*when hovering an item:*/
  /*background-color: #333;*/
  margin-left: 20px;
}

.autocomplete-active {
  /*when navigating through the items using the arrow keys:*/
  /*background-color: DodgerBlue !important;*/
  color: whitesmoke
}

.autocomplete-active::after {
  content: ' <';
}

.autocomplete-active::before {
  content: '> ';
}

.suggest-fragment {
  font-weight: bold;
}

.suggest-rest {
  color: inherit
}




/* Legend */
.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.legend-item .arrow {
  width: 20px;
  height: 2px;
  margin-right: 5px;
}

#legendContainer {
  z-index: 1;
  position: fixed;
  bottom: 0;
  left: 0;
  display: flex;
  max-width: 98vw;
  pointer-events: none;
}

.hidden#legendContainer {
  bottom: -250px;
}

#legendNetworkContainer {
  height: 100%;
  width: 400px;
  height: 220px;
  margin-left: -140px;
  border: white 0.5px;
  border-top-style: solid;
  border-right-style: solid;
  background-color: rgb(16, 16, 16, 0.5);
  user-select: none;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  pointer-events: all;
}

.toggle-legend-button {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: auto;
  margin-bottom: 20px;
  background-color: transparent;
  color: #777;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
  pointer-events: all;
}

.hidden .toggle-legend-button {
  position: fixed;
  bottom: 0;
  left: 20px;
}

.toggle-legend-button:hover {
  color: whitesmoke;
}

.toggle-legend-button:focus {
  outline: none;
}

.toggle-legend-button::after {
  content: 'Ocultar leyenda';
}

.hidden .toggle-legend-button::after {
  content: 'Leyenda';
}



/* Suggestion Form*/
.suggestionForm {
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
  padding-bottom: 10px;
  /*background-color: #333;*/
  border-radius: 5px;
}

#suggestionForm label {
  user-select: none;
}

form input[type="text"],
form select,
form textarea {
  max-width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: none;
  border-radius: 3px;
  background-color: #222;
  margin-right: 2px;
  margin-left: 2px;
  color: inherit;
}

form input[type="text"] {
  width: 110px;
  font-family: 'IBM Plex Mono';
}

form input:focus,
form textarea:focus,
form select:focus {
  outline-style: solid;
  outline-color: #666;
}

form select {
  font-family: 'IBM Plex Sans';
  appearance: none;
  /*background-image: linear-gradient(to bottom, #111, #222), url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns%3D"http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg" viewBox%3D"0 0 32 32" fill%3D"%23fff"%3E%3Cpath d%3D"M5.172 11.172l1.414-1.414L16 18.586l9.414-9.414 1.414 1.414L16 21.414z"%3E%3C%2Fpath%3E%3C%2Fsvg%3E');*/
  text-align: center;
  background-repeat: no-repeat;
  /*background-position: right 10px center;*/
  background-size: 100%;
  font-weight: bold;
}


form textarea {
  resize: none;
  min-height: 50px;
  width: 100%;
  width: -webkit-fill-available;
}

form input[type="submit"] {
  display: block;
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 3px;
  background-color: #555;
  color: #ddd;
  cursor: pointer;
}

#description-container {
  display: block
}

#description-container label {
  opacity: 0.6;

}

#suggestion-intro {
  display: block;
  margin-bottom: 10px;
  margin-left: 2px;
}

#successMessage {
  background-color: #222;
  color: whitesmoke;
  text-align: center;
  padding: 10px;
  margin-top: 10px;
  border-radius: 3px;
  user-select: none;
}


.checkbox-label {
  display: grid;
  grid-template-columns: 1em auto;
  gap: 0.5em;
  font-size: 0.8em;
  margin-top: 10px;
  color: #969696;
  align-items: end;
  justify-content: end;
}

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  background-color: #111;
  margin: 0;
  font: inherit;
  color: currentColor;
  width: 1.15em;
  height: 1.15em;
  border: 0.15em solid currentColor;
  border-radius: 0.15em;
  transform: translateY(-0.075em);
  display: grid;
  place-content: center;
}

input[type="checkbox"]:focus {
  outline: none;
}

input[type="checkbox"]::before {
  content: "";
  width: 0.5em;
  height: 0.5em;
  transform: scale(0);
  /*transition: 60ms transform ease-in-out;*/
  box-shadow: inset 1em 1em currentColor;
}

input[type="checkbox"]:checked::before {
  transform: scale(1);
}

/* Sidebar */
.sidebar {
  position: fixed;
  bottom: 0;
  right: max(-80vw, -402px);
  /* Adjust this value to change the initial width of the sidebar */
  width: 400px;
  /* Adjust this value to change the width of the sidebar */
  /*height: 100vh;*/
  background-color: #111;
  border-left: whitesmoke 0.5px solid;
  border-top: whitesmoke 0.5px solid;
  transition: right 0.3s ease-in-out;
  z-index: 2;
  max-width: 80vw;
}

.tab {
  display: flex;
  align-items: center;
  height: 30px;
  width: 30px;
  color: #777;
  cursor: pointer;
  border-color: whitesmoke;
  border-width: 0.5px;
  border-right-width: 0;
  border-style: solid;
  padding: 10px;
  position: absolute;
  bottom: 10px;
  left: -51px;
  /* transform: translateX(-50%); */
  z-index: 2;
  transition: right 0.3s ease-in-out;
  justify-content: center;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.tab .arrow {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-top: 2px solid;
  border-right: 2px solid;
  border-color: #777;
  transform: translateX(50%) rotate(225deg);
  transition: transform 0.3s ease-in-out;
  margin-right: 10px;
}

.tab:hover .arrow {
  border-color: whitesmoke
}

.tab:hover .icon {
  color: whitesmoke
}

.tab .icon {
  font-size: 1.2em;
}

.tab.collapsed .arrow {
  transform: rotate(45deg);
}

.sidebar-content {
  /*padding: 20px;*/
  padding: 10px
}

.sidebar.open {
  right: 0;
}