@font-face {
  font-family: 'phosphate';
  src: url(../fonts/PhosphateInline.ttf);
}

@font-face {
  font-family: 'MyWebFont';
  src: url('webfont.eot'); /* IE9 Compat Modes */
  src: url('webfont.eot?#iefix') format('embedded-opentype'),
    /* IE6-IE8 */ url('webfont.woff2') format('woff2'),
    /* Super Modern Browsers */ url('webfont.woff') format('woff'),
    /* Pretty Modern Browsers */ url('webfont.ttf') format('truetype'),
    /* Safari, Android, iOS */ url('webfont.svg#svgFontName') format('svg'); /* Legacy iOS */
}

body {
  font-family: 'Raleway', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  background-color: #ffffff;
  color: #000000;
}
img {
  width: 100%;
  height: auto;
  vertical-align: middle;
}
a {
  text-decoration: none;
}

/* Splash/Landing screen */
.splash-screen {
  position: relative;
  overflow: hidden;
  height: 100vh;
  background-image: url(../assets/splash-screen.jpg);
  background-size: auto 100%;
  background-repeat: no-repeat;
  background-position: 100% center;
  animation: road 60s linear alternate infinite;
}
.splash-screen a {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  width: 370px;
  max-width: 100%;
}
.splash-screen a img {
  width: 100%;
  height: auto;
  vertical-align: middle;
}
.splash-screen a:before {
  display: block;
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(../assets/splash-title-glow.png);
  background-size: 100% auto;
  background-position: center center;
}

.lang-screen {
  position: relative;
  overflow: hidden;
  height: 100vh;
  background-image: url(../assets/splash-screen.jpg);
  background-size: auto 100%;
  background-repeat: no-repeat;
  background-position: 100% center;
  animation: road 60s linear alternate infinite;
}

.lang-img {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -15%);
}

.lang-img:before {
  display: block;
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/title-click-glo-wel.png');
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: top center;
}

.lang-link {
  position: absolute;
  display: block;
  padding: 4%;
  width: 25%;
  background-color: red;
  opacity: 0;
}

.eng {
  margin-left: 16%;
  margin-top: -15%;
}

.cy {
  margin-left: 55%;
  margin-top: -15%;
}

@keyframes road {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 100% center;
  }
}

/* Guide screen */
.img-guide {
  position: absolute;
  bottom: 17%;
  left: 13%;
  width: 35%;
}

.img-guide:before {
  display: block;
  position: absolute;
  content: '';
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 100% auto;
  background-position: center center;
  background-image: url('../assets/guide/guide-glo.jpg');
}

.guide-next {
  position: absolute;
  bottom: 0%;
  right: 5%;
  width: 30%;
}

.guide-next:before {
  display: block;
  position: absolute;
  content: '';
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 100% auto;
  background-position: center center;
  background-image: url('../assets/guide/guide-next-glo.jpg');
}

/* Menu screen */
.menu {
  display: flex;
  flex-wrap: wrap;
  padding: 10px;
  margin: 0 auto;
  max-width: 500px;
  align-items: flex-start;
}
.menu-button {
  position: relative;
  flex: 0 0 33.33%;
  max-width: 33.33%;
  box-sizing: border-box;
}
.menu-button:before {
  display: block;
  position: absolute;
  content: '';
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 100% auto;
  background-position: center center;
}
.menu--beaver:before {
  background-image: url('../assets/menu/beaver-high.jpg');
}
.menu--platypus:before {
  background-image: url('../assets/menu/plat-high.jpg');
}
.menu--croc:before {
  background-image: url('../assets/menu/croc-high.jpg');
}
.menu--rabbit:before {
  background-image: url('../assets/menu/rabbit-high.jpg');
}
.menu--hippo:before {
  background-image: url('../assets/menu/hippo-high.jpg');
}
.menu--giraffe:before {
  background-image: url('../assets/menu/giraffe-high.jpg');
}
.menu--octo:before {
  background-image: url('../assets/menu/octo-high.jpg');
}
.menu--fox:before {
  background-image: url('../assets/menu/fox-high.jpg');
}
.menu--mouse:before {
  background-image: url('../assets/menu/mouse-high.jpg');
}
@keyframes fade {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Components + Utilities */
.breakpoint--bottom {
  position: absolute;
  width: 100%;
  height: 100px;
  bottom: 20%;
}

.breakpoint--top {
  position: absolute;
  width: 100%;
  height: 100px;
  top: 0;
}

.button__back img {
  width: 9vw;
  cursor: pointer;
  position: fixed;
  z-index: 2000;
  border-radius: 50%;
  margin: 4% 0 0 3%;
}

.anchor {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
}

.hidden {
  display: none;
}

.bg {
  position: relative;
  z-index: 4;
  overflow-x: hidden;
}

.bg-white {
  background-color: white;
}

.btn {
  border: none;
  background-color: transparent;
}

#story {
  position: relative;
}

