/* Library Form Stack CSS */

@font-face{
  font-family: BariolRegular;
  src:url('../fonts/Bariol_Regular.otf'),
  url('../fonts/Bariol_Regular.woff') format('woff')
}

@font-face{
  font-family:BariolBold;
  src:url('../fonts/Bariol_Bold.otf'),
  url('../fonts/Bariol_Bold.woff') format('woff');
}

html, 
body{
  height: 100%;
  min-height: 100%;
  cursor: default;
}

body{
  background-image: url("../graphics/bg.jpg");
  background-size: cover;
  font-family: 'BariolRegular', 'Roboto', Arial, sans-serif;
  color: #ffffff;
  background-color: #e9e9e9;
  padding: 0px;
  margin: 0px;
}

h1{
  font-size: 5vh;
  margin: 0 3vw 0 3vw;
  color: #2b7eb1;
}

h2{
  font-size: 3vh;
  margin: 1vh 3vw 0 3vw;
  color: #2b7eb1;
}
h2.modal_padding{
  padding-bottom: 2vh;
}

h3{
  font-size: 2.5vh;
  color: #272822;
  margin: 0;
  padding: 0;
  padding-top: 1.5vh;
  padding-bottom: 1vh;
}
h3.prompt {
  padding-top: 0.3vh;
  padding-bottom: 0;
}
h3.modal_padding{
  padding-bottom: 3vh;
}
h3.toggle_prompt {
  white-space: nowrap;
  font-weight: normal;
}
h3.toggle_prompt span {
  color: #7abd00;
  padding: 0 0.8vw 0 0.2vw;
}

h4{
  font-size: 1.8vh;
  color: #8f8f8f;
  padding-bottom: 0.5vh;
}

p{
  font-size: 2.5vh;
  margin: 0 3vw 0 3vw;
  color: #272822;
}

a{
  font-size: 2.5vh;
  color: #2b7eb1;
}
a.link{
  display: block;
  margin: 0;
}

hr{
  width: 10%;
  margin-top: 4vh;
  margin-bottom: 4vh;
  border-top: 1px solid #8c8b8b;
  border-bottom: 1px solid #fff;
}

span{
  color: #2b7eb1;
  padding: 0.5vh 0.5vw;
}
span.button_alttext{
  display: none;
}

