body {
  font: 500 16px 'Helvetica Neue', Helvetica;
  display: flex;
  height: 100vh; /* Full height of viewport */
  width: 100vw;  /* Full width of viewport */
  overflow: hidden; /* Prevent scrolling for the entire body */
}

.node rect {
  stroke: #333;
  fill: #fff;
}

.edgePath path {
  stroke: #333;
  fill: none;
  stroke-width: 1.5px;
}

#dialog {
  width: 300px;
  height: auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
}

#sidebar {
  width: 20vw; /* Set a fixed width for the sidebar */
  height: 100vh; /* Make sidebar full height of viewport */
  background-color: #f4f4f4; /* Light background for visibility */
  padding-right: 10px; /* Add some padding */
  padding-left: 15px;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1); /* Optional shadow for depth */
  overflow: hidden; /* Prevent overflow in the sidebar */
}

/* Title styling */
#sidebar h2 {
  font-size: 1.5em;
  color: #333; /* Dark gray text for good contrast */
  margin-bottom: 15px;
  padding-right: 10px;
}

/* Label styling */
#sidebar label {
  display: block;
  font-size: 1em;
  color: #555; /* Medium gray for label text */
  margin-bottom: 8px;
}

/* Sidebar paragraph styling */
#sidebar p {
  font-size: 0.9em;
  color: #666; /* Lighter gray for text */
  line-height: 1.6; /* Improve readability */
}

/* Basic styling to make it look like a dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

#dropdownButton {
  padding: 10px;
  background-color: #666;
  border: none;
  border-radius: 8px; /* Rounded corners */
  color: white; /* White text */
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  text-align: left;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 10px;
}

#dropdownButton:hover {
  background-color: #555;
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  border-radius: 8px; /* Rounded corners */
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  padding: 10px;
  z-index: 1;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #ddd;
  width: 90%;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0; /* Hidden by default */
}

.dropdown-content.show {
  display: block;
  opacity: 1; /* Fade-in effect */
}

.dropdown-content label {
  display: block;
  padding: 8px 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.dropdown-content label:hover {
  background-color: #f1f1f1; /* Light grey on hover */
}

.dropdown-content input[type="checkbox"] {
  margin-right: 8px;
}

/* Basic styling to make it look like a dropdown */
.dropdown-2 {
  position: relative;
  display: inline-block;
}

#dropdownButton-2 {
  padding: 10px;
  background-color: #666;
  border: none;
  border-radius: 8px; /* Rounded corners */
  color: white; /* White text */
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  text-align: left;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 10px;
}

#dropdownButton-2:hover {
  background-color: #555;
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

.dropdown-content-2 {
  display: none;
  position: absolute;
  background-color: white;
  border-radius: 8px; /* Rounded corners */
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  padding: 10px;
  z-index: 1;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #ddd;
  width: 90%;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0; /* Hidden by default */
}

.dropdown-content-2.show {
  display: block;
  opacity: 1; /* Fade-in effect */
}

.dropdown-content-2 label {
  display: block;
  padding: 8px 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.dropdown-content-2 label:hover {
  background-color: #f1f1f1; /* Light grey on hover */
}

.dropdown-content-2 input[type="checkbox"] {
  margin-right: 8px;
}

.dropdown-3 {
  position: relative;
  display: inline-block;
}

#dropdownButton-3 {
  padding: 10px;
  background-color: #666;
  border: none;
  border-radius: 8px; /* Rounded corners */
  color: white; /* White text */
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  text-align: left;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#dropdownButton-3:hover {
  background-color: #555;
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

.dropdown-content-3 {
  display: none;
  position: absolute;
  background-color: white;
  border-radius: 8px; /* Rounded corners */
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  padding: 10px;
  z-index: 1;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #ddd;
  width: 90%;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0; /* Hidden by default */
}

.dropdown-content-3.show {
  display: block;
  opacity: 1; /* Fade-in effect */
}

.dropdown-content-3 label {
  display: block;
  padding: 8px 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.dropdown-content-3 label:hover {
  background-color: #f1f1f1; /* Light grey on hover */
}

.dropdown-content-3 input[type="checkbox"] {
  margin-right: 8px;
}

#resetButton {
    margin-top: auto; /* Push the button to the bottom */
    padding: 10px 15px; /* Add padding */
    font-size: 16px; /* Increase font size */
    background-color: #007BFF; /* Bootstrap primary color */
    color: white; /* Text color */
    border: none; /* Remove border */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Pointer on hover */
    transition: background-color 0.3s, transform 0.3s; /* Smooth transition */
}

#resetButton:hover {
    background-color: #0056b3; /* Darker shade on hover */
    transform: translateY(-1px); /* Slight scale effect on hover */
}

#resetButton:focus {
    outline: none; /* Remove outline on focus */
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); /* Optional: focus effect */
}

/* Style for the input container */
.input-container {
  margin-bottom: 20px; /* Space below the container */
  margin-top: 20px;
}

/* Style for the input box */
#keywordInput {
  width: 80%; /* Full width */
  padding: 10px; /* Add some padding for comfort */
  border: 1px solid #ccc; /* Light gray border */
  border-radius: 4px; /* Rounded corners */
  font-size: 16px; /* Increase font size */
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  transition: border-color 0.3s; /* Smooth transition for focus */
  margin-bottom: 10px;
}

/* Change border color on focus */
#keywordInput:focus {
  border-color: #007bff; /* Blue border on focus */
  outline: none; /* Remove outline */
}

/* Style for the search button */
#searchButton {
  padding: 10px 20px; /* Add padding */
  background-color: #007bff; /* Bootstrap primary color */
  color: white; /* Text color */
  border: none; /* Remove default border */
  border-radius: 4px; /* Rounded corners */
  font-size: 16px; /* Increase font size */
  cursor: pointer; /* Change cursor to pointer */
  transition: background-color 0.3s, transform 0.3s; /* Smooth transitions */
}

/* Change button background color on hover */
#searchButton:hover {
  background-color: #0056b3; /* Darker blue on hover */
  transform: translateY(-1px); /* Slight lift effect */
}

/* Change button background color on active */
#searchButton:active {
  background-color: #004494; /* Even darker blue on click */
  transform: translateY(0); /* Reset lift effect */
}

#main {
  flex-grow: 1; /* Allow the main content area to take remaining space */
  padding: 10px; /* Add some padding */
  overflow: hidden; /* Prevent scrolling in the main area as well */
}

#legend {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: rgba(255, 255, 255, 0.5);
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 5px;
  font-family: Arial, sans-serif;
}

#legend h3 {
  margin: 0;
  font-size: 16px;
  text-align: center;
  margin-bottom: 10px;
}

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

.legend-item svg {
  margin-right: 10px;
}

.legend-item span {
  font-size: 14px;
}

/* Tooltip Styling */
.tooltip {
  position: absolute;
  background-color: rgba(39, 19, 19, 0.75);
  color: white;
  border-radius: 5px;
  padding: 10px;
  font-size: 16px;
  max-width: 30vw;
  pointer-events: none;
  opacity: 0; /* Start hidden */
  transition: opacity 0.2s ease-in-out;
}

.tooltip .title {
  font-weight: bold;
  font-size: 16px;
}

.tooltip .body {
  margin-top: 5px;
  font-size: 14px;
}