@import 'reset.css';

:root {
  --nv: rgb(60, 243, 145);
}

html {
  width: 100%;
  height: 100%;
}

body {
  min-height: 100%;
  font-family: monospace;
  text-transform: uppercase;
  overflow: hidden;
  background-color: black;
}

@scope (main) {
  :scope {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-items: center;
    justify-content: center;
    text-align: center;
    text-wrap: balance;
    background-image: url("flir.gif");
    background-size: cover;
    background-repeat: no-repeat;
  
  
    & {
      gap: 5vh;
      padding: 0 10vh 10vh 10vh;
    }
  
    & {
      background-color: rgb(60 243 145 / 20%);
    }
  }
  
  h1, h2, p, ul {
    filter: blur(.04rem);
    text-shadow: 0 0 3px var(--nv);
  }
  
  h1, h2 {
    font-size: 2rem;
    color: var(--nv);}
  
  h1 {
    font-size: 1.7rem;
    letter-spacing: 6px;
    filter: blur(.07rem);
    mix-blend-mode: color-dodge;
    pointer-events: none;
    transform: scale(1.5);
  }
  
  h2 {
    font-size: 1.2rem;
    p {
      color: black;
    }
  }
  
  ul {
    display: flex;
    flex-direction: row;
    gap: 2rem;
  
    li {
      font-size: 1.05rem;
    }
  }
  
  a {
    color: black;
    text-decoration-style: double;
    text-underline-offset: 5px;
    filter: blur(.5px);
  
    &:hover {
      animation: flicker .1s;
      animation-iteration-count: 3;
      animation-timing-function: steps(2);
      animation-fill-mode: forwards;
    }
  
    &:focus-within {
      outline: none;
      background-color: var(--nv);
    }
  }
}

@scope (footer) {
  :scope {
    width: 100vw;
    padding: .5rem;
    position: fixed;
    bottom: 0;
    background-color: black;
    color: var(--nv);
    text-align: center;
    transition-duration: .5s;
    transition-property: color, background-color, padding;

    &:hover {
      background-color: #0057B7;
      color: #FFDD00;
      padding: 1rem;
    }

    a {
      color: inherit;
      text-decoration-style: underline;
      text-underline-offset: 4px;
    }
  }
}

@keyframes flicker {
  0% {
    color: var(--nv);
  }
  50% {
    background-color: var(--nv);
  }
  100% {
    color: var(--nv);
    background-color: black;
  }
}

@media only screen and (max-width: 600px) {
  footer {
    font-size: .5rem;
  }
}