#legend {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 720px;
    transform: translateX(-50%);
    background: rgba(255,255, 255, 1);
    /* makes all items on a row equal height */
    /* // align -items:stretch; */
    border-radius: 5px 5px 0px 0px;
    padding: 5px 5px 10px 0px;
    overflow: hidden;
    max-height: 600px;
    transition:max-height 0.3s ease-out;
}
.legend-collapsed {
  max-height: 5px !important;
}
#legend > .legend-wrapper{

		display:flex;

		/* wrap onto the next line rather than stretching or shrinking */
		flex-wrap:wrap;

		/* tells flexbox to start items from the left */
		justify-content:flex-start;

		max-width:960px;
    margin-left: -25px;
  }
.legend-title-bar{
  height: 12px;
  width: 50%;
}
.legend-title-bar .legend-collapse-button{
  padding: 0px;
  margin: 0px;
  border: 0px;
  background-color: white;
  transition: transform .3s ease-in-out;  
  width:10px;
  /* cursor: pointer; */
  
  height: 10px;
  margin-right: 10px;
  float: right;
  background-image: url("../../images/legend/triangle.svg");
  background-repeat: no-repeat;
  transform: rotate(90deg);
  background-size: 10px;
}


.button-up{
  transform: rotate(270deg) !important;
}
.storm-info-overlay {
  position: absolute;
  border-radius: 5px 5px 5px 5px;
  border: 1px solid black;
  width: 300px;
  padding: 0 10px 10px 10px;
}

.legend-wrapper > span {
  margin-left: 30px;
}
.legend-wrapper span.break {
  flex-basis: 100%;
}
.legend-wrapper * span.break {
  display: block;
}


.storm-info-overlay>span.break {
  display: block;
}
span.new-line::after {
  content: '\A';
  white-space: pre;
}

#legend .symbol-container {
 padding: 4px;
}
 
.legend-wrapper > span p {
  margin: 0 0 5px 4px;
}

#legend .item-container {
  padding-top: 5px;
  color: #000;
}
#legend .item-container .flex-item-container {
      display: flex;
      margin-top: -2px;
}
#legend .item-container ul {
      margin: 0;
    padding: 0;
    float: left;
    list-style: none;
    display: flex;
}
#legend .item-container li {
      margin: 0;
    padding: 2;
    float: left;
    list-style: none;
}
#legend .item-container ul span{
      margin: 0;
    padding: 0;
    display: block;
    font: normal 10px sans-serif;
}