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

* {
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
}

:root {
  --marquee-width: 100%; /* Set marquee width to 100% of the parent container */
  --marquee-height: 10vh;
  --marquee-elements-displayed: 5;
  --marquee-element-width: calc(var(--marquee-width) / var(--marquee-elements-displayed));
  --marquee-animation-duration: calc(var(--marquee-elements) * 5s);
}

.marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
}

.marquee:before, .marquee:after {
  position: absolute;
  top: 0;
  width: 10rem;
  height: 100%;
  content: "";
  z-index: 1;
}

.marquee:before {
  left: 0;
  background: linear-gradient(to right, #111 0%, transparent 0%);
}

.marquee:after {
  right: 0;
  background: linear-gradient(to left, #111 0%, transparent 0%);
}

.marquee-content {
  list-style: none;
  height: 100%;
  display: flex;
  animation: scrolling var(--marquee-animation-duration) linear infinite;
  padding: 0; /* Reset padding */
  margin: 0; /* Reset margin */
}

@keyframes scrolling {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); } /* Move by 100% of the marquee's width */
}

.marquee-content li {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  width: var(--marquee-element-width);
  max-height: 100%;
  font-size: calc(var(--marquee-height) * 3 / 4);
  white-space: nowrap;
  padding: 0 30px; /* Add horizontal padding */
}

.marquee-content li img {
  width: 100%;
  height: auto; /* Ensure images maintain their aspect ratio */
}

@media (max-width: 600px) {
  :root {
    --marquee-width: 100vw;
    --marquee-height: 16vh;
    --marquee-elements-displayed: 3;
  }

  .marquee:before, .marquee:after {
    width: 5rem;
  }

  .marquee-content li {
    font-size: calc(var(--marquee-height) * 1); /* Increase font size for mobile */
    padding: 0 15px; /* Reduce horizontal padding for mobile */
  }

  .marquee-content li img {
    width: 100%;
    height: auto; /* Ensure images maintain their aspect ratio */
  }
}