/* General body styling */
body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background-color: #222222;
}

.title-container {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

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

.title-container .title {
  position: absolute;
  font-family: "DM Mono", system-ui;
  font-size: 28px;
  font-weight: 500;
  padding-top: 24px;
  padding-left: 40px;
  color: white;
}

.title-container .title a {
  color: #000000;
  text-decoration: none;
}

/* Styling for the WebGL canvas */
.webgl {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

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


.sequence-text-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  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;
  opacity: 0;
  z-index: 1000;
  text-align: left;
}

.sequence-text h1 {
  font-family: "DM Mono", system-ui;
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 72px;
  font-weight: 700;
}

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

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

.sequence-text.type-caption {
  font-size: 18px;
  font-family: "DM Mono", system-ui;
  color: white;
  line-height: 1;
}

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

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

.sequence-text.type-caption span {
  background-color: transparent;
}

.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 {
    width: 90vh;
    text-align: center;
  }

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

.progress-container {
  position: fixed;
  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 {
  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;
}

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

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

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

.label-container#title-header .label-text {
  font-size: 20px;
  font-weight: 400;
  transform: translateY(0);
  min-width: 15px;
  text-align: center;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

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

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



/* 



.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 h1 {
    font-size: 36px;
  }

  .title-container .title {
    font-size: 16px;
    padding-top: 12px;
    padding-left: 16px;
  }

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





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


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

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

  .sequence-text.type-about {
    padding: 16px;
  }



}
