html,
body {
  margin: 0;
  font-family: Arial;
  font-size: 16px;
}

html {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

*, *:before, *:after {
  -webkit-box-sizing: inherit;
          box-sizing: inherit;
}

p {
  margin-top: 0;
}

.heading {
  font-size: 20px;
}

.heading--lg {
  margin-top: 20px;
  margin-bottom: 20px;
  font-size: 32px;
  text-align: center;
}

.heading--secondary {
  margin-bottom: 20px;
}

.heading--center {
  text-align: center;
}

.tutorial {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 16;
  background-color: #f8f8f8;
  opacity: 1;
  -webkit-transition: opacity 650ms ease, z-index 650ms ease;
  transition: opacity 650ms ease, z-index 650ms ease;
}

.tutorial--hidden {
  z-index: 0;
  opacity: 0;
}

.tutorial__panel {
  position: absolute;
  top: 0;
  left: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 30px;
  opacity: 1;
  z-index: 16;
  -webkit-transition: opacity 650ms ease, z-index 650ms ease;
  transition: opacity 650ms ease, z-index 650ms ease;
}

.tutorial__panel--hidden {
  opacity: 0;
  z-index: 15;
}

.tutorial__content {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
}

.tutorial__image {
  margin-bottom: 10px;
  text-align: center;
}

.tutorial__image img {
  max-width: 100%;
}

.tutorial__cta {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
}

.tutorial__progress {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  padding: 0;
  margin: 0;
  list-style: none;
  text-align: center;
}

.tutorial__progress-step {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 8px;
  margin-right: 8px;
  border-radius: 50%;
  border: 1px solid #43aa59;
}

.tutorial__progress-step--active {
  background-color: #43aa59;
}

.tutorial__button {
  padding: 10px 20px;
  font-size: 16px;
  color: #55a1e6;
  background-color: transparent;
  border: 1px solid #55a1e6;
}

.tutorial__button--skip {
  border-color: transparent;
}

.viewport {
  position: relative;
  background-color: black;
  overflow: hidden;
}

.viewport__interactable {
  position: absolute;
  height: 100%;
  width: 100%;
  z-index: 7;
}

.viewport__menu {
  position: absolute;
  bottom: -65px;
  height: 65px;
  width: 100%;
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.75);
  -webkit-transition: bottom 350ms ease;
  transition: bottom 350ms ease;
}

.viewport__menu--active {
  bottom: 0;
}

.viewport__message {
  position: absolute;
  left: 0;
  bottom: 85px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 100%;
  z-index: 5;
  opacity: 1;
  -webkit-transition: opacity 350ms ease, bottom 1000ms ease;
  transition: opacity 350ms ease, bottom 1000ms ease;
}

.viewport__message--hide {
  bottom: 50px;
  opacity: 0;
}

.message__text {
  position: relative;
  max-width: 90%;
  margin: 0 auto;
  padding: 10px;
  color: white;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.75);
}

.letterbox {
  position: absolute;
  height: 100%;
  width: 100%;
  z-index: 4;
}

.letterbox__horizontal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: black;
}

.letterbox__horizontal--bottom {
  top: auto;
  bottom: 0;
}

.letterbox__vertical {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background-color: black;
}

.letterbox__vertical--right {
  left: auto;
  right: 0;
}

.menu {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  padding: 0;
  margin: 0;
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
  list-style: none;
}

.menu__option {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  padding: 0;
  margin-top: 10px;
  margin-bottom: 10px;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  text-align: center;
  color: #fafafa;
  font-size: 16px;
  border-right: 1px solid #fafafa;
  cursor: pointer;
}

.menu__option:last-child {
  border-right: none;
}

.menu__option--active {
  color: #55a1e6;
}

.menu__icon {
  font-size: 28px;
}

.pane {
  position: fixed;
  top: 0;
  left: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  height: 100%;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  opacity: 1;
  z-index: 20;
  -webkit-transition: opacity 450ms ease, z-index 450ms ease;
  transition: opacity 450ms ease, z-index 450ms ease;
}

.pane__container {
  position: relative;
  height: 90%;
  width: 90%;
  color: white;
}

