/* Font declarations first to minimize FOUT */
@font-face {
  font-family: 'NTBau-Medium';
  src: url('fonts/NTBau-Medium.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('fonts/RobotoMono-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Reset some default styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Ensure the canvas fills the viewport */
html, body {
  
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #000; /* or your desired color */
}

#three-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100%;
  display: block;
  z-index: 0;
  background-color: black;
  
}
#matte{
  position:absolute;
  top: 0; left: 0;        
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.3);
  z-index: 0;
  pointer-events: none;
}
#aboutMatte{
  position:absolute;
  top: 0; left: 0;        
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  display: none;
  z-index: 0;
  pointer-events: none;
}
#interface {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  display: block;
  user-select: none;
  -webkit-user-select: none; /* For Safari */
  -ms-user-select: none;     /* For IE/Edge */
}
#about {
  right: 20px;
  top: 23px;
  position: absolute;
  font-size: 1.8em;
  color: rgb(0, 0, 0);
  font-family: 'NTBau-Medium';
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  background-color: #ffffff;
  width: 1.2em;
  height: 1.2em;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  aspect-ratio: 1 / 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none; /* For Safari */
  -ms-user-select: none;     /* For IE/Edge */
  z-index: 200; /* Make sure this is higher than #aboutContent */
  
}

#aboutClose{
  right: 22px;
  top: 24px;
  position: absolute;
  font-size: 0.85em;
  color: rgb(0, 0, 0);
  font-family: 'NTBau-Medium';
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  background-color: #ffffff;
  width: 1.3em;
  height: 1.3em;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  aspect-ratio: 1 / 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none; /* For Safari */
  -ms-user-select: none;     /* For IE/Edge */
  z-index: 200; /* Make sure this is higher than #aboutContent */
  display:none;

}
#title {
  margin:20px;
  position: absolute;
  font-size: 2em;
  color: white;
  font-family: 'NTBau-Medium';
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none; /* For Safari */
  -ms-user-select: none;     /* For IE/Edge */
  z-index: 200;
}

/* Responsive typography */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0.5em;
  font-weight: 600;
}

p {
  margin-bottom: 1em;
  line-height: 1.6;
}
.underline {
  text-decoration: underline;
  display: inline;
}
/* Responsive layout for main container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}



.statusbar {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%; /* Adjust percentage as needed */
  user-select: none;
}

.statusbar-text {
  color: #888;
  
  position: relative;
  z-index: 1;
}
#search {
  font-family: 'NTBau-Medium';
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 10vh;
  width: 80%;
  max-width: 700px;
  z-index: 10;
  pointer-events: auto;
  display: flex;
  align-items: stretch;
  height: 3.5em;
  box-sizing: border-box;
  overflow: hidden;
  z-index: 200;
}

#search-container {
  display: flex;
  flex-direction: row;
  width: 200%; /* Force double width */
  flex: none;  /* <-- This is the key! */
  height: 100%;
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  position: relative;
}

/* Move left by 100px (for example) */
#search-container.move-left {
  transform: translateX(-50%);
}
#search-container.move-right {
  transform: translateX(0%);
}

.search-pane {
  flex: 0 0 50%;   /* Each pane is 50% of container */
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center; /* Center children horizontally */

}

#search-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  background: none; /* Remove background here if you want to use #search-background */
  /* border-radius: 0.5em; */
  box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 4px;
  overflow: hidden;
}

#search-input {
  position: relative;
  z-index: 2;
  height: 100%;
  font-size: 1.5em;
  border: none;
  
  background: transparent; /*!important; <-- force transparent background */
  width: calc(100% - 200px);
  padding-left: 0.5em;
  padding-right: 0.5em;
  box-sizing: border-box;
  flex: 1 1 auto;      /* Grow to fill space */
  min-width: 0;        /* Prevent overflow */
  font-family: 'NTBau-Medium';
  outline: none;         /* Remove default focus outline */
  box-shadow: none;      /* Remove any box-shadow highlight */
}

#search-input:focus {
  outline: none;
  box-shadow: none;
}

