.fade-entry {
  opacity: 0;
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}
.fade-entry.to-right {
  transform: translateX(-20px);
}
.fade-entry.to-left {
  transform: translateX(20px);
}

.fade-entry.visible {
  opacity: 1;
  transform: translateY(0);
}

.animation-carousel {
  margin-top: 2rem;
  overflow: hidden;
  display: flex;
  height: 70px;

  > * {
    flex: 0 0 100%;
  }

  &:hover .group {
    animation-play-state: paused;
  }
}

.group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4vw;
  padding-right: 4vw;
  will-change: transform;
  animation: scrolling 20s linear infinite;
}

#header.scrolled {
  padding: 15px 50px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

#header.show {
  transform: translateY(0%);
}
#header.hide {
  transform: translateY(-100%);
}
@media (max-width: 1440px) {
  #header.scrolled {
    padding: 15px 35px;
  }
}

@media (max-width: 365px) {
  #header.scrolled {
    padding: 15px 10px;
  }
}

@media (max-width: 550px) {
  .animation-carousel .carousel-element {
    width: 140px;
  }

  .group {
    gap: 20px;
    padding-right: 40px;
  }
}

@keyframes scrolling {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}
