:root {
  --white: rgba(255, 255, 255, 1);
  --black: rgba(0, 0, 0, 1);
  --whitetransparent: rgba(255, 255, 255, 0.8);
  --blacktransparent: rgba(0, 0, 0, 0.8);

  --color5: rgba(38, 1, 1, 1);
  --color4: rgba(54, 79, 107, 1);
  --color3: rgba(63, 193, 201, 1);
  --color1: rgba(245, 245, 245, 1);
  --color2: rgba(255, 81, 133, 1);
  --color5transparent: rgba(38, 1, 1, 0.8);
  --color4transparent: rgba(54, 79, 107, 0.8);
  --color3transparent: rgba(63, 193, 201, 0.8);
  --color1transparent: rgba(245, 245, 245, 0.8);
  --color2transparent: rgba(255, 81, 133, 0.8);

  /* set 2
  --color5: rgba(38, 1, 1, 1);
  --color4: rgba(82, 50, 82, 1);
  --color3: rgba(122, 64, 105, 1);
  --color1: rgba(202, 78, 121, 1);
  --color2: rgba(255, 193, 142, 1);
  --color5transparent: rgba(38, 1, 1, 0.8);
  --color4transparent: rgba(82, 50, 82, 0.8);
  --color3transparent: rgba(122, 64, 105, 0.8);
  --color1transparent: rgba(202, 78, 121, 0.8);
  --color2transparent: rgba(255, 193, 142, 0.8);
  */

/* set 1
  --color5: rgba(38, 1, 1, 1);
  --color4: rgba(46, 89, 81, 1);
  --color3: rgba(51, 114, 103, 1);
  --color2: rgba(147, 242, 232, 1); 
  --color1: rgba(86, 191, 180, 1); 
  --color5transparent: rgba(38, 1, 1, 0.8);
  --color4transparent: rgba(46, 89, 81, 0.8);
  --color3transparent: rgba(51, 114, 103, 0.8);
  --color2transparent: rgba(147, 242, 232, 0.8); 
  --color1transparent: rgba(86, 191, 180, 0.8); 
  */
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  color: var(--black);
}

html {
  background-color: var(--color4);
}

body {
  background: var(--color4);
  background-repeat: no-repeat;
  height: 100vh;
}

#sectionTitle {
  font-family: 'Josefin Sans', sans-serif;
  color: var(--white);
  text-align: center;
  background-color: var(--color2transparent);
  font-size: 2em;
  padding-top: 0.25em;
  padding-bottom: 0.25em;
}

#answerTitle {
  font-family: 'Josefin Sans', sans-serif;
  color: var(--white);
  text-align: center;
  background-color: var(--color2transparent);
  font-size: 2em;
  padding-top: 0.25em;
  padding-bottom: 0.25em; 
}

#sectionFooter {
  color: var(--white);
  text-align: center;
  font-size: 2em;
  padding-top: 0.2em;
  padding-bottom: 0.2em;
}

#pagepaper {
  position: relative;
  max-width: 1280px;
  width: 66vw;
  height: 85vh;
  background: none repeat scroll 0 0 var(--whitetransparent);
  box-shadow: 20px 20px 20px -20px var(--black),
              -20px 20px 20px -20px var(--black);
}

#scoreval {
  color: var(--white);
}

#score {
  color: var(--white);
  position: absolute;
  right: 2vw;
  top: 1vh;
  align-items: center;
  justify-content: space-around;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.5em;
}

#answerdiv {
  visibility: hidden;
  position: fixed;
  top: 50%;
  left: 50%;
  max-width: 1024px;
  transform: translate(-50%, -50%);
  width: 50%;
  background-color: var(--color1transparent);
  box-shadow: 20px 20px 20px -20px var(--black),
             -20px 20px 20px -20px var(--black);
}

.page-center {
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    text-align: center;
  }

p, button, input {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.5em;
}

p {
  color: var(--black);
}

p.textbox {
  background-color: var(--color1transparent);
  border: 4px solid var(--color3transparent);
  border-radius: 5px;
}

