p.parallax-content {
    line-height: 1.5em;
}
h3.header-card + p.parallax-content, p.parallax-content + p.parallax-content {
    margin-top: 10px;
    margin-bottom: 10px;
}
.header-card{
    bottom: 30px;
}
.container-parallax {
    display: flex;
    flex-wrap: wrap; /* Allows cards to move to the next row */
    justify-content: space-between;
    width: 100%;
}
.card-wrap {
    flex: 0 0 25%;
    width: 25vw;
    height: 400px;
    margin: 0px;
    transform: perspective(800px);
    transform-style: preserve-3d;
    cursor: pointer;
}
@media only screen and (max-width: 991px){
    .card-wrap {
        flex: 0 0 50%;
        width: 50vw;
    }
}
@media only screen and (max-width: 413px){
    .card-wrap {
        flex: 0 0 100%;
        width: 100vw;
    }
}
.card-wrap:hover .card-info {
    transform: translateY(0);
}
.card-wrap:hover .card-info p {
    opacity: 1;
}
.card-wrap:hover .card-info, .card-wrap:hover .card-info p {
    transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
.card-wrap:hover .card-info:after {
    transition: 5s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 1;
    transform: translateY(0);
}
.card-wrap:hover .card-bg {
    transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1), opacity 5s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0.8;
}
.card-wrap:hover .card {
    transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 2s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: rgba(255, 255, 255, 0.2) 0 0 40px 5px, rgba(255, 255, 255, 1) 0 0 0 1px, rgba(0, 0, 0, 0.36) 0 30px 60px 0, inset #33333364 0 0 0 5px, inset white 0 0 0 6px;
}
.card {
    position: relative;
    background-color: #333;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 0;
    box-shadow: rgba(22, 6, 6, 0.308) 0 30px 60px 0, inset #3333332c 0 0 0 5px, inset rgba(255, 255, 255, 0.32) 0 0 0 6px;
    transition: 1s cubic-bezier(0.445, 0.05, 0.55, 0.95);
}
.card-bg {
    opacity: .7;
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: unset;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    transition: 1s cubic-bezier(0.445, 0.05, 0.55, 0.95), opacity 5s 1s cubic-bezier(0.445, 0.05, 0.55, 0.95);
    pointer-events: none;
}
.card-info {
    padding: 20px;
    position: absolute;
    bottom: 0;
    color: #fff;
    transform: translateY(40%);
    transition: 0.6s 1.6s cubic-bezier(0.215, 0.61, 0.355, 1);
}
.card-info a {
    width: 100%;
    opacity: 1;
    text-shadow: rgba(0, 0, 0, 1) 0 2px 3px;
    transition: 0.6s 1.6s cubic-bezier(0.215, 0.61, 0.355, 1);
}
.card-info * {
    position: relative;
    z-index: 1;
}
.card-info:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
    background-blend-mode: overlay;
    opacity: 0;
    transform: translateY(100%);
    transition: 5s 1s cubic-bezier(0.445, 0.05, 0.55, 0.95);
}
.card-info h3 {
    font-family: "Poppins", sans-serif;
    font-size: 34px;
    font-weight: 500;
    text-shadow: rgba(0, 0, 0, 0.5) 0 10px 10px;
}
