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


a {
  color: #FFFFFF;
  /* text-decoration: none; */
}


.title-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  z-index: 1002;
  padding: 16px 24px;
}

.title-container .title,
.title-container .about {
  position: relative;
  font-family: "DM Mono", system-ui;
  font-size: 20px;
  font-weight: 400;
  color: #ffffff;
}

.title-container .title a,
.title-container .about a {
  color: #ffffff;
  text-decoration: none;
  text-shadow: 0.5px 0.5px 2px rgba(0, 0, 0, 0.4), -0.5px -0.5px 2px rgba(0, 0, 0, 0.4);
}

.title-container .about a:hover {
  text-decoration: underline;
}



.title-container .about-modal {
  position: absolute;
  top: 100%;
  right: 0;
  width: 360px;
  max-width: 89vw;
  font-size: 16px;
  background: white;
  border: 1px solid white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease-in-out;
  margin-top: 4px;
  font-family: 'DM Mono', system-ui;
  color: #151515;
}

.about .about-modal, .about .about-modal a {
  color: #151515;
  text-shadow: none;
}

.about-modal.show {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

.about-modal .modal-content {
  margin-top: 40px;
  padding: 0 20px 20px 20px;
  position: relative;
}

.about-modal .modal-content p {
  margin: 0 0 8px 0;
}

.about-modal .modal-content h2 {
  margin: 24px 0 8px 0;
  font-size: 16px;
  color: #151515;
}

.about-modal .close-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  pointer-events: visible;
  color: #151515;
  line-height: 1;
  z-index: 1003;
}

.social-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  row-gap: 4px;
  column-gap: 8px;
  margin: 0;
  color: #151515;
}

.social-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #151515;
  padding: 8px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.social-links a:hover {
  background-color: #f5f5f5;
  text-decoration: none;
}

.social-icon {
  width: 14px;
  height: 14px;
  margin-right: 4px;
}

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

.html-container {
  pointer-events: none;
  cursor: pointer;
  /* Prevents interaction with the HTML container */
}


.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: 90%;
  font-family: "DM Sans", system-ui;
  font-weight: 300;
  font-style: normal;
  color: #FFFFFF;
  font-size: 24px;
  line-height: 1.4;
  padding: 0 40px;
  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;
  }
}


.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: "DM Mono", 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;
  background-color: #000000;
  width: 84%;
  padding: 16px 24px;
}



@media screen and (orientation: landscape) {

  .sequence-text,
  .sequence-text.type-caption {
    width: 90vh;
    text-align: center;
  }

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

.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;
  /* gap: 0px; */
  padding: 0 10px;
  box-sizing: border-box;
}

.progress-segment {
  align-items: center;
  width: 3px;
  height: 6px;
  /* margin: 0 2px 0 2px; */
  background: rgba(255, 255, 255, 0.9);
  position: relative;
  /* border-radius: 100%; */
  overflow: hidden;
  /* transition: height 0.4s ease-in-out, width 0.4s ease-in-out, background 0.4s ease-in-out; */
}

.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;
}





/* 



.label-container.right .label-text   {
  transform: translateX(-5px) translateX(-50%);
}

.label-container.right .label-pointer {
  left: 100%;
  top: 50%;
  transform: translate(-5px, -4px) rotate(-45deg);
} */

/* .label-container .label-text span{
  padding: 1px 4px;
  font-size: 16px;
  color: black;
  text-align: center;
  background-color: white;
} */





/* Mobile Responsive Styles */
@media screen and (max-width: 960px) {}

@media screen and (max-width: 640px) {

  .progress-segment {
    width: 2px;
  }

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


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


  .label-container .label-text {
    font-size: 20px;
  }

  .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;
  }

  .title-container {
    padding: 16px;
  }

  .title-container .title,
  .title-container .about {
    font-size: 16px;
  }

  .title-container .about-modal {
    font-size: 14px;
  }

}

.label-container {
  font-family: "DM Mono", system-ui;
  font-weight: 400;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none !important;
}

.label-container .label-pointer {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  position: absolute;
  left: 50%;
  transform: translate(-4px, -3.5px) rotate(-45deg);
  z-index: -1;
  background-color: #FFFFFF;
}

.label-container .label-text {
  font-size: 12px;
  color: #000000;
  min-width: 15px;
  text-align: center;
  padding: 0px 5px;
  transform: translateY(5px) translateY(50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.label-container#title .label-text, .label-container#mini-title .label-text {
  font-size: 48px;
  font-weight: 800;
  transform: translateX(50%) translateY(-50%);
  min-width: 15px;
  text-align: center;
  padding: 0 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.label-container#subtitle .label-text {
  font-size: 16px;
  font-weight: 400;
  transform: translateX(50%) translateY(-50%);
  min-width: 15px;
  text-align: center;
  padding: 0 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.label-container#title .label-text span {
  color: #FFFFFF;
  background-color: #000000;
}

.label-container#mini-title .label-text span {
  color: #FFFFFF;
  background-color: #000000;
}


/* Centered Label is like Top but pointer is hidden */
.label-container.center .label-text {
  transform: translateY(-5px) translateY(-50%);
}

.label-container.center .label-pointer {
  left: 50%;
  top: 50%;
  transform: translate(-3.5px, -4px) rotate(-45deg);
}

.label-container.right .label-text {
  transform: translateX(5px) translateX(50%);
}

.label-container.right .label-pointer {
  left: 0;
  top: 50%;
  transform: translate(-3.5px, -4px) rotate(-45deg);
}

.label-container.left .label-text {
  transform: translateX(-5px) translateX(-50%);
  text-align: right;
}

.label-container.left .label-pointer {
  left: 100%;
  top: 50%;
  transform: translate(-5.5px, -4px) rotate(-45deg);
}

.label-container.top .label-text {
  transform: translateY(-5px) translateY(-50%);
}

.label-container.top .label-pointer {
  left: 50%;
  top: 100%;
  transform: translate(-4px, -5px) rotate(-45deg);
}

.label-container#label-2 .label-text {
  color: #FFFFFF;
  background-color: #000000;
}

.label-container#x-label .label-text,
.label-container#x-label .label-pointer,
.sequence-text.type-caption span#x-label {
  background-color: #F67983;
  color: black;
}

.label-container#y-label .label-text,
.label-container#y-label .label-pointer,
.sequence-text.type-caption span#y-label {
  background-color: #FFE381;
  color: black;
}

.label-container#z-label .label-text,
.label-container#z-label .label-pointer,
.sequence-text.type-caption span#z-label {
  background-color: #5EE8CA;
  color: black;
}

.label-container#z-label .label-text::after {
  content: "Z";
  font-size: 0.5em;
}

.label-container#x-label .label-text::after {
  content: "X";
  font-size: 0.5em;
}

.label-container#y-label .label-text::after {
  content: "Y";
  font-size: 0.5em;
}

.label-container#z-label .label-text::after {
  content: "Z";
  font-size: 0.5em;
}

.label-container#threshold-map-title .label-text {
  font-family: "DM Mono", system-ui;
  font-weight: 800;
  color: #000000;
  background-color: transparent;
}


/* Mobile Responsive Styles */
@media screen and (max-width: 960px) {}

@media screen and (max-width: 640px) {

  .label-container .label-text {
    font-size: 16px;
  }

}
