.site-footer {
    width: 100%;
    background: var(--footer-bg);
    color: var(--footer-text);
    box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.35);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    overflow: hidden;
    padding: var(--footer-padding);
    color: var(--footer-text);
    font-size: 0.95rem;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

.footer-inner a {
    padding: 0 0.25rem;
    color: var(--footer-accent);
    text-decoration: none;
    transition: color 150ms ease, text-decoration 150ms ease;
}

.footer-inner a:hover,
.footer-inner a:focus {
    text-decoration: underline;
    outline: none;
}

.footer-inner .sep {
    padding: 0 0.25rem;
    color: var(--footer-muted);
}

.double-navbar-container {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav-row {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #333;
    background-color: transparent;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 32px;
}

.main-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.main-links a {
    padding: 0 5px;
    color: #eeedede1;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.2s;
}

.main-links a:hover {
    color: var(--blue-accent);
}

.ticker-nav-row {
    height: var(--nav-height);
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    background-color: transparent;
    padding: 10px 0 5px;
}

#dynamic-content {
    height: 100%;
    flex-grow: 1;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

#dynamic-content.fade-in {
    opacity: 1;
}

.content-view {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 25px;
}

.index-item,
.gainer-loser-item {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    padding: 0 10px;
    border-right: 1px solid #333;
}

.index-item:last-child,
.gainer-loser-item:last-child {
    border-right: none;
}

.item-name {
    color: var(--text-light);
    font-size: 0.75em;
    font-weight: 500;
}

.item-value-container {
    display: flex;
    align-items: center;
    font-size: 0.9em;
    font-weight: bold;
}

.change-percent {
    margin-left: 5px;
    font-size: 0.8em;
}

.gainer-loser-title {
    flex-shrink: 0;
    margin-right: 5px;
    border-right: 2px solid;
    padding-right: 20px;
    font-size: 0.9em;
    font-weight: 900;
}

.title-gainer {
    border-right-color: var(--green);
    color: var(--green);
}

.title-loser {
    border-right-color: var(--red);
    color: var(--red);
}

.positive {
    color: var(--green);
}

.negative {
    color: var(--red);
}

.scrolling-warning {
    width: 100%;
    flex-grow: 0;
    flex-shrink: 1;
    overflow: hidden;
    border-radius: 4px;
    background-color: transparent;
    padding: 5px 0;
    white-space: nowrap;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-100% - 100px));
    }
}

.warning-content {
    display: inline-block;
    color: rgb(250, 250, 55);
    font-size: 1rem;
    font-weight: 500;
    padding-left: 100%;
    animation: scroll-left 25s linear infinite;
}

.warning-icon {
    margin-right: 10px;
}

#stockTable thead {
    background-color: #181d24;
    color: #e7e5e5;
}

#statusMessage {
    display: none;
    margin-top: 20px;
    font-weight: bold;
}

@media (max-width: 992px) {
    .main-links {
        justify-content: flex-end;
        gap: 10px;
    }

    .main-links a {
        font-size: 14px;
    }

    .content-view {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .scrolling-warning {
        width: 100%;
    }

    .ticker-nav-row {
        width: 100% !important;
        display: block !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding-right: 15px !important;
        padding-bottom: 8px !important;
        padding-left: 15px !important;
        -webkit-overflow-scrolling: touch;
    }

    #dynamic-content,
    .content-view {
        display: inline-block !important;
        text-align: left !important;
        white-space: nowrap !important;
    }

    .index-item,
    .gainer-loser-item,
    .gainer-loser-title {
        display: inline-block !important;
        vertical-align: top !important;
        margin: 0 10px !important;
        padding: 0 !important;
        text-align: left !important;
    }

    .index-item:not(:last-child),
    .gainer-loser-item:not(:last-child) {
        border-right: none !important;
    }

    .gainer-loser-title {
        margin-right: 0 !important;
        padding-right: 15px !important;
    }

    .main-nav-row {
        justify-content: space-between;
    }

    .content-view {
        min-width: 500px;
        gap: 10px;
    }

    .index-item,
    .gainer-loser-item {
        padding: 0 5px;
    }

    .item-name {
        font-size: 0.65em;
    }

    .item-value-container {
        font-size: 0.8em;
    }

    .change-percent {
        font-size: 0.7em;
    }

    .gainer-loser-title {
        padding-right: 10px;
        font-size: 0.8em;
    }
}

@media (max-width: 420px) {
    .footer-inner {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        font-size: 0.85rem;
    }
}
