* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f7fa;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 700px;
    padding: 20px;
    margin: 0 auto;
}

header {
    background-color: #2c3e50;
    color: white;
    width: 100%;
    padding: 20px 0;
    margin-bottom: 30px;
    text-align: center;
}

.search-box {
    text-align: center;
    margin-bottom: 20px;
}

#search-input {
    width: 80%;
    max-width: 400px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

#search-input:focus {
    border-color: #3498db;
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    padding: 0 10px;
}

.category-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    background-color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 500;
}

.category-btn.active {
    background-color: #3498db;
    color: white;
}

.category-btn:hover {
    background-color: #3498db;
    color: white;
    transform: translateY(-2px);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 10px;
}

.game-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.game-card img {
    width: 180px;
    height: 135px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.game-info {
    padding: 10px;
}

.game-card h3 {
    color: #2c3e50;
    font-size: 14px;
    margin-bottom: 5px;
    text-align: center;
}

.game-card a {
    text-decoration: none;
    color: inherit;
}

.category-tag {
    display: block;
    text-align: center;
    padding: 4px 8px;
    background-color: #f0f2f5;
    border-radius: 12px;
    font-size: 12px;
    color: #666;
    text-transform: capitalize;
    margin: 0 auto;
}

.foot{
    text-align: center;
    font-size: 12px;
    color: #000;
    line-height: 13px;
    margin-left: 4px;
    margin-top: 4rem;
  }



@media (max-width: 600px) {
    .container {
        padding: 15px;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .game-card img {
        width: 100%;
        height: auto;
        aspect-ratio: 180/135;
    }

    .category-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    #search-input {
        width: 90%;
        padding: 10px;
    }

    .game-card h3 {
        font-size: 12px;
    }
}