.pane__header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: 15px;
  font-size: 24px;
  border-bottom: 3px solid #55a1e6;
  background-color: #404042;
  z-index: 21;
}

.pane__close {
  padding-left: 10px;
  cursor: pointer;
}

.pane__content {
  height: 100%;
  padding: 15px;
  padding-top: 75px;
  background-color: #404042;
  overflow-y: auto;
}

.pane__heading {
  padding-bottom: 10px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom: 2px solid #5c5c5d;
  font-size: 16px;
  text-transform: uppercase;
}

.pane__menu {
  padding: 0;
  margin-top: 0;
  margin-bottom: 20px;
  list-style: none;
}

.pane__menu:last-of-type {
  margin-bottom: 0;
}

.pane__item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom: 1px solid #5c5c5d;
  cursor: pointer;
}

.pane__item:last-child {
  border-bottom: 0;
}

.pane__item p {
  margin-top: 0;
  margin-bottom: 3px;
}

.pane__item p:last-of-type {
  margin-bottom: 0;
}

.pane__option {
  font-size: 20px;
}

.pane__helper-text {
  font-size: 14px;
  color: #dbdbdb;
}

.pane__actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: stretch;
      -ms-flex-pack: stretch;
          justify-content: stretch;
  margin-left: -15px;
  margin-bottom: -15px;
  margin-right: -15px;
}

.pane__button {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  -ms-flex-preferred-size: 0;
      flex-basis: 0;
  padding-top: 15px;
  padding-bottom: 15px;
  background-color: transparent;
  font-size: 17px;
  color: white;
  border: none;
  border-top: 1px solid #5c5c5d;
  border-right: 1px solid #5c5c5d;
}

.pane__button:last-of-type {
  border-right: none;
}

.pane--modal {
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 22;
}

.pane--modal .pane__container {
  width: 330px;
  height: auto;
  max-width: 90%;
  max-height: 90%;
  overflow: auto;
}

.pane--modal .pane__content {
  padding-top: 60px;
}

.pane--modal .pane__content > p {
  margin-top: 15px;
  margin-bottom: 15px;
}

.pane--hidden {
  opacity: 0;
  z-index: 0;
}

.pane--full .pane__container {
  height: 100%;
  width: 100%;
}

.page-list {
  padding: 0;
  margin: 0;
  list-style: none;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

.page-list__page {
  width: 40%;
  margin-bottom: 15px;
  font-size: 18px;
  text-align: center;
}

.page-list__page--template {
  display: none;
}

.page-list__image {
  max-width: 100%;
}

.book__page {
  position: fixed;
  display: block;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
}

.page__image {
  position: relative;
  top: 0;
  left: 0;
}

.checkbox {
  position: relative;
  width: 20px;
  margin-left: 20px;
  margin-right: 20px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.checkbox__label {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.checkbox__label:after {
  content: '';
  width: 16px;
  height: 8px;
  position: absolute;
  top: 1px;
  left: 4px;
  border: 3px solid #fcfff4;
  border-top: none;
  border-right: none;
  background: transparent;
  opacity: 0;
  -webkit-transform: rotate(-45deg);
          transform: rotate(-45deg);
}

.checkbox input[type=checkbox] {
  visibility: hidden;
}

.checkbox input[type=checkbox]:checked + .checkbox__label:after {
  opacity: 1;
}

.radio {
  position: relative;
  width: 22px;
  height: 22px;
  margin-left: 20px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  background: #fcfff4;
  border-radius: 50px;
}

.radio__label {
  width: 20px;
  height: 20px;
  cursor: pointer;
  position: absolute;
  left: 1px;
  top: 1px;
  background-color: #404042;
  border-radius: 50px;
}

.radio__label:after {
  content: '';
  width: 16px;
  height: 16px;
  position: absolute;
  top: 2px;
  left: 2px;
  background: #55a1e6;
  opacity: 0;
  border-radius: 50px;
}

.radio input[type=radio] {
  visibility: hidden;
}

.radio input[type=radio]:checked + .radio__label:after {
  opacity: 1;
}
