/* brandsContainer (brands carousel in footer.html) */

#brandsCarousel {
  white-space: nowrap; /* not remove */  
  position: relative; /* container relative for transform/absolute children */
  margin: 0px;
  width: 100%;
  height: 70px; /* needed for maximize effect on hover otherwise the complete blue box jump arround */
  overflow: hidden;
}

/* images inside slide container */
.brands {
  border: 0px;
  vertical-align: middle;
  cursor: pointer;
  margin: 10px 15px 5px 15px;
}

#loading {
  background-image: url('/preloader/50/708da8.gif');
  background-repeat: no-repeat;
  background-position: center center;
  height: 50px; 
}

#loading, .brands {
  margin: 10px 15px 5px 15px; /* top 10px for shadow attribution box */
}

.brands-marquee {
  overflow: hidden;
  width: 100%;
}

.brands-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  position: relative; /* animate with transform */
  gap: 1.5rem;
  white-space: nowrap;
  animation: brands-scroll-right 35s linear infinite;
}

#brandsCarousel:hover .brands-track {
  animation-play-state: paused;
}

.brands-track img {
  height: 50px;
  width: auto;
  display: block;
}

/* pause on hover (optional but nice) */
#brandsCarousel:hover .brands-track,
#brandsCarousel .brands-track:hover {
  animation-play-state: paused;
}

@keyframes brands-scroll-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@keyframes brands-scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* zoom effect */

#brandsCarousel a[href] img {
  transition: width 0.3s ease-out, height 0.3s ease-out, margin-left 0.3s;
  height: 50px;
  width: auto;
}

#brandsCarousel a[href] img:hover {
  height: 70px;
  width: auto; 
  margin-top: 0px;
  margin-bottom: 0px;
}

#brandsCarousel a[href] {
  opacity: 0.9;
  filter: alpha(opacity=90);
}

#brandsCarousel a[href]:hover {
  background-color: transparent !important; /* removes our global style (project.css) on this element */
  opacity: 1;
  filter: alpha(opacity=100);
}

/* padding */
#brandsCarousel,
.brands {
  padding: 0px;
  clear: both;
}

