@font-face {
  font-family: "Jotain";
  src: url(".root-assets/jotain/jotain.woff") format("woff");
}

html, body {
  margin: 0;
  animation: bgrainbow 60s linear infinite;
  color: white;
  font-family: 'Times New Roman', Times, serif;
}

#canvas {
  position: fixed;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
}

.shiny {
  background: radial-gradient(rgba(255, 255, 255, .7), rgba(255, 255, 255, .35), transparent, transparent);
}

#shine {
  position: fixed;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  animation: shinefluct 17s ease-in-out infinite;
}

#star {
  position: fixed;
  top: 50%;
  left: 50%;
  animation: rotation 40s linear infinite;
}

#starvertical, #starhorizontal {
  position: absolute;
  transform: translate(-50%, -50%);
  /* top: 50%;
  left: 50%; */
  background-color: white;
  width: max(4vw, 4vh);
  height: max(4vw, 4vh);
}

#starvertical {
  clip-path: polygon(50% 0, 55% 50%, 50% 100%, 45% 50%);
  animation: starv 2s ease-in-out infinite;
}

#starhorizontal {
  clip-path: polygon(0 50%, 50% 45%, 100% 50%, 50% 55%);
  animation: starh 2s ease-in-out infinite;
}

#foregroundpage {
  position: relative;
  z-index: 1;
}

#topheader {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-shadow: 0 0 5px black;
  text-align: center;
}

h1.top {
  font-size: max(4vw, 4vh);
  width: 95vw;
  margin: 0px;
}

i.top {
  font-size: max(1.3vw, 1.3vh);
  width: 95vw;
  padding-bottom: 2vw;
}

header {
  position: sticky;
  background: #000c;
  width: 100%;
  /* height: 100px; */
  padding: .35em 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: min(50px, 7vw, 7vh);
  font-family: 'Jotain', serif;
  top: 0;
  z-index: 100;
}

#experiments {
  background: #00000080;
  padding: 100px 5vw 10vw;
}

.header {
  text-align: center;
  font-size: 50px;
  margin-top: 0;
}

.icon-menu {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: center;
}

.icon-menu a {
  position: relative;
  display: inline-flex;
  text-shadow: 0 0 5px black;
  color: white;
  text-decoration: none;
  width: 300px;
  height: 169px;
  justify-content: center;
  align-items: center;
  font-size: 40px;
  border-radius: 10px;
  margin: 20px;
  outline: 0 solid;
  scale: 1;
  transition: all .05s ease-out;
}

.icon-menu a.new::after {
  content: "uusi";
  font-style: italic;
  position: absolute;
  font-size: 25px;
  top: 0%;
  right: 5%;
  transform: translate(50%, -50%);
  background-color: #0afa;
  padding: 2px 10px;
  border-radius: 50px;
}

.icon-menu a:hover, .icon-menu a:focus-visible {
  outline-width: 2px;
}

.icon-menu a:active {
  scale: 1.02;
}

#definitelynotsecret {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 10;
  width: 20px;
  height: 20px;
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
  background-color: #999;
  opacity: .4;
  transform-origin: bottom right;
  scale: 1;
  transition: scale .1s ease-out;
}

#definitelynotsecret.hahagetrickrolld {
  height: 40px;
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
  transform: translateY(50%);
}

#definitelynotsecret:not(.unveiled):hover {
  background-color: #55f;
  scale: 1.1;
}

#definitelynotsecret.unveiled {
  background-color: #222;
  opacity: 1;
  scale: .8;
}

.volatile-danger {
  position: absolute;
  bottom: 10px;
  right: 30px;
  color: #99f;
}

.volatile-danger:active {
  color: #f9f;
}

.funnything {
  display: inline-flex;
  text-shadow: 0 0 5px black;
  color: white;
  text-decoration: none;
  width: 300px;
  height: 169px;
  justify-content: center;
  align-items: center;
  font-size: 40px;
  border-radius: 10px;
  outline: 0 solid;
  scale: 1;
  transition: all .05s ease-out;
  background: #f006;
  outline-color: #fff;
}

.funnything:hover, .funnything:focus-visible {
  outline-width: 2px;
}

.funnything:active {
  scale: 1.02;
}



@keyframes bgrainbow {
  0% {
    background-color: #101;
  }
  17% {
    background-color: #001;
  }
  33% {
    background-color: #011;
  }
  50% {
    background-color: #010;
  }
  67% {
    background-color: #110;
  }
  83% {
    background-color: #100;
  }
  100% {
    background-color: #101;
  }
}

@keyframes shinefluct {
  0% {
    width: max(10vw, 10vh);
    height: max(10vw, 10vh);
  }

  50% {
    width: max(20vw, 20vh);
    height: max(20vw, 20vh);
  }

  100% {
    width: max(10vw, 10vh);
    height: max(10vw, 10vh);
  }
}

@keyframes rotation {
  from {
    transform: rotate(0);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes starv {
  0% {
    height: max(4vw, 4vh);
  }
  50% {
    height: max(6vw, 6vh);
  }
  100% {
    height: max(4vw, 4vh);
  }
}

@keyframes starh {
  0% {
    width: max(6vw, 6vh);
  }
  50% {
    width: max(4vw, 4vh);
  }
  100% {
    width: max(6vw, 6vh);
  }
}