html {
  font-family: Arial, Helvetica, sans-serif;
  min-height: 100svh;
}

main {
  display: grid;
  grid-template-columns: 20rem 1fr;
  gap: 1rem;
  height: 100%;

  > * {
    box-shadow: 0 0 5px black;
  }
}

#sidebar {
  padding: 1rem;
  overflow: scroll;
  max-height: 100vh;

  h1 {
    text-align: center;
  }

  h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  input,
  option,
  select,
  > button {
    width: 100%;
    padding: 0.5rem;
  }
}

canvas {
  width: 100%;
  height: 100%;
}

#contextMenu hr {
  width: 100% !important;
  opacity: 0.2;
}

#contextMenu {
  position: absolute;
  top: 0;
  left: 0;
  float: left;
  background-color: #171d1e;
  color: white;
  display: flex;
  flex-direction: column;
  border-radius: 0.5rem;
  padding: 0.5rem 0;

  button {
    background-color: transparent;
    color: inherit;
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.5rem 2rem;
    outline: none;
    border: none;

    &[disabled] {
      opacity: 0.5;
    }

    &:not([disabled]):hover {
      background-color: #393f41;
    }
  }
}

#shortest_paths_list li:hover {
  background-color: rgba(0 0 0 / 0.1);
}

#shortest_paths_list li {
  display: flex;
  justify-content: space-between;
}
