$element-link-color: #2c4f9e;
$element-border-color: #b6b6b6;
$element-hover-border-color: #CFE0FC;
$element-selected-border-color: #4285F4;
$element-background-color: #FFFFFF;
$element-hover-background-color: #F0F6FF;
$element-selected-background-color: #E1EBFD;
$element-shadow-color: rgba(0, 0, 0, 0.4);
$element-selected-shadow-color: rgba(44, 79, 158, 0.4);

.strain-lineage-node-container {
  width: 100%;
  height: 100%;
  background-color: $element-background-color;
  border: 1px solid $element-border-color;
  border-radius: 16px;
  font-size: 12px;
  line-height: 12px;
  text-align: left;
  position: relative;
  cursor: pointer;
  padding: 5px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  box-shadow: 0px 2px 10px $element-shadow-color;

  .strain-lineage-node-title {
    font-weight: bold;
    display: inline-block;
    max-height: 2em;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
  }

  .strain-lineage-node-link {
    color: $element-link-color;
    text-decoration: none;

    &:hover {
      text-decoration: underline;
    }
  }

  .strain-lineage-node-dataset {
    font-weight: bold;
    display: inline-block;
    max-height: 2em;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    margin: 3px 0;
  }

  &.selected {
    background-color: $element-selected-background-color;
    border: 1px solid $element-selected-border-color;
    box-shadow: 0px 2px 10px $element-selected-shadow-color;
  }

  &:hover {
    background-color: $element-hover-background-color;
    box-shadow: 0px 2px 10px $element-shadow-color;
    border: 1px solid $element-hover-border-color;
  }

  &.selected:hover {
    background-color: darken($element-selected-background-color, 2%);
    box-shadow: 0px 2px 10px $element-shadow-color;
    border: 1px solid lighten($element-selected-border-color, 10%);
  }

  .strain-lineage-node-desc {
    font-size: smaller;
  }
}
