/* ------------------- */
/* Reset               */
/* ------------------- */

/* Box sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Reset margins */
body,
h1,
h2,
h3,
h4,
h5,
p,
figure,
picture {
    margin: 0; 
}

/* set up the body */
body {
    line-height: 1.5;
    min-height: 100vh;
}

/* make images easier to work with */
img,
picture {
    max-width: 100%;
    display: block;
}

/* make form elements easier to work with */
input,
button,
textarea,
select {
    font: inherit;
}

/* remove animations for people who've turned them off */
@media (prefers-reduced-motion: reduce) {  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------- */
/* Styles              */
/* ------------------- */

:root {
    --blue: rgb(61, 90, 254);
    --light-blue: rgb(33, 150, 243);
  }
  
  body {  
    background-color: rgb(10, 10, 20);
    display: flex;
    flex-direction: column;
    height: 100vh;
    justify-content: center;
    margin: 0px;
  }
  
  .link {
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    display: block; 
    font-family: monospace;
    font-size: clamp(2em, 8vmin, 7em);
    padding: clamp(0.25em, 1vmin, 1em) clamp(1em, 4vmin, 4em);
    position: relative;
    text-decoration: none;
    cursor: pointer;
  }
  
  .link:hover {
    color: var(--light-blue);
  }
  
  .link:hover:before {
    transition: width 600ms ease;
    width: 100%; 
  }
  
  .link:before {
    background: linear-gradient(
      to right,
      transparent,
      var(--blue) var(--light-blue-percent),
      var(--light-blue)
    );
    content: "";
    left: 0px;
    top: 0px;
    height: 100%;
    width: 0%;
    position: absolute;
  }
  
  .link:nth-child(3) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  }