/* Import CSS Variables */
@import url(../../css/partials/_variables.css);

/* Import CSS Global */
@import url(../../css/partials/_global.css);

/* Import CSS Addons */
@import url(../../css/partials/_addons.css);

/* Import CSS Header */
@import url(../../css/header.css);

/* Import CSS Footer */
@import url(../../css/footer.css);


main {
    display: flex;
    width: 100%;
    gap: 1rem;
    padding-top: 2rem;
}

main p {
    font-size: 15px;
}


/* Brands Cont */
main .cards-grid {
    display: grid;
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    height: max-content;
    grid-template-columns: 100%;
    grid-template-rows: repeat(11, 25rem);
    gap: 2rem;
}

main .card {
    width: 100%;
    height: 100%;
    background-color: var(--color-secondary);
    box-shadow: var(--box-shadow-arround);
    border: 2px solid var(--color-dark);
    cursor: pointer;
    transform-style: preserve-3d;
    transition: all 0.8s ease;
}

main .card .card-content {
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    /* Safari */
    backface-visibility: hidden;
    transition: all 0.8s ease;
}

main .card .front {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

main .card .front img {
    width: auto;
    height: 100%;
}

main .card .front .title {
    position: absolute;
    text-align: center;
    width: 100%;
    padding: 1rem;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.8);
}

main .card .front .title h1 {
    font-size: 3rem;
    color: var(--color-primary);
}


main .card .back {
    display: none;
    flex-direction: column;
    justify-content: center;
    padding: 1rem;
    gap: 1rem;
    text-align: center;
    overflow: scroll;
    transform: rotateY(180deg);
}

main .card .back .brands-cont{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

main .card .back .brands-cont.two-brand{
    grid-template-columns: repeat(2, 1fr);
}

main .card .back .brands-cont img {
    width: 100%;
    height: 100%;
}


/* Flip Card */

main .cards-grid .active {
    transform: translateZ(0px) rotateY(180deg) !important;
}

main .cards-grid .active .front {
    display: none;
}

main .cards-grid .active .back {
    display: flex;
}


/* ============================== Media Query ============================== */
/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (max-width: 1024px) {
    main p {
        font-size: 14px;
    }
}

/* Extra small devices (phones, 413px and down) */
@media only screen and (max-width: 600px) {
    main .card .front .title h1 {
        font-size: 2rem;
    }
}