body {
    background-color: #ffffff;
    color: white;
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    width: 85%;
}

.search-container {
    margin: 20px 0;
    text-align: center;
}

#walletSearch {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 80%;
    max-width: 500px;
    background-color: #ffffff;
    color: #000000;
}

#walletSearch:focus {
    outline: none;
    border-color: #000;
}
h2 {
    text-align: center;
    margin-bottom: 20px;
}

.text {
    margin-left: 35px;
    color: #000000;
}

.wallet-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 50px;
    padding: 10px;
}

.wallet-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: none;
    border: none;
    padding: 0;
}

.wallet-item img {
    max-width: 70px;
    max-height: 70px;
    margin-bottom: 10px;
    cursor: pointer;
}

.wallet-item a {
    text-decoration: none;
    color: #000000;
    display: flex;
    font-weight: bolder;

    flex-direction: column;
    align-items: center;
}

.wallet-item a:hover {
    color: #1c54a6;
}

.wallet-item a span {
    margin-top: 5px;
    font-size: 0.9em;
}

/* Media Queries for Responsive Design */

/* For all phone screens (up to 767px width) */
@media (max-width: 767px) {
    .container {
        width: 95%; /* Adjust container width for phones if needed */
        /* max-width: 350px; */
    }

    .wallet-list {
        grid-template-columns: repeat(3, 1fr); /* Force 3 columns */
        gap: 40px; /* Adjust gap as needed */
        padding: 15px; /* Adjust padding as needed */
        font-size: 0.85em;
        box-sizing: border-box;
    }

    .wallet-item img {
        max-width: 50px; /* Adjust image size as needed */
        max-height: 50px; /* Adjust image size as needed */
        margin-bottom: 5px;
    }

    .text {
        margin-left: 35px; /* Adjust text margin as needed */
    }

    #walletSearch {
        font-size: 1.1em; /* Increase font size on mobile */
        padding: 12px; /* Adjust padding on mobile */
    }
}

/* For iPads and Tablets (768px to 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .wallet-list {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 20px; /* Adjust gap for tablets */
        padding: 20px; /* Adjust padding for tablets */
    }

    .wallet-item img {
        max-width: 80px;
        max-height: 80px;
        margin-bottom: 8px;
    }

    .wallet-item a span {
        font-size: 0.85em;
    }
}