@font-face {
  font-family: 'Catalog';
  src: url('./fonts/Catalog-Regular.otf');
}
@font-face {
  font-family: 'UniSans';
  src: url('./fonts/UniSans-Regular.otf');
}
@font-face {
  font-family: 'DINProCondensedMedium';
  src: url('./fonts/DINPro-CondensedMedium.otf');
}
@font-face {
  font-family: 'DINProCondensedRegular';
  src: url('./fonts/DINPro-CondensedRegular.otf');
}
@font-face {
  font-family: 'DINNextRoundedLTProLight';
  src: url('./fonts/DINNextRoundedLTPro-Light.otf');
}
@font-face {
  font-family: 'DINNextRoundedLTProRegular';
  src: url('./fonts/DINNextRoundedLTPro-Regular.otf');
}

body {
  font-family: 'Catalog', Georgia, serif;
  font-size: 4vh;
  margin: 0;
  overflow: hidden;
  padding: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  color: #FFF;
  position: fixed;
  -webkit-text-size-adjust: 100%;
}

#canvas {
  display: block;
  position: absolute;
}

.enter-vr-container {
  position: fixed;
  top: 0px;
  padding: 10px;
  margin: auto;
  right: 0px;
  left: 0px;
  text-align: center;
}

.enter-vr-button {
  width: 50px;
  height: 50px;
  display: inline-block;
  background-image: url('./svg/google-cardboard.svg');
  background-size: cover;
  background-position: 50% 50%;
}

.VR {
  display: inline-block;
  position: absolute;
  color: #000;
  bottom: 5px;
  right: 5px;
}

.exitVR {
  display: inline-block;
  position: absolute;
  color: #000;
  top: 5px;
  left: 5px;
}

.hidden {
  visibility: hidden !important;
}

.hiddenForVR {
  visibility: hidden !important;
}

.splash,
.section, #rotate-your-phone {
  display: table;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  text-align: center;
  background-color: #000;
}

.rotate-icon {
  width: 69px;
  height: 55.5px;
  background-image: url('./images/rotate-device.png');
  background-position: center;
  background-size: 69px 55.5px;
  display: inline-block;
  padding: 0;
  margin: 0;
  margin-top: 38.5px;
}

.social-container{
  right: 0;
  top: 0;
  margin-right: 5px;
  position: absolute;
  display: inline-block;
  width: 60px;
  height: 100%;
  fill: black;
  opacity: 0.6;
}

.social-container svg{
  display: inline-block;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  height: 15px !important;
}

#twitter-share{
  margin-left: 10px;
}

#twitter-share:hover{
  fill: rgb(150,150,150);
  transition: fill 0.2s;
}

#fb-share:hover{
  fill: rgb(150,150,150);
  transition: fill 0.2s;
}

#about,
.background, .rotate {
  background-image: url('./images/background.jpg');
  background-size: cover;
  background-position: 50% 50%;
}

.splash {
  font-family: 'DINNextRoundedLTProRegular', Helvetica, sans-serif;
  flex-flow: column;
  justify-content: space-between;
  align-items: stretch;
  letter-spacing: 0.05em;
}

.splash a {
  text-decoration: none;
  color: inherit;
}

.splash header{
  background: transparent;
  height: 46px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-size: 12px;
  width: 100%;
  position: absolute;
  transform: translateY(-100%);
}

.splash header > div {
  display: flex;
  align-items: center;
  height: 100%;
}

.splash header svg,
.splash header span {
  margin-left: 7px;
}

.splash header svg {
  height: 22px;
  fill: currentColor;
}

.splash header span {
  height: 18px;
  right: 14px;
  position: relative;
  margin-left: 20px;
  display: none;
  opacity: 0;
}

.splash header span:hover{
  color: rgb(150,150,150);
  transition: color 0.2s;
}

#experience-header{
  height: 45px;
}

.splash section {
  position: relative;
  top: 20%;
  height: 60%;
  font-family: 'DINNextRoundedLTProLight', Helvetica, sans-serif;
  display: flex;
  justify-content: space-around;
  align-content: center;
  align-items: center;
  -webkit-flex-direction: column; /* works with row or column */
  flex-direction: column;
  vertical-align: middle;
}

.splash section h1 {
  font-weight: normal;
  opacity: 0.6;
}

.splash section span.caption,
.splash section > *:not(:last-child) {
  transform: translateY(300%);
  opacity: 0;
}

.splash section .canvas-container {
  transform: translateY(50%);
  opacity: 0;
}

.splash section > div:first-child img {
  height: 100%;
}

.splash section h1 {
  font-size: 20px;
  margin-top: 32px;
  margin-bottom: 7px;
}

.splash section p {
  font-size: 11px;
  color: #b7b7b7;
  opacity: 0.4;
}

