/* Game Cards Container */
/* Container */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    padding: 20px;
    max-width: 1200px;
    margin: auto;
    transition: transform 0.3s ease-out;
}

.shift-right {
    transform: translateX(60px);
}

/* Game Card */
.game-card {
    width: 300px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: transparent;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.game-card:hover {
    transform: scale(1.05);
}

/* Game Media */
.game-media {
    width: 100%;
    height: 200px;
    position: relative;
    border-bottom: 2px solid #007bff;
}

.game-image,
.game-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease-in-out;
    border-radius: 10px 10px 0 0;
}

.game-video {
    opacity: 0;
    pointer-events: none;
}

.game-media:hover .game-video {
    opacity: 1;
}

.game-media:hover .game-image {
    opacity: 0;
}

/* Game Info */
.game-info {
    padding: 15px;
    background: transparent;
    text-align: center;
    border-radius: 0 0 10px 10px;
}

.game-info h5 {
    margin: 0;
    font-size: 1.5rem;
    color: #131010;
}

.game-info p {
    font-size: 1rem;
    color: #0c0b0b;
}

/* Play Now Button */
.play-now {
    display: block;
    width: 90%;
    text-align: center;
    padding: 10px;
    margin-top: 10px;
    background: #007bff;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s, transform 0.2s;
}

.play-now:hover {
    background: #0056b3;
    transform: scale(1.05);
}

/* Responsive Layout for Mobile - Single Column */
@media screen and (max-width: 480px) {
    .container {
        grid-template-columns: 1fr !important;
        justify-items: center;
    }

    .game-card {
        width: 100%;
        max-width: 300px;
    }
}

