.event-text-section-bottom {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
  background-image: url("../../assets/events/IMG_1863.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow: hidden;
}

.event-text-section-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(48, 92, 222, 0.4),
    rgba(0, 0, 0, 0.6)
  );
  z-index: 1;
}

.event-text-container-bottom {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.event-wrapper-bottom {
  width: 100%;
  max-width: 1536px;
  margin-inline: auto;
  position: relative;
  height: 8rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to left,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 1) 20%,
    rgba(0, 0, 0, 1) 80%,
    rgba(0, 0, 0, 0)
  );
  mask-image: linear-gradient(
    to left,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 1) 20%,
    rgba(0, 0, 0, 1) 80%,
    rgba(0, 0, 0, 0)
  );
}

@keyframes scrollLeftWordsEventBottom {
  to {
    left: -850px;
  }
}

.event-text-bottom {
  width: 400px;
  height: auto;
  position: absolute;
  overflow: hidden;
  left: max(calc(400px * 8), 100%);
  top: 50%;
  transform: translateY(-50%);
  animation-name: scrollLeftWordsEventBottom;
  animation-duration: 40s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  text-align: center;
}

.event-text-bottom p {
  font-family: var(--font-body);
  font-size: var(--fs-display-2xl);
  font-weight: var(--fw-extra-bold);
  color: white;
  white-space: nowrap;
  margin: 0;
  padding: 0 2rem;
  text-transform: uppercase;
}

.event-text-bottom-1 p,
.event-text-bottom-3 p,
.event-text-bottom-5 p,
.event-text-bottom-7 p {
  color: transparent;
  -webkit-text-stroke: 2px white;
}

.event-text-bottom-2 p,
.event-text-bottom-4 p,
.event-text-bottom-6 p,
.event-text-bottom-8 p {
  color: white;
}

.event-text-bottom-1 {
  animation-delay: calc(35s / 8 * (8 - 1) * -1);
}

.event-text-bottom-2 {
  animation-delay: calc(35s / 8 * (8 - 2) * -1);
}

.event-text-bottom-3 {
  animation-delay: calc(35s / 8 * (8 - 3) * -1);
}

.event-text-bottom-4 {
  animation-delay: calc(35s / 8 * (8 - 4) * -1);
}

.event-text-bottom-5 {
  animation-delay: calc(35s / 8 * (8 - 5) * -1);
}

.event-text-bottom-6 {
  animation-delay: calc(35s / 8 * (8 - 6) * -1);
}

.event-text-bottom-7 {
  animation-delay: calc(35s / 8 * (8 - 7) * -1);
}

.event-text-bottom-8 {
  animation-delay: calc(35s / 8 * (8 - 8) * -1);
}

@media (max-width: 900px) {
  .event-text-section-bottom {
    min-height: 30vh;
  }
}

@media (max-width: 768px) {
  .event-text-section-bottom {
    min-height: 40vh;
    background-attachment: scroll;
    background-position: center center;
  }

  .event-text-section-bottom::before {
    background: linear-gradient(
      135deg,
      rgba(48, 92, 222, 0.5),
      rgba(0, 0, 0, 0.7)
    );
  }

  .event-wrapper-bottom {
    height: 6rem;
  }

  .event-text-bottom p {
    font-size: 5rem;
  }
}

@media (max-width: 480px) {
  .event-text-section-bottom {
    min-height: 20vh;
  }

  .event-wrapper-bottom {
    height: 6rem;
  }

  .event-text-bottom p {
    font-size: 3rem;
    padding: 0 6rem;
  }

  .event-text-bottom {
    width: 850px;
    left: max(calc(850px * 2.5), 100%);
  }

  .event-text-bottom-1 {
    animation-delay: calc(40s / 8 * (8 - 1) * -1);
  }

  .event-text-bottom-2 {
    animation-delay: calc(40s / 8 * (8 - 2) * -1);
  }

  .event-text-bottom-3 {
    animation-delay: calc(40s / 8 * (8 - 3) * -1);
  }

  .event-text-bottom-4 {
    animation-delay: calc(40s / 8 * (8 - 4) * -1);
  }

  .event-text-bottom-5 {
    animation-delay: calc(40s / 8 * (8 - 5) * -1);
  }

  .event-text-bottom-6 {
    animation-delay: calc(40s / 8 * (8 - 6) * -1);
  }

  .event-text-bottom-7 {
    animation-delay: calc(40s / 8 * (8 - 7) * -1);
  }

  .event-text-bottom-8 {
    animation-delay: calc(40s / 8 * (8 - 8) * -1);
  }

  @keyframes scrollLeftWordsEventBottom {
    from {
      left: 100%;
    }
    to {
      left: -950px;
    }
  }
}
