body {
  background-color: #212529;
}

:root {
  background-color: #212529;
  --blue: #2a5eb8;
  --white: #f0e9f2;
}

.center-row {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.center-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ----- Navigation Link ----- */

.nav-link-effect {
  position: relative;
  display: inline-block;
  padding: 1rem 0;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.nav-link-effect::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 100%;
  display: inline-block;
  height: 1rem;
  background: var(--white);
  transition: all 0.25s cubic-bezier(1, 0.68, 0.16, 0.9);
}

.nav-link-effect:hover {
  color: var(--blue);
}

.nav-link-effect:hover::after {
  right: 0;
  height: 2px;
  background: var(--blue);
}

/* .link:hover {
  color: var(--blue);
} */

/* ----- Type Effect ----- */

.type-effect {
  display: inline-flex;
}

.type-effect span {
  word-break: break-all;
  height: 1.2em;
  width: 0%;
  overflow: hidden;
  animation: t 1.8s linear infinite alternate;
}
.type-effect span:before {
  content: " ";
  display: inline-block;
}

@keyframes t {
  90%,
  100% {
    width: 100%;
  }
}

/* ----- Back to Top ----- */

.back-to-top {
  position: fixed;
  bottom: 4rem;
  right: 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 5.5rem;
  width: 5.5rem;
  background-color: var(--blue);
  border-radius: 50%;
  z-index: 10;
  visibility: hidden;
  transition: all 0.4s;
}

.back-to-top__image {
  height: 70%;
}

@media (max-width: 900px) {
  .back-to-top {
    right: 2rem;
  }
}

@media (max-width: 500px) {
  .back-to-top {
    right: 1rem;
  }
}

/* ----- Button ----- */

a {
  text-decoration: none;
}

.btn {
  display: block;
  padding: 0.8em 1.4em;
  font-weight: 500;
  font-size: 1rem;
  transition: transform 0.2s ease-in-out;
}

.btn--outline {
  color: var(--blue);
  border: 2px solid var(--blue);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn--outline:focus,
.btn--outline:hover {
  color: #212529;
}

.btn--outline:before {
  content: "";
  position: absolute;
  background-color: var(--blue);
  right: 100%;
  bottom: 0;
  left: 0;
  top: 0;
  z-index: -1;
  transition: right 0.2s ease-in-out;
}

.btn--outline:hover::before,
.btn--outline:focus::before {
  right: 0;
}
