@font-face {
    font-family: ArchitechtsDaughter;
    src: url("ArchitectsDaughter-Regular.ttf");
}

* {
    box-sizing: border-box;
    font-family: ArchitechtsDaughter;
}


body {
    height: 100vh;
    width: 100vw;
    background-image: linear-gradient(-60deg, #16a085 0%, #f4d03f 100%);
    background-attachment: fixed;
    position:relative;
    padding: 15px;
    margin: 0;
    display: flex;
    flex-direction: column;
}

#add-plant-button {
    color: black;
    text-align: center;
    cursor: pointer;
    width: 100%;
}

#plant-collection {
    padding: 30px;
    display: flex;
    flex-wrap: wrap;
}

.plant-div >p {
    text-align: center;
}

#modal {
    padding: 0;
    margin: 0;
    position: fixed;
    display: none;
    align-items: center;
    justify-content: center;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
}

#pop-up {
    width: 50%;
    background-color: white;
    padding: 3vmin;
    border-radius: 1vmin;
    animation: popUpFade 1s ;
}

#pop-up > form > input, 
#pop-up > form > button,
#pop-up > form > select {
    font-size: 2vmin;
    width: 100%;
    display: block;
    margin: 10px auto;
    padding: 15px;
    border-radius: 10px;
    border:1px solid #c1dfc4;
    box-shadow: none;
}


select:invalid { 
    color: gray; 
}

button {
    font-size: 3vh;
    margin: auto;
    border-radius: 15px;
    box-shadow: none;
    border: 1px solid #c1dfc4 ;
    padding: 15px;
    display: block;

}

.close {
    font-size: 30px;
    position: absolute;
    top: 0;
    right: 15px;
}

.close:hover {
    cursor: pointer;
    color: #16a085;
    font-weight: bold;
}

.plant-item {
    position: relative;
    margin-top: 10vh;
    margin: 10vh 5vw;
}

button:hover {
    background-color:#c1dfc4;
    cursor: pointer;
}

.remove-button {
    color: gray;
    width: fit-content;
}

.remove-button:hover {
    color: darkred;
    cursor: pointer;
}

.small-button {
    width: fit-content;
    display: flex;
    justify-content: center;
    align-content: center;
}
.small-button > img {
    object-fit: contain;
    width: 3vh; 
    height: auto;
}

.small-button:hover {
    cursor: pointer;

}

.plant-info-popup {
    display: none;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    background-color: white;
    border-radius: 15px;
    padding: 15px;
    animation-name: popUpFade;
    animation-duration: 1s;
}

.plant-head:hover {
    cursor: pointer;
}

.plant-icon {
    width: 250px; 
    height: auto;
    animation-name: plantDraw 1s;
}

.info-div {
    display: grid;
    grid-template-columns: auto auto;
}

@keyframes popUpFade {
    0% {opacity: 0;}
    100% {opacity: 1;}
}

@keyframes plantDraw {
    0% {opacity: 0}
    100% {opacity: 1}
}


@media only screen and (max-width: 800px) {
    #plant-collection {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
    }
    #pop-up {
        width: 80%;
    }
}
