.text-block{
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;   
  align-items: center;
  gap: 4rem;                 
  padding: 4rem 0;
  overflow: hidden;
  position: relative;
}

.text-block {
  position: relative;
  min-height: 100dvh;
}
.text-block a{
  padding: 0.5rem 1.5rem;
  border-radius: 99px;
  text-decoration: none;
  transition: 
    background-position 0.4s ease,
    color 0.3s ease;
}
.text-block .dynamic-text-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;   
  min-height: 10rem;
}

.text-block .text-change {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);  
  width: 100%;
  text-align: center;
}


.text-block .small-text,
.text-block .large-text,
.text-block .text-change{
  color: var(--light);
}
.text-block .large-text{
  font-size: 4rem;
  line-height: 120%;
  letter-spacing: 0.02em;
  text-align: center;
}
.text-block .small-text{
  font-size: 1.25rem;
  font-weight: lighter;
  text-align: center;
  line-height: 160%;
  width: 44.1875rem;
}
.text-block .text-change{
  font-size: 1.5rem;
  font-weight: lighter;
  text-align: center;
  width: 34.375rem;
}
.text-block {
  gap: 2rem;
}
@media (max-width: 767px) {
  .text-block .large-text{
    width: 22rem;
    font-size: 2.125rem;
  }

  .text-block .small-text{
    font-size: 1rem;
  }

  .text-block{
    padding: 7.5rem 0 8.375rem 0;
  }

  .text-block .text-change{
    font-size: 1.25rem;
  }
}
@media (min-width: 767px) {
  .text-block .large-text{
    width: 65rem;
  }
}

