/* 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;
}

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

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

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


.sequence-text {
  font-family: "DM Sans", system-ui;
  font-weight: 300;
  font-style: normal;
  width: 100%;
  color: #4b4b4b;
  font-size: 24px;
  line-height: 1.4;
  padding: 0 40px;
  box-sizing: border-box;
  position: absolute;
  opacity: 0;
  z-index: 1000;
}

.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(255, 255, 255, 0.9);
}

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

.sequence-text.type-about {
  font-family: "DM Mono", system-ui;
}



@media screen and (orientation: landscape) {
  .frame-helper {
    width: 100vh;
    height: 100vh;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0%);
  }

  .sequence-text {
    width: 100vh;
    left: 50%;
    transform: translate(-50%, 0%);
  }
}

.progress-container {
  position: fixed;
  bottom: 1%;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  gap: 2px;
}

.progress-segment {
  align-items: center;
  width: 10px;
  height: 10px;
  margin: 0 2px 0 2px;
  background: rgba(255, 255, 255, 0.3);
  position: relative;
  border-radius: 100%;
  overflow: hidden;
}

.progress-segment.active {
  background: rgba(255, 255, 255, 1);
}


.nav-buttons-container {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  z-index: 1000;
}

.nav-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 255, 255, 0.8);
  color: #333;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.nav-button:hover:not(.disabled) {
  background-color: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

.nav-button.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.label-container {
  font-family: "DM Mono", system-ui;
  font-weight: 400;
  position: absolute;
  top: 50%;
  left: 50%;
  line-height: 1.4;
  padding: 0;
  box-sizing: border-box;
  display: block;
  border-left: 2px solid;
  border-color: white;
}

.label-container.neuron-label {
  z-index: 2;
}

.label-container .label-pointer {
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  transform: translate(-4px, -3px);
  border-radius: 100%;
}

.label-container .label-text {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 5px;
  position: absolute;
  bottom: 0px;
  text-align: center;
  justify-content: center;
  font-size: 40px;
  min-width: 100px;
  transform: translate(-1px, 0) translate(-50%, 100%);
}

.label-container .label-text.right {
  transform: translate(20px, 50%);
}


.neuron-threshold-graph-container {
  position: absolute;
  top: 50%;
  left: 50%;
  line-height: 1.4;
  padding: 0;
  box-sizing: border-box;
  display: block;
  width: 50%;
  z-index: 1;
  ;
}

.neuron-threshold-graph-bar {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 18px;
  box-sizing: border-box;
  background-color: white;
  transform: translate(-50%, 50%);
}

.neuron-threshold-graph-bar::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  box-sizing: border-box;
  background-color: rgba(251, 238, 0);
}

.neuron-threshold-graph-indicator {
  position: absolute;
  top: 0;
  left: 10%;
  display: block;
  font-size: 40px;
  transform: translateY(-20px) translate(-50%, -100%);
  text-align: center;
}

.neuron-threshold-graph-indicator span {
  background-color: rgba(251, 238, 0);
  margin-top: 4px;
  padding: 2px 4px;
}


.neuron-threshold-graph-indicator::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(251, 238, 0);
}


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


  .label-container .label-text {
    font-size: 24px;
    min-width: 25px;
  }

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

  .neuron-threshold-graph-indicator {
    font-size: 24px;
    transform: translateY(-14px) translate(-50%, -100%);
  }

  .neuron-threshold-graph-bar {
    height: 12px;
  }

  .nav-buttons-container {
    gap: 15px;
  }

}

@media screen and (max-width: 640px) {
  .progress-segment {
    width: 6px;
    height: 6px;
    margin: 0 1px 0 1px;
  }

  .sequence-text h1 {
    font-size: 36px;
  }

  .title-container .title {
    font-size: 14px;
    padding-top: 20px;
    padding-left: 20px;
  }


  .sequence-text {
    padding: 0 20px;
    font-size: 16px;
  }

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

  .label-container .label-text {
    font-size: 14px;
    min-width: 25px;
  }

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

  .neuron-threshold-graph-indicator {
    font-size: 14px;
    transform: translateY(-14px) translate(-50%, -100%);
  }

  .neuron-threshold-graph-bar {
    height: 8px;
  }

  .nav-buttons-container {
    gap: 15px;
  }

}
