@font-face {
  font-family: 'PixelDroidMenu';
  src: url('./fonts/pixeldroidMenuRegular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body,
h1,
.footer,
.social-links a {
  font-family: 'PixelDroidMenu', 'Courier New', Courier, monospace;
}

:root {
  --rosewater: #f5e0dc;
  --flamingo: #f2cdcd;
  --pink: #f5c2e7;
  --mauve: #cba6f7;
  --red: #f38ba8;
  --maroon: #eba0ac;
  --peach: #fab387;
  --yellow: #f9e2af;
  --green: #a6e3a1;
  --teal: #94e2d5;
  --sky: #89dceb;
  --sapphire: #74c7ec;
  --blue: #89b4fa;
  --lavender: #b4befe;
  --text: #cdd6f4;
  --subtext1: #bac2de;
  --subtext0: #a6adc8;
  --overlay2: #9399b2;
  --overlay1: #7f849c;
  --overlay0: #6c7086;
  --surface2: #585b70;
  --surface1: #45475a;
  --surface0: #313244;
  --base: #1e1e2e;
  --mantle: #181825;
  --crust: #11111b;
}

body {
  margin: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--base);
  color: var(--text);
  overflow: hidden;
}

#game-of-life {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.1;
}

.content {
  text-align: center;
  position: relative;
}

h1 {
  font-size: 10rem;
  text-shadow: 3px 3px 5px var(--overlay0);
  color: var(--text);
  padding: 10px;
  display: inline-block;
  transition: transform 0.1s ease-out, color 0.5s ease-in;
}

.footer {
  position: fixed;
  bottom: 10px;
  width: 100%;
  text-align: center;
  font-size: 2.5rem;
}

.footer a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.5s ease-in-out;
}

.footer a:hover {
  color: var(--sky);
}

.blinking-cursor {
  font-weight: 100;
  color: var(--sky);
  animation: blink 1s step-end infinite;
}

@keyframes blink {

  from,
  to {
    color: transparent;
  }

  50% {
    color: var(--mauve);
  }
}

.social-links {
  position: absolute;
  top: 20px;
  right: 20px;
}

.social-links a {
  color: var(--overlay0);
  margin-left: 1rem;
  font-size: 2rem;
  transition: color 0.3s;
  position: relative;
  display: inline-block;
}

.social-links a[title='LinkedIn']:hover {
  color: var(--blue);
  animation: glitch 0.3s;
}

.social-links a[title='GitHub']:hover {
  color: var(--mauve);
  animation: glitch 0.3s;
}

.social-links a[title='Blog']:hover {
  color: var(--peach);
  animation: glitch 0.3s;
}

@keyframes glitch {
  0% {
    transform: translate(0);
  }

  20% {
    transform: translate(-2px, -2px);
  }

  40% {
    transform: translate(2px, 2px);
  }

  60% {
    transform: translate(-2px, 2px);
  }

  80% {
    transform: translate(2px, -2px);
  }

  100% {
    transform: translate(0);
  }
}
