@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Quantico:ital,wght@0,400;0,700;1,400;1,700&display=swap');
@font-face {
  font-family: 'mechanismo';
  src: url(../fonts/MechanismoRegular-p7ywa.otf);
}

/* GLOBAL STYLES */
*{
  box-sizing: border-box;
}

body{
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100%;
  width: 100%;
  cursor: none;
  background-color: black;
}

 body.scrolled{
   overflow: auto;
 }

/* Custom Cursor */
.Cursor {
  pointer-events: none;
  position: fixed;
  display: block;
  border-radius: 0;
  transform-origin: center center;
  mix-blend-mode: difference;
  top: 0;
  left: 0;
  z-index: 1000;
  filter: url("#goo");
}

.Cursor span {
  position: absolute;
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 20px;
  background-color: white;
  transform-origin: center center;
  transform: translate(-50%, -50%);
}

/* Parallax stars */
.stars{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

#stars, #stars2, #stars3 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: radial-gradient(circle, rgba(10, 10, 30, 0.05), transparent 100%),
              radial-gradient(circle, rgba(0, 0, 128, 0.3), transparent 100%),
              radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 100%); */
}

.star {
  position: absolute;
  width: 5px;
  height: 5px;
  background-color: #FFF;
  border-radius: 50%;
  animation: moveUp 5000ms linear infinite;
}

@keyframes moveUp {
  0% {
    transform: translateY(50vh);
  }
  100% {
    transform: translateY(-100vh);
  }
}

.star:nth-child(odd) {
  animation-duration: 70s;
}

.star:nth-child(even) {
  animation-duration: 100s;
}

#stars .star {
  top: 100px;
  left: 50px;
}

#stars2 .star {
  top: 300px;
  left: 200px;
}

#stars3 .star {
  top: 500px;
  left: 800px;
}

/* Modal Source Viewer */
.preview-link {
  color: blue;
  text-decoration: underline;
  cursor: pointer;
  position: relative;
}

.modal {
  display: none;
  position: absolute;
  z-index: 1000;
  background-color: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  width: 400px;
  height: 300px;
  overflow: hidden;
}

.modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.modal::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px;
  border-color: transparent transparent #ddd transparent;
  top: -16px;
  left: 20px;
}

/* HEADER */
header{
  padding: 0px;
}

.logo{
  position: fixed;
  top: 0;
  left: 0;
  width: 80px;
  height: auto;
  padding: 20px;
  z-index: 5;
}

/* MAIN */
main{
}

.secheader {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  visibility: hidden;
  font-family: 'mechanismo';
  font-size: 3rem;
  text-align: center;
}

.seccont {
  font-size: 20px;
  font-family: "Quantico", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.pgspacer {
  display: block;
  margin: 10px;
}

/* Front Page */
#background{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
              radial-gradient(circle, rgba(10, 10, 30, 0.05), transparent 100%),
              radial-gradient(circle, rgba(0, 0, 128, 0.3), transparent 100%),
              radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 100%);
  z-index: -9999
}

/* Background */
#backgroundcontent{
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  transform: translateY(0);
  will-change: transform;
}

#section1bg{
  position: relative;
  top: 0;
  left: 0;
  min-height: 100vh;
}

#section1bg video{
  position: absolute;
  top: 55%;
  left: 55%;
  width: 110%;
  height: 110%;
  overflow: hidden;
  transform: translate(-55%, -55%);
}

#section2bg{
  position: relative;
  min-height: 10vh;
  background-color: transparent;
}

#section3bg{
  position: relative;
  min-height: 10vh;
  background-color: transparent;
}

#section4bg{
  position: relative;
  min-height: 10vh;
  background-color: transparent;
}

#section5bg{
  position: relative;
  min-height: 10vh;
  background-color: transparent;
}

#section6bg{
  position: relative;
  min-height: 10vh;
  background-color: transparent;
}

#section7bg{
  position: relative;
  min-height: 10vh;
  background-color: transparent;
}

#section8bg{
  position: relative;
  min-height: 10vh;
  background-color: transparent;
}

#section9bg{
  position: relative;
  min-height: 10vh;
  background-color: transparent;
}

#section10bg{
  position: relative;
  min-height: 10vh;
  background-color: transparent;
}

#sectionsrcbg{
  position: relative;
  min-height: 10vh;
  background-color: transparent;
  overflow: scroll;
}

#content{
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 3;
}

#content.active{
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

#content::-webkit-scrollbar{
  display: contents;
}

.section{
  scroll-snap-align: center;
  color: white;
}

/* First section */
#section1{
  position: relative;
  width: 100%;
  min-height: 100vh;
  top: 0;
  left: 0;
}

#titleformat {
  position: absolute;
  display: flex;
  flex-direction: column;
  top: 50%;
  left: 50%;
  width: 60%;
  height: 60%;
  transform: translate(-50%, -50%);
  text-align: center;
  justify-content: center;
  color: white;
}

#titletext{
  font-style: italic;
  font-family: 'mechanismo';
  font-size: 2rem;
  padding: 0;
  margin: 0;
}

#maintitle{
  font-size: clamp(4rem,6.5rem,9rem);
  font-family: 'mechanismo';
  line-height: 1.1;
  padding: 20px;
  margin: 0;
}

#enter{
  padding: 15px 30px;
  margin: 0 auto;
  margin-top: 50px;
  font-size: 1.5rem;
  font-family: 'Lato';
  background-color: #234b78;
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#enter:hover{
  background-color: #0056b3;
  transform: scale(1.1);
}

/* Second section */
#section2{
  position: relative;
  width: 100%;
  min-height: 100vh;
}

