/* Running Belt Section */
.running-belt {
    position: relative;
    width: 100%;
    background-color: #24292f;
    overflow: hidden;
    padding: 12px 0;
}

.belt-row {
    margin-bottom: 20px;
    overflow: hidden;
}

/* Running Belt Content */
.belt-content {
    display: flex;
    align-items: center !important;
    justify-content: center !important; /* Start from the left */
    white-space: nowrap;
    transition: transform 0.5s ease-in-out;
    animation: scroll-left linear infinite; /* Continuous scrolling animation */
    width: calc(160px * 54); /* Adjust width according to total number of logos */
}

/* Keyframes for scrolling animation */
@keyframes scroll-left {
    0% {
        transform: translateX(0); /* Start just outside the right */
    }
    100% {
        transform: translateX(-100%); /* Scroll to just outside the left */
    }
}

/* Top row - Faster scrolling */
.top-row .belt-content {
    animation: scroll-left 35s linear infinite; /* Speed for top row */
}

/* Middle row - Moderate scrolling */
.mid-row .belt-content {
    animation: scroll-left 36s linear infinite;
}

/* Bottom row - Slower scrolling */
.bottom-row .belt-content {
    animation: scroll-left 37s linear infinite;
}

/* Styling for Logo Boxes */
.logo-box {
    width: 160px;  
    height: 60px;  
    margin: 0 10px;
    background-color: #FFFFFF33;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    overflow: hidden;
    flex-shrink: 0;  
    position: relative; /* Enable relative positioning for the pop-up */
}

/* Styling for Logos */
.logo-box img {
    width: auto;
    height: 80%;  
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
    cursor: pointer;
}

/* Pop-up Effect */
.pop-up {
    display: none; /* Hidden by default */
    position: absolute;
    bottom: 110%; /* Position above the logo */
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff; /* Background for the pop-up */
    color: #000; /* Text color */
    padding: 8px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    z-index: 10;
}

/* Show pop-up on hover */
.logo-box:hover .pop-up {
    display: block;
}

/* Make logos smaller on smaller screens */
@media (max-width: 768px) {
    .logo-box {
        width: 120px;  
        height: 50px;  
    }

    .logo-box img {
        height: 70%;  
    }
}

/* Further adjustments for very small screens */
@media (max-width: 480px) {
    .logo-box {
        width: 100px;  
        height: 40px;  
    }

    .logo-box img {
        height: 60%;  
    }
}

/* Spotlight effect on hover */
.logo-box img.spotlight {
    filter: brightness(1.5) contrast(1.2);
    transform: scale(1.1);
    z-index: 1;
}

/* General display adjustments */
.logo-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #24292f;
}

.logo-container {
    background-color: #24292f;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    transition: max-height 2s ease-in-out !important;
    max-height: 100%; 
    overflow: hidden; 
}

.logo-box {
    margin: 10px; 
    transition: opacity 2s ease !important;
}

.logo-box.hidden {
    display: none; 
}

.logo-box:not(.hidden) {
    opacity: 1;
}

.hidden {
    display: none;
}

.show-all {
    display: flex !important;
}

/* Button to view more */
#viewMoreButton {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #24292F; 
    color: white;
    border: none;
    cursor: pointer;
    outline: none;
}
