  @font-face {
  font-family: 'Leander'; 
  src: url("/Leander.ttf") format("truetype");
  }


body {
  margin: 0;
  overflow: hidden;
  background-color: #fff;
  background-image: none;
  background-repeat: repeat;
  background-size: auto;
  transition: background 1s ease;
  font-family: 'Leander', serif;
  }

canvas {
  position: relative;
  z-index: 1;
}

a {
  color: #343434;
  text-shadow: 1px 1px #939393;
  text-decoration: none;
}
  
.query {
  position: fixed;
  bottom: 15px;
  right: 15px;
  font-size: 8px;
  padding: 2px;
  background: #fff;
  color: #343434;
  z-index: 999;
  }
  
.warning {
  display: none;
  background-color: #fff;
  white-space: nowrap;
  color: grey;
  padding: 5px;
  border: 1px solid grey;
}

#warn:hover .warning {
  display: inline-block;
  position: absolute;
  top: -5px;
  left: 105%;
}
  

.white {
  background: transparent;
}

.black {
  background: #343434;
  color: #fff;
}
  
.stars {
  background-image: url('https://aes-triplex.neocities.org/stellae/stars.gif');
  }
  
.js {
  background-image: url('https://aes-triplex.neocities.org/ossa/sortes/js.png');
  background-position: center;
  background-size: cover;
  }
  
.csv {
  background-image: url('https://aes-triplex.neocities.org/ossa/sortes/csv.png');
  background-size: contain;
  background-repeat: repeat;
}

.rhetoric {
  background-image: url('https://aes-triplex.neocities.org/ossa/sortes/rhetoric.jpg');
  background-size: contain;
  background-repeat: repeat;
}

.visible {
  display: block;
  opacity: 1;
}

.ui {
  pointer-events: auto;
}


#intro {
  opacity: 0;
  position: fixed;
  z-index: 999;
  top: 25%;
  left: 50%;
  width: 27%;
  transform: translateX(-50%);
  transition: opacity 2s ease 2s;
  font-family: 'Consolas', monospace;
  font-size: 0.9em;
  color: grey;
  text-align: justify;
}

#intro.visible {
  opacity: 1;
}
    
#fakebg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  color: #fff;
  pointer-events: none;
  font-family: sans-serif;
}

#bgtext {
  position: fixed;
  top: -150px;
  left: -50px;
  line-height: 1;
  text-align: left;
  white-space: nowrap;
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: 140vh; 
  letter-spacing: -175px;
}

#bgtext.rhetoric {
  bottom: -50px;
  right: -50px;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: 20vh;   
}

#question-box {
  position: fixed;
  top: 40%;
  left: 50%;
  width: 100%;
  transform: translateX(-50%);
  z-index: 998;
  text-align: center;
  color: #343434;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  opacity: 0;
  transition: opacity 3s ease 1.5s;
}

#consult {
  width: 25%;
  font-size: 0.9em;
  padding: 5px;
  border: 1px solid #acacac;
  background-color: #fff;
  color: #343434;
  font-family: 'Consolas', monospace;
}

#question-box.visible {
  opacity: 1;
}

#consult-btn {
  padding: 5px 10px;
  box-sizing: border-box;
  font-size: 0.9em;
  font-family: 'Consolas', monospace;
  background: #fff;
  color: #343434;
  border: 1px #acacac solid;
  cursor: pointer;
}

#consult-btn:hover {
  background: #acacac;
  color: white;
  border: none;
}

#question {
  position: fixed;
  top: 50%;
  right: 51%;
  width: 25%;
  white-space: pre-line;
  padding-right: 20px;
  opacity: 0;
  transition: opacity 2.5s ease 1s;
  z-index: 999;
  font-family: 'Consolas', monospace;
  color: #343434;
  text-align: right;
}

#question.visible {
  opacity: 1;
}

#answers {
  font-family: 'Leander';
  z-index: 999;
  color: #343434;
  position: fixed;
  top: 50%;
  left: 49%;
  opacity: 0;
  transition: opacity 3s ease 2s;
}


#answers.visible {
  opacity: 1;
  display: block;
  border-left: 2px grey solid;
  padding-left: 20px;
}


#link{
  font-family: 'Consolas', monospace;
  color: grey;
  font-size: .6em;
  position: relative;
  display: inline-block;
  text-align: center;
}

#link a{
  font-family: 'Consolas', monospace;
  text-decoration: none;
  color: grey;
  font-size: .6em;
}

#reset {
  position: fixed;
  top: 95%;
  left: 2%;
  z-index: 9998;
  transform: translateX(-50%);
  font-family: 'Consolas', monospace;
  font-size: 2em;
  padding: 5px 10px;
  background: #fff;
  color: #d4d4d4;
  border: none;
  cursor: pointer;
  opacity: 0;
  transition: opacity 3s ease 2s;
}

#reset.visible {
  opacity: 1;
}

#reset:hover {
  color: #acacac;
}
  
#compression {
  display: none; 
  position: fixed; 
  width: 300px;
  top: 60%; 
  right: 40%; 
  z-index: 999;
}

#good-news {
  display: none;
  position: fixed;
  top: 60%;
  left: 30%;
}

#glitch-number {
  display: none; 
  position: fixed; 
  top: 45%; 
  left: 50%; 
  width: 720px;
  transform: translate(-50%, -50%); 
  font-size: 1.5em; 
  font-family: monospace; 
  color: white; 
  background: #343434; 
  padding: 0.5em; 
  z-index: 9999;
}

#error {
  position: fixed;
  top: 20%;
  left: 30%;
  transform: translateX(-50%);
  max-width: 80%;
  padding: 20px;
  background: white;
  color: #343434;
  font-family: 'Consolas', monospace;
  font-size: 0.9rem;
  border: 2px solid aqua;
  z-index: 999;
  display: none;
  white-space: pre-line;
  overflow: auto;
  pointer-events: none;
}

#warn:hover .warning {
  display: inline-block;
  position: absolute;
  top: -5px;
  left: 105%;
}

.glitching {
    filter: url(#glitch);
  }
      
#query-box {
  font-family: 'Consolas', monospace;
  font-size: 10px;
  text-align: justify;
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  border: 1px solid grey;
  color: #343434;
  z-index: 9999;
}


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

  #consult {
   font-size: 14px;
    width: 70%;
    border-radius: 0;
    box-sizing: border-box;
  }

  #answers {
    font-size: 16px;
    max-width: 30%;
    
  }
  
  #bgtext {
  top: -10px;
  left: -70px;
  writing-mode: vertical-rl;
  text-align: left;
  padding: 10px 0px;
  font-size: 60vh;
  letter-spacing: -50px;
  }
  
  #link, #link a{
  font-size: .65em;
  }
  
  #question-box {
  flex-direction: column;
  align-items: center;
  width: 100%;
  top: 30%
  }

  #consult-btn {
    width: 70%;
  }

  .warning {
    display: none; 
  }
}
