﻿.eco-team-watermark {
    position: absolute;
    width: 45%;
    height: 45%;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    background-image: url('/img/logo_without_text.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    opacity: 10%;
    z-index: 1;
    pointer-events: none;
}

.eco-team-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Fleksibilan broj kolona */
    gap: 20px;
    justify-content: center; /* Centriranje kartica ako ih je manje od 3 */
    width: 90%;
    max-width: 1000px;
    margin: 50px auto;
}

/* STIL ZA KARTICE */
.team-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.2s;
    color: var(--dark-blue);
}

    .team-card:hover {
        transform: scale(1.05);
    }

    .team-card img {
        width: 250px;
        height: 250px;
        border-radius: 10px;
        object-fit: contain;
        object-position: center;
        display: inline-block;
        margin-bottom: 10px;
    }

.card-title {
    font-weight: bold;
    font-size: 18px;
}

.card-text {
    font-size: 14px;
    color: gray;
}

.details-btn {
    margin-top: 10px;
    display: inline-block;
    padding: 8px 12px;
    background-color: var(--dark-blue);
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    text-decoration: none;
    color: var(--white);
}

    .details-btn:hover {
        background-color: var(--blue);
    }

/* MODAL STILOVI */
.modal {
    display: none; /* Po defaultu sakriven */
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 20px;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    color: var(--dark-blue);
    text-align: justify;
    overflow-y: auto;
    font-size: 16px;
}

#modalTitle {
    margin-bottom: 15px;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
}


@media (max-width: 768px) {
    .modal-content {
        font-size: 14px;
        margin-top: -70px;
    }
}
