.games-container {
    background-color: #ABCED9;
    padding: 2%;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(300px, 1fr));
    gap: 5rem;
    margin-top: 2rem;
    place-items: center;
    align-items: stretch;
 }

.games-card {
    position: relative;
    background: #fff;
    padding: 1rem;
    max-height: 700px;
    box-shadow: 8px 8px 2px rgba(0, 0, 0, 0.25);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}   
    .games-card .img-container {
        position: relative;
        display: block;
        aspect-ratio: 3 / 2; /* Maintains a consistent aspect ratio */
        min-height: 70%;
        overflow: hidden;
        padding: 10% 30%;
        /* Ensures it takes up the full image space */
    }
    
    .games-card img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: transform 0.3s ease;
    }

    .games-card:hover {
        transform: scale(1.01);
        box-shadow: 6px 6px 15px rgba(0, 0, 0, 0.3); /* Stronger shadow on hover */
    }
    
    .games-card::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.3);
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 3;

        pointer-events: none;
    }
    
    .games-card:hover::after {
        opacity: 1;
    }
    
    .games-card h3 {
        font-family: "Times New Roman", Times, serif;
        margin: 1rem 0;
        font-size: 34px;
        color: var(--deep-blue);
        font-weight: bold;
        text-align: center;
    }
    
    .games-card h4 {
        font-family: "Times New Roman", Times, serif;
        font-size: 20px;
        color: var(--deep-blue);
        margin: 0.5rem 0;
        font-weight: normal;
    }
    
    .games-card p {
        font-family: "Times New Roman", Times, serif;
        font-style: italic;
        color: #333;
        margin: 0.5rem 0;
        font-size: 16px;
    }