.title-text{
  position: relative;
}

.nfb-logo{
  height: 18px !important;
  width: 50px !important;
  margin-left: 7px;
  margin-top: 10px;
  margin-bottom: 9px;
}

.nfb-logo:hover{
  fill: rgb(150,150,150);
  transition: fill 0.2s;
}

.portal-button {
  position: relative;
  display: inline-block;
  cursor: pointer;
  transition: transform 0.3s;
}

.portal-button .canvas-container {
  margin: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.portal-button span.caption {
  font-size: 7.5px;
  opacity: 0;
  display: block;
  overflow: hidden;
  font-family: 'DINNextRoundedLTProLight', Helvetica, sans-serif;
  letter-spacing: 1.5px;
}

.portal-button span.caption span {
  display: block;
  transition: all 0.3s;
  position: relative;
  font-family: 'DINNextRoundedLTProLight', Helvetica, sans-serif;
  opacity: 0.45;
}

.portal-button span.caption span:after {
  position: absolute;
  display: block;
  width: 100%;
  left: 0;
}

.portal-button:hover span.caption span {
  transform: translateY(-100%);
}

#start-experience-button:hover span.caption span:after{
  content: '360°';
}

#end-restart-button:hover span.caption span:after{
  content: 'Click to restart';
}

#bear-71-logo {
  height: 25%;
}

footer {
  height: auto;
  display: flex;
  justify-content: space-between;
  position: absolute;
  bottom: 0px;
  width: 100%;
  align-items: flex-start;
}

.splash footer > * {
  transform: translateY(300%);
  opacity: 0;
}

.pill-button {
  height: 1.875rem;
  border-radius: calc(1.875rem / 2);
  background: transparent;
  border: 1px solid rgba(81,81,81,0.4);
  color: #fff;
  text-transform: uppercase;
  font-size: 10px;
  margin: 1.25rem;
  transition: all 0.5s;
  overflow: hidden;
  letter-spacing: 0.1em;
  font-family: 'DINNextRoundedLTProRegular', Helvetica, sans-serif;
  padding-top: 0.5em;
}

.pill-button > span {
  display: block;
  transition: all 0.3s;
  margin-bottom: 2px;
  opacity: 0.6;
}

.pill-button > span:last-child {
  position: absolute;
  transform: translateY(100%);
  opacity: 0;
  color: #000;
}

.pill-button:hover {
  background: #fff;
  transform: scale(1.1);
}

.pill-button > span:last-child > svg {
  fill: black;
}

.pill-button > span:first-child > svg {
  fill: white;
}

.pill-button:hover > span:first-child {
  transform: translateY(-1.875rem);
  opacity: 0;
}

.pill-button:hover > span:last-child {
  transform: translateY(-100%);
  opacity: 1;
}

#original-experience-button{
  visibility: hidden;
  pointer-events: none;
}

#original-experience-button > button > span > svg{
  vertical-align: middle;
  height: 0.5rem;
  margin-left: 0.5rem;
}

#story-button{
  padding-left: 1.85rem; 
  padding-right: 2rem; 
  margin: 0; 
  display: none;
  transition: background-color 0.3s;
}

#story-button > span:last-child{
  color: currentColor;
}

.story-button-container {
  position: absolute;
  right: 12px;
  top: 12px;
  transition: transform 0.3s, color 0.3s;
}

#story-menu {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  -webkit-overflow-scrolling: touch;
  overflow: hidden;
  position: fixed;
  color: #888;
}

#story-menu ol {
  overflow-y: scroll;
  list-style: none;
  height: 80%;
  width: 50%;
  font-size: 1rem;
  padding: 0;
  margin: 0;
  text-align: center;
  text-transform: uppercase;
  display: inline-block;
  flex-flow: column wrap;
  justify-content: flex-start;
  align-items: center;
  font-family: 'DINProCondensedRegular', Helvetica, sans-serif;
  letter-spacing: 0.07em;
  transform-style: preserve-3d;
  perspective: 400px;
  backface-visibility: hidden;
}

