﻿/* Popup container */
.error-popup {
    position: fixed;
    z-index: 9999;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #f44336;
    color: white;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

    .error-popup.show {
        visibility: visible;
        opacity: 1;
    }

.popup-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* Close button */
.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
    padding: 0;
    font-weight: bold;
}
    /* On hover, make the close button brighter */
    .close-btn:hover {
        color: #ffb3b3;
    }
.ticker-container {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.ticker-track {
    display: flex;
    gap: 16px;
    transition: transform 0s linear;
}

.item-card {
    width: 180px;
    height: 180px;
    flex: 0 0 auto;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

    .item-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.ribbon {
    position: absolute;
    top: 0px;
    right: 0px;
    background: red;
    color: white;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 4px;
}


/*.ticker-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
    background: #f3f4f6;
    border-radius: 6px;
}

.ticker-track {
    display: flex;
    gap: 16px;
    animation: scrollLoop 10s linear infinite;
}





.item-card {
    position: relative;
    flex: 0 0 auto;
    width: 180px;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
}

    .item-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.ribbon {
    position: absolute;
    top: 0px;*/
    /*    left: -12px;
            transform: rotate(-45deg); */
    /*background: #D10000;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 16px;
    border-radius: 3px;
}
@media (max-width: 768px) {
    .ticker-track {
        display: flex;
        gap: 8px;
        animation: scrollLoop 10s linear infinite;
    }

    .item-card {
        position: relative;
        flex: 0 0 auto;
        width: 180px;
        height: 180px;
        border-radius: 8px;
        overflow: hidden;
    }
    .ribbon {
        position: absolute;
        top: 0px;*/
        /*    left: -12px;
            transform: rotate(-45deg); */
        /*background: #D10000;
        color: white;
        font-size: 6px;
        font-weight: bold;
        padding: 2px 16px;
        border-radius: 3px;
    }

}


@keyframes scrollLoop {
    0% {transform: translateX(0);}
    100% {transform: translateX(-50%);}
}*/
