/* CSS: 게임의 디자인을 담당합니다 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f9f0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    color: #333;
}

.game-container {
    width: 800px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    gap: 20px;
}

.farm-plot, .control-panel {
    flex: 1;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
}

h2 {
    color: #2c6b2f;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.plant-area {
    height: 200px;
    background-color: #f7e9d8; /* 흙 색상 */
    border-radius: 5px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

#plant-image {
    width: 0px; /* 초기 크기 0 */
    height: auto;
    transition: width 0.5s ease-in-out;
    margin-bottom: 10px;
}

.growth-bar-container {
    width: 100%;
    height: 25px;
    background-color: #e0e0e0;
    border-radius: 12px;
    margin-top: 10px;
}

#growth-bar {
    width: 0%;
    height: 100%;
    background-color: #4caf50;
    border-radius: 12px;
    text-align: center;
    line-height: 25px;
    color: white;
    transition: width 0.5s;
}

.sensor-data p {
    font-size: 1.1em;
    margin: 10px 0;
    background-color: #f9f9f9;
    padding: 8px;
    border-radius: 5px;
}

.controls button {
    display: block;
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
    background-color: #3498db;
    color: white;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.controls button:hover {
    background-color: #2980b9;
}

#harvest-button {
    background-color: #e67e22;
}

#harvest-button:hover {
    background-color: #d35400;
}

#harvest-button:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

.message {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    display: none; /* 초기에는 숨김 */
}