/*
filename: RandomPlantGenerator.css
author: Evan Lanza
student id last four: 8804
cs username: elanza05
*/

/* Main container for the plant generator interface */

#plant-gen-box {
/*
    text-align: center;
    /* Change fixed width/height to auto/100% so it fills the info-box
    width: 100%;
    height: 100%;
    margin: auto;
    padding: 20px;
    border-style: solid;
    border-radius: 25px;
    border-width: 10px;
    border-color: #c2deba;
    background-color: #f4f9f2;
    color: #3b6d11;
    box-sizing: border-box; /* Ensures padding doesn't break the layout
*/
    text-align: center;
    width: 100%;
    /* 1. Lock the height so it doesn't resize */
    min-height: 550px; 
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Keeps buttons at the bottom */
    
    margin: auto;
    padding: 20px;
    border-style: solid;
    border-radius: 25px;
    border-width: 10px;
    border-color: #c2deba;
    background-color: #f4f9f2;
    color: #3b6d11;
    box-sizing: border-box;
}

/* 2. Add Buffer above and below the image container */
#plant-gen-box .plant-display {
    margin: 40px 0; /* Adds 40px space top and bottom */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Targets images inside the plant-display container */
.plant-display img{
/*
    width: 200px;
    height: 250px;
    object-fit: cover;
    transition: transform 0.8s ease;
    /* Smooth animation when a transform (like rotation) occurs
    border-style: solid;
    display: block;
    margin: 0 auto;
    border-radius: 25px;
    border-color: #3b6d11;
*/
    width: 200px;
    height: 250px;
    object-fit: cover;
    transition: transform 0.8s ease;
    border-style: solid;
    border-radius: 25px;
    border-color: #3b6d11;
    /* Ensure the image doesn't have extra bottom margin */
    margin: 0;
}

/* Class used to trigger a rotation animation */
.spin{
    transform: rotate(360deg);
}

/* Styles applied to all button elements */
.info-box button{
    border-radius: 25px;
    padding:10px 15px;
    margin:10px;
    cursor:pointer;
    background-color: #c2deba;
    color: #3b6d11;

    border-style: solid;
    border-width: 2px;

    border-color: #3B6D11;
}

#plantDescription {
/*
    margin: 15px 30px;
    font-size: 14px;
    line-height: 1.5;
*/
    min-height: 50px; 
    margin: 10px 20px;
    font-size: 14px;
}

.latin {
    font-style: italic;
}