#search-submit {
  position: relative;
  font-size: 1.2em;
  top: 0px;
  height: 100%;
  min-height: 0;
  width: 200px;
  padding: 0 1.5em;
  border: none;
  background: #000000;
  color: #fff;
  cursor: pointer;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;      /* Do not grow/shrink */
  font-family: 'NTBau-Medium';
  
}
#new-prompt{
  position: relative;
  font-size: 1.2em;
  font-family: 'NTBau-Medium';
  top:0px;
  height: auto;
  min-height: 0;
  padding:10px;
  padding-left:10px;
  padding-right:10px;  
  padding-bottom:12px;
  border: none;
  background: white; 
  /* border-radius: 30px;   */
  color: #000000;
  cursor: pointer;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 5px;
  margin-right: 5px;

  flex: 0 0 auto;  
  z-index: 200;     
}
#next-context:active {
  background-color: #000000;
  color:white
}
/* #new-prompt{
  float: none; 
  background: rgba(0,0,0,0.5);
  padding-top: 7px;
  padding-bottom: 10px;
  padding-left:15px;
  padding-right:15px;
  font-size: 1.2em;
  border-style: solid;
  border-width: 2px;
  border-radius: 30px;
  color: white;
  margin: 0 0.5em; 
  text-shadow: none;
  pointer-events: auto;
} */
#next-context {
  position: relative;
  font-size: 1.2em;
  font-family: 'NTBau-Medium';
  top:0px;
  
  height: auto;
  min-height: 0;
  padding:10px;
  padding-left:10px;
  padding-right:10px;  
  padding-bottom:12px;
  border: none;
  background: white; 
  /* border-radius: 30px;   */
  color: #000000;
  cursor: pointer;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 5px;
  margin-right: 5px;

  flex: 0 0 auto;   
  z-index: 200; 
}
#next-context:active {
  background-color: #000000;
  color:white
}


/* #next-context {
  float: none; 
  background: rgba(0,0,0,0.5);
  padding-top: 7px;
  padding-bottom: 10px;
  padding-left:15px;
  padding-right:15px;
  font-size: 1.2em;
  border-style: solid;
  border-width: 2px;
  border-radius: 30px;
  color: white;
  margin: 0 0.5em; 
  text-shadow: none;
  pointer-events: auto;
} */




.statusbar-fill {
  color: white;
  
  width: 0%; /* Adjust to control overlap */
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  /* Optional: add some opacity for effect */
  /* opacity: 0.8; */
  pointer-events: none;
}
#console {
  position: absolute;
  color: white;
  font-family: 'Roboto';
  font-size: 0.8em;
  left: 0;
  top: 100%;
  width: 100%;
  margin-top: 0.5em; 
}
#server-status {
  position: fixed;
  left: 0;
  bottom: 0;
  margin: 1em;
  color: white;
  font-family: monospace;
  font-size: 1.1em;
  background: rgba(0,0,0,0.6);
  padding: 0.4em 1em;
  border-radius: 0.5em 0.5em 0 0;
  z-index: 20;
  pointer-events: auto;
  display: none;
}
#search-background {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(100% - 200px);
  height: 100%;
  background: #dbdada;
  z-index: 1;
  
}

#search-status {
  position: absolute;
  left: 0;
  top: 100;
  width: calc(100% - 200px);
  height: 100%;
  background: rgb(255, 255, 255);
  z-index: 2;
}
#prompt_overlay{
  position:absolute;
  border-radius: 0;
  pointer-events: none ;
  z-index: 100;
  padding:10px;
  color:white;
  display: none;
}
.promptMeta{
  font-family: 'NTBau-Medium';
  font-size: 1.2em;
  width:100%;
  float:left;
}
.promptMetaHead{
  font-family: 'NTBau-Medium';
  font-size: 2em;
  margin-bottom:5px;
  width:100%;
  float:left;
}
#image_overlay {
  position: fixed;
  z-index: 100;
  pointer-events: none;
  width:100px;
  height: 100px;
  display: none;
  color:white;
  font-family: 'NTBau-Medium';
  padding:1em;
  position: relative; /* Ensure children can be absolutely positioned */
  pointer-events: auto;
  overflow: hidden;
  /* background-color: rgba(255, 0, 0, 0.486); */
}

#image_overlay a {
  pointer-events: auto;
}

#image_background{
  width:100%;
  height: 100%;
  position: absolute;
}
#image_id{
  float:left;
  width:auto;
  font-size: 1em;
  margin-right:20px;
  font-family: 'NTBau-Medium';
}
#image_distance{
  float:left;
  font-size: 1em;
  font-family: 'NTBau-Medium';
}

#image_caption{
  
  position: absolute;
  top:1.2em;
  font-size: 2em;
  width:calc( 100% - 2.4em);
  
  height: calc(6em);
  overflow: hidden;
}
#image_url {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: calc( 100% - 40px);
  overflow: hidden;
}





