.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px 15px;
    width: 100%;
    padding: 20px 0;
}

.game-card {
    background-color: #1e1e1e;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    overflow: hidden;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.game-card h2 {
    margin: 0 20px;
    font-size: 1.2em;
    color: #ffffff;
}

.game-version {
    font-size: 0.9em;
    color: #a0a0a0;
    margin: 0;
}

.game-description {
    flex-grow: 1;
    font-size: 0.7em;
    color: #c0c0c0;
    margin-bottom: 0;
    text-align: left;
    white-space: pre-wrap;
}

.game-card .button {
    background-color: #28a745;
    color: white;
    padding: 5px 15px;
    text-decoration: none;
    border: none;
    transition: background-color 0.3s ease;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: none;
    display: block;
}

.game-card .button {
    margin-top: 10px;
}

.game-card .button:hover {
    background-color: #218838;
}

.disabled-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 30, 30, 0.9);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ff6b6b;
    font-size: 1.2em;
    font-weight: bold;
}

.game-image {
    position: absolute;
    top: 20px;
    left: 10px;
    width: 25px;
    height: 25px;
    object-fit: cover;
    box-shadow: none;
    border: none;
}

.game-card button {
    padding-left: 5px !important;
    padding-right: 5px !important;
}

.game-card .web-button {
    background-color: #007BFF;
}

.game-card .web-button:hover {
    background-color: #0069D9;
}
