@font-face {
    font-family: "space-mono";
    src: url(../fonts/SpaceMono-Regular.ttf);
}

body {
    margin: 0px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    font-family: "space-mono";
    background-color: black;
    color: white;
}

h2 {
    font-size: 3em;
}

#content {
    position: relative;
    width: 80vw;
    height: 100vh;
    max-width: 1500px;
    text-align: center;
}

#title_block {
    position: absolute;
    width: 100%;
    top: 30%;
    display: flex;
    flex-direction: column;
}

#main_title {
    font-size: 80px;
    font-size: min(15vw, 80px);
    width: 100%;
}

#description {
    margin-top: 30px;
}

#link {
    margin: auto;
    margin-top: 30px;
    background-color: white;
    color: black;
    width: 100px;
    padding: 10px;
    border-radius: 10px;
}

#button_up {
    position: absolute;
    width: 100%;
    height: 40px;
    top: 10px;
}

#button_down {
    position: absolute;
    width: 100%;
    height: 40px;
    bottom: 10px;
}

.homelink {
    font-size: 1em;
    margin-top: -40px;
}

.glitched {
    animation: glitch 725ms infinite;
}

.animated {
    position: relative;
    animation: pop-in 0.2s, glitch 725ms infinite;;
}

a {
    color: black;
    text-decoration: none;
}

@keyframes pop-in {
    0%      {top: -30px; opacity: 0;}
    100%    {top: 0px; opacity: 1;}
}

@keyframes glitch {
    0% {
      text-shadow: 0.05em 0 0 #00fffc, -0.03em -0.04em 0 #fc00ff,
        0.025em 0.04em 0 #fffc00;
    }
    15% {
      text-shadow: 0.05em 0 0 #00fffc, -0.03em -0.04em 0 #fc00ff,
        0.025em 0.04em 0 #fffc00;
    }
    16% {
      text-shadow: -0.05em -0.025em 0 #00fffc, 0.025em 0.035em 0 #fc00ff,
        -0.05em -0.05em 0 #fffc00;
    }
    49% {
      text-shadow: -0.05em -0.025em 0 #00fffc, 0.025em 0.035em 0 #fc00ff,
        -0.05em -0.05em 0 #fffc00;
    }
    50% {
      text-shadow: 0.05em 0.035em 0 #00fffc, 0.03em 0 0 #fc00ff,
        0 -0.04em 0 #fffc00;
    }
    99% {
      text-shadow: 0.05em 0.035em 0 #00fffc, 0.03em 0 0 #fc00ff,
        0 -0.04em 0 #fffc00;
    }
    100% {
      text-shadow: -0.05em 0 0 #00fffc, -0.025em -0.04em 0 #fc00ff,
        -0.04em -0.025em 0 #fffc00;
    }
  }