@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300&display=swap');

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  -webkit-tap-highlight-color:  rgba(255, 255, 255, 0); 
}

html{
  height: 100%;
}

body{
  justify-content: center;
  align-items: center;
  font-family: Manrope, Arial;
  font-weight: 200;
  height: 100%;
  width: 100%;
  color: #555;
  background: #050505;
  touch-action: none;
  transform-origin: top center;
  transform: rotate(0deg);
}


#content{
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

#display{
  position: relative;
  display: flex;
  height: 100%;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#content.portrait{
  transform: rotate(90deg);
}

#display.backdrop:before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
}

#display > canvas:nth-child(2){
  height: 100%;
  width: 100%;
}

#side{
  height: 100%;
  position: relative;
  z-index: 99999;
  order: 1;
}

.portrait #side{
  width: 70vw;
}

#enter-fullscreen-button{
  position: fixed;
  top: 8px;
  background: rgba(0, 0, 0, 0.2);
  color: #e9e9e9;
  padding: 3px 10px;
  border: 1px solid black;
  border-radius: 3px;
  box-shadow: 1px 1px 1px black;

}

#fullscreen-button:active{
  transform: scale(0.95);
  box-shadow: none;
}

#scope-view{
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #000;
  height: 45%;
  padding: 5px;
  position: relative;
}

#index-canvas,
#scope-canvas{
  height: 100%;
  width: 100%;
  max-height: 100%;
  max-width: 100%;
}

#magnified{
  position: absolute;
  align-items: center;
  border-radius: 50%;
  height: 80vh;
  width: 80vh;
  overflow: hidden;
  border: 2px solid #fff;
  display: none;
  background: black;
  filter: drop-shadow(1px 1px 5px black);

}

.portrait #magnified{
  height: 80vw;
  width: 80vw;
}


#magnified-canvas{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.vignette{
  box-shadow: inset 0 0 10px rgb(0, 0, 0);
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

#control-buttons{
  position: absolute;
  top: 0;
  height: 5em;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #000;
}

#control-buttons > button{
  font-size: 1.2em;
  line-height: 1.5em;
  width: 34%;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  background: none;
  color: #e3e3e3;
  height: 100%;
  max-height: 5em;
  cursor: pointer;
  color: #555;
  border: none;
  transform: translateY(1px);
  position: relative;
  display: block;
  overflow: hidden;
}

#control-buttons > button:not(.selected):after{
  position: absolute;
  content: "";
  display: flex;
  width: 100%;
  bottom: 1px;
  border-bottom: 1px solid #555;
}

#control-buttons > button.selected{
  color: #e3e3e3;
  border: 1px solid #555;
  border-bottom: none;
  background: #111;
  transform: translateY(0);

}

#controls{
  padding-top: 5em;
  height: 55%;
  background: #111111;
  position: relative;
}
#controls::-webkit-scrollbar{
  background: #111111;
  width: 10px; 
  height: 100%;
}
#controls::-webkit-scrollbar-thumb{
  background: #424242;
}

#control-content{
  height: 100%;
  position: relative;
  padding: 0.5em 1em;
  border: 1px solid #555;
  border-top: none;
}

#control-content > div{
  height: 100%;
  width: 100%;
  z-index: 2;
}

#index-view{
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1 !important;
  height: calc(100% - 20px) !important;
  border: 10px solid #111;
  border-top: 15px solid #111;
}

#sextant-controls{
  position: relative;
}

.sc-button{
  position: absolute;
  font-size: 1.3em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid #555;
  width: 8em;
  height: 4em;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0px 0px 2px #333, inset 0px 0px 1px #333;
  color: #e3e3e3;

}

.sc-button:nth-child(1){
  top: 8px;
  left: 0px;
  cursor: crosshair;
}
.sc-button:nth-child(2){
  top: 8px;
  right: 0px;
}


#horizon-filter,
#index-filter{
  position: absolute;
  bottom: 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  z-index: 2;
  width: 12em;
}

#index-filter{
  right: 0;
}

.solar-filter-title{
  width: 100%;
  font-size: 1.1em;
  text-transform: uppercase;
  text-align: center;
  height: 1.8em;
  letter-spacing: 0.1em;
  color: #e3e3e3;
}

