/* TDWR 이미지데이터의 범례를 다른 형식으로 개선 표출하기 위한 파일 */
.legend-position {
	position: absolute;
	top:0;
	right:0;
	user-select: none;
	z-index: 2;
	width:15%;
	height:100%;
}

.legend {
	padding: 0 0.3rem;
	background: rgba(220, 220, 220, 1);
	box-shadow: none;
	border-radius: 0;
	border: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	height: 100%;
	gap:10px;
}

.legend .legendWrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height:100%;
}

.legend .legendWrap>div {
	flex: auto;
}

.legend .legend-btn {
	position: absolute;
	right: -3px;
	top: 50px;
	width: 30px;
	height: 30px;
	border: none;
	text-indent: -999em;
	border-radius: 15px 0 0 15px;
	background-color: rgba(0, 0, 0, 0.3);
	background-image: url(../images/ico.png);
	background-repeat: no-repeat;
	background-position: -858px -2px;
}

.legend .co {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 10%;
	overflow: hidden;
	align-items: center;
	height:100%;
}

.legend .no {
	display: flex;
	flex-direction: column;
	margin-left: 1px;
	height:97%;
	justify-content: space-between;
}

.legend .co > div,
.legend .no>div {
	flex: 1;
	box-sizing: border-box; /* 패딩과 테두리 포함하여 박스 크기 조정 */
	/*    display: flex;
        align-items: center;*/
	font-size: 0.5rem;
	text-align: left;
}

.legend .unit {
	margin-top: 0.5rem;
	font-size: 0.5rem;
	text-align: center;
	font-weight: bold;
}

.legend .no.dense {
	width: 0%;
	padding-left: 3%;
}

.legend .no.half {
	margin-top: 10px;
}

@media screen and (max-width:430px) {
	.legend-position .legend .legendWrap{
		max-height:367px;
		overflow-y:auto;
	}
}

