/* Remove default bullets */
ul,
#fileTree {
  list-style-type: none;
}

/* Remove margins and padding from the parent ul */
#fileTree {
  margin: 0;
  padding: 0;
}

/* Style the caret/arrow */
.caret {
  cursor: pointer;
  user-select: none;
  /* Prevent text selection */
}

/* Create the caret/arrow with a unicode, and style it */
.caret::before {
  content: "\25B6";
  color: black;
  display: inline-block;
  margin-right: 6px;
}

/* Rotate the caret/arrow icon when clicked on (using JavaScript) */
.caret-down::before {
  transform: rotate(90deg);
}

/* Hide the nested list */
.nested {
  display: none;
}

/* Show the nested list when the user clicks on the caret/arrow (with JavaScript) */
.visible {
  display: block;
}

.selected {
  background-color: var(--bs-primary);
}

#fileTree li {
  margin-top: 4px;
}

#fileTree span:not(.caret) {
  cursor: pointer;
  padding: 2px;
  border-radius: 5px;
}

.rise {
  display: inline-block;
  transform: translateY(1.2em);
  opacity: 0;
  animation: riseUp 700ms ease-out forwards;
}

@keyframes riseUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}