/*
==========================

		BASE

==========================
*/

canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

html {
  height:100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  padding: 0;
  background-color: #2f3136;
  text-align: center;
  font-size: 1em;
  font-family: Roboto Mono;
  font-weight: 400;
  cursor: default;
}

a {
  color: inherit;
  text-decoration: none;
  outline: 0;
  cursor: pointer;
}

/*
==========================
		SECTIONS
==========================
*/

/* First screen: the black hole field, exactly one viewport tall. svh keeps it stable
   on mobile while the URL bar shows/hides. */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Small pulsing chevron, bottom middle, hinting there's more below */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 10;
  transform: translateX(-50%);
  padding: 6px;
  line-height: 0;
  transition: opacity 0.4s ease;
}

.scroll-hint svg {
  width: 16px;
  height: 16px;
  padding: 0;
  fill: none;
  stroke: #808080;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: hint 1.6s ease-in-out infinite;
}

.scroll-hint:hover svg {
  stroke: #fff;
}

.scrolled .scroll-hint {
  opacity: 0;
  pointer-events: none;
}

/*
==========================
		MAIN
==========================
*/

.boxcontainer {
  height: auto;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.box {
  z-index: 10;
  height: auto;
  width: 300px;
  max-width: 95%;
  display: inline-block;
  position: relative;
  text-align: center;
  text-shadow: 0 0 6px #000, 0 0 14px #000;
  animation:slide 0.8s ease;
  animation-fill-mode: forwards;
}

#dirbox {
  display: none;
}

img {
  height: 128px;
  width: auto;
}

.title {
  line-height: 1em;
  margin:  10px 0;
  color: #fff;
  width: auto;
  height: auto;
  display: block;
  cursor: pointer;
}

.desc {
  line-height: 25px;
  margin:  10px 0;
  color: #808080;
  transition: all 0.4s ease;
  animation-fill-mode: forwards;
}

.link {
  line-height: 25px;
  margin:  10px 0;
  color: #808080;
  transition: filter 0.2s ease, transform 0.4s ease;
}

.link:hover {
  filter: brightness(.6);
}

.linkcont {
  margin: 0 auto;
  width: auto;
  display: inline-block;
  position: relative;
  margin: 0;
  transition: filter 0.2s ease, transform 0.4s ease;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;

}

.linksquare {
  height: 50px;
  width: 50px;
  display: inline-block;
  position: relative;
  margin: 0;
  transition: all 0.2s ease;
}

.linksquare:hover {
  filter: brightness(.6);
}

svg {
  height: 25px;
  width: 25px;
  fill: #7f7f7f;
  padding: 10px;
  filter: drop-shadow(0 0 4px #000);
}
.clickable {pointer-events: none}
.unclickable {pointer-events: auto; user-select: none; -moz-user-select:none; -moz-user-select:none; -ms-user-select:none; -webkit-user-select:none;}
/*
==========================
		ANIM
==========================
*/

@keyframes hint {
  0%, 100% {opacity: 0.15; transform: translateY(0);}
  50% {opacity: 1; transform: translateY(3px);}
}

@media (prefers-reduced-motion: reduce) {
  html {scroll-behavior: auto;}
  .scroll-hint svg {animation: none; opacity: 0.6;}
}

@keyframes slide {
  0% {transform: translate(0, 2.5em); opacity: 0;}
  100% {transform: translate(0, 0); opacity: 1;}
}