.solar-filter-buttons{
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.solar-filter{
  display: flex;
  justify-content: center;
  letter-spacing: 0.1em;
  align-items: center;
  width: 30%;
  height: 3.5em;
  font-size: 2em;
  text-align: center;
  border: 1px solid #555;
  box-shadow: 0px 0px 3px #333, inset 0px 0px 1px #333;
  cursor: pointer;
  color: #e3e3e3;
  font-weight: 400;
}

.sc-button:active,
.sc-button.highlight,
.solar-filter.in-use{
  background: #666;
  color: #111;
  text-shadow: 0 0 1px black;
}


body.hold-aim{
  cursor: crosshair;
}

.lil-gui .controller.disabled{
  opacity: 1;
}

.lil-gui.root{
  position: absolute;
  top: initial;
  right: initial;
  bottom: 0;
  left: 0;
}

/*//////////////////////////////////////////////////////////*/
/*/////////////////////    DPAD     ////////////////////////*/
/*//////////////////////////////////////////////////////////*/
.dpad{
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 100%;
  width: 100%;
}

.dpad-svg{
  height: 100%;
  fill: #555;
  transform: rotate(0);
  filter: drop-shadow(1px 1px 10px black);
}

.dpad > button {
  position: absolute;
  height: 33.33%;
  width: 33.33%;
  cursor: pointer;
  background: none;
  z-index: 2;
  border: none;
  outline: none;

}

.dpad-top{
  top: 0;
}
.dpad-bottom{
  bottom: 0;
}
.dpad-right{
  right: 0;
}
.dpad-left{
  left: 0;
}

.dpad-top:active ~ .dpad-svg{
  transform: rotateX(5deg) translateY(-2%);
}
.dpad-bottom:active ~ .dpad-svg{
  transform: rotateX(-5deg) translateY(2%);
}


.dpad-right:active ~ .dpad-svg{
  transform: rotateY(5deg) translatex(2%);
}
.dpad-left:active ~ .dpad-svg{
  transform: rotateY(-5deg) translatex(-2%);
}


/*//////////////////////////////////////////////////////////*/
/*/////////////////////   SLIDER    ////////////////////////*/
/*//////////////////////////////////////////////////////////*/


.kb-slider{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 30px;
  overflow: hidden;
  padding: 0 calc(1% + 15px) 0 1%;
  background: #111;

}

.slider-wrapper{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  position: relative;
}

.slider-track{
  position: absolute;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  z-index: 3;
}
.slider-thumb{
  height: 22px;
  width: 15px;
  border: 2px solid teal;
  border-radius: 5%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0px 0px 5px black;
  position: relative;
}

.slider-thumb:before{
  content: "";
  height: 200%;
  width: 300%;
  position: absolute;
}

.slider-bar{
  position: absolute;
  height: 3px;
  width: 100%;
}

.slider-bar-left,
.slider-bar-right{
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 50%;
  z-index: 2;
}
.slider-bar-left:before,
.slider-bar-right:before{
  content: "";
  position: absolute;
  height: 4%;
  width: 100%;
  opacity: 0.15;
  z-index: 1;
}
.slider-bar-left:before{
  background: linear-gradient(90deg, transparent, #008080b5, transparent);;
}
.slider-bar-right:before{
  background: linear-gradient(270deg, transparent, #008080b5, transparent);;
}
.slider-bar-right{
  background: linear-gradient(90deg, #075b5d, transparent);;
  right: calc(-15px + 1px);
  transform-origin: center right;
  transform: scaleX(2)
}
.slider-bar-left{
  background: linear-gradient(270deg, #075b5d, transparent);;
  left: 1px;
  transform-origin: center left;
  transform: scaleX(0) 
}




/*//////////////////////////////////////////////////////////*/
/*//////////////////  INTRODUCTION  ////////////////////////*/
/*//////////////////////////////////////////////////////////*/
#introduction{
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  padding: 1em 2em 1em;
  z-index: 9999999999;
  background: #010509;
  overflow-y: auto;
  display: flex;
  justify-content: center;
}
#introduction-wrapper{
  max-width: 500px;
  margin-bottom: 20px;
}
#introduction #disclosure{
  font-size: 0.6em;
  font-style: italic;
  color: #a9a9a9;
}

#disclosure h3{
  font-size: 1.4em;
  transform: scaleY(0.8);
  font-weight: normal;
  font-style: normal;
  margin-top: 1em;
}


#introduction h1 {
  font-size: 2.5em;
  border-bottom: 1px solid rgb(81, 88, 91);
  line-height: 1.5em;
  margin-bottom: 0.5em;
  font-weight: 200;
  transform: scaleY(0.8);
  font-family: Manrope, Arial;
  color: #2c9b9b;
}

