body {
    font-family: Arial, sans-serif;
    padding: 20px;
}

#gameList {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

#gameList div {
    padding: 10px;
    text-align: center;
}

#gameList img {
    width: 150px;  /* Set width */
    height: 150px; /* Set height */
    object-fit: cover; /* Crop to cover the set width and height */
}

/* Small devices (portrait phones, less than 576px) */
@media (max-width: 576px) {
    #gameList {
        flex-direction: column;
    }
    
    #gameList div {
        width: 100%;
    }

    #gameList img {
        width: 100%;  /* Set width to 100% on small screens */
        height: auto; /* Let height auto adjust on small screens */
    }
}
