/* css/card.css */

.technology-grid {
    display: grid;
    grid-template-columns: 1fr 4fr;
}

.technology-grid> :nth-child(2) {
    font-weight: 400;
}


.card {
    margin: auto;
    margin-top: 2rem;
    padding: 1rem;

    width: 85%;
    max-width: var(--Page-Width-Max);

    border-radius: 2rem;
    border: 5px green solid;

    display: grid;
    gap: 1rem;
    align-items: center;
}

.card.right {
    grid-template-columns: 42% minmax(0, 1fr);
}

.card.left {
    grid-template-columns: minmax(0, 1fr) 42%;
}


.cardLeftSide {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.card-img {
    display: block;
    /* width: 100%; */
    /* height: 225px; */
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 225px;
    /* max-height: 300px; */
    object-fit: contain;
    border-radius: 16px;
}

.card-img:hover {
    filter: brightness(1.2);
    outline: 5px solid transparent;
}


.card-text-side {
    padding: 0 0.5rem;

    display: flex;
    flex-direction: column;
    gap: 1rem;

    min-width: 0;
    filter: brightness(1.5);
}

.card-text-side strong {
    font-style: italic;
}

.card-text-side h2 {
    font-family: var(--Font-Family-Normal);
    font-size: var(--Font-Size-Normal);
    font-weight: 800;
    text-decoration: underline;
    font-style: italic;
}

.card-text-side:hover h2,
.card-text-side:hover strong,
.card-text-side:hover p {
    transform: scale(1.02);
    transition: transform 0.3s ease, color 0.3s ease;
}


.linkDiv-flex {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.linkDiv-flex a {
    color: green;
    font-weight: 700;
    text-decoration: none;
}

.link-button.project-action-button {
    display: inline-block;
    padding: 10px 22px;

    background-color: green;
    color: white;

    border: 2px solid green;
    border-radius: 8px;

    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.link-button.project-action-button:hover {
    background-color: darkgreen;
    border-color: darkgreen;
    color: white;
}

@media (max-width: 768px) {

    .card,
    .card.right,
    .card.left {
        grid-template-columns: 1fr;
    }

    .card-img {
        /* width: 100%; */
        /* height: 180px; */
        max-width: 100%;
        max-height: 180px;
    }

    .card-text-side {
        padding: 0.5rem;
    }

    .technology-grid {
        grid-template-columns: 1fr 3fr;
    }
}