.games-content {
    text-align: center;
    padding: 50px 20px;
    color: #0072bb;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding: 20px;
}

.game-item {
    perspective: 1000px;
    height: 550px;
    display: block;
    border-radius: 15px;
    text-decoration: none;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.3s;
    transform-style: preserve-3d;
    border-radius: 15px;
}

.game-item:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
}

.card-front img,
.card-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-back {
    transform: rotateY(180deg);
    position: relative;
}

.card-back .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay */
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    border-radius: 15px;
    border: 3px solid #0072bb;
    box-sizing: border-box;
}