button, input {
  color: var(--white);
  background-color: var(--color4transparent);
  border: none;
}

p {
  margin: 5px;
  padding: 5px;
}

.box {
  border: 4px solid var(--color3transparent);
  padding: 15px;
  border-radius: 25px;
  background-color: var(--color1transparent);
}

.transparent {
  background-color: transparent;
}

.centercontents {
  display: flex;
  align-items: center;
  justify-content: center;
}

.centered {
  margin: auto;
  width: 50%;
}

#signupbox {
  width: 66%;
}

#submitanswerbutton {
  padding: 5px;
  border-radius: 5px;
}

#nextquestionbutton {
  padding: 5px;
  border-radius: 5px;
}

#submitanswerbutton:disabled {
  background-color: var(--color4transparent);
  color: rgba(128, 128, 128, 0.8);
}

#distance-grinder-answer-output-div {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.5em;
}

.full-centered {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

header a {
  text-decoration: none;
}

header {
  padding: 0 20px;
  background-color: var(--color5);
  height: 50px;
  display: flex;
  justify-content: space-between;
}

ul {
  list-style: none;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.5em;
}

ul a {
  color: var(--white);
}

ul li {
  padding: 5px;
  margin-left: 10px;
  color: var(--white);
}

ul li:hover {
  transform: scale(1.1);
  transition: 0.05s;
}

#page2dcanvascontainer {
  width: 30%;
  aspect-ratio: 1 / 1;
  background-color: var(--white)
}


#distance-grinder-answer-div {
  width: 100%; /* Width of the outside container */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The slider itself */
#distance-grinder-answer {
  -webkit-appearance: none;  /* Override default CSS styles */
  appearance: none;
  width: 50%; /* Full-width */
  height: 15px; /* Specified height */
  background: var(--color4); /* Grey background */
  border-radius: 5px;
  border: none;
  outline: none; /* Remove outline */
}
#distance-grinder-answer:disabled {
  opacity: 0.33;
}

/* Mouse-over effects */
#distance-grinder-answer {
  opacity: 1; /* Fully shown on mouse-over */
}

/* The slider handle (use -webkit- (Chrome, Opera, Safari, Edge) and -moz- (Firefox) to override default look) */
#distance-grinder-answer::-webkit-slider-thumb {
  -webkit-appearance: none; /* Override default look */
  appearance: none;
  width: 25px; /* Set a specific slider handle width */
  height: 25px; /* Slider handle height */
  border-radius: 50%;
  outline: none;
  border: none;
  background: var(--color2); /* Green background */
  cursor: pointer; /* Cursor on hover */
}

#distance-grinder-answer::-moz-range-thumb {
  width: 25px; /* Set a specific slider handle width */
  height: 25px; /* Slider handle height */
  border-radius: 50%;
  outline: none;
  border: none;
  background: var(--color2); /* Green background */
  cursor: pointer; /* Cursor on hover */
}


#fullscreen-threejs-container {
  /* tell our scene container to take up the full page */
  position: absolute;
  width: 100%;
  height: 100%;

  /*
    Set the container's background color to the same as the scene's
    background to prevent flashing on load
  */
  /* background-color: black; */
}

@media only screen and (min-height: 1200px) {
  #page2dcanvascontainer {
    width: 60%;
    aspect-ratio: 1 / 1;
    background-color: var(--white)
  }
  
}

@media only screen and (max-height: 720px) {
  #pagepaper {
    width: 93vw;
    height: unset;
    background: var(--whitetransparent);
  }

  #answerdiv {
    width: 95%;
  }

}


@media only screen and (max-width: 600px) {
  header nav {
    display: none;
  }

  #answerdiv {
    width: 95%;
  }

  #pagepaper {
    width: 93vw;
    height: 100%;
  }

  p.textbox {
    width: 75vw;
  }

  #signupbox {
    width: 80vw;
  }  

  #page2dcanvascontainer {
    width: 90%;
  }
  
  body {
    height: 100%;
  }
  
  .centered {
    width: 80vw;
  }

  #hamburger-icon {
    display: block;
  }
}