* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    background-color: #1a1a2e;
    color: #ffffff;
    overflow: hidden;
}

#city-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#info {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 10px;
    z-index: 10;
    width: 250px;
    max-height: 100%;
    overflow-y: auto;
}

h1 {
    font-size: 1.4em;
    margin-bottom: 0px;
    color: #4cc9f0;
    text-align: center;
}

#stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 10px;
    background-color: rgba(38, 50, 56, 0.7);
    border-radius: 5px;
}

#controls {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

button {
    padding: 8px;
    background-color: #4361ee;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #3f37c9;
}

.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(38, 50, 56, 0.95);
    padding: 20px;
    border-radius: 10px;
    z-index: 20;
    min-width: 300px;
}

.modal h2 {
    margin-bottom: 15px;
    color: #4cc9f0;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

/* 건설 모드에서 마우스 커서 변경 */
.build-mode {
    cursor: pointer;
}

/* 오브젝트 모니터링 패널 스타일 */
#object-monitor {
    display: none; /* 기본적으로 숨김 처리 */
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    max-height: 400px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    font-family: monospace;
    font-size: 12px;
    overflow-y: auto;
    z-index: 1000;
}

#object-monitor h3 {
    margin-top: 0;
    color: #3498db;
    border-bottom: 1px solid #3498db;
    padding-bottom: 5px;
}

#object-monitor pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

#object-monitor .section {
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px dashed #555;
}

#object-monitor .section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

#object-monitor .key {
    color: #e74c3c;
    font-weight: bold;
}

/* 날씨 패널 스타일 */
.weather-panel {
    position: fixed;
    top: 70px;
    right: 20px;
    width: 180px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    border-radius: 8px;
    font-family: 'Arial', sans-serif;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

#weather-status {
    text-align: center;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: bold;
}

.weather-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.weather-buttons button {
    padding: 5px;
    border: none;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 12px;
}

.weather-buttons button:hover {
    background-color: rgba(255, 255, 255, 0.4);
}