input {
  font-size: 2.5vh;
  font-family: 'BariolRegular', 'Roboto', Arial, sans-serif;
  width: 100%;
  outline: none;
  border: 2px solid #cdcdcd;
  border-color: #c9c9c9;
  padding: 1vh 1vw 1vh 1vw;
  margin-bottom: 1vh;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
  -webkit-transition: border-color 500ms;
  -o-transition: border-color 500ms;
  transition: border-color 500ms;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
input:last-of-type{
  margin-bottom: 0;
}
input:focus{
  border-color: #00a8e1;
}
input:disabled{
  background-color: #ffffff;
}
input.dialog{
  margin-bottom: 3vh;
}
input.alert1{
  border-color: #ff0000;
}
input.alert2{
  border-color: #ff9d28;
}

textarea{
  font-size: 2.5vh;
  font-family: 'BariolRegular', 'Roboto', Arial, sans-serif;
  width: 100%;
  resize: vertical;
  max-height: 20vh;
  min-height: 5vh;
  outline: none;
  border: 2px solid #cdcdcd;
  border-color: #c9c9c9;
  padding: 0.9vh 1vw 0.9vh 1vw;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
  -webkit-transition: border-color 500ms;
  -o-transition: border-color 500ms;
  transition: border-color 500ms;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  overflow: auto;
}
textarea:last-of-type{
  margin-bottom: 0;
  padding-bottom: 0;
}
textarea:focus{
  border-color: #00a8e1;
}
textarea.alert1{
  border-color: #ff0000;
}
textarea.alert2{
  border-color: #ff9d28;
}
textarea.height1{
  height: 5vh;
}
textarea.height2{
  height: 8.5vh;
}
textarea.height3{
  height: 10.8vh;
}
textarea.height4{
  height: 14vh;
}
textarea.notes{
  height: 22vh;
  max-height: 32vh;
  margin-bottom: 0vh;
}
textarea.feedback{
  height: 14vh;
  max-height: 30vh;
  margin-bottom: 0vh;
  text-align: center;
}

button{
  font-family: 'BariolRegular', 'Roboto', Arial, sans-serif;
  position: relative;
  visibility: visible;
  border: 0;
  outline: none;
  margin: 1vh;
  padding: 1.4vh 2vw 1.4vh 2vw;
  min-width: 18vmin;
  font-size: 2.8vh;
  text-align: center;
  -webkit-border-radius: 50px;
  -moz-border-radius: 50px;
  border-radius: 50px;
  background-color: rgba(0, 0, 0, 0);
  -webkit-transition: transform 100ms;
  -o-transition: transform 100ms;
  transition: transform 100ms;
}
button:hover, button:focus{}
button:active{
  -webkit-transform: translateY(2px);
  -ms-transform: translateY(2px);
  transform: translateY(2px);
}
button span {
  padding: 0;
  margin: 0;
  color: #ffffff;
}
button:active span, button:focus span {
  position:relative;
  top: 0;
  left: 0;
}
button:disabled{
  background-color: #8f8f8f;
  opacity: 0.4;
}
button:disabled:hover, button:disabled:focus{
  background-color: #8f8f8f;
}
button:disabled:active{
  -webkit-transform: none;
  -ms-transform: none;
  transform: none;
}
button.hidden{
  display: none;
}
button img{
  margin: 0;
  padding: 0;
  height: 2.8vh;
}

.type1_button{
  color: #ffffff;
  background-color: #00a8e1;
}
.type1_button:hover, .type1_button:focus{
  background-color: #0086b4;
}

.type2_button{
  color: #ffffff;
  background-color: #7abd00;
}
.type2_button:hover, .type2_button:focus{
  background-color: #69a200;
}

.type3_button{
  color: #ffffff;
  background-color: #e41118;
}
.type3_button:hover, .type3_button:focus{
  background-color: #c20e14;
}

.type4_button{
  color: #ffffff;
  background-color: #00a8e1;
  min-width: 0;
}
.type4_button:hover, .type4_button:focus{
  background-color: #0086b4;
}

.type5_button{
  color: #ffffff;
  background-color: #00a8e1;
  min-width: 0;
}
.type5_button:hover, .type5_button:focus{
  background-color: #0086b4;
}

.type6_button{
  color: #ffffff;
  background-color: #00a8e1;
  min-width: 0;
  background-image: url("../graphics/previous.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 2.3vh 2.3vh;
  min-width: 8vmin;
}
.type6_button:hover, .type6_button:focus{
  background-color: #0086b4;
}

.type7_button{
  color: #ffffff;
  background-color: #7abd00;
  min-width: 0;
  background-image: url("../graphics/help.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 2.3vh 2.3vh;
  min-width: 8vmin;
}
.type7_button:hover, .type7_button:focus{
  background-color: #69a200;
}

.type8_button{
  font-size: 2vh;
  padding: 0.5vh 1vw 0.5vh 1vw;
  background-color: #a0a0a0;
  color: #ffffff;
  min-width: 0;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  min-width: 1vmin;
  white-space: nowrap;
  margin: 0;
}
.type8_button.push_right{
  margin-left: auto;
  margin-right: 0.5vw;
}
.type8_button:hover, .type8_button:focus{
  background-color: #8f8f8f;
}
.type8_button.selected{
  background-color: #00a8e1;
}
.type8_button.selected:hover, .type8_button.selected:focus{
  background-color: #0086b4;
}

.help_button{
  font-size: 2vh;
  min-width: 0;
  background-color: #b8b8b8;
  color: #ffffff;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  font-weight: bold;
  padding: 0.5vh 0.8vw;
  margin: 0 0 0 0.7vw;
}
.help_button:hover, .help_button:focus{
  background-color: #00a8e1;
}

.jb_button{
  background-color: #9e9e9e;
  color: #ffffff;
  border: 0;
  -webkit-transition: background-color 500ms;
  -o-transition: background-color 500ms;
  transition: background-color 500ms;
}
.jb_button:active{
  -webkit-transform: none;
  -ms-transform: none;
  transform: none;
}
.jb_button.enabled{
  background-color: #00a8e1;
}
.jb_button.enabled:hover, .jb_button.enabled:focus{
  background-color: #0086b4;
}
.jb_button.enabled.selected {
  background-color: #ff9d28;
}

.jb_cap_button{
  position: fixed;
  height: 4vh;
  width: 4vh;
  min-width: 4vh;
  margin: 0;
  padding: 0;
  left: 3vw;
  top: 3.5vh;
  background-color: #ffffff;
  border: 1vh solid #9e9e9e;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;
  -webkit-transition: border-color 500ms;
  -o-transition: border-color 500ms;
  transition: border-color 500ms;
}
.jb_cap_button:active{
  -webkit-transform: none;
  -ms-transform: none;
  transform: none;
}
.jb_cap_button.enabled{
  border-color: #00a8e1;
}
.jb_cap_button.enabled:hover, .jb_cap_button.enabled:focus{
  border-color: #0086b4;
}
.jb_cap_button.enabled.selected {
  border-color: #ff9d28;
}
.jb_cap_button.start{}
.jb_cap_button.end{
  left: auto;
  right: 3vw;
}

#journey_bar{
  opacity: 0;
}
#jb_line{
  position: fixed;
  left: 4vw;
  top: 5vh;
  height: 1vh;
  width: 90vw;
  background-color: #c9c9c9;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 1vw;
}
#jb_progress_bar{
  position: fixed;
  left: 4vw;
  top: 5vh;
  height: 1vh;
  width: 0;
  background-color: #8f8f8f;
}
.jb_point {
  position: relative;
  top: 0;
  height: 2vh;
  width: 2vh;
  margin-left: 1vw;
  margin-right: 1vw;
  background-color: #9e9e9e;
  border: 0;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;
  -webkit-transition: border-color 500ms;
  -o-transition: border-color 500ms;
  transition: border-color 500ms;
}

