.flip-card-group {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    gap: 1rem;
    padding: 0 1rem 0 2rem;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}
.flip-card-container {
    -webkit-perspective: 1000px;
    perspective: 1000px;
    overflow: hidden;
    width: calc(33.33333% - 1rem);
    height: 600px;
    -webkit-transform: translateX(-100%);
    -ms-transform: translateX(-100%);
    transform: translateX(-100%);
    -webkit-animation: slideIn 2s forwards ease-out;
    animation: slideIn 2s forwards ease-out;
    border-radius: 5px;
    cursor: pointer;
    -webkit-box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.1);
            box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.1);
}
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 100%;
    position: relative;
}
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    -webkit-transition: -webkit-transform 0.6s;
    transition: -webkit-transform 0.6s;
    -o-transition: transform 0.6s;
    transition: transform 0.6s;
    transition: transform 0.6s, -webkit-transform 0.6s;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner {
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
}
.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border: 2px solid transparent;
    background-clip: padding-box;
}
.flip-card-front {
    background-color: #bbb;
    background-size: cover;
    background-position: center;
    color: black;
    z-index: 1;
}
.flip-card-back {
    background-color: #fff;
    color: #222;
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
    z-index: 1;
}
.flip-card-front::before,
.flip-card-back::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    
}
.flip-card-front {
    background: #fff;
}
.flip-card-image {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    height: calc(100% - 20px);
    width: calc(100% - 20px);
    position: absolute;
    top: 10px;
    left: 10px;
    border: 2px solid #A70034;
    -webkit-box-shadow: inset 5px 0px #fff;
            box-shadow: inset 5px 0px #fff;
}
.flip-card-image:after {
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    border: 5px solid #fff;
    top: 0;
    left: 0;
}
.flip-card[data-id="Allison Schwarz"] .flip-card-front .flip-card-image {
    background-image: url('../images/Allison-Schwarz.jpg');
    background-position: 50% 100%;
}
.flip-card[data-id="Brennan Hart-Nova"] .flip-card-front .flip-card-image{
    background-image: url('../images/Brennan-Hart-Nova.jpg');
}
.flip-card[data-id="Ashley Diiulio"] .flip-card-front .flip-card-image {
    background-image: url('../images/Ashley-Diiulio.jpg');
}

.flip-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 6rem;
    height: 6rem;
    background-color: #a70034;
    -webkit-clip-path: polygon(100% 0, 0% 100%, 100% 100%);
    clip-path: polygon(100% 0, 0% 100%, 100% 100%);
    background-image: url(../images/flip.png);
    background-repeat: no-repeat;
    background-size: 30%;
    background-position: 75% 75%;
}
.flip-card-profile-name {
    position: absolute;
    background: #A70034;
    bottom: 5rem;
    left: -8px;
    z-index: 2;
    padding: 0.5rem 1rem;
    color: #fff;
    text-align: right;
    -webkit-box-shadow: 3px 3px 5px 0px rgba(0, 0, 0, 0.25);
            box-shadow: 3px 3px 5px 0px rgba(0, 0, 0, 0.25);
}
.flip-card-profile-name h3 {
    margin: 0;
    line-height: 1.1;
    color: #fff;
    font-size: 1.5rem;
}
.flip-card-profile-name p {
    margin: 0;
    text-transform: uppercase;
    font-size: 0.825rem;
}
.flip-card-profile {
    padding: 0.75rem;
    text-align: left;
}
.flip-card-profile h3 {
    margin: 1rem 0;
    font-size: 1.25rem;
    color: #222;
}
.flip-card-profile ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.925rem;
}
.flip-card-profile li {
    margin: 0.5rem 0;
}
.flip-card-profile strong {
    color: #A70034;
    font-family: "Avenir-Bold";
    display: block;
    width: 100%;
    margin-bottom: 0.125rem;
}
.flip-card .aside.deco {
    margin-top: 0.5rem;
    padding-top: 0.325rem;
}
@-webkit-keyframes borderAnim {
    0% {
        background-position: 0% 0;
    }

    100% {
        background-position: 100% 0;
    }
}



@-webkit-keyframes borderAnim {
    0% {
        background-position: 0% 0;
    }

    100% {
        background-position: 100% 0;
    }
}



@keyframes borderAnim {
    0% {
        background-position: 0% 0;
    }

    100% {
        background-position: 100% 0;
    }
}

/* Slide-in animation */
@-webkit-keyframes slideIn {
    to {
        -webkit-transform: translateX(0);
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideIn {
    to {
        -webkit-transform: translateX(0);
        transform: translateX(0);
        opacity: 1;
    }
}

/* Apply animation to flip cards */
.flip-card {
    -webkit-animation: slideIn 0.6s ease-out forwards;
    animation: slideIn 0.6s ease-out forwards;
}

/* Staggered animation for multiple cards */
.flip-card:nth-child(1) {
    -webkit-animation-delay: 0.2s;
    animation-delay: 0.2s;

}

.flip-card:nth-child(2) {
    -webkit-animation-delay: 0.4s;
    animation-delay: 0.4s;
}

.flip-card:nth-child(3) {
    -webkit-animation-delay: 0.6s;
    animation-delay: 0.6s;
}

.flip-card:nth-child(4) {
    -webkit-animation-delay: 0.8s;
    animation-delay: 0.8s;
}



@media only screen and (max-width: 1023px) {
    .flip-card-container { 
        width: calc(50% - 1rem);
        height: 600px;
    }
}

@media only screen and (max-width: 768px) {
    .flip-card-container { 
        width: 100%;
        height: 600px;
        max-width: 480px;
    }
}

@media only screen and (max-width: 480px) {
    .flip-card-container {
        width: 100%;
        height: 560px;
        max-width: 480px;
    }
    .flip-card {
        -webkit-transform: translateX(-100%);
        -ms-transform: translateX(-100%);
        transform: translateX(-100%);
    }
}