﻿/* Container for flip card */
.flip-card {
    background-color: transparent;
    perspective: 1000px;
    width: 100%;
    height: 320px;
    position: relative;
    cursor: pointer;
}

/* Inner wrapper for the 3D flip */
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s ease-in-out;
}

/* When flipped, rotate inner content */
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

/* Front & back faces */
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden; /* Prevent overlapping */
    -webkit-backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    top: 0;
    left: 0;
}

/* Front face (default view) */
.flip-card-front {
    background-color: #fff;
    z-index: 2;
}

/* Back face (rotated 180) */
.flip-card-back {
    background-color: #ff5722;
    color: white;
    transform: rotateY(180deg);
    z-index: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