#nav_bar{
  display: none;
}

#form_stack{
  max-width: 100%;
  width: 100%;
  height: 100%;
  transform: translateZ(0); /* force gpu rendering */
  -webkit-transform: translateZ(0);
  -moz-transform: translateZ(0);
  overflow: hidden;
}

#form{
  position: fixed;
  left: 3vw;
  top: 11vh;
  height: 85vh;
  width: 94vw;
  opacity: 0;
  -webkit-transform: translate3d(0,0,0);
  -ms-transform: translate3d(0,0,0);
  transform: translate3d(0,0,0);
}

.face_container{
  background-color: #ffffff;
  position: absolute;
  height: 100%;
  width: 100%;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
  -webkit-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  margin: auto;
  overflow: hidden;
  padding: 0;
  -webkit-transition: transform 1.5s;
  -o-transition: transform 1.5s;
  transition: transform 1.5s;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 1000;
  perspective: 1000;
  z-index: 2;
}
.face_container.flipped{
  -webkit-transition: 1.5s;
  -o-transition: 1.5s;
  transition: 1.5s;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  -webkit-transform: rotateY(0.5turn);
  -ms-transform: rotateY(0.5turn);
  transform: rotateY(0.5turn);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 1000;
  perspective: 1000;
  z-index: -99;
}

.face_wrapper{
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  height: 100%;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}

.header_container{
  width: 100%;
  padding-top: 2vh;
  text-align: center;
}

.banner_container{
  width: 100%;
  padding-top: 3vh;
}
.banner{
  background-size: cover;
  height: 8vh;
  background-color: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
  outline: none;
  margin-left: 3vw;
  margin-right: 3vw;
  padding-left: 3vh;
  padding-right: 3vh;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
}
.banner.intro, .banner.outro{
  height: 19vh;
}

.description_container {
  width: 100%;
  padding-top: 2vh;
  text-align: center;
}
.description {
  font-size: 2.5vh;
  color: #272822;
  overflow: hidden;
  position: relative;
  outline: none;
  margin-left: 3vw;
  margin-right: 3vw;
  margin-bottom: 3vh;
}

.content_wrapper{
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  height: 100%;
  width: 100%;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}

.intro_container, .outro_container{
  padding-top: 4vh;
  width: 100%;
  text-align: center;
}

.layout_master{
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 1;
  -ms-flex-positive: 1;
  flex-grow: 1;
  overflow: hidden;
  width: 100%;
  height: 100%;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
}

.left_wrapper{
  background-color: #eff1f5;
  -webkit-box-flex: 1;
  -ms-flex-positive: 1;
  flex-grow: 1;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
  margin: 0 1vh 0 3vw;
  padding-top: 10px;
  padding-bottom: 10px;
  overflow: hidden;
}
.left_wrapper.tabbed{
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-border-radius: 0 0 10px 10px;
  -moz-border-radius: 0 0 10px 10px;
  border-radius: 0 0 10px 10px;
  padding-top: 0;
}

.right_wrapper{
  background-color: #eff1f5;
  margin: 0 1vh 0 3vw;
  width: 25%;
  min-width: 25%;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
  margin: 0 3vw 0 1vh;
  padding-top: 10px;
  padding-bottom: 10px;
  overflow: hidden;
}

.back_wrapper{
  background-image: url("../graphics/percy.png");
  background-position: right bottom;
  background-repeat: no-repeat;
  background-color: #eff1f5;
  -webkit-box-flex: 1;
  -ms-flex-positive: 1;
  flex-grow: 1;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
  margin: 0 3vw 0 3vw;
  padding-top: 10px;
  padding-bottom: 10px;
  overflow: hidden;
}

