/* Grow Smart - Select Vegetable Page */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

/* Body Styling */
body {
    background: linear-gradient(to bottom right, #f4fbe9, #acf5a7);
    color: #2e2e2e;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Main Container */
center {
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
    padding: 40px 60px;
    text-align: center;
    max-width: 600px;
}

/* Titles */
h2 {
    color: #1b5e20;
    font-size: 26px;
    margin-bottom: 8px;
    animation: floatLeaf 3s ease-in-out infinite;
}

h1 {
    color: #2e7d32;
    font-size: 30px;
    margin-bottom: 30px;
}

/* Table Styling */
table {
    border-collapse: collapse;
    margin: 0 auto 25px;
}

td {
    border: none;
    background-color: #f9fff4;
    border-radius: 15px;
    width: 150px;
    height: 150px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

td:hover {
    transform: scale(1.05);
    background-color: #edfbea;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

/* Images */
td img {
    border-radius: 10px;
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-bottom: 8px;
}

/* Text inside cells */
td {
    font-size: 16px;
    color: #2e2e2e;
    font-weight: 500;
}

/* Back link */
a {
    text-decoration: none;
    color: #2e7d32;
    font-weight: 600;
    transition: color 0.3s ease;
}

a:hover {
    color: #1b5e20;
}

/* Floating leaf animation */
@keyframes floatLeaf {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Responsive Design */
@media (max-width: 600px) {
    center {
        padding: 30px;
        max-width: 90%;
    }

    h1 {
        font-size: 26px;
    }

    table {
        width: 100%;
    }

    td {
        width: 120px;
        height: 120px;
    }

    td img {
        width: 70px;
        height: 70px;
    }
}