#story-menu ol li {
  display: block;
  transition: background 0.4s, color 0.4s;
  transition-timing-function: cubic-bezier(0.95, 0.05, 0.795, 0.035);
  padding: 0.5rem 1rem;
  margin: 0.5rem 0;
  background: -webkit-linear-gradient(left, #2b2f36, #2b2f36) no-repeat 0px 60px;
  background: -o-linear-gradient(left, #2b2f36, #2b2f36) no-repeat 0px 60px;
  background: -moz-linear-gradient(left, #2b2f36, #2b2f36) no-repeat 0px 60px;
  background: linear-gradient(left, #2b2f36, #2b2f36) no-repeat 0px 60px;
  cursor: pointer;
  transform-origin: 0 0 -100px;
}

.story-menu-hover {
  transition: background 0.5s, color 0.5s !important;
  transition-timing-function: cubic-bezier(0.190, 1.000, 0.220, 1.000) !important;
  background: -webkit-linear-gradient(left, #2b2f36, #2b2f36) no-repeat 0px 0px !important;
  background: -o-linear-gradient(left, #2b2f36, #2b2f36) no-repeat 0px 0px !important;
  background: -moz-linear-gradient(left, #2b2f36, #2b2f36) no-repeat 0px 0px !important;
  background: linear-gradient(left, #2b2f36, #2b2f36) no-repeat 0px 0px !important;
  color: #fff !important;
  display: inline-block;
  transform-origin: 0 0 -100px !important;
}

#about {
  visibility: hidden;
  position: absolute;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  color: #b7b7b7;
  font-family: 'DINNextRoundedLTProLight', Helvetica, sans-serif;
}

.close-button {
  position: fixed;
  top: 5px;
  right: 50px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  transition: background-color 0.5s;
  overflow: hidden;
  border: 1px solid;
}

.close-button:hover {
  cursor: pointer;
}

.close-button div {
  width: 25%;
  height: 25%;
  transform: translate(-50%, -50%);
  position: relative;
  left: 50%;
  top: 50%;

}

.close-button svg {
  display: block;
  fill: currentColor;
  transition: all 0.5s;
  -webkit-backface-visibility: hidden;
}

.close-button:hover svg {
  fill: currentColor;
  transform: rotate(180deg);
}

#close-about{
  display: none;
  top: 30px;
  border-color: rgba(81,81,81,0.4);
}

#story-close-button{
  display: none;
  opacity: 0;
  top: 12px;
  right: 12px;
}

#about-content {
  width: 70%;
  max-width: 768px;
  margin: 40px auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

#about-content .side-title {
  width: 30%;
  text-transform: uppercase;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: 0.1em;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#about-content .side-title .fix-container {
  position: fixed;
}

#about-content .side-title .title {
  margin-bottom: 1rem;
  transition: all 0.3s ease-out;
  cursor: pointer;
  transform: translateY(-750%);
  opacity: 0;
}

#about-content .side-title .title:hover,
#about-content .side-title .title.active {
  color: #fff;
  transform: translateX(10%);
}

#about-content .side-title .title.active {
  cursor: default;
}

#copy-container {
  width: 70%;
  min-height: 100vh;
}

#about-content .copy {
  display: none;
  font-size: 1rem;
  line-height: 1.346;
  letter-spacing: 0.03em;
  transition: all 0.7s;
}

#about-content .copy.active {
  display: block;
}

#about-content .copy:not(.active) p,
#about-content .copy:not(.active) section {
  opacity: 0;
}

#about-content .copy p {
  margin-bottom: 2rem;
}

#about-content .copy p.large {
  color: #fff;
  font-size: 1.5rem;
}

#credits-copy section {
  margin-bottom: 2rem;
}

#credits-copy section > div {
  margin-bottom: 0.5rem;
}

#credits-copy section.logos {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 3rem 0 10rem;
}

#credits-copy section.logos img {
  width: 25%;
}

#about-content .copy strong {
  font-family: 'DINNextRoundedLTProRegular', Helvetica, sans-serif;
  display: block;
  margin: 1.5rem 0 0.5rem;
}

.section-content {
  display: table-cell;
  vertical-align: middle;
}

.section-subheader {
  font-family: 'DINProCondensedMedium', Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  line-height: 16px;
  font-size: 11.07px;
  margin-top: 10px;
  -webkit-font-smoothing: antialiased;
}

.splash-copy {
  text-align: center;
  margin-top: 5px;
  line-height: 14px;
  font-size: 11px;
  -webkit-font-smoothing: antialiased;
  margin-top: 5px;
}

p {
  margin: 0;
  padding: 0;
}

figure.section-header {
  color: white;
  background-color: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  background-size: cover;
  background-position: center center;
  display: inline-block;
  outline: 0;
  background-repeat: no-repeat;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

figure.section-header {
  width: 200px;
  height: 44px;
  background-size: contain;
  background-image: url('./images/splash-header-2.gif');
  margin-top: 50px;
}

.IIV::-webkit-media-controls-play-button,
.IIV::-webkit-media-controls-start-playback-button {
  opacity: 0;
  pointer-events: none;
  width: 5px;
}

#end-screen{
  display: flex;
  justify-content: space-around;
  align-content: center;
  align-items: center;
  -webkit-flex-direction: column; /* works with row or column */
  flex-direction: column;
  vertical-align: middle;
  position: absolute;
  width: 100%;
  height: 100%;
  text-align: center;
}

