.cards-wrapper {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    flex-wrap: wrap; /* Allow wrapping of cards */
    height: auto; /* Adjust height as needed */
    background: radial-gradient(circle, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 1)); /* Dark background with gradient */
}

.game-cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center cards within this container */
    gap: 20px; /* Space between cards */
    margin-top: 20px; /* Space above the card container */
}

.game-card {
    position: relative;
    width: 150px; /* Card width */
    height: 100px; /* Card height */
    border-radius: 15px; /* Rounded corners */
    overflow: hidden; /* Hide overflow for rounded corners */
    transition: transform 0.3s, box-shadow 0.3s; /* Smooth transitions */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); /* Deep shadow for elevation */
    background-color: transparent; /* Ensure background is transparent */
    border: none;
}

.game-card img {
    width: 100%; /* Full width for images */
    height: 100%; /* Full height for images */
    object-fit: cover; /* Cover the card completely */
    position: absolutely; /* Position absolutely within the card */
    top: 0; /* Align to the top */
    left: 0; /* Align to the left */
    z-index: 1; /* Place the image behind the title */
}

.game-card h3 {
    position: absolute; /* Position absolutely */
    bottom: 10px; /* Position at the bottom of the card */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Offset for centering */
    font-size: 1.1em; /* Font size for title */
    margin: 0; /* Remove default margin */
    color: #ffffff; /* White text */
    font-weight: bold; /* Bold text */
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7); /* Shadow for readability */
    z-index: 2; /* Place title above the image */
}

.game-card:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7); /* Increase shadow on hover */
}
