/* Server Grid Styling */
.server-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 8px;
    margin: 20px auto;
    width: 100%;
    max-width: 1300px;
}

.server-grid-item {
    transition: all 0.3s ease;
    max-width: 100%;
}

.server-grid-item.hideit {
    display: none;
}

.server-grid .game {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: transparent;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin: 0;
    padding: 0;
}

.server-grid .game:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.server-grid .game-img {
    width: 100%;
    padding-bottom: 100%; /* Creates a 1:1 aspect ratio */
    background-size: cover;
    background-position: center;
    position: relative;
    margin: 0;
    display: block;
}

.server-grid .game-name {
    padding: 0;
    text-align: center;
    background-color: rgba(20, 20, 20, 0.9);
    font-weight: 600;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    margin: 0;
}

.server-grid .game a {
    display: block;
    text-decoration: none;
    height: 100%;
    margin: 0;
    padding: 0;
}

.server-grid kbd {
    background: none;
    box-shadow: none;
    color: inherit;
    font-family: inherit;
    font-size: 20px;
    padding: 0;
    white-space: normal;
    line-height: 1;
    width: 100%;
    display: block;
    text-overflow: clip;
    overflow: visible;
    margin: 0;
    position: relative;
}

.server-grid kbd img {
    max-height: 16px;
    vertical-align: middle;
    margin-right: 2px;
}

.server-grid kbd br {
    display: block;
    content: "";
    margin-top: 1px;
}

/* Responsive adjustment for smaller screens */
@media (max-width: 1200px) {
    .server-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .server-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .server-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .server-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }
    
    .server-grid .game-name {
        min-height: 35px;
    }
    
    .server-grid kbd {
        font-size: 15px;
    }
} 