@import url("https://cdn.jsdelivr.net/npm/@xz/fonts/serve/open-sans.min.css");
@import url("https://cdn.jsdelivr.net/npm/@xz/fonts/serve/fira-sans.min.css");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

pre {
  font-family: monospace;
  font-size: initial;
  font-weight: initial;
  transition: all 250ms ease-in-out;
}

html,
body {
  width: 100%;
  height: 100%;
  background-color: lavender;
  font-family: 'Fira Sans', 'Open Sans', sans-serif;
  font-size: 24px;
  font-weight: 300;
}

a,
a:visited,
a:focus,
a:target,
a:hover {
  text-decoration: none;
  color: inherit;
}

footer {
  position: absolute;
  left: calc(50% - 1rem);
  bottom: 0;
  padding: 6px 0;
}

footer a {
  width: 2rem;
  display: inline-block;
  text-align: center;
}

.full-height {
  height: 100%;
}

.center-v-h {
  display: flex;
  height: 100%;
  width: 100%;
  align-items: center;
  justify-content: center;
}

ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

ul > li {
  display: flex;
  margin: 16px 24px;
  border: 2px solid seagreen;
  border-radius: 8px;
  background-color: ghostwhite;
  color: seagreen;
  font-weight: inherit;
}

ul > li:hover {
  scale: 1.15;
  background-color: seagreen;
  color: ghostwhite;
  font-weight: bolder;
}

ul > li > a {
  padding: 8px 16px;
}

#heart {
  position: absolute;
  z-index: 1;
  opacity: 1 !important;
  animation-name: heart-rotation;
  animation-duration: 3s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-timing-function: ease-in;
}

#text {
  position: absolute;
  z-index: 0;
  opacity: 0;
  animation-name: text-rotation;
  animation-duration: 3s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-timing-function: ease-out;
}

/* Animation */
@keyframes heart-rotation {
  25% {
    opacity: 1;
    z-index: 1;
    transform: rotateX(0deg);
  }

  50% {
    opacity: 0;
    z-index: 0;
    transform: rotateX(90deg);
  }

  100% {
    opacity: 0;
    z-index: 0;
    transform: rotateX(90deg);
  }
}

@keyframes text-rotation {
  0% {
    opacity: 0;
    z-index: 0;
    transform: rotateX(90deg);
  }

  50% {
    opacity: 0;
    z-index: 1;
    transform: rotateX(90deg);
  }

  75%,
  100% {
    opacity: 1;
    z-index: 1;
    transform: rotateX(0deg);
  }
}
