.main-content {
    position: relative;
    z-index: 0;
}

.prof {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: #3379b77c;
    z-index: 150;
}

.show-prof {
    display: flex;
    justify-content: center;
    align-items: center;
}

.content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    height: 100%;
    width: 40%;
}

.img-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.content img {
    width: 100%;
    height: 100%;
}

h3 {
    letter-spacing: 0;
    text-align: left;
}

.info {
    background: white;
    height: 100%;
    padding: 2rem;
}

.info-text {
    margin-top: 2rem;
    text-align: justify;
}

.close {
    border: 0;
    position: absolute;
    top: 0;
    right: 0;
    background: transparent;
    cursor: pointer;
}

.close i {
    color: var(--clr-primary-3);
    font-size: 2rem;
}

@media screen and (min-width: 1050px) {
    .cards-container {
        padding: 0 6rem;
    }
}

@media screen and (max-width: 1377px) {
    .card {
        height: 300px;
        width: 300px;
    }

}

@media screen and (max-width: 1194px) {
    .card {
        height: 260px;
        width: 260px;
    }

}

@media screen and (max-width: 1049px) {
    .cards-container {
        grid-template-columns: 1fr 1fr;
    }

    .family-center {
        padding: 3rem;
        padding-top: 0;
    }

}

@media screen and (max-width: 978px) {
    .content {
        width: 38%;
    }
}

@media screen and (max-width: 736px) {
    .content {
        width: 63%;
    }
}

@media screen and (max-width: 709px) {
    .cards-container {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 540px) {
    .content {
        width: 90%;
    }

    .family-title h2 {
        font-size: 1.5rem;
    }

    .underline {
        width: 20rem;
    }
}

@media screen and (max-width: 466px) {
    .content {
        height: 95%;
        width: 95%;
    }

    .family-center {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    /* .prof{
        height: 120vh;
    } */
}

@media screen and (max-width: 400px) {
    .content {
        height: 90%;
        width: 85%;
    }

    .underline {
        width: 15rem;
    }
}

@media screen and (max-width: 375px) {
    .content {
        height: 80%;
        width: 85%;
    }
}