/* vim: set ft=css foldmethod=marker foldlevel=10 : */

/* loader from https://htmlboilerplates.com/ {{{
 * modified to get rid of javascript */
@keyframes fadeinall {
  0% {
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
    z-index: 999;
    opacity: 1;
  }
  97% {
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
    z-index: 999;
  }
  98% {
    z-index: 999;
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
  }
  99% {
    z-index: 999;
  }
}

#loader {
  opacity: 0;
  position: fixed;
  top: 0;
  left: 0;
  -webkit-transform: translateY(-150%);
  -ms-transform: translateY(-150%);
  transform: translateY(-150%);
  width: 100vw;
  height: 100vh;
  background-color: #fff;
  z-index: -999;
  animation-fill-mode: both;
  animation-duration: 1s;
  animation-delay: 0.3s;
  animation-timing-function: ease;
  animation-name: fadeinall;
  -webkit-animation-fill-mode: both;
  -webkit-animation-duration: 1s;
  -webkit-animation-delay: 0.3s;
  -webkit-animation-timing-function: ease;
  -webkit-animation-name: fadeinall;
}/*}}}*/

/* go-to-top button, need javascript {{{*/
#tophere {
  height: 0;
  width: 100%;
}

#go-to-top-check {
  position: absolute;
  top: 40vh;
  left: 0;
}

#go-to-top-btn {
  position: fixed;
  bottom: 0;
  right: 0;
  margin: 0 1.5rem 1.5rem 0;
  z-index: 999;

  opacity: 20;
  transform: translateY(calc(5vh + 1rem));
  transition-property: opacity transform;
  transition-duration: 0.5s;
  transition-timing-function: ease-in;
}

body.should-go-to-top-show #go-to-top-btn {
  opacity: 1;
  transform: translateY(0);
}

svg {
  fill: currentColor;
}

html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
  font-family: 'Josefin Sans', sans-serif;
}
/*}}}*/
