// TODO: these are global vars in Forced Migration,
// should they be global for @panorama?
$colorLighterGreen: #E9EDEC;
$colorLightGrey: #b3b3b3;

$bulletSize: 10px;
$bulletBorder: 1px;
$colorBlack: rgb(0, 0, 0);
$colorGreen: rgb(146, 131, 106);
$colorKhaki: rgb(118, 138, 102);

.panorama.legend {
	position: relative;
	width: auto;
	display: inline-block;
	zoom: 1;

	ul {
		margin: 0;
		padding: 0;

		li {
			position: relative;
			opacity: 0.5;
			margin: 0;
			margin-bottom: 0;

			cursor: pointer;
			list-style-type: none;
			background-color: $colorLighterGreen;
			border-radius: 4px;
			border: 1px solid $colorLightGrey;
			border-bottom: 0;
			padding: 5px;
			padding-left: 22px;

			&:last-child {
				border-bottom: 1px solid $colorLightGrey;
			}

			&.selected {
				opacity: 1.0;
			}

			span {
				&:before {
					display: inline-block;
					position: absolute;
					left: calc(0.5 * #{$bulletSize});
					content: "";
					border: solid #{$bulletBorder} black;
					width: $bulletSize;
					height: $bulletSize;
					top: calc(50% - 0.5 * #{$bulletSize + 2*$bulletBorder});
				}
			}

			&:nth-child(1) {
				span {
					&:before {
						border-radius: 100%;
						background-color: $colorBlack;
					}
				}
			}

			&:nth-child(2) {
				span {
					&:before {
						border-color: $colorGreen;
						background-color: rgba($colorGreen, 0.7);
					}
				}
			}

			&:nth-child(3) {
				span {
					&:before {
						border-color: $colorKhaki;
						background-color: rgba($colorKhaki, 0.7);
					}
				}
			}

		}
	}
}