#introduction p {
  font-size: 0.8em;
  color: #a9a9a9;
  width: 100%;
}

#disclosure p {
  margin-left: 1.2em;
  font-size: 1em;
}

#introduction small{
  font-size: 0.7em;
  font-style: italic;
  display: inline-block;
}

#page-progress{
  height: 8em;
  display: flex;
  align-items: flex-end;
}
#progress-content{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  flex-direction: column;
  transform: translateY(0);
  will-change: transform;
}
.progress-container{
  background: #2c2c2c;
  height: 3px;
  width: 80%;
  overflow: hidden;
}

#progress-bar{
  width: 100%;
  height: 100%;
  background: #2c9b9b;
  transform: scaleX(0);
  transform-origin: left center;
  box-shadow: 5px 0 5px rgba(0, 0, 0, 0.5);
}

#progress-bottom{
  font-weight: 200;
  transform: scaleY(0.8);
}



#start-button{
  margin-top: 0.5em;
  height: 3em;
  width: 6em;
  background: #2c9b9b;
  border: 1px solid #00ffff;
  color: #0f1113;
  transform: scaleY(0.8);
  outline: none;
  font-size: 1.2em;
  box-shadow: 0 0 0.5em rgba(224, 224, 224, 0.5);
  opacity: 0;
}
#start-button.active{
  cursor: pointer;
}
a{
  color: #2c9b9b;
  text-decoration: none;
  display: inline-block;
  padding-bottom: 0.05em;
  border-bottom: 1px solid #2c9b9b;

}

#copy-right-notice{
  font-size: 8px !important;
  position: fixed;
  bottom: 1em;
  right: 3em;
  text-align: right;
  color: gray;
  display: inline-block;
  background: #010509;
  width: auto !important;
}
#interface-container #copy-right-notice{
  right: initial;
  left: 2em;
}
#interface-container.portrait #copy-right-notice{
  right: initial;
  left: 0;
  width: 100%;
  text-align: center;
}
#copy-right-notice:hover{
  color: inherit;

}

#credits{
  list-style: none;
  font-size: 0.65em;
  margin-top: 2em;
  color: #a9a9a9;
}

#credits h3{
  font-size: 1.4em;
  transform: scaleY(0.8);
  font-weight: normal;
}

#credits li {
  margin-left: 1.5em;
}


/*//////////////////////////////////////////////////////////*/
/*////////////////////  OVERRIDES   ////////////////////////*/
/*//////////////////////////////////////////////////////////*/


.dpad{
  position: absolute;
  top: 0;
  left: 0;
  padding: calc(10px + 13%);
}

#graduated-arc > .kb-slider,
#micrometer-drum > .kb-slider,
#scope-view > .kb-slider{
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 9;
  height: 40px;
}

#scope-view > .kb-slider{
  height: 60px;
  width: 80%;
  background: none;
  opacity: 0.3;
  left: 10%;
}
#scope-view:hover > .kb-slider{
  opacity: 1;
}
#scope-view:active > .kb-slider{
  opacity: 1;
}

#scope-view .slider-bar-right{
  background: linear-gradient(90deg, #888, transparent);;
}
#scope-view .slider-bar-left{
  background: linear-gradient(270deg, #888, transparent);;
}
#scope-view .slider-thumb{
  border: 2px solid #888;
  background: #222;
}


.slider-bar-left:before{
  background: none
}
.slider-bar-right:before{
  background: none
}
.slider-bar-right{
  background: linear-gradient(90deg, #555, transparent);;
}
.slider-bar-left{
  background: linear-gradient(270deg, #555, transparent);;
}
.slider-thumb{
  border: 2px solid #555;
  background: #222;
  border-radius: 3px;
}

