html,
body {
  height: 100dvh;
  max-height: 100dvh;
  max-width: 100vw;
}

body {
  margin: 0;
  font-family: "Roboto", sans-serif;
  --main-bg-color: rgb(241, 253, 239);
  --text-color: #2e4a42;
  --pastel-blue: #92cccc;
  --pastel-green: #c3deba;
  --secondary-bg-color: rgb(217, 242, 231);
  display: flex;
  flex-direction: column;
  background: linear-gradient(to bottom right, #92cccc, #c3deba);
  overflow: hidden;
}

.content {
  flex-grow: 1;
  padding: 0px 25px;
  height: auto;
  padding-top: 1px;
  background-color: var(--main-bg-color);
  display: flex;
  flex-direction: column;
  color: var(--text-color);
  overflow: auto;
  border-radius: 1rem 1rem 0 0;
}

.project-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.navbar {
  padding: 0px 25px;
  min-height: 50px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  position: sticky;
  top:0;
}

@media only screen and (min-width: 768px) {
  .content {
    padding: 0px 50px;
  }
  .navbar {
    padding: 0px 50px;
  }
}

nav > * {
  transition: linear 1s;
}

a {
  color: var(--text-color);
}

nav > a:link {
  text-decoration: none;
}

/* reference: https://github.com/Chalarangelo/30-seconds-of-code/blob/master/content/snippets/css/s/hover-underline-animation.md */
.hover-under {
  display: inline-block;
  position: relative;
}

.hover-under::after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--text-color);
  transition: transform 0.25s ease-out;
  transform-origin: bottom center;
}

.hover-under:hover::after {
  transform: scaleX(1);
  transform-origin: bottom center;
}

.intro-bg {
  background: transparent;
}

.intro-text {
  overflow: hidden;
  border-right: 0.1em solid black;
  white-space: nowrap;
  margin: 0 auto;
  letter-spacing: 0em;
  font-size: 10vw;
  width: auto;
  animation: typing 2s steps(40, end), blink-caret 0.75s step-end infinite;
  cursor: default;
}

.intro-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}

.intro-image-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.intro-image-container .intro-image:nth-child(1) {
  animation-name: fade;
  animation-duration: 4s;
}

.intro-image-container .intro-image:nth-child(2) {
  animation-name: fade;
  animation-duration: 4.25s;
}

.intro-image-container .intro-image:nth-child(3) {
  animation-name: fade;
  animation-duration: 4.5s;
}

.intro-image-container .intro-image:nth-child(4) {
  animation-name: fade;
  animation-duration: 5s;
}

.intro-image {
  height: 10vw;
  width: auto;
}

svg {
  color: var(--text-color);
}

hr {
  color: var(--text-color);
}

.hov-text {
  margin: 0 auto;
  font-size: 5vw;
  color: transparent;
  text-shadow: 3px 3px var(--text-color);
  cursor: default;
  transition: linear 0.5s;
  text-wrap: nowrap;
  background-image: linear-gradient(
    to right,
    var(--pastel-blue),
    var(--pastel-green)
  );
  background-clip: text;
}

.hov-text:hover {
  text-decoration: underline;
}

.about-title {
  font-size: 4rem;
}

.about-hobbies {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
}

.link-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.link-align {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.card {
  border-radius: 1rem;
  background: var(--secondary-bg-color);
  padding: 20px 20px;
  margin-bottom: 1rem;
}

.card > * {
  margin-top: 0;
}

@keyframes fade {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* 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: var(--text-color);
  }
}