#intro {
  position: fixed;
  z-index: 100;
  pointer-events: none;
  left: 50%;
  top: 100px;
  height: calc(100vh - 100px - 10vh - 100px);
  bottom: auto;
  transform: translateX(-50%);
  width: min(100vw, 1200px);
  max-width: calc(100vw - 80px);
  min-height: 100px;
  overflow: hidden;
  text-align: center;
  color: white;
  font-family: 'NTBau-Medium';
  font-size: 5vh;
  /* background-color: #888; */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Vertically center children */
  align-items: center;     /* Horizontally center children */
  flex: 1 1 auto;      /* <-- Add this */
  min-height: 0;       /* <-- And this */
  
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 5px 5px rgba(0,0,0,0.5);
}
#intro-content {
  width: 100%;
  height: auto;            /* Let height be determined by content */
  align-self: center;      /* Center horizontally if needed */
  margin: auto 0;          /* Center vertically within flex parent */
  
}
#intro_slider_holder{
  flex: 0 1 auto;         /* Do not force to fill parent, allow to shrink/grow with content */
  min-height: 0;
  max-height: none;       /* Remove any max-height restriction */
  display: flex;
  flex-direction: row;
  align-items: center; /* Center .intro_slide vertically */
  width: 400%; /* Force double width */
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  position: relative;
  
  
  pointer-events: none;
}
#intro_slider_holder.move-left {
  transform: translateX(-25%);
}
#intro_slider_holder.move-left2 {
  transform: translateX(-50%);
}
#intro_slider_holder.move-left3 {
  transform: translateX(-75%);
}
.intro_slide {
  flex: 0 0 25%;
  min-width: 0;
  height: auto;           /* Let height be determined by content */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 0; /* Allow shrinking */
  pointer-events: none;
  /* background-color: yellow; */
  pointer-events: none;
  
}

.intro_text {
  display: block;
  text-align: center;
  
  pointer-events: none;
}
.intro_text a {
  display: inline;
  padding: 0;
  margin: 0;
  vertical-align: baseline;
  line-height: inherit;
  text-decoration: underline;
  color: inherit; /* or set your preferred color */
  text-shadow:none;
  pointer-events: auto;
}
#intro_buttons{
  width: 100%;

  cursor: pointer;
  display: flex;
  justify-content: center; /* Center children horizontally */
  align-items: center;     /* Center children vertically if needed */
  margin-top:30px;
  pointer-events: none;
  
}
.intro_button{
  float: none; 
  background: rgba(0,0,0,0.5);
  padding-top: 7px;
  padding-bottom: 10px;
  padding-left:15px;
  padding-right:15px;
  font-size: 24px;
  width:4.5em;
  
  border-style: solid;
  border-width: 2px;
  border-radius: 30px;
  color: white;
  margin: 0 0.5em; 
  text-shadow: none;
  pointer-events: auto;
}
#bullets{
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  margin-top:20px;
  background: transparent; /* Remove grey if you want no background */
}
.bullet {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: transparent;
  margin: 0 4px;
  vertical-align: middle;
}
.bullet.filled {
  background: #fff;
}

/* .intro_button{
  float: none; 
  background: rgba(0,0,0,0.5);
  padding-top: 7px;
  padding-bottom: 10px;
  padding-left:15px;
  padding-right:15px;
  font-size: 24px;
  border-style: solid;
  border-width: 2px;
  border-radius: 20px;
  border-color: white;
  color: rgb(255, 255, 255);
  margin: 0 0.5em; 
  text-shadow: none;
  pointer-events: auto;
} */


#intro_random{
  display: none;
}

#notification{
  position: absolute;
  top:0px;
  width: 100%;
  
  height: calc( 100%);
  font-family: 'NTBau-Medium';
  font-size:2em;
  
  padding-top:100px;
  color: #fff;
  text-align: center;
  vertical-align: middle;
  align-items: center;
  justify-content: center;
  display: none;
}
.notify{
  display: flex;
  align-items: center;
  /* Optional: for horizontal centering too */
  justify-content: center;
  height: calc(100% - 50px); /* Or set a fixed height if needed */
  width:100%;
  padding:10%;
 
 
  
  

  /* display: none; */
}
#aboutContent {
  position: absolute;
  top:0px;
  width: 100%;
  height: calc( 100%);
  
  /* max-width: 900px; */

  font-family: 'NTBau-Medium';
  font-size:2em;
  padding: 20px;
  padding-top:100px;
  /* background: rgba(229, 0, 0, 0.85); */
  color: #fff;
  box-sizing: border-box;
  overflow-y: auto;
  z-index: 100; /* Lower than #about */
  pointer-events: none;
  display: none;
  opacity: 0;
  
}
.aboutText{
  font-size: 1.4em;
  pointer-events: auto;
  position: absolute;
  width:calc( 100% - 40px);
  height:calc( 100% - 140px);
  
}
.about-columns {
  column-count: 2;
  column-gap: 2em;
  column-width: 420px;
  
}
.about-columns a,
.intro_text a {
  color: #fff;
  text-decoration: underline;
}

