@import url('https://fonts.googleapis.com/css?family=Montserrat');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.ticker {
  font-family: 'Montserrat', sans-serif;
  background-color: rgb(255, 255, 255);
  color: #111;
  display: flex;
  justify-content: center;
  align-items: center;
}

:root {
  /* --marquee-width: 120vw; */
  --marquee-width: 100vw;
  --marquee-height: 20vh;
  /* --marquee-elements: 12; */ /* defined with JavaScript */
  --marquee-elements-displayed: 9;
  --marquee-element-width: calc(var(--marquee-width) / var(--marquee-elements-displayed));
  --marquee-animation-duration: calc(var(--marquee-elements) * 4s);
}

.marquee2 {
  width: var(--marquee-width);
  height: var(--marquee-height);

  color: #eee;
  overflow: hidden;
  position: relative;
}
.marquee2:before, 
.marquee2:after {
  position: absolute;
  top: 0;
  width: 10rem;
  height: 100%;
  content: "";
  z-index: 1;
}

.marquee-content {
  list-style: none;
  height: 100%;
  display: flex;
  animation: scrolling var(--marquee-animation-duration) linear infinite;
}
.logo_ticker {
  padding: 20px 10px 0  20px!important;
}
/* .marquee-content:hover {
  animation-play-state: paused;
} */

/* @keyframes scrolling {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-1 * var(--marquee-element-width) * var(--marquee-elements))); }
} */

@keyframes scrolling {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* marquee-content li {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-shrink: 0;
  width: var(--marquee-element-width);
  max-height: 100%;
  font-size: calc(var(--marquee-height)*3/4); 
  white-space: nowrap;
}

marquee-content li img {
  width: 100%;
  height: 100%;
} */

.marquee-content li {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  width: auto;
  padding: 0 40px;
}

.marquee-content li img {
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (max-width: 1050px) {
  html { font-size: 12px; }
  :root {
    --marquee-width: 100vw;
    --marquee-height: 16vh;
    --marquee-elements-displayed: 3!important;
  }
  .marquee2:before, .marquee2:after { width: 5rem; }
  .logo_ticker {
    padding: 25px 30px 0 30px!important;
  }
}
@media (max-width: 991px) {
  html { font-size: 12px; }
  :root {
    --marquee-width: 100vw;
    --marquee-height: 16vh;
    --marquee-elements-displayed: 3!important;
  }
  .marquee2:before, .marquee2:after { width: 5rem; }
  .logo_ticker {
    padding: 25px 10px 0 10px!important;
  }
}
@media (max-width: 650px) {
  html { font-size: 12px; }
  :root {
    --marquee-width: 100vw;
    --marquee-height: 16vh;
    --marquee-elements-displayed: 2!important;
  }
  .marquee2:before, .marquee2:after { width: 5rem; }
  .logo_ticker {
    padding: 20 20px 0 20px!important;
  }
}
@media (max-width: 450px) {
  html { font-size: 12px; }
  :root {
    --marquee-width: 100vw;
    --marquee-height: 16vh;
    --marquee-elements-displayed: 1!important;
  }
  .marquee2:before, .marquee2:after { width: 5rem; }
  .logo_ticker {
    padding: 5px 15px 0 5px!important;
  }
}
