﻿

.ticker-track {
    display: flex;
    width: max-content;
    animation: scroll 80s linear infinite;
}

.ticker-wrapper:hover .ticker-track {
    animation-play-state: paused;
}

.ticker-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: #1a1a1a;
    margin: 0 8px;
    padding: 8px 12px;
    border-radius: 8px;
    min-width: 280px;
    max-width: 100%;
    white-space: nowrap;
    box-shadow: 0 0 6px rgba(0,255,0,0.2);
    flex-wrap: nowrap;
}

.ticker-left {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.ticker-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    font-size: 13px;
    flex-wrap: wrap;
    color: white;
}

.ticker-item img.icon {
    width: 18px;
    height: 18px;
}

.price {
    font-weight: bold;
    font-size: 13px;
}

.positive {
    color: #0f0;
}

.negative {
    color: #f00;
}

.market-rank {
    font-size: 11px;
    color: #bbb;
}

.sparkline {
    height: 28px;
    width: 80px;
    flex-shrink: 0;
}

@keyframes scroll {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Mobile adjustments */
@media screen and (max-width: 350px) {
    .ticker-item {
        flex-direction: column;
        align-items: flex-start;
        min-width: 240px;
    }

    .sparkline {
        width: 100%;
    }
}

.ticker-wrapper {
    overflow-x: hidden;
    /*  background: #000;*/
    margin: -34px -15px -37px -15px;
}
