/*
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;
    width: 100%;
    min-height: 550px; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;    
    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;
}

/* Add Buffer above and below the image container */
#plant-gen-box .plant-display {
    margin: 40px 0;
    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;
    margin: 0;
}

/* Add a border to generated images */
.plant-display img.generated {
  border: 3px solid #3b6d11;
  border-radius: 25px;
}

/* 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 {
    min-height: 50px; 
    margin: 10px 20px;
    font-size: 14px;
}

.latin {
    font-style: italic;
}

