.ad-container {
    position: relative;
    width: 650px;
    height: 370px;
    background-color: #000;
    margin: 0 auto;
}

.video-element {
 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1; /* Video u pozadini */
}

.product-display {
    position: absolute;
    bottom: 20%;
    width: 100%;
    display: flex;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s;
}

.product-card {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid white;
    border-radius: 5px;
    /* padding: 10px; */
    max-width: 200px;
    text-align: center;
    cursor: pointer;
    transform: translateX(-100%);
    transition: transform 0.5s, opacity 0.5s;
    border: 1px solid transparent;
}

/* Beli statički border */
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid white;
    border-radius: inherit;
    transition: all 0.3s ease;
}

/* Crveni animirani border */
.product-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid transparent;
    border-radius: inherit;
}

.product-card:hover::before {
    border-color: transparent; /* Sakrij beli border pri hoveru */
}

.product-card:hover::after {
    border-color: transparent;
    animation: snakeBorder 2s linear infinite;
    background-image: 
        linear-gradient(to right, #F40009 0%, #F40009 100%),
        linear-gradient(to bottom, #F40009 0%, #F40009 100%),
        linear-gradient(to left, #F40009 0%, #F40009 100%),
        linear-gradient(to top, #F40009 0%, #F40009 100%);
    background-size: 
        100% 2px,
        2px 100%,
        100% 2px,
        2px 100%;
    background-position: 
        top left,
        top right,
        bottom right,
        top left;
    background-repeat: no-repeat;
}

@keyframes snakeBorder {
    0% {
        background-size: 
            0% 2px,
            2px 0%,
            0% 2px,
            2px 0%;
    }
    25% {
        background-size: 
            100% 2px,
            2px 0%,
            0% 2px,
            2px 0%;
    }
    50% {
        background-size: 
            100% 2px,
            2px 100%,
            0% 2px,
            2px 0%;
    }
    75% {
        background-size: 
            100% 2px,
            2px 100%,
            100% 2px,
            2px 0%;
    }
    100% {
        background-size: 
            100% 2px,
            2px 100%,
            100% 2px,
            2px 100%;
    }
}




.product-card img {
    max-height: 150px;
    max-width: 100%;
}

.product-card h3 {
    color: white;
    margin: 10px 0;
}

#slide-img{
    max-height: 130px;
}

#slide-txt{
    font-size: 13px;
    color:white;
    margin: 5px;
}

/* Animations */
.slideRight {
    animation: slideRight 0.5s forwards;
}

.slideLeft {
    animation: slideLeft 0.5s forwards;
}

.fadeIn {
    animation: fadeIn 0.5s forwards;
}

.scaleUp {
    animation: scaleUp 0.5s forwards;
}

@keyframes slideRight {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes slideLeft {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleUp {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}


.nav-bar {
    position: absolute;
    top: 0px;
    width: 100%;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px; 
    box-sizing: border-box;
}

#mainVideo {
    /* position: absolute; */
    top: 0;
    left: 0;
    z-index: 1; /* Ispod navigacije */
}

.home-btn {
    margin-right: auto; 
   
}

.home-btn img {
    width: 40px;
    height: 40px;
}

#logo {
    margin-left: auto;
    position: absolute;
    right: -20px;
} 

.product-nav {
    display: flex;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    /* gap: 10px;  */
}

.nav-btn {
    background: #F40009;
    color: white;
    border: none;
    padding: 5px 10px;
    margin: 0 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
    width: 88px;
}

.nav-btn:hover {
    background: #D10000;
}

.product-details {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.details-content {
    background: #111;
    padding: 15px;
    border-radius: 10px;
    max-width: 400px;
    text-align: center;
    border: 2px solid #F40009;
}

.details-content h2 {
    color: #F40009;
    margin-bottom: 20px;
}

.details-content img {
    max-height: 110px;
    max-width: 100%;
    margin-bottom: 20px;
}

.details-content p {
    color: white;
    margin-bottom: 20px;
}

.learn-more-btn {
    display: inline-block;
    background: #F40009;
    color: white;
    padding: 5px 10px;
    text-decoration: none;
    margin-right: 10px;
}

.learn-more-btn:hover {
    color:white;
    background: #D10000;
}

.close-btn {
    background: #333;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

.skip-ad {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    align-items: center;
}

.skip-btn {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: 1px solid white;
    padding: 5px 10px;
    cursor: pointer;
    margin-right: 10px;
}

.timer {
    color: white;
    background: #F40009;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}