@import url('https://fonts.googleapis.com/css2?family=VT323');

:root {
  --bgColorDark: #1b0733;
  --bgColor: #200d48;
  --bgColorLight: #2e206b;
  --primaryColor: #fd145a;
  --primaryGradient: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, var(--primaryColor) 50%, rgba(0, 0, 0, 0) 100%);
}

::selection {
  background-color: var(--primaryColor);
  color: var(--bgColor);
}

* {
  font-family: 'VT323', serif;
  color: var(--primaryColor);
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  width: 100%;
}

body {
  background: radial-gradient(
      circle,
      var(--bgColorLight) 0%,
      var(--bgColor) 50%,
      var(--bgColorDark) 100%
  ) center;
  animation: glow 4s ease-in-out infinite alternate;
  font-family: 'VT323', serif;
}

canvas {
  margin: 6rem auto auto;
  display: block;
  border: 1px solid black;
  box-shadow: 0 0 18rem black, 0 0 12rem black, 0 0 6rem black;
}

a {
  outline: none;
  font-size: 3rem;
  width: 100%;
  text-decoration: none;
  text-align: center;
  line-height: 4rem;
}

a:active, a:focus, a:hover {
  background: var(--primaryGradient);
  color: var(--bgColor);
  animation: glitch 0.3s cubic-bezier(0.5, 1, 0.5, 1) both;
  transform-origin: 0 50%;
}

.hdiv {
  height: 3px;
  background: var(--primaryGradient);
  width: 100%;
  display: block;
}

.screen {
  box-shadow: inset 0 0 18rem black, inset 0 0 12rem black, inset 0 0 6rem black;
  position: absolute;
  height: 100%;
  width: 100%;
  pointer-events: none;
  display: block;
  overflow: auto;
}

.screen-content {
  width: 100%;
  min-height: 100%;
  position: absolute;
  z-index: -1;
  pointer-events: auto;
}

.scanlines {
  position: absolute;
  background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.2) 0%,
      rgba(128, 128, 128, 0.2) 50%,
      rgba(0, 0, 0, 0.2) 100%
  );
  background-size: 100% 6px;
  animation: move-scanlines 60s linear infinite;
}

.flexbox {
  display: flex;
  flex-direction: column;
}

.hcenter {
  align-items: center;
}

.vcenter {
  text-align: center;
}

#logo-container {
  padding-top: 6rem;
  padding-bottom: 2rem;
  display: flex;
}

#link-container {
  width: 600px;
  padding-bottom: 6rem;
}

@keyframes move-scanlines {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 100%;
  }
}

@keyframes glow {
  0% {
    background-size: 120% 120%;
  }
  100% {
    background-size: 80% 80%;
  }
}

@keyframes glitch {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translate(-5px, 5px);
  }
  40% {
    transform: translate(-5px, -5px);
  }
  60% {
    transform: translate(5px, 5px);
  }
  80% {
    transform: translate(5px, -5px);
  }
  100% {
    transform: translate(0);
  }
}