/*
This a hovercard hover cards are designed with a sqaure image in mind. 
hover cards will either be 225px x 225px or 300px x 300px
*/

.hc-card {
    width: 225px;
    height: 225px;
    /* position relative is the parent to position absolute. position absolute stands by itself without a position absolute*/
    position: relative;
    border-radius: 15px;
    overflow: clip;
    box-shadow: rgba(0, 0, 0, 0.5) 0px 7px 10px;
    transition: .4s;

}

.hc-card>img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 1;
}

.hc-card .hc-content {
    position: absolute;
    color: Var(--ma-light-color);
    bottom: 0;
    width: 100%;
    padding: 1.5rem;
    z-index: 3;
    opacity: 0;
    transition: .5s;
    transform: translateY(30px);


}

.hc-card .hc-content p {
    font-size: .9rem;
}

/* before the content or after the content for psuedo elements hc 
card is an element that contains all of the content inside*/

.hc-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2;
    opacity: 0;
    transition: .5s;

}

.hc-card:hover::before {
    opacity: 1;

}

/* one colon is the state of the card and 
two colons is the psuedo element hc-card will hover(:)*/
.hc-card:hover .hc-content {
    opacity: 1;
    transform: translateY(0);

}

.hc-card:hover {
    transform: translateY(20px);
}

@media (min-width: 1200px) {
    .hc-card {
        height: 300px;
        width: 300px;
    }

}