body,
html {
    margin: 0;
    padding: 0;
}

* {
    touch-action: manipulation;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    height: 100vh;
    background: #000000;
}

#container {
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0
}

#background_video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    object-fit: cover;
    height: 100%;
    width: 100%
}

#video_cover {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('/assets/video.jpg') no-repeat;
    background-size: cover;
    background-position: center
}

.overlay {
    position: absolute;
    top:0;
    left:0;
    width:100%;
    height:100%; 
}

#overlay {
    opacity: 0;
    background-color:gold;
    mix-blend-mode:hue;
    position: absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    transition-duration: 5s;
}

header {
    position: relative;
    z-index: 1000;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px rgba(255, 255, 255, 0.3);
    pointer-events: auto;
    font-family: Arial, sans-serif;
    font-weight: 400;
    font-style: normal;
    text-align: center;
    margin: 20px 0;
}

header h1 {
    margin: 0;
    font-size: 3.5em;
    font-weight: bold;
    margin-bottom: 5px;
}

header h2 {
    margin: 0;
    font-size: 1.6em;
    font-weight: normal;
    opacity: 0.9;
    background: linear-gradient(90deg, #e7a809 0%, #ffd700 35%, #ffffe0 50%, #ffd700 65%, #e7a809 100%);
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 20s ease-in-out infinite;
}

#what {
    position: fixed;
    width:100%;
    height:100%;
    /*background-color: rgb(0 0 0 / 42%);*/
    z-index: 1001;
}

#what {
    transition: 0.7s;
    opacity:0;
    visibility: hidden;
    overflow-y: scroll;
}

.ist {
    max-width: 540px;
    padding: 1rem;
    margin: auto;
}

.his {
    font-size: 1.2rem;
    color: white;
}

#what .x {
    position: absolute;
    top: 0;
    right: 0;
    margin-right: 1.5rem;
    color: white;
    font-size: 1.5rem;
}

footer {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 1000;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.6);
    font-size: 0.9em;
    pointer-events: auto;
    width: 80%;
    max-width: 800px;
    line-height: 1.3;
}

footer h3 {
    display: block;
    font-size: 1.17em;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
}

.wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#c {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.loading {
    position: fixed;
    z-index: 50;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: #03194e;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index:1004;
}

/* octagons */
.loader {
  display: inline-grid;
  width: 99px;
  aspect-ratio: 1;
  clip-path: polygon(100% 50%,85.36% 85.36%,50% 100%,14.64% 85.36%,0% 50%,14.64% 14.64%,50% 0%,85.36% 14.64%);
  background: #8879bf;
  animation: l1 6s infinite linear;
}
.loader:before,
.loader:after {
  content:"";
  grid-area: 1/1;
  background: #67a1c6;
  clip-path: inherit;
  margin: 10%;
  animation: inherit;
  animation-duration: 12s;
}
.loader:after {
  background: #84ccf2;
  margin: 20%;
  animation-duration: 18s;
}
@keyframes l1 {to{rotate: 1turn}}

@media (max-width: 399px) {
    header h1 {
        font-size: 2.5em;
    }

    header h2 {
        font-size: 1.2em;
    }
}

.edgerunners,
.edgerunners:after {
  width: 150px;
  height: 63px;
  line-height: 26px;
  font-size: 20px;
  font-family: "San Francisco", "Roboto", sans-serif;
  font-weight: bold;
  background: linear-gradient(45deg, transparent 5%, #FFFF3C 5%);
  border: 0;
  color: #0000cc;
  letter-spacing: 3px;
  box-shadow: 6px 0px 0px #00E6F6;
  outline: transparent;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.edgerunners:after {
  --slice-0: inset(50% 50% 50% 50%);
  --slice-1: inset(80% -6px 0 0);
  --slice-2: inset(50% -6px 30% 0);
  --slice-3: inset(10% -6px 85% 0);
  --slice-4: inset(40% -6px 43% 0);
  --slice-5: inset(80% -6px 5% 0);
  
  content: 'GENERATING DANCE';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 3%, #00E6F6 3%, #00E6F6 5%, #FF013C 5%);
  text-shadow: -3px -3px 0px #F8F005, 3px 3px 0px #00E6F6;
  clip-path: var(--slice-0);
}

.edgerunners:hover:after {
  animation: 1s glitch;
  animation-timing-function: steps(2, end);
}

@keyframes glitch {
  0% {
    clip-path: var(--slice-1);
    transform: translate(-20px, -10px);
  }
  10% {
    clip-path: var(--slice-3);
    transform: translate(10px, 10px);
  }
  20% {
    clip-path: var(--slice-1);
    transform: translate(-10px, 10px);
  }
  30% {
    clip-path: var(--slice-3);
    transform: translate(0px, 5px);
  }
  40% {
    clip-path: var(--slice-2);
    transform: translate(-5px, 0px);
  }
  50% {
    clip-path: var(--slice-3);
    transform: translate(5px, 0px);
  }
  60% {
    clip-path: var(--slice-4);
    transform: translate(5px, 10px);
  }
  70% {
    clip-path: var(--slice-2);
    transform: translate(-10px, 10px);
  }
  80% {
    clip-path: var(--slice-5);
    transform: translate(20px, -10px);
  }
  90% {
    clip-path: var(--slice-1);
    transform: translate(-10px, 0px);
  }
  100% {
    clip-path: var(--slice-1);
    transform: translate(0);
  }
}
