body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    min-height: 100vh;
    margin: 0;
    font-family: 'Arial', sans-serif;
}

.navbar {
    width: 100%;
    height: fit-content;
    margin: 20px auto;
    display: inline-flex;
    text-align: center;
  justify-content: center;
  align-content: center;
  margin: auto;
  align-items: center;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2.2rem;
    color: #fff;
    font-weight: bold;
    display: flex;
}

.logo a {
    text-decoration: none;
    color: white;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 1.1rem;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.filter-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
    background-color: #e74c3c;
    color: white;
}

.main-content {
    max-width: 95%;
    margin: 0 auto;
    /* padding: 20px; */
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.game-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 20px rgba(78, 205, 196, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.game-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.game-card:hover .game-info {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.game-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 15px 10px 10px;
    color: white;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    pointer-events: none;
}

.game-title {
    font-size: 0.95rem;
    font-weight: bold;
    margin-bottom: 3px;
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.game-category {
    font-size: 0.75rem;
    color: #ccc;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.badge.popular {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
}

.badge.new {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    color: white;
}

h1 {
    text-align: center;
    font-size: 2.5rem;
    margin: 40px 0;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    margin-top: 40px;
}

@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .filter-btn {
        width: 100%;
        text-align: center;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
    }
    
    .game-image {
        height: 150px;
    }
    
    .game-title {
        font-size: 0.85rem;
    }
    
    .game-category {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 12px;
    }
    
    .game-image {
        height: 120px;
    }
    
    .game-title {
        font-size: 0.8rem;
    }
    
    .game-category {
        font-size: 0.65rem;
    }
}