/*
 * Fade
 * Add fade animation to element or pseudo element
 */
.fade,
.fade--before:before {
  animation: fade 1s infinite alternate;
}

/*
 * Fixed image
 * Fixes image on scroll
 * <section class="fixed">
 *   <img class="fixed__img">
 * </section>
 */
.fixed__img.js-fix {
  position: fixed;
  top: 0;
}

/*
 * Animation reset
 * Reset the transform of an element by adding .js-play class
 */
.js-play .anim-reset {
  transform: rotate(0deg) translate(0, 0) scale(1);
}

/* Sprites, give them enough height to scroll through frames */
.sprite {
  height: 150vh;
}

/*
 * Object
 * Clickable items
 * <button class="object object--[name]">
 *   :before (highlight)
 *   <img> (no outlines)
 *   :after (red/green outline)
 * </button>
 */
.object {
  position: absolute;
  padding: 0;
  background-color: transparent;
  border: none;
  cursor: pointer;
}
.object:before,
.object:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}
.object[data-clicked='true']:before,
.object[data-clicked='false']:after {
  display: none;
}
.object[data-clicked='false']:before,
.object[data-clicked='true']:after {
  display: block;
}

/* Scroll Prompt */
.scroll-prompt {
  position: absolute;
  right: 70px;
  width: auto;
  height: 60px;
  background-color: red;
  z-index: 20;
}

.scroll-prompt > div {
  position: absolute;
  display: block;
  content: '';
  width: 40px;
  height: 40px;
  margin: 0 8px;
  background-color: yellow;
  border-radius: 50%;
  animation: dots 2s infinite;
}

@keyframes dots {
  0% {
    bottom: 0;
    opacity: 0.1;
  }
  5% {
    opacity: 0.5;
  }
  10% {
    opacity: 1;
  }
  70% {
    opacity: 0.75;
  }
  80% {
    opacity: 0.5;
  }
  100% {
    opacity: 0.1;
    bottom: 100%;
  }
}

.end {
  position: absolute;
  top: 14%;
  left: 11%;
  width: 75%;
}

/* landscape block */
#landscape-block {
  position: fixed;
  display: none;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  background-size: auto 100%;
  background-position: center bottom;
  background-color: white;
  z-index: 10001;
}

.center {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.mobile-icon {
  padding: 20px;
  background: white;
  width: 20%;
}

/* CREDITS */

footer {
  display: flex;
  justify-content: space-between;
}

.credits-screen {
  padding: 50px;
  color: #3a3b3c;
}

.credit-text {
  font-size: 17px;
  line-height: 30px;
  font-weight: 1000;
  text-transform: uppercase;
  font-family: 'Lilita One', sans-serif;
}

.credit-text a {
  color: #3a3b3c;
  text-decoration: underline;
}

.credits-link {
  margin: 10px 20px;
  font-size: 20px;
  line-height: 24px;
  font-weight: 1000;
  color: #3a3b3c;
  text-decoration: underline;
  font-family: 'Lilita One', sans-serif;
}

@media screen and (orientation: landscape) {
  #landscape-block {
    display: block;
  }
}