.left_container{
  padding: 0 2vw;
}
.left_container.tabbed{
  padding: 0;
}

.right_container{
  padding: 0 2vw;
}

.back_container{
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  padding: 0 2vw;
  align-items: center;
  justify-content: center;
}

.scroll_panel{
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

.toggle_container{
  background-color: #ffffff;
  border: 2px solid #c9c9c9;
  padding: 1.1vh 1vw 1vh 1vw;
  margin-top: 0.5vh;
  margin-bottom: 0.5vh;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
  overflow: hidden;
}
.toggle_container.alert1{
  border-color: #ff0000;
}

.boxout_container{
  width: 100%;
  max-width: 100%;
  background-color: #c1d8e6;
  padding: 1.4vh 0;
  margin: 0 0 2vh 0;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
  overflow: hidden;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.boxout_container.padded{
  margin-top: 2.8vh;
}
.boxout{
  overflow-y: auto;
  color: #272822;
  margin: 0;
  padding: 0 1vw 0 1vw;
  font-size: 2.5vh;
  margin: 0;
  max-height: 12vh;
}

#action_panel{
  margin: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  -webkit-box-flex: 1;
  -ms-flex-positive: 1;
  flex-grow: 1;
  align-items: center;
  justify-content: center;
}

.tab_bar_container{
  overflow: hidden;
  margin: 0;
  padding: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  height: 7.2;  
  height: calc(7vh + 2px);
  border-bottom: 2px solid #ff9d28;
  background-color: #ffffff;
}

.tab_content{
  padding: 0;
  display: none;
  width: 100%;
}

#tab_bar button{
  -webkit-border-radius: 10px 10px 0 0;
  -moz-border-radius: 10px 10px 0 0;
  border-radius: 10px 10px 0 0;
  margin: 0vh 0.5vw 0 0;
  background-color: #00a8e1;
  color: #ffffff;
  -webkit-transition: background-color 200ms ease, padding 200ms;
  -o-transition: background-color 200ms ease, padding 200ms;
  transition: background-color 200ms ease, padding 200ms;
  -webkit-transform: none;
  -ms-transform: none;
  transform: none;
  white-space: nowrap;
  align-self: flex-end;
}
#tab_bar button:focus{
  background-color: #0086b4;
}
#tab_bar button:hover{
  background-color: #0086b4;
}
#tab_bar button:focus{
  border-color: #98cc27;
}
#tab_bar button.selected{
  background-color: #ff9d28;
  padding-bottom: 1.7vh;
}
#tab_bar .tab_number{
  display: none;
}

.prompt_bar{
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  align-items: center;
  margin-top: 1.3vh;
  margin-bottom: 1.3vh;
  align-items: flex-start;
}

.prompt_number{
  font-size: 2vh;
  background-color: #89b723;
  color: #ffffff;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  font-weight: bold;
  margin-right: 0.7vw;
  white-space: nowrap;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.prompt_filler{
  flex-grow: 1;
}

.toggle_bar{
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  align-items: center;

}
.toggle_bar h3{
  padding: 0.6vh 0;
}

.prompt_number{
  font-size: 2vh;
  background-color: #89b723;
  color: #ffffff;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  font-weight: bold;
  margin-right: 0.7vw;
  white-space: nowrap;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.chars_remaining{
  font-size: 2vh;
  background-color: #b8b8b8;
  color: #ffffff;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  opacity: 0;
  -webkit-transition: opacity 500ms;
  -o-transition: opacity 500ms;
  transition: opacity 500ms;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  display: none;
  white-space: nowrap;
}

.required{
  color: #ff0000;
  padding: 0 0 0 4px;
}

.links_container{
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  align-items: left;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}

.notes_container{
  margin-top: 2vh;
}

.controls_container{
  padding-top: 1.5vh;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

.footer_container{
  padding-top: 2vh;
  padding-bottom: 2.8vh;
  font-size: 2vh;
  color: #8f8f8f;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.footer_container img{
  height: 2vh;
  margin-right: 1vh;
}

#modal_wrapper{
  position: fixed;
  top: 0;
  left: -2vw;
  width: 100%;
  width: calc(100% + 4vw);
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  overflow: hidden;
}

#modal_container{
  background-color: #ffffff;
  max-width: 50vw;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
  -webkit-box-shadow: 0 0px 30px rgba(0, 0, 0, 0.5);
  box-shadow: 0 0px 30px rgba(0, 0, 0, 0.5);
  -webkit-transition: transform 1.5s;
  -o-transition: transform 1.5s;
  transition: transform 1.5s;
  overflow: hidden;
}

#modal_content {
  padding: 4vh 4vw 4vh 4vw;
  text-align: center;
  display: block;
}
#modal_content input{
  text-align: center;
}
#modal_content input::-ms-clear { display: none; }

