.plant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.plant-card {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.plant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.plant-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.plant-title {
    padding: 1rem;
    text-align: center;
    color: #3F4F44;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Glossary terms styles */
.glossary-term {
    font-weight: 600;
    color: #3F4F44;
    position: relative;
    cursor: pointer;
}
.glossary-term:hover.tooltip {
    display: block;
}

.tooltip {
    position: absolute;
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    max-width: 300px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.tooltip.visible {
    opacity: 1;
}

.justified-text {
    text-align: justify;
}

.small-text {
    font-size: 12px; 
}

.underline-link {
    text-decoration: underline;
}

.bold-text {
    font-weight: bold;
}

/* Estilos para el modal */
.hidden {
    display: none;
}
#imageModal {
    z-index: 1000;
}

.enlarged {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    z-index: 1000;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Active menu item */
.nav-link {
    cursor: pointer;
}
.nav-link.active {
    background-color: var(--accent);
    color: white !important;
    font-weight: bold;
}

/* Make images clickable */
.plant-image, .content img {
    cursor: pointer;
    transition: transform 0.2s;
}

.plant-image:hover, .content img:hover {
    transform: scale(1.02);
}
