/* ============================================================
   sketch.css
   Shared styles for sketch projects (not used by homepage).
   ============================================================ */

/* General body styling */
body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #222222;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-tap-highlight-color: transparent;
}


/* Styling for the WebGL canvas */
.webgl {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-tap-highlight-color: transparent;
}

.html-container {
  pointer-events: none;
}


.sequence-text-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  pointer-events: none;
}


.sequence-text {
  width: 100vw;
  font-family: "DM Sans", system-ui;
  font-weight: 300;
  font-style: normal;
  color: #FFFFFF;
  font-size: 24px;
  line-height: 1.4;
  padding: 0 7vw;
  box-sizing: border-box;
  z-index: 1000;
  text-align: left;
  animation: fadeIn 0.75s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}


/* Loading screen */
.loading-screen {
  transition: opacity 0.6s ease;
}

.loading-screen.exit {
  opacity: 0 !important;
  pointer-events: none;
}

.loading-dots span {
  animation: loadingDot 1.4s infinite;
  opacity: 0;
}

.loading-dots span:nth-child(1) {
  animation-delay: 0s;
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes loadingDot {

  0%,
  80%,
  100% {
    opacity: 0;
  }

  40% {
    opacity: 1;
  }
}


.sequence-text p {
  margin-top: 0;
  margin-bottom: 10px;
}

.sequence-text span {
  background-color: rgba(0, 0, 0, 1.0);
  padding: 0px 6px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.sequence-text span a {
  pointer-events: visible;
}


.sequence-text.type-title span {
  font-family: "GeistMono", system-ui;
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 72px;
  font-weight: 700;
}

.sequence-text.type-caption {
  width: 90%;
  font-family: "DM Sans", system-ui;
  font-weight: 300;
  font-style: normal;
  color: #FFFFFF;
  font-size: 18px;
  line-height: 1.4;
  padding: 0 40px;
  box-sizing: border-box;
  z-index: 1000;
  text-align: left;
  animation: fadeIn 0.75s ease-out forwards;
}

.sequence-text.type-caption b {
  font-weight: 500;
}

.sequence-text.type-navigation {
  font-family: "DM Mono", system-ui;
  font-size: 20px;
}

.sequence-text.type-about {
  font-family: "DM Mono", system-ui;
  width: 84%;
  padding: 16px 24px;
}


.progress-container {
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 30px;
  max-width: 600px;
  z-index: 1000;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 0 10px;
  box-sizing: border-box;
}

.progress-segment {
  align-items: center;
  width: 3px;
  height: 6px;
  background: rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
}

.progress-segment.active {
  background: rgba(0, 0, 0, 1);
  width: 4px;
  height: 16px;
}

.progress-segment.active+.progress-segment,
.progress-segment:has(+ .progress-segment.active) {
  height: 9px;
}

.next-sketch {
  display: flex;
  position: absolute;
  bottom: 32px;
  padding: 4px;
  color: white !important;
  font-family: 'GeistPixel';
  font-size: 16px;
  right: 32px;
  align-items: center;
}

.next-sketch a {
  color: white;
  text-decoration: none;
}

.next-sketch a:hover {
  text-decoration: underline;
}

@media screen and (orientation: landscape) {
  .next-sketch {
    right: calc(50vw - 50vh + 32px);
  }

  .sequence-text,
  .sequence-text.type-caption {
    width: 100vh;
    padding: 0 7vh;
  }

  .sequence-text.type-about {
    width: 80vh;
  }
}

/* Mobile */
@media screen and (max-width: 640px) {
  .progress-segment {
    width: 2px;
  }

  .progress-segment.active {
    width: 3px;
  }

  .sequence-text.type-title span {
    font-size: 48px;
  }

  .sequence-text {
    width: 84%;
    padding: 0;
    font-size: 16px;
  }

  .sequence-text.type-caption {
    width: 84%;
    padding: 0;
    font-size: 14px;
  }

  .sequence-text.type-navigation {
    font-family: "DM Mono", system-ui;
    font-size: 14px;
  }

  .sequence-text.type-about {
    padding: 14px;
    font-size: 14px;
  }

  .next-sketch {
    font-size: 14px;
    bottom: 20px;
    right: 21px;
  }
}