.legend :global {
  position: absolute;
  bottom: 40px;
  width: 50%;
  left: 25%;
  // height: 40px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #1f485690;
  border: 1px solid #04fbfd;
  border-radius: 8px;
  padding: 8px;

  .legend-title {
    color: #04fbfd;
  }

  .colorbar {
    width: 100%;
    height: 14px;
    display: flex;
    margin: 8px 0;

    .colorbar-item {
      flex: 1;
      height: 100%;
      // border-radius: 8px;
      border: 1px black solid;

      &:not(:nth-child(1)) {
        border-left: none;
      }
    }
  }

  .legend-text {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    height: 20px;
    margin-left: 8px;

    .legend-text-item {
      flex: 1;
      text-align: right;
      font-weight: 600;
      color: white;
      -webkit-text-stroke: #04fbfd 1px;
    }
  }
}
