.font-size-l {
  font-size: 32px;
}

.font-size-m {
  font-size: 16px;
  line-height: 1.7;
}
@media screen and (min-width: 950px) {
  .font-size-m {
    font-size: 16px;
  }
}
@media screen and (min-width: 1200px) {
  .font-size-m {
    font-size: 24px;
  }
}

a {
  color: #cd2427;
}
a:hover {
  color: #ef4023;
}

.is-hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.width-m {
  max-width: 700px;
}

.margin-bottom-xs {
  margin-bottom: 8px;
}

.margin-bottom-s {
  margin-bottom: 16px;
}

.margin-bottom-m {
  margin-bottom: 32px;
}

.margin-bottom-l {
  margin-bottom: 64px;
}

.margin-right-xs {
  margin-right: 8px;
}

.margin-right-s {
  margin-right: 16px;
}

.margin-right-m {
  margin-right: 32px;
}

.margin-right-l {
  margin-right: 64px;
}

.width-three-quarters {
  width: 75%;
}

.u-flex {
  display: flex;
}

.u-flex-center {
  align-items: center;
}

.u-flex-row {
  flex-direction: row !important;
}

.animation-paused .css-animation {
  animation-play-state: paused;
}

.clickable {
  cursor: pointer;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  text-align: center;
  padding: 0;
  appearance: none;
  background: transparent;
  color: white;
  font-family: serif;
  text-transform: uppercase;
  font-weight: bold;
  border: none;
  cursor: pointer;
}
button:focus {
  outline: none;
}

.button-ui {
  height: 48px;
  padding-left: 48px;
  padding-right: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid #cd2427;
  transition: background-color 0.3s ease;
  background-color: transparent;
  color: #cd2427;
  font-size: 16px;
  letter-spacing: 0.1em;
}
.button-ui:hover {
  background-color: #cd2427;
  color: black;
}

main[data-section=opening] .button--opening,
main[data-section=opening] .button--stories,
main[data-section=opening] .button--prelude--top,
main[data-section=stories] .button--opening,
main[data-section=stories] .button--stories,
main[data-section=stories] .button--prelude--top {
  display: none;
}

main[data-section=intro] .button--opening,
main[data-section=intro] .button--prelude--top,
main[data-section=intro] .button--prelude--bottom {
  display: none;
}

main[data-section=guide] .button--credits,
main[data-section=guide] .button--guide,
main[data-section=guide] .button--prelude--bottom,
main[data-section=credits] .button--credits,
main[data-section=credits] .button--guide,
main[data-section=credits] .button--prelude--bottom {
  display: none;
}

main[data-section=select-experience] .toggle-buttons,
main[data-section=splash] .toggle-buttons {
  display: none;
}

.toggle-buttons {
  position: absolute;
  top: 10px;
  left: 0;
  width: 40px;
  opacity: 0.4;
  z-index: 1000;
  transition: opacity 0.3s ease;
}
.toggle-buttons:active, .toggle-buttons:hover {
  opacity: 1;
}
.toggle-buttons img {
  width: 20px;
}

main {
  width: 1280px;
  height: 960px;
  max-width: 100vw;
  background-size: cover;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: opacity 0.8s ease;
}
main .section {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  display: flex;
  height: 100vh;
  background: #000;
  justify-content: center;
  align-items: center;
  font-family: serif;
  margin: 0;
}

.layout-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
}
.layout-layer .layout-element {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.text-layer {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 100;
}

.interaction-layer {
  z-index: 300;
}

.animation-wrapper {
  height: 34%;
  width: 100%;
  position: absolute;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  z-index: 200;
}
[data-section=select-experience] .animation-wrapper, [data-section=splash] .animation-wrapper {
  display: none;
}

.animation {
  flex-grow: 1;
}

#animation {
  width: 100%;
}

