.carousel-container {
    position: relative;
    width: 90%; /* Adjust as needed */
    max-width: 1200px; /* Max width for the carousel */    
    display: flex;
    align-items: center;
}

.carousel-content {
    display: grid;
    /* This creates 3 rows and automatically adds columns as needed */
    grid-auto-flow: column; /* Items flow into columns, not rows */
    grid-template-rows: repeat(3, min-content); /* 3 rows, content sized */
    gap: 5px; /* Space between items */
    overflow-x: scroll; /* Enable horizontal scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scroll-behavior: smooth; /* Smooth scroll when navigating */
    padding: 10px; /* Padding around the items */
    background-color: #fff;
    border-radius: 15px;    
    flex-grow: 1; /* Allow content to take available space */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

/* Hide scrollbar for Webkit browsers (Chrome, Safari) */
.carousel-content::-webkit-scrollbar {
    display: none;
}

.crypto-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 10px;    
    min-width: 120px; /* Minimum width for each item */
    text-align: center;
    transition: transform 0.2s ease;
    cursor: pointer;
    white-space: nowrap; /* Prevent text wrapping inside item */
}

.crypto-item:hover {
    transform: translateY(-5px);
}

.crypto-item img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: contain; /* Ensure image fits without cropping */
    margin-bottom: 8px;
    border: 1px solid #eee;
    padding: 5px;
}

.crypto-item .name {
    font-size: 0.9em;
    font-weight: bold;
    color: #333;
    margin-bottom: 2px;
}

.crypto-item .symbol {
    font-size: 0.8em;
    color: #777;
    text-transform: uppercase;
}

.nav-button {
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 15px 10px;
    cursor: pointer;
    z-index: 10;
    border-radius: 5px;
    font-size: 1.5em;
    position: sticky; /* Make buttons sticky relative to container */
    top: 50%; /* Center vertically */
    transform: translateY(-50%);
    transition: background-color 0.3s ease;
}

.nav-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev-button {
    left: 0;
    margin-right: 10px; /* Space between button and content */
}

.next-button {
    right: 0;
    margin-left: 10px; /* Space between button and content */
}