/* Existing styles */
.ai-title {
    font-family: Sans-serif;
    font-size: 7rem;
    font-weight: bold;
    margin-top: 150px;
    margin-bottom: 10px;
    margin-left: 100px;
    text-align: left;
}

.game-title {
    font-family: Sans-serif;
    font-size: 7rem;
    font-weight: bold;
    margin-top: 150px;
    margin-bottom: 10px;
    margin-left: 100px;
    text-align: left;
}


.ai-description {
    font-family: Sans-serif;
    font-size: 3rem;
    margin-top: 10px;
    margin-bottom: 20px;
    margin-left: 100px;
    text-align: left;
}

.game-description {
    font-family: Sans-serif;
    font-size: 3rem;
    margin-top: 10px;
    margin-bottom: 20px;
    margin-left: 100px;
    text-align: left;
}
/* Updated Flip Cards Container */
.flip-cards-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px auto;
    padding: 0 8%;
    max-width: 1400px;
    gap: 100px;
}

/* Individual Flip Card Wrapper */
.flip-card-wrapper {
    position: relative;
    display: flex;
    flex: 1;
    min-width: 300px;
}

/* First/Third Card Layout */
.flip-card-wrapper:first-child,
.flip-card-wrapper:nth-child(3) {
    align-items: center;
    gap: 40px;
}

/* Second Card Layout - Fixed height */
.flip-card-wrapper:nth-child(2) {
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto; /* Prevent growing/shrinking */
}

/* Title Styling */
.flip-card-title {
    font-family: Sans-serif;
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Image Container Fix */
.flip-card-wrapper:first-child .flip-container,
.flip-card-wrapper:nth-child(3) .flip-container {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
}

.flip-container {
    width: 32%;
    height: 100px;
    perspective: 1000px;
    flex-shrink: 0;
}

/* Middle Card Container Fix - Updated */
.flip-card-wrapper:nth-child(2) .flip-container {
    width: 100px; /* Increased size */
    height: 100px;
    min-height: 100px;
    max-height: 100px;
}

/* Card Faces */
.front, .back {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Second Card Image Fix - Updated */
.flip-card-wrapper:nth-child(2) .front img {
    object-fit: cover; /* Fill the container */
    padding: 0; /* Removed padding */
    transition: transform 0.3s ease;
}

.flip-card-wrapper:nth-child(2):hover .front img {
    transform: scale(1.05); /* Zoom effect */
}

/* Flip Animation - Fixed width */
.flipper {
    width: 100%; /* Corrected from 90% */
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.flip-container:hover .flipper {
    transform: rotateY(180deg);
}

/* ... (keep all other existing styles below) ... */

.back {
    background: #333;
    color: white;
    transform: rotateY(180deg);
    padding: 10px;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: Sans-serif;
    box-sizing: border-box;
}

/* Existing button styles */
button {
    margin-top: 20px;
    margin-left: 100px;
    position: relative;
    display: block;
    cursor: pointer;
    outline: none;
    border: 0;
    text-decoration: none;
    background: transparent;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
}

button.learn-more {
    position: relative;
    z-index: 10;
    width: 12rem;
    height: auto;
}

button.learn-more .circle {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: relative;
    display: block;
    margin: 0;
    width: 3rem;
    height: 3rem;
    background: #282936;
    border-radius: 1.625rem;
}

button.learn-more .circle .icon.arrow {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    left: 0.625rem;
    width: 1.350rem;
    height: 0.125rem;
    background: #fff;
}

button.learn-more .circle .icon.arrow::before {
    position: absolute;
    content: "";
    top: -0.29rem;
    right: 0.0625rem;
    width: 0.625rem;
    height: 0.625rem;
    border-top: 0.125rem solid #fff;
    border-right: 0.125rem solid #fff;
    transform: rotate(45deg);
}

button.learn-more .button-text {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.75rem 0;
    margin: 0 0 0 1.85rem;
    color: #282936;
    font-weight: 700;
    line-height: 1.6;
    text-align: center;
    text-transform: uppercase;
    font-family: Sans-serif;
}

button:hover .circle {
    width: 100%;
}

button:hover .circle .icon.arrow {
    background: #fff;
    transform: translate(1rem, 0);
}

button:hover .button-text {
    color: #fff;
}

/* Additional spacing */
.ai-description + button {
    margin-top: 20px;
}

button + button {
    margin-top: 20px;
}

.flip-container:hover button {
    pointer-events: none; 
}

/* AI Explainer Text */
.ai-explainer {
    font-family: Sans-serif;
    font-size: 2rem;
    color: #333;
    white-space: nowrap;
}

/* Mobile Responsive Fix - Added */
@media (max-width: 768px) {
    .flip-cards-container {
        gap: 40px;
    }
}   