#modal_controls{
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding-top: 0.5vh;
}

#timer_bar{
  background-color: #c9c9c9;
  height: 2vh;
  top: 0;
  left: 0;
  width: 100%;
}
#timer{
  background-color: #00a8e1;
  height: 1vh;
  top: 0;
  left: 0;
  width: 0;
}

#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
#loader p{
  position: absolute;
  color: #ffffff;
  top: 50%;
  left: 50%;
  margin: auto;
  padding: 0.6vh 0.6vw;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  text-shadow: 0px 0px 20px #000000;
  white-space: nowrap;
}
#loader_animation {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12vh;
  height: 12vh;
  margin: -6vh; margin: calc(-6vh - 3px);
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #113a72;
  -webkit-animation: spin 1.5s linear infinite;
  animation: spin 1.5s linear infinite;
  opacity: 0.8;
}
#loader_animation:before {
  content: "";
  position: absolute;
  top: 0.75vh;
  left: 0.75vh;
  right: 0.75vh;
  bottom: 0.75vh;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #07a7e3;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
}
#loader_animation:after {
  content: "";
  position: absolute;
  top: 2vh;
  left: 2vh;
  right: 2vh;
  bottom: 2vh;
  border-radius: 50%;
  border: 3px solid transparent;
  border-left-color: #a3dae8;
  -webkit-animation: spin 2.5s linear infinite;
  animation: spin 2.5s linear infinite;
}

@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); -ms-transform: rotate(0deg); transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); -ms-transform: rotate(360deg); transform: rotate(360deg); }
}
@keyframes spin {
  0% { -webkit-transform: rotate(0deg); -ms-transform: rotate(0deg); transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); -ms-transform: rotate(360deg); transform: rotate(360deg); }
}

/* Results Print Preview */
#preview_wrapper{
  position: fixed;
  top: 0;
  left: -2vw;
  width: 100%;
  width: calc(100% + 4vw);
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
}

#preview_container{
  background-color: #ffffff;
  width: 96vw;
  height: 100vh;
  margin: 2vw;
  -webkit-box-shadow: 0 0px 30px rgba(0, 0, 0, 0.5);
  box-shadow: 0 0px 30px rgba(0, 0, 0, 0.5);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-transition: transform 1.5s;
  -o-transition: transform 1.5s;
  transition: transform 1.5s;
  overflow: hidden;
}

#preview_header{
  background-color: #272822;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  padding: 3vh 2vh;
}
#header_title_wrapper{
  width: 100%;
  padding-left: 1.5vw;
  text-align: center;
}
#header_controls_wrapper{
  padding-right: 1.5vw;
}
#preview_header p{
  font-size: 3.2vh;
  margin: 0;
  padding: 0;
  color: #ffffff;
}
#preview_header button{
  margin: 0;
  padding: 0;
  min-width: 0;
  line-height: 0;
  -webkit-transition: transform 500ms;
  -o-transition: transform 500ms;
  transition: transform 500ms;
  -webkit-border-radius: 0px;
  -moz-border-radius: 0px;
  border-radius: 0px;
  background-color: rgba(0, 0, 0, 0);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  overflow: hidden;
    -webkit-transform: scale(0.99);
  -ms-transform: scale(0.99);
  transform: scale(0.99);
}
#preview_header button:hover, #preview_header button:focus{
  -webkit-transform: scale(0.99) rotate(90deg);
  -ms-transform: scale(0.99) rotate(90deg);
  transform: scale(0.99) rotate(90deg);
}
#preview_header button:active{
  -webkit-transform: scale(0.80) rotate(180deg);
  -ms-transform: scale(0.80) rotate(180deg);
  transform: scale(0.80) rotate(180deg);
}
#preview_header .icon{
  height: 3vh;
  width: 3vh;
  line-height: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

#preview_subheader{
  background-color: #00a8e1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  padding: 2vh;
  margin-bottom: 2vh;
}
#preview_subheader p{
  font-size: 2.6vh;
  color: #ffffff;
  margin: 0;
}
#preview_subheader a{
  font-size: 2.6vh;
  color: #ffffff;
}
#preview_subheader .icon{
  height: 3vh;
  width: 3vh;
  padding-right: 0.8em;
}

