@import url("https://fonts.googleapis.com/css2?family=Archivo+Black&display=swap");

body {
  background-color: black;
}

body,
a:visited,
a {
  color: white;
}

li {
  display: inline-block;
}

.center {
  padding: 10% 0;
  text-align: center;
}

.icon-wrapper {
  font-size: xx-large;
}

.typewriter-wrapper {
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: center; /* Horizontal centering */
  align-items: center; /* Vertical centering */
}

/* Typewriter Animation */
.typewriter {
  overflow: hidden; /* Ensures the content is not revealed until the animation */
  width: 0;
  border-right: 0.15em solid white; /* The typwriter cursor */
  white-space: nowrap; /* Keeps the content on a single line */
  margin: 0 auto; /* Gives that scrolling effect as the typing happens */
  letter-spacing: 0.5em; /* Adjust as needed */
  animation: typing 3.5s steps(40, end) 4s forwards,
    blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: white;
  }
}

/* Hover Animation */
.icon {
  transition: 0.4s;
}
.icon:hover {
  font-size: 200%;
  animation: wiggle 1.2s infinite;
}

@keyframes wiggle {
  0% {
    transform: rotate(0deg);
  }
  80% {
    transform: rotate(0deg);
  }
  85% {
    transform: rotate(10deg);
  }
  95% {
    transform: rotate(-10deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

/* Stroke Animation */
svg {
  font-family: "Archivo Black", sans-serif;
  width: 100%;
  height: 100%;
}
svg text {
  animation: stroke 5s forwards;
  stroke-width: 2;
  stroke: #ffffff;
  font-size: 100px;
}
@keyframes stroke {
  0% {
    fill: rgba(255, 255, 255, 0);
    stroke: rgba(255, 255, 255, 1);
    stroke-dashoffset: 25%;
    stroke-dasharray: 0 50%;
    stroke-width: 2;
  }
  70% {
    fill: rgba(255, 255, 255, 0);
    stroke: rgba(255, 255, 255, 1);
  }
  80% {
    fill: rgba(255, 255, 255, 0);
    stroke: rgba(255, 255, 255, 1);
    stroke-width: 3;
  }
  100% {
    fill: rgba(255, 255, 255, 1);
    stroke: rgba(255, 255, 255, 0);
    stroke-dashoffset: -25%;
    stroke-dasharray: 50% 0;
    stroke-width: 0;
  }
}