#aboutMobileTitle{
  display: none;
}
.super{
  font-size: 0.7em;
  vertical-align: super;
  position: relative;
  top: -0.3em;
}
.footnote {
  font-size: 0.7em;
  line-height: 1.5 !important;
}
/* @media (max-width: 3000px) {
  .aboutText{
  font-size: 1.2em;
  }
} */
/* 
@media (max-width: 2500px) {
  .aboutText{
  font-size: 1em;
  }
}
@media (max-width: 2000px) {
  .aboutText{
  font-size: 0.8em;
  }
} */

@media (max-width: 912px) {
  #aboutMobileTitle{
    display: block;
  }
  .aboutText{
    font-size: 0.6em;
    margin-bottom:150px;
    
  }
  #aboutContent {
    position: fixed;
    top: 0;
    left: 0;
    /* width: 100vw;
    height: 100vh;           Fill the viewport */
    /* background-color: rgb(17, 255, 0); */
    padding-top: 20px;
    box-sizing: border-box;
    overflow-y: auto;        /* Enable vertical scrolling */
    pointer-events: auto;
    font-size:1.8em;
  }
  .about-columns {
    column-count: 1;
    column-gap: 0;
    width: 100%;
    height: auto;            /* Let content determine height */
    overflow-y: visible;     /* No scroll here, scroll on parent */
    overflow-x: hidden;
  }
  #aboutClose{
    display:block;
  }
}


/* Responsive adjustments for smaller screens */
@media (max-width: 900px) {

  .promptMeta{
      font-family: 'NTBau-Medium';
      font-size: 0.9em;
      width:100%;
      float:left;
    }
    .promptMetaHead{
      font-family: 'NTBau-Medium';
      font-size: 1.1em;
      margin-bottom:5px;
      width:100%;
      float:left;
    }


  body {
    margin: 2%;
    font-size: 1em;
    background-color: black;
  }
  .container {
    padding: 0 1%;
  }

  .intro_button{
  font-size: 0.6em;
  }

  #aboutMatte{
  
  background: rgba(0,0,0,0.65);
  
  }
  #search {
    width: calc(100% - 40px);
    max-width: 700px;
    bottom: 5vh;
    height: 3em;
    display:none;
  }
  
  #search-submit {
    width:100px;
    background-color: rgb(0, 0, 0);
  }
  #search-background {
    width: calc(100% - 100px);
  }
  #search-status {
    width: calc(100% - 100px);
  }
  #search-input {
    width: calc(100% - 100px);
  }
  
  #console {
    font-size: 1em;
  }
  #server-status {
    font-size: 0.9em;
    margin: 0.5em;
  }
  #title {
    font-family: 'NTBau-Medium';
    font-size: 1.8em;
    color: white; 
    
  }
  #about {
    font-size: 1.8em;
  }
  #console {
    font-size: 1em;
    margin-top: 0.2em; 
  }
  #intro{
    font-size: 4.6vh;
    max-width: calc(100vw - 40px);
    height: calc(100vh - 10vh - 100px);
    top: 50px;
  }
  
}

@media only screen and (orientation: landscape) and (max-width: 900px) {
  /* Styles for landscape phones */
  
  .intro_button{
    float: none; 
    padding-top: 7px;
    padding-bottom: 10px;
    font-size: 18px;
    width:auto;
    }
  #bullets{
    margin: 5px 0;
    margin-top:10px;
  }
  #intro_buttons{
    width: 100%;
    cursor: pointer;
    display: flex;
    justify-content: center; /* Center children horizontally */
    align-items: center;     /* Center children vertically if needed */
    margin-top:10px;
    pointer-events: none;
  }
  /* Add any other landscape-specific styles here */
}