#intro_content{
  text-align: left;
  margin: 4vh 4vh 3vh 4vh;
}
#intro_content h1{
  font-size: 3.5vh;
  margin: 0 0 2vh 0;
  color: #272822;
}
#intro_content h2{
  font-size: 2.5vh;
  margin: 0 0 0.3em 0;
  color: #272822;
}
#intro_content span{
  padding: 0 0 0 0.1em;
}

#logo{
  float: right;
  height: 6vh;
}

.error_message{
  padding-left: 4vh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  align-items: center;
}
.error_message p{
  font-size: 2.6vh;
  margin-left: 0;
  color: #ff0000;
}
.error_message .icon{
  height: 3vh;
  width: 3vh;
  padding-right: 0.8em;
}

#preview_content {
  text-align: center;
  -webkit-box-flex: 1;
  -ms-flex-positive: 1;
  flex-grow: 1;
  width: 100%;
  overflow-y: scroll;
}

.preview_table{
  border: 1px solid #272822;
  margin: 0 4vh 3vh 4vh;
  text-align: left;
}
.preview_table.example{
  border: 3px double #7e7e7e;
}

.preview_table_header{
  background-color: #00a8e1;
  color: #ffffff;
  font-size: 2.5vh;
  padding: 0.6vh 1.1vh;
}

.preview_table_subheader{
  background-color: #eff1f5;
  color: #272822;
  font-size: 2.4vh;
  padding: 0.6vh 1.1vh;
}
.preview_table_subheader a{
  font-size: 2.4vh;
  color: #2b7eb1;
}
.preview_table_subheader .icon{
  height: 1.8vh;
  width: 1.8vh;
  padding-right: 0.3vw;
}

.preview_table_row{
  background-color: #ffffff;
  font-size: 2.4vh;
  border-bottom: 1px dashed #272822;
  color: #595959;
  padding: 0.6vh 1.1vh;
}
.preview_table_row:last-of-type{
  border-bottom: 0;
}
.preview_table_row.keywords{
  padding: 1.4vh 1.2vh;
}
.preview_table_row.example{
  padding: 1.4vh 1.2vh;
  line-height: 3.6vh;
  border-bottom: 0;
}
.preview_table_row.notes{
  background-color: #c8f0fa;
}
.preview_table_row.notes .icon{
  height: 1.7vh;
  width: 1.7vh;
  padding-right: 0.3em;
}
.preview_table_row a{
  font-size: 2.4vh;
  color: #2b7eb1;
  display: block;
  margin: 0.25vw 0;
}
.preview_table_row span{
  color: #272822;
  padding: 0.1em 0.3em;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
}
.preview_table_row span.first{
  background-color: #f9ddd7;
}
.preview_table_row span.second{
  background-color: #e9f3db;
}
.preview_table_row span.third{
  background-color: #dceff8;
}
.preview_table_row span.fourth{
  background-color: #eae5f9;
}
.preview_table_row span.fifth{
  background-color: #fcf1d6;
}

#preview_footer{
  text-align: center;
  font-size: 2vh;
  color: #8f8f8f;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  justify-content: center;
  padding-top: 2vh;
  padding-bottom: 4vh;
}

/* Media queries */
@media only screen and (min-width: 1500px){ /* Bigger screens */
  .banner.intro, .banner.outro{
    height: 20vh;
  }
  .banner{
    height: 12vh;
  }
  .chars_remaining{
    display: block;
  }
}