#s2format{
  position: absolute;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 30px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85vw;
}

#s2content{
  position: relative;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  width: 40vw;
  margin: 30px;
}

#s2header{
  text-align: center;
  margin: 10px;
}

#brain{
  flex: 1 1 200px;
  height: 350px;
  width: 350px;
  background: transparent;
  margin: 50px;
  margin-top: 15vh;
}

/* Third section */
#section3{
  position: relative;
  width: 100%;
  min-height: 100vh;
}

#s3format{
  position: absolute;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 30px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;
}

#s3content{
  position: relative;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  width: 35vw;
  margin: 30px;
}

#s3format img{
  margin: 20px;
  width: auto;
  height: auto;
}

/* Fourth section */
#section4{
  position: relative;
  width: 100%;
  min-height: 100vh;
}

#s4format{
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#s4content{
  position: relative;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  width: 40vw;
  margin: 30px;
}

/* Fifth section */
#section5{
  position: relative;
  width: 100%;
  min-height: 100vh;
}

#s5format{
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#s5content{
  position: relative;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  width: 40vw;
  margin: 30px;
}

/* Sixth section */
#section6{
  position: relative;
  width: 100%;
  min-height: 100vh;
}

#s6format{
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#s6content{
  position: relative;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  width: 40vw;
  margin: 30px;
}

/* Seventh section */
#section7{
  position: relative;
  width: 100%;
  min-height: 100vh;
}

#s7format{
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#s7content{
  position: relative;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  width: 40vw;
  margin: 30px;
}

/* Eigth section */
#section8{
  position: relative;
  width: 100%;
  min-height: 100vh;
}

#s8format{
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#s8content{
  position: relative;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  width: 40vw;
  margin: 30px;
}

/* Ninth section */
#section9{
  position: relative;
  width: 100%;
  min-height: 100vh;
}

#s9format{
  position: absolute;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 30px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#s9content{
  position: relative;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  width: 40vw;
  margin: 30px;
}

/* Interative Chart section */
#section10{
  position: relative;
  width: 100%;
  min-height: 100vh;
}

#s10format{
  position: absolute;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 30px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#s10content{
  position: relative;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  width: 30vw;
  margin: 30px;
}

#flourish{
  width: 50vw;
  padding-top: 10vh;
}

/* Source section */
#sectionsrc{
  position: relative;
  width: 100%;
  min-height: 100vh;
}

#srcformat{
  position: absolute;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 30px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#srccontent{
  position: relative;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  width: 90vw;
  margin: 30px;
  color: white;
}

#srccontent ol{
  -moz-column-count: 3;
  -moz-column-gap: 20px;
  -webkit-column-count: 3;
  -webkit-column-gap: 20px;
  column-count: 3;
  column-gap: 20px;
  font-size: 0.75rem;
}


/* Model Viewer Style */
#gpu{
  height: 400px;
  width: auto;
  background: transparent;
}

.progress-bar {
  display: block;
  width: 33%;
  height: 10%;
  max-height: 2%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate3d(-50%, -50%, 0);
  border-radius: 25px;
  box-shadow: 0px 3px 10px 3px rgba(0, 0, 0, 0.5), 0px 0px 5px 1px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.9);
  background-color: rgba(0, 0, 0, 0.5);
}

.progress-bar.hide {
  visibility: hidden;
  transition: visibility 0.3s;
}

.update-bar {
  background-color: rgba(255, 255, 255, 0.9);
  width: 0%;
  height: 100%;
  border-radius: 25px;
  float: left;
  transition: width 0.3s;
}

@keyframes circle {
  from { transform: translateX(-50%) rotate(0deg) translateX(50px) rotate(0deg); }
  to   { transform: translateX(-50%) rotate(360deg) translateX(50px) rotate(-360deg); }
}

@keyframes elongate {
  from { transform: translateX(100px); }
  to   { transform: translateX(-100px); }
}

model-viewer > #ar-prompt {
  position: absolute;
  left: 50%;
  bottom: 60px;
  animation: elongate 2s infinite ease-in-out alternate;
  display: none;
}

model-viewer[ar-status="session-started"] > #ar-prompt {
  display: block;
}

model-viewer > #ar-prompt > img {
  animation: circle 4s linear infinite;
}


/* FOOTER */
footer {
    color: white;
    text-align: center;
    position: absolute;
    bottom: 0;
    width: 100%;
}

/* Adjusting Screen for Mobile */
@media screen and (max-width: 768px){

  #maintitle{
    font-size: calc(2rem + 3vw);
  }

  footer{
    position: absolute;
    bottom: 0;
  }

  .section{
    overflow-x: auto;
    /* overflow-y: auto; */
  }

  .seccont{
    font-size: 16px;
  }

  #formatting{
    flex-wrap: wrap;
    top: auto;
    left: auto;
    transform: none;
  }

  #brain{
    height: revert-layer;
    width: revert-layer;
  }

}

@media screen and (max-width: 375px){
  #maintitle{
    font-size: 2rem;
  }
}

/* Water container */
/* #water-container {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 1;
} */

/* Ripple effect */
/* .ripple {
  position: fixed;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(0, 255, 255, 0.1);
  animation: ripple-effect 5s ease-out;
  pointer-events: none;
} */

/* Ripple button */
/* #toggleRipple {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 10px 20px;
  background-color: #333;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 10px;
  font-family: 'Lato';
}

#toggleRipple:hover {
  background-color: #555;
} */

/* Ripple animation */
/* @keyframes ripple-effect {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(8);
    opacity: 0;
  }
} */


/* By: Henry Chen */
/* Parts of this code was written by ChatGPT and edited */
