@import url("../../components/globals/base.css");
@import url("../../components/navbar/navbar.css");
@import url("../../components/globals/content.css");
@import url("../../components/footer/footer.css");
@import url("../../components/cookie/cookie.css");

:root {
    --card-color: rgb(23, 23, 23);
}

#cards {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    width: 100%;
    margin-bottom: 30px;
}

.card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    height: 220px;
    flex-direction: column;
    position: relative;
    flex: 0 1 calc(20% - 12px);
    max-width: calc(20% - 12px);
    min-width: 180px;
}

.card > .card-content {
    background-color: var(--card-color);
    border-radius: inherit;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    inset: 1px;
    padding: 8px;
    position: absolute;
    z-index: 2;
    overflow: hidden;
}

.card-image {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 0;
}

.card-image img {
    width: auto;
    height: 80%;
    max-width: 80%;
    object-fit: contain;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.card:hover .card-image img {
    opacity: 1;
}

@media(max-width: 1200px) {
    .card {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
        min-width: 250px;
    }
}

@media(max-width: 900px) {
    .card {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
        height: 180px;
        min-width: 200px;
    }
    .card-image {
        height: 90px;
    }
}

@media(max-width: 480px) {
    .card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
