* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  align-items: start;
  justify-content: center;
  flex-direction: column;
  min-height: 100vh;
  /* gap: 1rem; */
  background-color: rgba(0, 0, 0, 0.748);
  overflow: hidden;
}

.box {
  display: block;
  width: 100px;
  height: 100px;
  background-color: royalblue;
}

.pink {
  background-color: pink;
}

.text2 {
  color: #dfdcff;
  font-size: 3rem;
  line-height: 1rem;
}

.letter {
  opacity: 0.5;
  /* border: 1px solid rgba(255, 255, 255, 0.2); */
}

.text {
  color: #dfdcff;
  font-size: clamp(2rem, 12rem, 5vw);
  line-height: 1.2;
  padding: 5%;
  width: 100%;
  text-align: center;
  perspective: 500px;
  will-change: transform;
}

.text * {
  will-change: transform;
}

#box-stagger {
  display: flex;
  flex-wrap: wrap;
  width: 800px;
  margin: 0 auto;
}

.selector {
  width: 50px;
  height: 50px;
  background-color: red;
  margin: 3px;
}

#box-timeline {
  position: absolute;
  width: 750px;
  height: 300px;
  margin: auto;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* border: 4px dashed rgba(255, 255, 255, 0.2); */
  opacity: 0.5;

  > h1,
  footer {
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 5rem;
    padding: 10px 0;
  }
  > h1 {
    transform: scale(2) translateX(-1000px);
  }
  > footer {
    transform: scale(1.5) translateX(1000px);
  }
}

.selectors-timeline {
  display: flex;
  flex-wrap: wrap;
}

.selectors-timeline__item {
  display: block;
  width: 10px;
  height: 10px;
  background-color: red;
  margin: 2px;
  transform: scale(2) translateY(300px);
  opacity: 0.5;
}