@media only screen and (max-width: 800px), screen and (max-aspect-ratio: 10/8){ /* Mobile and portrait */
  h2{
    font-size: 5vh;
  }
  h3{
    font-size: 4vh;
    padding-left: 3vw;
    padding-right: 3vw;
  }
  h3.toggle_prompt span{
    display: none;
  }
  h4{
    font-size: 3.5vh;
    padding-left: 3vw;
    padding-right: 3vw;
    padding-top: 0;
    padding-bottom: 3vh;
    margin: 0;
  }
  p{
    font-size: 4vh;
  }
  a{
    font-size: 4vh;
  }
  button{
    font-size: 4vh;
    padding: 3vh 4vw;
    min-width: 70vmin;
  }
  button.type6_button, button.type7_button{
    min-width: 70vmin;
    background-image: none;
  }
  button.type8_button{
    font-size: 4vh;
    padding: 3vh 4vw;
    min-width: 50vmin;
  }
  button.type8_button.push_right{
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 1vh;
  }
  .help_button{
    display: none;
  }
  hr{
    width: 30%;
  }
  span.button_alttext{
    display: inline-block;
  }
  textarea{
    font-size: 4vh;
    max-height: 50vh;
    min-height: 5vh;
    width: 90%;
    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
    border-radius: 0px;
    text-align: center;
    margin-top: 0.5vh;
    margin-bottom: 1vh;
  }
  textarea.height1{
    height: 10vh;
  }
  textarea.height2{
    height: 17vh;
  }
  textarea.height3{
    height: 22vh;
  }
  textarea.height4{
    height: 26vh;
  }
  textarea.feedback{
    height: 14vh;
  }
  input {
    font-size: 4vh;
    width: 90%;
    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
    border-radius: 0px;
    text-align: center;
    margin-top: 0.5vh;
    margin-bottom: 1vh;
  }
  input::-ms-clear { display: none; }
  .nb_button{
    float: left;
  }
  #journey_bar{
    display: none;
  }
  #nav_bar{
    display: block;
    overflow: hidden;
    background-color: #00a8e1;
    height: 10vh;
  }
  #nav_bar_modal{
    position: absolute;
    display: none;
    opacity: 0;
    top: 10vh;
    width: 100vw;
    height: 90vh;
    left: 0;
    z-index: 99;
  }
  #menu_button{
    position: fixed;
    top: 0;
    left: 0;
    background-color: #002c5f;
    height: 5vh;
    width: 5vh;
    padding: 2.5vh;
  }
  #menu_button:hover, #menu_button:focus{
    background-color: #304c78;
  }
  .menu_button_line{
    width: 5vh;
    height: 0.5vh;
    background-color: #ffffff;
    margin-bottom: 1vh;
  }
  .menu_button_line:nth-of-type(1){
    margin-top: 0.75vh;
  }
  #nav_selected_label{
    width: 100%;
    height: 10vh;
    color: #ffffff;
    margin-left: 0;
    padding-left: 12vh;
    vertical-align: middle;
    line-height: 10vh; 
    font-size: 5vh;
  }
  #nav_dropdown{
    position: absolute;
    display: none;
    top: 10vh;
    left: 0;
    background-color: #002c5f;
    z-index: 100;
  }
  .nb_link{
    display: block;
    cursor: default;
    font-size: 5vh;
    height: 10vh;
    vertical-align: middle;
    line-height: 10vh;
    color: #ffffff;
    text-decoration: none;
    padding-left: 2.5vh;
    padding-right: 5vh;
    overflow: hidden;
    white-space: nowrap;
    opacity: 0.5;
  }
  .nb_link.enabled{
    opacity: 1;
  }
  .nb_link.enabled:hover, .nb_link.enabled:focus{
    background-color: #304c78;
  }
  .nb_link.enabled.selected {}
  #form{
    position: relative;
    display: block;
    top: 1vh;
    left: 1vw;
    margin: 0;
    padding: 0;
    width: 98vw;
    height: 88vh;
  }
  .banner.intro, .banner.outro{
    height: 30vh;
    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
    border-radius: 0px;
  }
  .face_container{
    background-size: 100% 100%;
    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
    border-radius: 0px;
    margin: 0;
    padding: 0;
    -webkit-transition: transform 0s;
    -o-transition: transform 0s;
    transition: transform 0s;
  }
  .face_wrapper {
    display: block;
    overflow-y: auto;
    text-align: center;
    margin: 0;
    padding: 0;
  }
  .content_wrapper{
    height: auto;
  }
  .intro_container, .outro_container{
    display: block;
    height: auto;
    margin-bottom: 2vh;
  }
  .layout_master{
    display: block;
    width: 96%;
    margin-left: 2%;
    margin-right: 2%;
    height: auto;
  }
  .left_wrapper{
    width: 100%;
    display: block;
    margin: 0;
    padding: 2vh 0 4vh 0;
  }
  .right_wrapper{
    width: 100%;
    display: block;
    margin: 0;
    margin-top: 3vh;
    padding: 2vh 0 4vh 0;
  }
  .back_wrapper{
    background-image: none;
    width: 100%;
    margin: 0;
    padding: 2vh 0 3vh 0;
  }
  .scroll_panel{
    padding: 0;
    margin: 0;
    overflow: hidden;
  }
  .left_container{
    width: 100%;
    padding: 0;
    margin: 0;
  }
  .right_container{
    width: 100%;
    padding: 0;
  }
  .back_container{
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .description{
    font-size: 4vh;
  }
  .links_container{
    display: block;
    align-items: center;
  }
  .toggle_container{
    font-size: 4vh;
    width: calc(90% - 4px);
    padding: 0;
    margin-left: 5%;
    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
    border-radius: 0px;
    text-align: center;
    padding-bottom: 2vh;
  }
  .toggle_bar {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }
  .toggle_bar h3{
    padding: 2vh 1vw;
    white-space: normal;
  }
  .boxout_container{
    padding: 10px 0 10px 0;
    width: 90%;
    margin: 2vh 5%;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    overflow: hidden;
  }
  .boxout_container.padded{
    margin-top: 4vh;
  }
  .boxout{
    overflow-y: auto;
    color: #272822;
    margin: 20vw, 20vw;
    padding: 0 1vw 0 1vw;
    font-size: 4vh;
    max-height: 30vh;
  }
  .tab_bar_container{
    height: 11.2vh;  
    height: calc(11vh + 2px);
  }
  #tab_bar button{
    font-size: 4vh;
    padding: 3vh 3vh;
    min-width: 20vw;
  }
  #tab_bar button.selected{
    padding-bottom: 3.75vh;
  }
  #tab_bar .tab_label{
    display: none;
  }
  #tab_bar .tab_number{
    display: inline-block;
  }
  .prompt_bar{
    justify-content: center;
  }
  .prompt_number{
    display: none;
  }
  .controls_container{
    padding-top: 3vh;
    padding-bottom: 2vh;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    align-items: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: reverse;
    -ms-flex-direction: column-reverse;
    flex-direction: column-reverse;
  }
  .footer_container{
    font-size: 2.5vh;
    margin-bottom: 1vh;
    white-space: nowrap;
    overflow: hidden;
  }
  .footer_container img{
    height: 3vh;
  }
  #modal_container{
    max-width: 82vw;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
  }
  #modal_content{
    padding: 5vh 5vw 5vh 5vw;
  }
  #modal_controls{
    -webkit-box-orient: vertical;
    -webkit-box-direction: reverse;
    -ms-flex-direction: column-reverse;
    flex-direction: column-reverse;
  }
  #modal_content > input{
    min-width: 70vmin;
  }
  #modal_content > textarea{
    display: none;
  }
  #action_panel{
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    padding: 0;
    margin: 4vh 0 2vh 0;
  }
  /* Results Print Preview */
  #preview_header{
    align-items: left;
    justify-content: left;
    padding: 3vh 2vh;
  }
  #preview_header p{
    font-size: 3.5vh;
  } 
  #preview_subheader{
    display: none;
  }
  #logo{
    height: 5vh;
  }
  .preview_table_header{
    font-size: 3vh;
  }
  .preview_table_subheader{
    font-size: 2.5vh;
  }
  #intro_content h1{
    font-size: 2.5vh;
  }
  #intro_content h2{
    font-size: 2.5vh;
  }
  .preview_table_row{
    font-size: 2.5vh;
  }
  #preview_footer{
    font-size: 2.5vh;
  }
}

