html,
body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI";
  font-style: normal;
  /* background-color: #121212;
  color: white; */
}

nav {
  padding: 2%;
}

.container {
  text-align: center;
}

.display-1 {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100vh;
}
.display-2 {
  background-color: red;
  animation: glfye 2s infinite linear alternate both;
  height: 100vh;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.visible {
  display: flex;
}

.invisible {
  display: none;
}

@keyframes glfye {
  0% {
    background-color: yellow;
  }
  25% {
    background-color: red;
  }
  50% {
    background-color: green;
  }
  75% {
    background-color: pink;
  }
  100% {
    background-color: blue;
  }
}

.content {
  padding: 2%;
}

.photo {
  border-radius: 8px;
  margin-top: 5%;
  height: 180px;
  width: calc(100vw - 20px);
}

.name {
  font-weight: 400;
  font-size: 24px;
}

.position,
.year {
  font-weight: 400;
  font-size: 18px;
}

.tag {
  font-weight: 500;
  font-size: 24px;
}

.commit-message {
  font-weight: 500;
  font-size: 24px;
}

.footer {
  padding: 5% 2%;
}

.button {
  background-color: #1a1818;
  font-weight: 400;
  font-size: 18px;
  color: white;
  padding: 3% 5%;
  border-radius: 4px;
}

#change-theme {
  position: absolute;
  top: 0;
  right: 0;
  padding: 1rem;
}

body.dark {
  background-color: black;
  color: white;
}

.shape {
  position: absolute;
  z-index: -1;
  display: none;
}

.top-square-mobile {
  display: block;
  top: 0;
  left: 0;
}

.top-triangle-mobile {
  top: 0;
  left: 0;
}

.top-circle-mobile {
  top: 0;
  left: 0;
}

.center-triangle-mobile {
  top: 0;
  left: 0;
}

.center-square-mobile {
  top: 0;
  left: 0;
}

.bottom-rings-mobile {
  top: 0;
  left: 0;
}

.bottom-square-mobile {
  top: 0;
  left: 0;
}

/* Typing animation */

.commit-message {
  overflow: hidden; /* Ensures the content is not revealed until the animation */
  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.1em; /* Adjust as needed */
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

/* The typing effect */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* The typewriter cursor effect */
@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: white;
  }
}
