:root{
  --color-primary: #0000D0;
  --color-accent: #F4CD27;
  --bg-primary: #E1E4E3;
  --bg-secondary: #EDE7DE;
  --selection-color: #f8e37f;
}
*{
  box-sizing: border-box;
  word-break: keep-all;
}
*::selection{
  background: var(--selection-color);
}
body::-webkit-scrollbar {
  display: none;
}

html, body{
  height: 100%;
  width: 100%;
  margin: 0;
  display: block;
  font-family: "IBM Plex Mono", monospace;
  background: var(--bg-primary);

}
img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-size: cover;
}
video{
  display: block;
  height: 100.1%;
  width: 100.1%;
  object-fit: cover;
  background-size: cover;
}
a{
  text-decoration: none;
  color: var(--color-primary);
  cursor: pointer;
}
.text-big{
  font-size: 18px;
}
.text-normal{
  font-size: 16px;
}
.text-small{
  font-size: 12px;
}
.flex-centre{
  display: flex;
  justify-content: center;
  align-items: center;
}
.header{
  width: 100vw;
  height: 48px;
  border-bottom: 1px solid var(--color-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2%;
  z-index: 100;
  position: fixed;
  top: 0;
  left: 0;
  background-color: var(--bg-primary);
}
.header-logo{
  width: 40px;
  height: 40px;
}
.nav ul{
  list-style: none;
}
.nav li{
  display: inline-flex;
  margin-left: 16px;
}
.here{
  position: fixed;
  bottom: 36px;
  right: 16px;
  width: 64px;
  height: 64px;
  background-color: var(--bg-primary);
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  text-align: center;
  z-index: 50;
  pointer-events: auto;
}
.here, .here *{
  cursor: default;
}
.footer{
  width: 100%;
  height: 48px;
  border-top: 1px solid var(--color-primary);
  border-bottom: 1px solid var(--color-primary);
  background-color: var(--bg-primary);
  text-align: center;
  z-index: 20;
  padding: 0;
  margin: 0;
}
.welcome{
  width: 100%;
  height: calc(100vh - 96px);
  margin-top: 48px;
  color: var(--color-primary);
}
.welcome-centre{
  align-self: center;
  width: 100%;
  height: calc(100vh - 96px);
  position: absolute;
}
.welcome-logo{
  position: absolute;
  width: 80px;
  height: 80px;
  z-index: 90;
  margin-top: -2%;
}
.welcome-gif{
  border-radius: 45%;
  border: 1px solid var(--color-primary);
  overflow: hidden;
  position: absolute;
  z-index: 0;
  height: 70%;
  width: auto;
}
.welcome-text{
  position: absolute;
  z-index: 10;
  align-self: end;
  margin-bottom: 1%;
  text-align: center;
}

/* PROJECT *//* PROJECT *//* PROJECT *//* PROJECT *//* PROJECT *//* PROJECT *//* PROJECT *//* PROJECT *//* PROJECT */

.project{
  padding: 1% 2%;
}
.filter{
  margin: 0 0 16px 8px;
  position: sticky;
  top: 8%;
  z-index: 10;
}
.filtering{
  margin-right: 4px;
  display: none;
}
.tag{
  color: var(--color-primary);
  border-radius: 8px;
  border: 1px solid var(--color-primary);
  padding: 2px 12px;
  margin-right: 6px;
  background-color: var(--bg-secondary);
  pointer-events: auto;
}
.project-grid {
  display: grid;
  max-width: 100%;
  grid-template-columns: repeat(2, minmax(0, 50%));
  column-gap: 16px;
  row-gap:24px;
  grid-auto-rows: minmax(250px, auto);
}
.project-item{
  transition: all 300ms ease-out;
}
.project-image{
  aspect-ratio: 9/6;
  border: 1px solid var(--color-primary);
  margin-bottom: 4px;
  overflow: hidden;
}
.stop-motion{
  width: 100%;
  height: 100%;
  position: relative;
  isolation: isolate;
}

.stop-motion02{
  background-image: url("../img/bg.svg");
  /* Full height */
  height: 100%;
  /* Create the parallax scrolling effect */
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.stop-container{
  width: 60%;
  position: absolute;
  flex-direction: column;
  margin-top: -3%;
}

.stop-motion02 .stop-container{
  width: 50%;
  isolation: auto;
}

.stop-motion02 .stop-container > div{
  border: 1px dashed var(--color-primary);

}
.caption{
  color: var(--color-primary);
  margin-top: 4px;

}
.caption-link{
  font-style: italic;
}
.show {
  display: inline-flex;
}
.dash{
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--color-primary) 50%, transparent 50%),
  linear-gradient(90deg, var(--color-primary) 50%, transparent 50%),
  linear-gradient(0deg, var(--color-primary) 50%, transparent 50%),
  linear-gradient(0deg, var(--color-primary) 50%, transparent 50%);
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
  background-size: 16px 1.5px, 16px 1.5px, 1.5px 16px, 1.5px 16px;
  background-position: 0 0, 100% 100%, 0 100%, 100% 0;
  padding: 8px;
  animation: border-animation 10s infinite linear;
}

/*INFO*//*INFO*//*INFO*//*INFO*//*INFO*//*INFO*//*INFO*//*INFO*//*INFO*//*INFO*//*INFO*//*INFO*//*INFO*//*INFO*//*INFO*/

.info{
  width: 100%;
  position: relative;
}
.info-float{
  position: absolute;
  background: var(--bg-secondary);
  border: 1px solid var(--color-primary);
  padding: 2px 6px;
  z-index: 10;
}
.info .welcome-gif{
  margin-top: -3%;
}
.info video{
  filter: grayscale(100%);
}
#cv{
  top: 35%;
  left: 65%;
}
#mail{
  top: 10%;
  left: 30%;
}
#instagram{
  top: 60%;
  left: 35%;
}
.final-footer{
  border-bottom: none;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: right;
  padding: 0 2%;
}
@keyframes border-animation {
  0% {
    background-position: 0 0, 100% 100%, 0 150%, 100% 0;
  }
  100% {
    background-position: 100% 0, 0 100%, 0 0, 100% 100%;
  }
}
@media (orientation: portrait) {
  .project-grid {
    grid-template-columns: none;
  }
  .stop-motion02{
    background-image: url("../img/bg-2.svg");
  }
  .stop-motion{
    height: 80vw;
  }
}
@media screen and (max-width: 1024px){
  .welcome-text{
    width: 85vw;
  }
  .filter{
    margin: 7px 0 16px 0;
  }

}
@media screen and (max-width: 500px){
  .text-big{
    font-size: 16px;
  }
  .text-normal{
    font-size: 14px;
  }
  .text-small{
    font-size: 12px;
  }
  .header{
    padding: 0 3%;
  }
  .nav li{
    display: inline-flex;
    margin-left: 8px;
  }
  .welcome{
    height: calc(100vh - 88px);
  }
  .here{
    bottom: 64px;
    right: 8px;
  }
  .welcome-text{
    display: none;
  }
  .footer{
    height: 40px;
  }
  .project{
    padding: 1% 3%;
  }
  .filter{
    margin: 7px 0 16px 0;
  }
  .tag{
    padding: 2px 8px;
    margin-right: 4px;
  }
  #cv{
    top: 40%;
    left: 57%;
  }
  #mail{
    top: 20%;
    left: 15%;
  }
  .info{
    width: 100%;
    position: relative;
    height: calc(100vh - 88px);
  }

}
