/* static/css/games.css */

.games-directory {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: left;
    margin-top: 40px;
}

.game-item {
    background: #2a2a2a;
    border-radius: 5px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
    width: 25%;
    margin-bottom: 20px;
    position: relative; /* Relative positioning for the logo */
    padding: 10px; /* Add padding around the content */
    flex: none;
}


.game-item img {
    width: 90%;
    aspect-ratio: 1/1;
    border-radius: 5%;
    object-fit: stretch; /* Stretch the image to fill the container */
    background-color: transparent;
    margin-bottom: 10px; /* Margin between the image and the rest of the content */
    margin-left: 5%;
    display: block;
}

/* JS Logo positioned in the top right */
.game-item .logo {
    position: absolute;
    bottom: 10px;
    right: 10%;
    width: 20%;
    aspect-ratio: 1/1;
    z-index: 10;
    -webkit-filter: drop-shadow(5px 5px 5px #222);
    filter: drop-shadow(5px 5px 5px #222);
    display: block;
}

.game-info {
    padding: 15px;
    background-color: #2a2a2a;
    color: #e0e0e0;
    text-align: left;
    width: 200px;
}

.game-info h3 {
    margin: 0 0 10px;
    font-size: 200%;
    text-align:justify;
    color: #ffffff;
    white-space: nowrap;
}

.game-info p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #bbbbbb;
}

.game-info .details {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #888888;
    margin-bottom: 10px;
}

.game-info .short-desc {
    font-size: 1rem;
    margin-top: 10px;
    color: #dddddd;
}

.game-item:hover {
    transform: scale(1.05);
}

a {
    width: 100%;
    height: 100%;
}