@media print {
  body{
    background-color: #ffffff;
    background-image: none;
  }
  #preview_wrapper{
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    display: block;
    width: auto;
    height: auto;
    overflow: visible;
  }
  #preview_container{
    background-color: #ffffff;
    width: 100%;
    height: 100%;
    margin: 0;
    -webkit-box-shadow: none;
    box-shadow: none;
    display: block;
    width: auto;
    height: auto;
    overflow: visible;
  }
  #preview_content{
    overflow: visible;
  }
  #logo{
    height: 2.0em;
  }
  .preview_table{
    margin-bottom: 0.8em;
  }
  #intro_content{
    margin-bottom: 1em;
    overflow: visible;
  }
  #intro_content h1{
    font-size: 1.4em;
  }
  #intro_content h2{
    font-size: 1em;
  }
  .error_message p{
    font-size: 0.9em;
  }
  .error_message .icon{
    height: 1.5em;
    width: 1.5em;
  }
  #preview_header{
    display: none;
  }
  #preview_subheader{
    display: none;
  }
  .preview_table_header{
    font-size: 1.1em;
  }
  .preview_table_subheader{
    font-size: 0.9em;
  }
  .preview_table_subheader a{
    font-size: 0.9em;
  }
  .preview_table_subheader .icon{
    height: 0.7em;
    width: 0.7em;
  }
  .preview_table_row{
    font-size: 0.9em;
  }
  .preview_table_row a{
    font-size: 0.9em;
  }
  .preview_table_row.notes .icon{
    height: 0.7em;
    width: 0.7em;
  }
  #modal_controls{
    display: none;
  }
  #preview_footer{
    font-size: 0.7em;
  }
}