.flip-container {
    perspective: 1000px;
    min-height: 500px;
    margin-bottom: 2rem;
}

.flipper {
    transition: 0.8s;
    transform-style: preserve-3d;
    position: relative;
}

.flip-container.flipped .flipper {
    transform: rotateY(180deg);
}

.front, .back {
    backface-visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.front {
    z-index: 2;
    transform: rotateY(0deg);
}

.back {
    transform: rotateY(180deg);
}

/* Card flip animation */
.card {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.8s;
    backface-visibility: hidden;
}

/* Add spacing for the main content area */
main.container {
    min-height: calc(100vh - 300px);
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

/* Ensure the card doesn't overflow */
.card {
    max-height: 100%;
    overflow: hidden;
}

/* Smooth transition for all elements */
.btn, .form-control, .input-group {
    transition: all 0.3s ease;
}

/* Ensure the container maintains its height during flip */
.flip-container, .flipper {
    min-height: inherit;
} 