.coin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 100%;
    padding: 20px;
    box-sizing: border-box;
    background-color: grey;
}

.coin-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: left;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.coin-item title {
    color: #211c35;
}

.coin-item h3 {
    font-size: 1.2em;
    color: #333;
    margin: 10px 0;
}

.coin-item img {
    max-width: 100%;
    width: 410px;
    height: 410px; /* Keeps the aspect ratio */
    border-radius: 5px;
}

.coin-item p {
    color: #fff;
    font-size: 1em;
    margin: 5px 0;
}

.button-container .ebaybuttons {
    display: block;          /* Makes the button a block element */
    width: 100%;             /* Full width of the container */
    text-align: center;      /* Center-aligns the text */
    padding: 10px 0;         /* Adjust padding as needed */
    text-decoration: none;   /* Removes underline from links */
    background-color: red;
    color: white;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s;
}

.button-container .ebaybuttons:hover {
    background-color: yellow;
    color: black; /* Adjust for better contrast on hover */
}

@media (max-width: 768px) {
    .coin-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
}
