
#container {
  display: flex;
}

#xAxis {
  display: grid;
  grid-template-columns: repeat(7, 80px); /* 셀 크기와 동일 */
  height: 40px;
  font-size: 12px;
  text-align: center;
  align-items: center;         /* 수직 중앙 정렬 */
  margin-left: 40px;           /* y축 영역 만큼 들여쓰기 */
}

#xAxis div {
  line-height: 40px;      
  text-align: center;     /* 수직 정렬 */
}
#yAxis {
  width: 40px;
  display: grid;
  grid-template-rows: repeat(7, 80px); /* 각 셀에 맞는 높이 */
  font-size: 12px;
  text-align: right;
  padding-right: 5px;
  align-items: center;
}
#mapContainer {
  display: flex;
  flex-direction: column;
    position: relative;
}


#map {
  display: grid;
  grid-template-columns: repeat(7, 80px); /* 셀 너비 키움 */
  grid-template-rows: repeat(7, 80px);    /* 셀 높이 키움 */
  gap: 2px;
}

.cell {
  width: 80px;
  height: 80px;
  border: 1px solid #ccc;
  position: relative;
  background-color: white;
  overflow: visible;
}


.obstacle {
  background-color: gray;
}

.device {
  background-size: contain; 
  width: 60%;              /* ✅ 너비 줄이기 */
  height: 81%;             /* ✅ 높이 줄이기 */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: absolute;
  top: 10%;                /* ✅ 가운데 정렬 보정 */
  left: 20%;
}
.device-id-label {
  position: absolute;
  top: 24px;
  left: 18px;
  font-size: 11px;
  font-weight: bold;
  color: black;
  background: rgba(255, 255, 255, 0.6); /* 약간의 배경 투명도 */
  padding: 1px 4px;
  border-radius: 4px;
  pointer-events: none;
}
/* .device-id {
  position: absolute;
  bottom: 0;
  right: 2px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 12px;
  padding: 2px 4px;
  border-radius: 4px;
} */