.main-nav {
  height: 100%;
  width: 4.166666667%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.main-nav-left {
  left: 0;
}

.main-nav-right {
  right: 0;
}

.main-nav-button {
  color: #cd2427;
  width: 100%;
  height: 37.5%;
  overflow: hidden;
  font-weight: bold;
  text-transform: uppercase;
}
.main-nav-button span {
  height: 100%;
}
.main-nav-button span img {
  max-height: 100%;
  width: auto;
}
.main-nav-button .default {
  display: block;
}
.main-nav-button .hover {
  display: none;
}
.main-nav-button:hover .default, .reveal-buttons .main-nav-button .default {
  display: none;
}
.main-nav-button:hover .hover, .reveal-buttons .main-nav-button .hover {
  display: block;
}

.volume-control {
  position: relative;
  cursor: pointer;
}
.volume-control .volume-bg {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-image: url(../media/volume-bg.png);
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: center bottom;
}
.volume-control .volume-value {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  background-image: url(../media/volume-value.png);
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: center bottom;
}

.section-launch {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #cd2427;
  text-align: center;
}

.section-select-experience .nav-select-experience {
  display: flex;
}
.section-select-experience .nav-select-experience .button-ui {
  margin-left: 8px;
  margin-right: 8px;
}

.section-splash .img-splash {
  max-width: 90vw;
  max-height: 90vh;
}

.section-opening,
.section-guide {
  background-image: url(../media/01bg-open.png);
  background-size: cover;
}
.section-opening .characters,
.section-guide .characters {
  display: flex;
  flex-direction: column;
}
.section-opening .section-opening-video,
.section-guide .section-opening-video {
  flex-grow: 1;
  width: 100%;
}
.section-opening .section-opening-video video,
.section-guide .section-opening-video video {
  margin: 0 auto;
  width: 25%;
  margin-top: 12.5%;
  height: auto;
  animation-name: fadeIn;
  animation-duration: 4s;
  animation-iteration-count: 1;
}
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
.section-opening .animated-text-opening,
.section-guide .animated-text-opening {
  animation-duration: 20s;
  animation-iteration-count: infinite;
  animation-delay: 4s;
  opacity: 0;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: auto;
}
.section-opening .animated-text-opening#opening-of,
.section-guide .animated-text-opening#opening-of {
  animation-name: openingOf;
}
.section-opening .animated-text-opening#opening-shifting,
.section-guide .animated-text-opening#opening-shifting {
  animation-name: openingShifting;
}
.section-opening .animated-text-opening#opening-shadows,
.section-guide .animated-text-opening#opening-shadows {
  animation-name: openingShadows;
}
.section-opening .animated-text-opening#opening-exisle,
.section-guide .animated-text-opening#opening-exisle {
  animation-name: openingExisle;
}
.section-opening .animated-text-opening#opening-in-memory,
.section-guide .animated-text-opening#opening-in-memory {
  animation-name: openingInMemory;
}
@keyframes openingOf {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  40% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes openingShifting {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  40% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes openingShadows {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  40% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes openingExisle {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0;
  }
  60% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes openingInMemory {
  0% {
    opacity: 0;
  }
  60% {
    opacity: 0;
  }
  70% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
.section-intro {
  position: relative;
  z-index: 1;
  align-items: flex-start;
  justify-content: flex-start;
}
.section-intro .intro__backdrop {
  height: 100%;
  width: 50%;
  position: absolute;
  background-size: cover;
  background-repeat: no-repeat;
  animation-timing-function: linear;
  animation-duration: 3s;
  z-index: 10;
  transition: left 3s linear, right 3s linear;
}
.section-intro .intro__backdrop--left {
  left: 0;
  background-image: url(../media/02bg-open-left.jpg);
  animation-name: slideInLeft;
}
.section-intro .intro__backdrop--right {
  right: 0;
  background-image: url(../media/02bg-open-right.jpg);
  animation-name: slideInRight;
}
@keyframes slideInLeft {
  0% {
    left: -50%;
  }
  100% {
    left: 0;
  }
}
@keyframes slideInRight {
  0% {
    right: -50%;
  }
  100% {
    right: 0;
  }
}
.section-intro .intro-text-title,
.section-intro .intro-text-paragraph,
.section-intro .credits-text-paragraph {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
}
.section-intro .intro-text-title {
  transition: opacity 3s;
}
.section-intro .intro-text-paragraph {
  animation-name: slideUpAndPause;
  animation-duration: 10s;
  animation-timing-function: linear;
  opacity: 0;
}
.section-intro .intro-text-paragraph:nth-child(1) {
  animation-delay: 2s;
}
.section-intro .intro-text-paragraph:nth-child(2) {
  animation-delay: 1s;
  animation-duration: 17s;
}
.section-intro .intro-text-paragraph:nth-child(3) {
  animation-delay: 16s;
  animation-duration: 15s;
}
.section-intro .intro-text-paragraph:nth-child(4) {
  animation-delay: 29s;
  animation-duration: 14s;
}
.section-intro .intro-text-paragraph:nth-child(5) {
  animation-delay: 41s;
  animation-duration: 12s;
}
.section-intro .intro-text-paragraph:nth-child(6) {
  animation-delay: 51s;
  animation-duration: 19s;
}
.section-intro .intro-text-paragraph:nth-child(7) {
  animation-delay: 68s;
  animation-duration: 17s;
}
.section-intro .intro-text-paragraph:nth-child(8) {
  animation-delay: 83s;
  animation-duration: 17s;
}
.section-intro .intro-text-paragraph span {
  display: block;
}
.section-intro.closing {
  background-image: url(../media/03bg-gate.png);
}
.section-intro.closing .intro-text-title {
  opacity: 0;
}
.section-intro.closing .intro__backdrop--left {
  left: -50%;
}
.section-intro.closing .intro__backdrop--right {
  right: -50%;
}
.section-intro .credits-text-paragraph {
  animation-name: slideUpAndPause;
  animation-duration: 10s;
  animation-timing-function: linear;
  opacity: 0;
}
.section-intro .credits-text-paragraph:nth-child(1) {
  animation-delay: 2s;
}
.section-intro .credits-text-paragraph:nth-child(2) {
  animation-delay: 2s;
}
.section-intro .credits-text-paragraph:nth-child(3) {
  animation-delay: 10s;
}
.section-intro .credits-text-paragraph:nth-child(4) {
  animation-delay: 18s;
}
.section-intro .credits-text-paragraph:nth-child(5) {
  animation-delay: 26s;
}
.section-intro .credits-text-paragraph:nth-child(6) {
  animation-delay: 34s;
}
.section-intro .credits-text-paragraph:nth-child(7) {
  animation-delay: 42s;
}
.section-intro .credits-text-paragraph:nth-child(8) {
  animation-delay: 50s;
}
.section-intro .credits-text-paragraph span {
  display: block;
}
@keyframes slideUpAndPause {
  0% {
    top: 100%;
    opacity: 1;
  }
  40% {
    top: 0;
    opacity: 1;
  }
  95% {
    top: 0;
    opacity: 1;
  }
  100% {
    top: 0;
    opacity: 0;
  }
}

.section-stories {
  background-image: url(../media/03bg-gate.png);
}

.characters {
  height: 66%;
  width: 100%;
  display: flex;
  position: absolute;
  top: 0;
  z-index: 200;
}

.character {
  width: 33.3333333%;
  flex-grow: 1;
  background-repeat: no-repeat;
  background-size: 70% auto;
  background-position: center center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  display: flex;
}

.character-content {
  flex-grow: 1;
  width: 100%;
  align-items: center;
  justify-content: center;
  display: flex;
  position: relative;
  cursor: url(../media/cursor-film-02.png), pointer;
}

.play-info {
  color: white;
  position: absolute;
  top: 10px;
  left: 10px;
  display: none;
}

.character-name-farsi {
  width: 74.7663551%;
  position: absolute;
  top: 26.6666667%;
  z-index: 1;
}

.character-name {
  color: #cd2427;
  text-align: center;
  z-index: 2;
  font-size: 60px;
}
.character-name span {
  display: block;
  transition: opacity 2s;
}
.character-name.animated span {
  opacity: 0;
}

.is-sequence-playing .character-name,
.is-sequence-playing .character-name-farsi {
  display: none;
}

.name-charactersToDisplay-1 .character-name.animated span:first-child {
  opacity: 1;
}

.name-charactersToDisplay-2 .character-name.animated span:nth-child(-n+2) {
  opacity: 1;
}

.name-charactersToDisplay-3 .character-name.animated span:nth-child(-n+3) {
  opacity: 1;
}

.name-charactersToDisplay-4 .character-name.animated span:nth-child(-n+4) {
  opacity: 1;
}

.character-video {
  width: 74.7663551%;
  position: absolute;
  top: 26.6666667%;
}

.character-loop {
  width: 56.0747664%;
  height: auto;
}

.character-nav {
  height: 6.6666667%;
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.character-button-prev,
.character-button-next {
  width: 42.0560748%;
}

.character-button-prev {
  cursor: url(../media/cursor-back-02.png), pointer;
  background: transparent url(../media/button_back.png) no-repeat;
  background-size: contain;
}
.character-button-prev:hover {
  background-image: url(../media/button_back-hover.png);
}

.character-button-next {
  cursor: url(../media/cursor-forward-02.png), pointer;
  background: transparent url(../media/button_forward.png) no-repeat;
  background-size: contain;
}
.character-button-next:hover {
  background-image: url(../media/button_forward-hover.png);
}

.character-button-top {
  width: 9.345794393%;
  cursor: url(../media/cursor-top-02.png), pointer;
  background: transparent url(../media/button_top.png) no-repeat;
  background-size: contain;
}
.character-button-top:hover {
  background-image: url(../media/button_top-hover.png);
}

.top img {
  width: 70%;
}
.top video {
  max-width: 80%;
  max-height: 100%;
  flex-grow: 1;
}

.section-guide {
  background-image: url(../media/01bg-open.png);
  background-size: cover;
  justify-content: flex-start;
}
.section-guide p {
  background: rgba(0, 0, 0, 0.5);
  padding: 16px;
}
.section-guide .text-layer {
  z-index: auto;
}
.section-guide .intro-text-title,
.section-guide .intro-text-paragraph,
.section-guide .layout-layer {
  opacity: 0.6;
}
.section-guide .characters {
  overflow-y: auto;
}
.section-guide .characters .section-opening-video {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  opacity: 0.6;
}
.section-guide .characters .section-opening-video .video {
  margin-top: 0 !important;
}
.section-guide .content-guide-4 .characters {
  opacity: 0.5;
}

.button-vertical--guide {
  height: 50px;
}
@media screen and (min-width: 950px) {
  .button-vertical--guide {
    height: 100px;
  }
}
@media screen and (min-width: 1200px) {
  .button-vertical--guide {
    height: auto;
  }
}

.button-nav--guide {
  height: 20px;
}
@media screen and (min-width: 950px) {
  .button-nav--guide {
    height: 20px;
  }
}
@media screen and (min-width: 1200px) {
  .button-nav--guide {
    height: 30px;
  }
}

.content-guide {
  color: white;
  text-align: left;
}
.content-guide .width-three-quarters {
  padding-left: 5%;
}

.right-half {
  margin-left: 50%;
  width: 40%;
  padding: 16px;
}

.guide__buttons {
  position: absolute;
  bottom: 0;
  width: 100%;
  z-index: 700;
}
.guide__buttons .guide__button {
  font-weight: bold;
  font-size: 24px;
  color: #cd2427;
  position: absolute;
  bottom: 1em;
  z-index: 800;
  display: block;
}
.guide__buttons .guide__button--left {
  left: 20%;
}
.guide__buttons .guide__button--right {
  right: 20%;
}

.guide__main-nav {
  display: flex;
}

.section-opening-titles--guide, .section-opening-titles--guide img {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.content-guide-2 p {
  position: relative;
  z-index: 200;
}

.guide-text-overlay {
  position: absolute;
  z-index: 500;
  max-height: 46vh;
  overflow-y: auto;
}

.section-credits {
  background-image: url(../media/credits-background.jpg);
  background-size: cover;
}

.credits-content {
  width: 100%;
}

.credits-text-paragraph {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  animation-name: creditsRoll;
  animation-duration: 12s;
  animation-timing-function: linear;
  opacity: 0;
}
.credits-text-paragraph:nth-child(1) {
  animation-delay: 2s;
}
.credits-text-paragraph:nth-child(2) {
  animation-delay: 14s;
}
.credits-text-paragraph:nth-child(3) {
  animation-delay: 26s;
}
.credits-text-paragraph:nth-child(4) {
  animation-delay: 38s;
}
.credits-text-paragraph:nth-child(5) {
  animation-delay: 50s;
}
.credits-text-paragraph:nth-child(6) {
  animation-delay: 62s;
}
.credits-text-paragraph:nth-child(7) {
  animation-delay: 74s;
}
.credits-text-paragraph:nth-child(8) {
  animation-delay: 86s;
}
.credits-text-paragraph span {
  display: block;
}

.credits-restart {
  animation-name: creditsFadeIn;
  opacity: 1;
}

@keyframes creditsRoll {
  0% {
    top: 0;
    opacity: 0;
  }
  30% {
    top: 0;
    opacity: 1;
  }
  80% {
    top: 0;
    opacity: 1;
  }
  100% {
    top: 0;
    opacity: 0;
  }
}
@keyframes creditsFadeIn {
  0% {
    top: 0;
    opacity: 0;
  }
  30% {
    top: 0;
    opacity: 1;
  }
  100% {
    top: 0;
    opacity: 1;
  }
}
