body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-image: url('grow_a_garden_background.png');
    background-size: cover;
    background-position: center;
    color: #333;
    overflow-y: auto; /* Allow scrolling if content overflows */
}

#game-container {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 80vh;
}

header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

h1 {
    color: #4CAF50;
    margin-bottom: 10px;
}

#money-display {
    font-size: 1.4em;
    font-weight: bold;
    color: #008000;
}

main {
    display: flex;
    flex-wrap: wrap; /* Allow panels to wrap on smaller screens */
    gap: 20px;
    justify-content: center;
    flex: 1; /* Allow main content to grow */
}

.game-panel {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 15px;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.1);
    flex: 1; /* Each panel takes equal space */
    min-width: 300px; /* Minimum width for panels */
}

.game-panel h2 {
    color: #2E8B57;
    text-align: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.plant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    padding: 10px;
    min-height: 150px; /* Ensure grid has some height even if empty */
}

.plant-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.plant-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.plant-card img {
    max-width: 100%;
    height: 100px; /* Fixed height for consistent display */
    object-fit: contain; /* Ensure image fits without cropping */
    margin-bottom: 10px;
    background-color: #f0f0f0; /* Placeholder background */
    border-radius: 5px;
}

.plant-card h3 {
    margin: 5px 0;
    color: #333;
    font-size: 1.1em;
}

.plant-card p {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

.plant-card button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s ease;
}

.plant-card button:hover {
    background-color: #45a049;
}

.plant-card button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.loading-message, .empty-message {
    grid-column: 1 / -1; /* Span across all columns */
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    main {
        flex-direction: column;
    }
    .game-panel {
        width: auto; /* Allow panels to take full width */
    }
}

