/* :root {
  --yellow: #ffd51c;
  --x: 120px;
  --y: calc(var(--x) * 1.5);
  --bw: 15px;
} */

/* * {
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
} */

small {
  color: darkgrey;
  position: fixed;
  bottom: 10px;
  left: 0;
  right: 0;
  margin: auto;
  text-align: center;
}

/* body {
  display: flex;
  height: 100vh;
} */

/* .container {
  margin: auto;
  display: flex;
  align-items: center;
  transform: scale(0.4) translateX(-420px);
} */

@media (min-width: 500px) {
  /* .container {
    transform: scale(0.5) translateX(-220px);
  } */
}

@media (min-width: 768px) {
  /* .container {
    transform: scale(0.7) translateX(-120px);
  } */
}

@media (min-width: 1024px) {
  /* .container {
    transform: scale(1) translateX(0);
  } */
}

.box {
  transition: 200ms;
  border-width: var(--bw);
  border-style: solid;
  border-color: var(--yellow);
  width: calc(var(--x) - 150px);
  height: calc(var(--y) - 180px);
  animation: blink_box 0.2s, resize_box 0.5s 0.4s forwards;
}

.txt {
  text-transform: uppercase;
  margin-left: 22px;
  overflow: hidden;
  transition: 250ms;
  transition-delay: 1s;
  transform: translateX(-120px);
  animation: text_container 0.5s 1s forwards;
}

.txt>h2 {
  transition: 250ms;
  line-height: 1;
  margin: 0;
  font-size: 5em;
}

.txt>h2:not(span) {
  opacity: 0;
  transition-delay: 1.5s;
  transform: translateX(-100%);
  animation: text1 0.5s 1s forwards;
}

.txt>h2>span {
  opacity: 0;
  animation: text2 0.5s 1.2s forwards;
}

.txt span {
  display: block;
}

@keyframes blink_box {
  0% {
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes resize_box {
  0% {
    width: calc(var(--x) - 150px);
    height: calc(var(--y) - 180px);
  }

  100% {
    width: var(--x);
    height: var(--y);
  }
}

@keyframes text_container {
  from {
    transform: translateX(-120px);
  }

  to {
    transform: translateX(0);
  }
}

@keyframes text1 {
  from {
    transform: translateX(-120px);
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes text2 {
  from {
    transform: translateX(-120px);
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}