.scrolling-words-container {
  display: flex;
  align-items: center;
  font-size: 2rem;
  font-weight: 600;
}

.scrolling-words-box {
  height: 5rem;
  margin: auto;
  overflow: hidden;
}

/* Directly writing the nested ul and li rules */
.scrolling-words-box ul {
  margin: 0 0.625rem;
  padding: 0;
  animation: scrollUp 18s linear infinite;
}

.scrolling-words-box ul li {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2rem;
  list-style: none;
}

@keyframes scrollUp {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-100%);
  }
}

