body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 10px;
    background-color: green /* #f4f4f4; */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px; /* Adjust as needed */
    margin: auto;
}

.column-wrapper {
    display: flex;
    flex-wrap: wrap; /* Allows columns to wrap on smaller screens */
    gap: 20px; /* Space between columns */
    justify-content: center; /* Center columns when they don't fill the row */
}

.column-item {
    flex: 1 1 300px; /* Flex-grow, flex-shrink, flex-basis. Adjust 300px for desired minimum column width */
    min-width: 280px; /* Ensures a minimum width for the columns before wrapping */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    perspective: 1000px; /* For 3D flip effect */
}

/* Card styles for the flip effect */
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 350px; /* Fixed height for consistent card size */
    position: relative;
    transform-style: preserve-3d; /* Crucial for 3D flip */
    transition: transform 0.6s; /* Smooth transition for the flip */
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Hide the back side during flip */
    backface-visibility: hidden; /* Standard property */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5px;
    box-sizing: border-box;
}

.card-front {
    background-color: white;
    color: #004260;
}

.card-back {
    background-color: #004260; /*#28a745;*/
    color: white;
    transform: rotateY 180deg); /* Start rotated for the back side */
}

/* Flip on hover */
.column-item:hover .card-inner {
    transform: rotateY(180deg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .column-wrapper {
        flex-direction: column; /* Stack columns vertically on smaller screens */
        align-items: center; /* Center stacked columns */
    }

    .column-item {
        width: 90%; /* Take up more width on smaller screens */
        max-width: 400px; /* Prevent them from becoming too wide */
    }
}
