/* Grow Smart - Select Flower Page */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

/* Body Styling with floral background */
body {
    /* Body Styling */

    background-color: #fe99b3; /* soft light pink */
    color: #2e2e2e;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}


/* Add a soft overlay for readability */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(2px);
    z-index: 0;
}

/* Main Container */
center {
    position: relative;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.9);
    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: #fbfff8;
    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: #f4fff0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

/* Flower Images */
td img {
    border-radius: 10px;
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-bottom: 8px;
}

/* Flower Names */
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;
    }
}