/*
* Space-themed CSS stylesheet.
* Gent Semaj, AGPLv3.
* 4/27/2020
*/

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

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

body {
  margin: 0;
  background-color: black;
  overflow-x: hidden;
}

#canvas {
  position: fixed;
  z-index: -5;
  inset: 0;
}

#content {
  min-height: 100dvh;
  animation-name: darken-back;
  animation-fill-mode: forwards;
  animation-delay: .5s;
  animation-duration: 1.5s;
}

@keyframes fade-in {
  from{opacity: 0}
  to{opacity: 1}
}

@keyframes darken-back {
  from{background-color: rgba(1, 1, 1, 0)}
  to{background-color: rgba(1, 1, 1, 0.625)}
}

.fade-in {
  opacity: 0;
  animation-name: fade-in;
  animation-duration: 1.5s;
  animation-delay: .5s;
  animation-fill-mode: forwards;
}

h1 {
  font-family: Minecraftia;
  font-size: clamp(3rem, 12vw, 6.65rem);
  color: white;
  margin-top: 2rem;
  text-shadow: 8px 8px gray;
  user-select: none;
}

h3 {
  font-family: Minecraftia;
  font-size: clamp(1rem, 4vw, 2rem);
  color: white;
  text-shadow: 4px 4px gray;
  user-select: none;
}

.link-bar a {
  color: white;
  text-decoration: none;
  text-shadow: none;
}

.link-bar a:hover,
.link-bar a:focus-visible {
  color: white;
  text-shadow: 4px 4px gray;
}

.link-bar .sep {
  color: gray;
  text-shadow: none;
}

#portraits {
  --bs-aspect-ratio: 66.6667%;
}

#links .link {
  display: block;
  width: clamp(48px, 18vw, 150px);
  height: clamp(48px, 18vw, 150px);
  border-radius: clamp(12px, 5vw, 40px);
  margin: clamp(10px, 3vw, 20px);
  transition: background-image .25s, box-shadow .25s;
  background-size: cover;
}

#links .link:hover {
  box-shadow: 0px 0px 10px 0px white;
  cursor: pointer;
}

#link-github {
  background-image:url('images/icons/github.png');
}

#link-github:hover {
  background-image:url('images/icons/github_active.png');
}

#link-linkedin {
  background-image:url('images/icons/linkedin.png');
}

#link-linkedin:hover {
  background-image:url('images/icons/linkedin_active.png');
}

#link-ll {
  background-image:url('images/icons/ll.png');
}

#link-ll:hover {
  background-image:url('images/icons/ll_active.png');
}

#links .icon {
  display: block;
  width: 90%;
  height: 90%;
  margin: auto;
}

#footer {
  font-family: Minecraftia;
  font-size: clamp(8px, 2.7vw, 8pt);
  white-space: nowrap;
  color: gray;
  user-select: none;
}