.mute-button{
  width: 46px;
  height: 42px;
  position: absolute;
  right: 0;
  bottom: 0;
  margin-right: 35px;
  margin-bottom: 15px;
  cursor: pointer;
  display: none;
  /*transform: translate(30px, 100px);*/
  opacity: 0.6;
}

.mute-button #mute-off,
.mute-button #mute-on,{
  display: none;
  fill: inherit;
}

.mute-button svg{
  width: 17px;
  height: 19px;
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#ios-screen{
  position: absolute;
  width: 100%;
  height: 100%;
}

#ios-screen-content{
  position: absolute;
  width: 100%;
  text-align: center;
  top: 10%;
  height: 60%;
  font-family: 'DINNextRoundedLTProLight', Helvetica, sans-serif;
  display: flex;
  justify-content: space-around;
  align-content: center;
  align-items: center;
  -webkit-flex-direction: column; /* works with row or column */
  flex-direction: column;
  vertical-align: middle;
}

.centered-footer {
  position: absolute;
  text-align: center;
  width: 100%;
  bottom: 0px;
}

@media (orientation: portrait) {
  #ios-screen{
    display: none !important;
  }
}

#ios-screen h1{
  font-size: 24px;
  position: relative;
  font-weight: normal;
}

#ios-button{
  display: none;
}

#ios-button:hover span.caption span:after{
  content: 'VR ON iOS';
}

#ios-instructions{
  width: 100%;
  display: flex;
  justify-content: center;
  align-content: center;
  align-items: center;
  -webkit-flex-direction: row; /* works with row or column */
  flex-direction: row;
  vertical-align: middle;
}

.ios-step{
  position: relative;
  display: inline-block;
  width: 130px;
}

.ios-step img{
  width: 50px;
  margin: auto;
}

.step-icon{
  width: 60px;
  height: 60px;
  margin: 30px;
  position: relative;
}

#launch-instructions{
  width: 110px;
  margin-left: -5px;
}


.step-text-container{
  font-size: 14px;
  width: 120px;
  display: inline-block;
  color: #8b8b8b;
}

#instructions-close{
  position: absolute;
  top: 15px;
  right: 15px;
  border-color: rgba(81,81,81,0.4);
}

.step-arrow{
  margin: 15px;
  position: relative;
  display: inline-block;
  width: 15px;
  height: 15px;
}

body .desktopOnly {
  font-size: 2vh;
  position: initial;
}

.desktopOnly #experience-header {
  padding-left: 5px;
}

.desktopOnly .splash header {
  z-index: 50;
  font-size: 14px;
  background: #fff;
  color: #000;
  border-bottom: 1px solid #d2d2d2;
}

.desktopOnly .splash header svg {
  margin-left: 12px;
}

.desktopOnly .splash header span {
  margin-left: 24px;
  top: 1px;
}

.desktopOnly .splash section {
  margin-top: 40px;
}

.desktopOnly .splash section > div:first-child img {
  height: 5.25rem;
}

.desktopOnly .splash section h1 {
  font-size: 38px;
}

.desktopOnly .splash section p {
  font-size: 13px;
}

.desktopOnly .splash section .button {
  margin: 3.75rem 0.78rem 0;
}

.desktopOnly .splash section figure div {
  width: 4rem;
}

.desktopOnly .portal-button span.caption {
  font-size: 9px;
}

.desktopOnly .pill-button {
  height: 2.5rem;
  border-radius: 1.25rem;
  font-size: 0.7rem;
  outline: none;
  cursor: pointer;
}

.desktopOnly #original-experience-button > button > span > svg {
  height: 1rem;
}

.desktopOnly #story-menu{
  visibility: hidden;
  overflow: initial;
}

.desktopOnly #story-menu ol {
  overflow-y: hidden;
  font-size: 1.5rem;
  height: 90%;
  width: 80%;
  display: flex;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%);
}

.desktopOnly .story-button-container{
  top: 67px;
  right: 18px; 
}

.desktopOnly .close-button{
  width: 47px;
  height: 47px;
}

.desktopOnly #story-close-button{
  top: 62px;
  right: 16px;
}

.desktopOnly .nfb-logo{
  margin-top: 5px;
  margin-left: initial;
  margin-bottom: initial;
}

.desktopOnly .social-container{
  margin-right: 0;
  width: 81px;
}

.desktopOnly .social-container svg{
  height: 15px !important;
}

.desktopOnly #twitter-share{
  margin-left: 5px;
  height: 13px !important;
}

.desktopOnly #fb-share{
  height: 14px !important;
}

.desktopOnly #end-restart-button span{
  font-size: 21px;
  overflow: visible;
}

.desktopOnly .mute-button{
  margin-right: 34px;
  margin-bottom: 18px;
}
