@import url('https://fonts.googleapis.com/css?family=Montserrat');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.sponsors-container {
  font-family: 'Montserrat', sans-serif;
  color: #111;
  display: flex;
  justify-content: center;
  align-items: center;
}

:root {
  --sponsors-width: 40vw;
  --sponsors-height: 14vh;
  /* --sponsors-elements: 12; */ /* defined with JavaScript */
  --sponsors-elements-displayed: 5;
  --sponsors-element-width: calc(var(--sponsors-width) / var(--sponsors-elements-displayed));
  --sponsors-animation-duration: calc(var(--sponsors-elements) * 3s);
}

.sponsors {
  width: var(--sponsors-width);
  height: var(--sponsors-height);
  background-color: #fff;
  color: #555;
  overflow: hidden;
  position: relative;
  img {
    height: 10vh;
  }
}
.sponsors:before, .sponsors:after {
  position: absolute;
  top: 0;
  width: 10rem;
  height: 100%;
  content: "";
  z-index: 1;
}
.sponsors:before {
  left: 0;
  background: linear-gradient(to right, #fff 0%, transparent 100%);
}
.sponsors:after {
  right: 0;
  background: linear-gradient(to left, #fff 0%, transparent 100%);
}
.sponsors-content {
  list-style: none;
  height: 100%;
  display: flex;
  animation: scrolling var(--sponsors-animation-duration) linear infinite;
}
/* .sponsors-content:hover {
  animation-play-state: paused;
} */
@keyframes scrolling {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-1 * var(--sponsors-element-width) * var(--sponsors-elements))); }
}
.sponsors-content li {
  display: flex;
  justify-content: center;
  align-items: center;
  /* text-align: center; */
  flex-shrink: 0;
  width: var(--sponsors-element-width);
  max-height: 100%;
  font-size: calc(var(--sponsors-height)*3/4); /* 5rem; */
  white-space: nowrap;
}

.sponsors-content li  {

  margin: 0 10px;
  img {
    width: 100%;
    height: 100%;
  }
}

@media (max-width: 600px) {
  html { font-size: 12px; }
  :root {
    --sponsors-width: 100vw;
    --sponsors-height: 16vh;
    --sponsors-elements-displayed: 5;
  }
  .sponsors:before, .sponsors:after { width: 5rem; }
}
