/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */

   @font-face {
    font-family: SimiliBit;
    src: url(https://faire.surlesinternets.ch/_._._/fonts/SimiliBit.ttf);
  }
    
  ::selection{
    background: orange;
  }
  
  body {
    background-color: #000;
    margin: 0;
    font-family: SimiliBit;
    color: #fefefe;
    height: 100vh;
    overflow: hidden;
    /*! align-items: center; */ /*! justify-content: center; */
    text-align: center;
  }
  body.fading{
    pointer-events: none;
  }
  #background {
    position: relative;
    /* inset: 0; */
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}
  video{
    position: absolute;
    inset: 0;
    pointer-events: none;
    height: 100%;
    transform: translateX(-50%);
    left: 50%;
    min-width: 100vw;
    object-fit: fill;
  }
  
#cache {
  position: absolute;
  top: 50%;
  left: -100px;
  transform: translateY(-50%);
  height: 70vh;
  background: #000;
  right: -100px;
  filter: blur(10vh);
}
  header {
    position: fixed;
    text-align: left;
    padding: 20px;
    color: #fff;
    z-index: 22;
    top: 0;
  }
  h1{
    
    font-size: 47px;
  }
  footer {
    position: fixed;
    bottom: 0;
    padding: 20px;
    text-align: right;
    /*! width: 100vw; */
    box-sizing: border-box;
    z-index: 22;
    right: 0;
    left: 300px;
  }
  footer a {
    color: #fff;
    text-decoration: none;
  }
  footer a:hover {
    text-decoration: underline;
  }
  
    .container {
      position: fixed;
      width: 320px;
      perspective: 1000px;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      height: 40vh;
      margin: 0;
      max-width: 80vw;
    }
    
    #carousel {
      position: absolute;
      width: 100%;
      height: 100%;
      transform-style: preserve-3d;
      animation: rotate360 60s infinite forwards linear;
    }
    
    .project {
      position: absolute;
      width: 300px;
      top: 60px;
      left: 10px;
      right: 10px;
      background-size: cover;
      display: inline-flex;
      cursor: pointer;
      opacity: 0.8;
      flex-direction: column;
      bottom: 60px;
      align-items: center;
      justify-content: center;
    }
    
    .project:hover {
      opacity: 1;
    }
    
    
    .project picture {
      height: 160px;
      width: auto;
      padding: 10px;
      box-sizing: border-box;
      transition: 0.4s;
    }
    
    .project:hover picture {
      padding: 0;
    }
    
    .project img {
      height: 100%;
    }
    
    h1,h2{
      margin: 0;
    }
    
    
    @keyframes rotate360 {
      0% {
        transform: rotateY(0deg) rotateZ(6deg);
      }
      
      50%{
        transform: rotateY(-180deg) rotateZ(-4deg);
      }
    
      100% {
        transform: rotateY(-360deg) rotateZ(6deg);
      }
    }
    
    @keyframes blur {
      10% {
        filter:blur(0px) opacity(100%);
        opacity: 1;
      }
      
      50%{
        filter:blur(6px) opacity(25%);
        opacity: 0.5;
      }
    
      90% {
        filter:blur(0px) opacity(100%);
        opacity: 1;
      }
    }
    
    
    
    .grid-container {
      width: 100%;
      height: 40vh;
      position: fixed;
      top: 0;
      left: 0;
    }
    .grid-container.bottom {
      bottom: 0;
      top: unset;
    }
    .grid-wrap{
      position: relative;
      height: 100%;
      perspective: 100rem;
      transform-style: preserve-3d;
    }
    .grid{
      width: 300%;
      height: 1000%;
      position: absolute;
      top: 0;
      transform-style: preserve-3d;
      transform-origin: top center;
      transform: translateX(-25%) rotateX(-85deg);
    }
    .bottom .grid{
      transform-origin: bottom center;
      bottom: 0;
      top: unset;
      transform: translateX(-25%) rotateX(85deg);
    }
    .grid::before,.grid::after {
      content: '';
      display: block;
      position: absolute;
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
    }
    .grid::before {
      background-image: repeating-linear-gradient(to left, orange, orange 4px, transparent 4px, transparent 10rem), repeating-linear-gradient(to bottom, orange, orange 6px, transparent 6px, transparent 40vh);
      /* animation: scrolltop 6s infinite linear; */
    }
    
    .grid::after {
      background-image: linear-gradient(to top, rgba(0, 0, 0, 255) 10vh, rgba(0, 0, 0, 0));
      z-index: 1;
      transform: translateZ(1px);
    }
    
    @keyframes scrolltop {
      from {
        background-position-y: 0vh;
      }
    
      to {
        background-position-y: -400vh;
      }
    }
  
    .bottom .grid::before {
      background-image: repeating-linear-gradient(to left, orange, orange 4px, transparent 4px, transparent 10rem), repeating-linear-gradient(to bottom, orange, orange 6px, transparent 6px, transparent 40vh);
      /* animation: scrollbottom 6s infinite linear; */
    }
    
    .bottom .grid::after {
      background-image: linear-gradient(to bottom, rgba(0, 0, 0, 255), rgba(0, 0, 0, 0));
      z-index: 1;
      transform: translateZ(1px);
    }
    
    @keyframes scrollbottom {
      from {
        background-position-y: 0vh;
      }
    
      to {
        background-position-y: 400vh;
      }
    }
  
  
  #about {
    position: fixed;
    background: #111;
    text-align: left;
    inset: 0;
    padding: 60px;
    z-index: 30;
    pointer-events: none;
    mask-image: linear-gradient(transparent);
    font-size: 18px;
    line-height: 20px;
  }
  #about.open{
    pointer-events: all;
  }
  a[href="#about"] {
    z-index: 50;
    position: relative;
  }
  
  
  #overlay {
    position: fixed;
    inset: 0;
    background: orange;
    transition: 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: column;
    font-size: 2rem;
    color: #000;
    padding: 20px;
    box-sizing: border-box;
    z-index: 20;
  }
  #overlay.open {
    background: transparent;
    pointer-events: none;
  }
  #overlay div{
    color: orange;
    transition: 0.5s;
  }
  #overlay div.show{
    color: #000;
  }
  
#countdown {
  opacity: 1;
  transition: 0.4s;
}

#overlay.open #countdown {
  opacity: 0;
  pointer-events: none;
}
  span {
    position: relative;
    color: orange;
  }
  span.black::after {
    content: "";
    inset: 1px;
    background: #000;
    position: absolute;
  }
  span.visible {
    color: #fff;
  }
  
#event {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 20;
}
#event img {
  width: 140px;
}
#event img:hover {
  transform: scale(1.1);
}

/*#event a:nth-child(2) {*/
/*  pointer-events: none;*/
/*  opacity: 0;*/
/*  transition: 0.4s;*/
/*}*/
/*body.ok #event a:nth-child(2) {*/
/*  pointer-events: all;*/
/*  opacity: 1;*/
/*}*/
  
  @media screen and (max-width:700px){
    
    .container {
      width: 100vw;
      /* overflow: hidden; */
    }
  
    #about {
      padding: 30px;
      overflow-y: scroll;
      border-bottom: 100px solid #111;
    }
    footer{
      left:0;
    }
    #event{
      bottom: 90px;
    }
    #event img {
      width: 100px;
    }
  }