@import url('https://fonts.googleapis.com/css2?family=Cutive+Mono&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fanwood+Text:ital@0;1&display=swap');

#sizeblock {
  width: 100vw;
  height: 100vh;
  position: fixed;
  display: none;
  background: white;
}
body {
  font-family: 'Cutive Mono', monospace;
  background: #1d1f21 url(../img/bg.jpg) repeat;
  color: #cccccc;
}

#tutorial {
  width: 60vw;
  height: 80vw;
  margin: 5vh 20vw calc(15vh - 2em) 20vw;
  display: none;
}

#focus {
  width: 60vw;
  height: 80vh;
  margin: 5vh 20vw calc(15vh - 2em); 20vw;
  display: none;
}

#intro {
  width: 60vw;
  height: 20vh;
  margin: 65vh 20vw calc(15vh - 2em); 20vw;
  display: block;
}

#intro p {
  font-size: 1.2em;
  margin-bottom: 1em;
}

#intro input {
  background: transparent;
  font-family: 'Cutive Mono', monospace;
  font-size: 2em;
  width: 8em;
  color: #ccc;
  resize: none;
  border: 0 none;
  border-bottom: 2px solid #cccccc;
  display: inline-block;
}

#intro input:focus {
  outline:none;
}

#confirmName {
  display: inline-block;
  font-family: 'Cutive Mono', monospace;
  margin-left: 0.5em;
  border-bottom: 2px solid #ccc;
}

.introselect {
  display: flex;
}

#helpbtn {
  margin-left: -5em;
}

.btn {
  display: none;
  padding-bottom: 4px;
  border-bottom: 1px solid #ccc;
  font-size: 1.5em;
  margin: 0 auto;
}

.story {
  font-size: 2.5em;
  display: inline-block;
  margin: 0 0 1em 0;
  width: 100%;
  text-shadow: 4px 3px 2px rgba(25,25,25,1);
  font-family: 'Fanwood Text', serif;
}

.secrettyping:after {
  content: " | ";
}

.choices {
  list-style-type: '-';
  font-family: 'Cutive Mono', monospace;
  list-style-position: inside;
  display: block;
  position: absolute;
  bottom: 10vh;
}

.choice {
  display: list-item;
  clear: both;
  margin: 0.2em;
  font-size: 1.5em;
  width: fit-content;
  padding-bottom: 0.05em;
  margin-bottom: 0.3em;
  text-shadow: 4px 3px 2px rgba(25,25,25,0.4);
}
.choice::before {
  content: ' ';
}
.choice:after {
    content: ""; /* This is necessary for the pseudo element to work. */
    border-bottom: 1px solid #fff;
    -webkit-box-sizing:border-box;
    -moz-box-sizing:border-box;
    -ms-box-sizing:border-box;
    display: block;
    box-sizing:border-box;
    width: 0px; /* Change this to whatever width you want to have before hover. */
    transition: 0.5s;
}

.choice:hover {
  list-style-type: 'x';
  animation: squiggly-anim 0.35s linear infinite;
}
.choice:hover:after{
  width: 100%;
}

footer {
  width: 100vw;
  height: 2em;
  border-top: 1px solid #cccccc;
}
footer p {
  font-size: 0.8em;
  text-align: center;
  line-height: 2em;
}

footer p a {
  color: #6c898c;
}

menu {
  text-align: left;
  width: 100vw;
  height: 100vh;
  position: fixed;
  display: block;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
  -moz-transition: opacity 0.5s ease-in-out;
  -webkit-transition: opacity 0.5s ease-in-out;
  background: #1d1f21 url(../img/bg.jpg) repeat;
}

h1, h2, h4, .big {
  font-family: 'Fanwood Text', serif;
  font-size: 3.3em;
  font-weight: 400;
  text-align: center;
  margin-top: 1.5em;
}

h2 {
  font-size: 1.5em;
}

menu p {
  width: 70vw;
  font-size: 1em;
  line-height: 1.2em;
  margin: 0 15vw;

}
menu p:first-of-type {
  font-style: italic;
  text-align: center;
  font-size: 1.5em;
  line-height: 2em;
  font-family: 'Fanwood Text', serif;
}

.slidecontainer {
  width: 60vw;
  margin: 1em 20vw;
}

input[type="range"] {
  display: block;
  -webkit-appearance: none;
	-moz-appearance: none;
  appearance: none;
	background: #999;
	border-radius: 5px;
  width: 100%;
  height: 1px;
  outline: 0;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  background-color: #000;
  background: url('../img/slider.png');
  background-size: 25px 25px;
  width: 25px;
  height: 25px;
  cursor: pointer;
  transition: .3s ease-in-out;
}

  input[type="range"]::-webkit-slider-thumb:active {
    transform: scale(1);
  }


#settingbox {
  position: fixed;
  display: block;
  bottom: 0;
  left: 0;
  width: 2em;
  height: 2em;
}
#settings {
  margin: 0.15em;
  font-size: 1.5em;
  transition: transform 0.8s, color, 1.5s;
}

.activemenu {
  transform: rotate(45deg);
}

.hiding {
  opacity: 0;
}

.hidden {
  display: none;
}



@media only screen and (max-height: 470px), screen and (max-width: 1080px) {
    .story {
      font-size: 1.6em;
    }
    .secrettyping {
      font-size: 1.2em;
    }
}

@media only screen and (max-width: 700px) {
  #sizeblock {
    display: block;
  }
  footer, #focus {
    display: none;
  }
}
