html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

@font-face {
	font-family: 'SonoraPro';
	src: url('../fonts/SonoraProOT-MediumItalic.eot');
	src: url('../fonts/SonoraProOT-MediumItalic.woff') format('woff'), url('../fonts/SonoraProOT-MediumItalic.ttf') format('truetype'), url('../fonts/SonoraProOT-MediumItalic.svg') format('svg');
	font-weight: normal;
	font-style: normal;
}

@font-face {
    font-family: 'Canter';
    src: url('../fonts/canter_bold.eot');
    src: url('../fonts/canter_bold.eot?#iefix') format('embedded-opentype'),
         url('../fonts/canter_bold.woff') format('woff'),
         url('../fonts/canter_bold.ttf') format('truetype'),
         url('../fonts/canter_bold.svg#canterbold') format('svg');
    font-weight: normal;
    font-style: normal;
}

div#preloader { position: fixed; left: 0; top: 0; z-index: 9999; width: 100%; height: 100%; overflow: visible; background: #ffffff url('../img/Preloader_2.gif') no-repeat center center; }

html, body {
	background-color: #ced9e2;
}

body {
	font-family: 'Roboto Condensed', sans-serif;
	-webkit-font-smoothing: antialiased;
}

:focus {
    outline: none;
}

h2 {
	color: #455560;
    font-family: 'Canter', sans-serif;
    text-transform: uppercase;
    margin: 40px 0 auto;
    line-height: 0.75;
    font-size: 7rem;
	text-shadow: 2px 2px #cedae3;
}

h4 {
	color: #455560;
    font-family: 'SonoraPro', serif;
    margin: 0 auto;
    line-height: 1;
    font-size: 5rem;
    font-weight: normal;
	text-shadow: 1px 3px #ced9e2;
}

.container {
	width: 100vw;
	height: 100vh;
	overflow-x: hidden;
	min-height: 800px;
}

.scene {
	width: 100vw;
	height: 100vh;
	overflow-x: hidden;
	background-color: #ced9e2;
	position: absolute;
	top: 0;
	left: 0;
	min-height: 800px;
	
	/*height: 630px;*/
}

#scene01 {
	-webkit-animation: sceneMove 2s forwards linear;
	        animation: sceneMove 2s forwards linear;
	-webkit-animation-timing-function: cubic-bezier(0.4,0.38,0.38,0.5);
	        animation-timing-function: cubic-bezier(0.4,0.38,0.38,0.5);
	-webkit-animation-delay: 9s;
	        animation-delay: 9s;
}

#train {
	-webkit-animation: trainMove 6s forwards linear;
	        animation: trainMove 6s forwards linear;
	-webkit-animation-timing-function: cubic-bezier(0.4,0.38,0.38,0.5);
	        animation-timing-function: cubic-bezier(0.4,0.38,0.38,0.5);
	-webkit-animation-delay: 4s;
	        animation-delay: 4s;
}

#train img {
	width: 71.333%;
}

#mountains img {
	width: 228.333%;
	-webkit-animation: bkgMove 6s forwards linear;
	        animation: bkgMove 6s forwards linear;
	-webkit-animation-timing-function: cubic-bezier(0.4,0.38,0.38,0.5);
	        animation-timing-function: cubic-bezier(0.4,0.38,0.38,0.5);
	-webkit-animation-delay: 4s;
	        animation-delay: 4s;
}

#bear img {
	width: 100%;
	-webkit-transform: translateY(-100%);
	        transform: translateY(-100%);
	-webkit-animation: toyFall 1.5s forwards linear;
	        animation: toyFall 1.5s forwards linear;
	-webkit-animation-timing-function: cubic-bezier(0.4,0.38,0.38,0.5);
	        animation-timing-function: cubic-bezier(0.4,0.38,0.38,0.5);
	-webkit-animation-delay: 0s;
	        animation-delay: 0s;
}

#soldier img {
	width: 100%;
	-webkit-transform: translateY(-100%);
	        transform: translateY(-100%);
	-webkit-animation: toyFall 1.5s forwards linear;
	        animation: toyFall 1.5s forwards linear;
	-webkit-animation-timing-function: cubic-bezier(0.4,0.38,0.38,0.5);
	        animation-timing-function: cubic-bezier(0.4,0.38,0.38,0.5);
	-webkit-animation-delay: 1s;
	        animation-delay: 1s;
}

#penguin img {
	width: 100%;
	-webkit-transform: translateY(-100%);
	        transform: translateY(-100%);
	-webkit-animation: toyFall 1.5s forwards linear;
	        animation: toyFall 1.5s forwards linear;
	-webkit-animation-timing-function: cubic-bezier(0.4,0.38,0.38,0.5);
	        animation-timing-function: cubic-bezier(0.4,0.38,0.38,0.5);
	-webkit-animation-delay: 1.5s;
	        animation-delay: 1.5s;
}

#star img {
	width: 100%;
	-webkit-transform: translateY(-100%);
	        transform: translateY(-100%);
	-webkit-animation: toyFall 1.5s forwards linear;
	        animation: toyFall 1.5s forwards linear;
	-webkit-animation-timing-function: cubic-bezier(0.4,0.38,0.38,0.5);
	        animation-timing-function: cubic-bezier(0.4,0.38,0.38,0.5);
	-webkit-animation-delay: 0.5s;
	        animation-delay: 0.5s;
}

#candy img {
	width: 100%;
	-webkit-transform: translateY(-100%);
	        transform: translateY(-100%);
	-webkit-animation: toyFall 1.5s forwards linear;
	        animation: toyFall 1.5s forwards linear;
	-webkit-animation-timing-function: cubic-bezier(0.4,0.38,0.38,0.5);
	        animation-timing-function: cubic-bezier(0.4,0.38,0.38,0.5);
	-webkit-animation-delay: 2s;
	        animation-delay: 2s;
}

#scene02 {
	-webkit-animation: sceneMove 2s forwards linear;
	        animation: sceneMove 2s forwards linear;
	-webkit-animation-timing-function: cubic-bezier(0.4,0.38,0.38,0.5);
	        animation-timing-function: cubic-bezier(0.4,0.38,0.38,0.5);
	-webkit-animation-delay: 16s;
	        animation-delay: 16s;
}

#city img {
	width: 228.333%;
	-webkit-animation: bkgMove 6s forwards linear;
	        animation: bkgMove 6s forwards linear;
	-webkit-animation-timing-function: cubic-bezier(0.4,0.38,0.38,0.5);
	        animation-timing-function: cubic-bezier(0.4,0.38,0.38,0.5);
	-webkit-animation-delay: 11s;
	        animation-delay: 11s;
}

#truck {
	-webkit-animation: truckMove 6s forwards linear;
	        animation: truckMove 6s forwards linear;
	-webkit-animation-timing-function: cubic-bezier(0.4,0.38,0.38,0.5);
	        animation-timing-function: cubic-bezier(0.4,0.38,0.38,0.5);
	-webkit-animation-delay: 11s;
	        animation-delay: 11s;
}

#truck img {
	width: 27.833%;
}

#boat img {
	-webkit-transform: translateX(62%);
	        transform: translateX(62%);
	width: 45.333%;
}

#port img {
	width: 228.333%;
	-webkit-animation: bkgMove 6s forwards linear;
	        animation: bkgMove 6s forwards linear;
	-webkit-animation-timing-function: cubic-bezier(0.4,0.38,0.38,0.5);
	        animation-timing-function: cubic-bezier(0.4,0.38,0.38,0.5);
	-webkit-animation-delay: 18s;
	        animation-delay: 18s;
}

#water img {
	width: 228.333%;
	-webkit-animation: waterMove 0.5s infinite linear;
	        animation: waterMove 0.5s infinite linear;
	-webkit-animation-timing-function: cubic-bezier(0.4,0.38,0.38,0.5);
	        animation-timing-function: cubic-bezier(0.4,0.38,0.38,0.5);
	-webkit-animation-delay: 18s;
	        animation-delay: 18s;
}

.greetings {
	width: 100%;
	text-align: center;
	display: inline-block;
	position: relative;
	-webkit-transform: translateY(-20px);
	        transform: translateY(-20px);
    opacity: 0;
	-webkit-animation: messageMove 1s forwards ease-out;
	        animation: messageMove 1s forwards ease-out;
	-webkit-animation-delay: 24s;
	        animation-delay: 24s;
}

.greetings .message {
	max-width: 310px;
    margin: 25% auto 0;
    /*background-color: rgba(206,218,227,0.8);*/
    background-color: rgba(255,255,255,0.8);
    padding: 10px 20px;
    border-radius: 10px;
}

.greetings p {
	line-height: 1.2;
	color: #455560;
    font-size: 1.125rem;
	margin: 0 auto 10px;
}

.greetings .fa {
	font-size: 2rem;
    margin-right: 10px;
	margin-top: 5px;
	cursor: pointer;
}

a {
	color: #7ac142;
	-webkit-transition: color 0.3s;
	transition: color 0.3s;
}

a:hover, a:focus {
	color: #f57b20;
	-webkit-transition: color 0.3s;
	transition: color 0.3s;
}

.scene div img {
	position: absolute;
    left: 0;
    right: 0;
}

#clouds img {
	width: 456.667%;
}

#scene01 #clouds img {
	left: 0;
	-webkit-animation: cloudsMove01 7s forwards linear;
	        animation: cloudsMove01 7s forwards linear;
	-webkit-animation-timing-function: cubic-bezier(0.4,0.38,0.38,0.5);
	        animation-timing-function: cubic-bezier(0.4,0.38,0.38,0.5);
	-webkit-animation-delay: 4s;
	        animation-delay: 4s;
}

#scene02 #clouds img {
	left: 0;
	-webkit-animation: cloudsMove01 7s forwards linear;
	        animation: cloudsMove01 7s forwards linear;
	-webkit-animation-timing-function: cubic-bezier(0.4,0.38,0.38,0.5);
	        animation-timing-function: cubic-bezier(0.4,0.38,0.38,0.5);
	-webkit-animation-delay: 11s;
	        animation-delay: 11s;
}

#clouds img {
	left: 0;
	-webkit-animation: cloudsMove 20s infinite linear;
	        animation: cloudsMove 20s infinite linear;
	-webkit-animation-timing-function: cubic-bezier(0.4,0.38,0.38,0.5);
	        animation-timing-function: cubic-bezier(0.4,0.38,0.38,0.5);
	-webkit-animation-delay: 18s;
	        animation-delay: 18s;
}

#snow {
    background-image: url('../img/s1.svg'), url('../img/s2.svg'), url('../img/s3.svg');
    height: auto;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 0;
    -webkit-animation: snow 10s linear infinite, fadeIn 4s linear forwards;
            animation: snow 10s linear infinite, fadeIn 4s linear forwards;
	/*animation-delay: 30s;*/
	opacity: 0;
    background-size: 50%;
	padding-top: 52.5%;
}

#mute, #unmute {
	color: #2459a9;
	position: absolute;
    z-index: 1000;
    right: 8px;
    top: 5px;
	cursor: pointer;
	background: none;
	border: none;
	-webkit-appearance: none;
    -moz-appearance: none;
}

.hide {
	display: none;
}

@-webkit-keyframes fadeIn {
	0% {
		opacity: 0;
	}

	100% {
		opacity: 1;
	}
}

@keyframes fadeIn {
	0% {
		opacity: 0;
	}

	100% {
		opacity: 1;
	}
}

@-webkit-keyframes snow {
	0% {
		background-position: 0px 0px, 0px 0px, 0px 0px;
		opacity: 1;
	}
	
	50% {
		background-position: -500px 500px, -100px 200px, -100px 150px;
		opacity: 1;
	}
	
	100% {
		background-position: -500px 1000px, -200px 400px, -100px 300px;
		opacity: 1;
	}
}

@keyframes snow {
	0% {
		background-position: 0px 0px, 0px 0px, 0px 0px;
		opacity: 1;
	}
	
	50% {
		background-position: -500px 500px, -100px 200px, -100px 150px;
		opacity: 1;
	}
	
	100% {
		background-position: -500px 1000px, -200px 400px, -100px 300px;
		opacity: 1;
	}
}

@-webkit-keyframes cloudsMove {
  0% {
	-webkit-transform: translateX(0);
	        transform: translateX(0);
  }

  100% {
	-webkit-transform: translateX(-50%);
	        transform: translateX(-50%);
  }
}

@keyframes cloudsMove {
  0% {
	-webkit-transform: translateX(0);
	        transform: translateX(0);
  }

  100% {
	-webkit-transform: translateX(-50%);
	        transform: translateX(-50%);
  }
}

@-webkit-keyframes cloudsMove01 {
  0% {
	-webkit-transform: translateX(0);
	        transform: translateX(0);
  }

  100% {
	-webkit-transform: translateX(-32.5%);
	        transform: translateX(-32.5%);
  }
}

@keyframes cloudsMove01 {
  0% {
	-webkit-transform: translateX(0);
	        transform: translateX(0);
  }

  100% {
	-webkit-transform: translateX(-32.5%);
	        transform: translateX(-32.5%);
  }
}

@-webkit-keyframes messageMove {
  0% {
	-webkit-transform: translateY(-20px);
	        transform: translateY(-20px);
	opacity: 0;
  }

  100% {
	-webkit-transform: translateY(0);
	        transform: translateY(0);
	opacity: 1;
  }
}

@keyframes messageMove {
  0% {
	-webkit-transform: translateY(-20px);
	        transform: translateY(-20px);
	opacity: 0;
  }

  100% {
	-webkit-transform: translateY(0);
	        transform: translateY(0);
	opacity: 1;
  }
}

@-webkit-keyframes toyFall {
  0% {
	-webkit-transform: translateY(-100%);
	        transform: translateY(-100%);
  }

  100% {
	-webkit-transform: translateY(0%);
	        transform: translateY(0%);
  }
}

@keyframes toyFall {
  0% {
	-webkit-transform: translateY(-100%);
	        transform: translateY(-100%);
  }

  100% {
	-webkit-transform: translateY(0%);
	        transform: translateY(0%);
  }
}

@-webkit-keyframes trainMove {
  0% {
	-webkit-transform: translateX(0%);
	        transform: translateX(0%);
  }

  20% {
	-webkit-transform: translateX(15%);
	        transform: translateX(15%);
  }

  60% {
	-webkit-transform: translateX(15%);
	        transform: translateX(15%);
  }

  100% {
	-webkit-transform: translateX(110%);
	        transform: translateX(110%);
  }
}

@keyframes trainMove {
  0% {
	-webkit-transform: translateX(0%);
	        transform: translateX(0%);
  }

  20% {
	-webkit-transform: translateX(15%);
	        transform: translateX(15%);
  }

  60% {
	-webkit-transform: translateX(15%);
	        transform: translateX(15%);
  }

  100% {
	-webkit-transform: translateX(110%);
	        transform: translateX(110%);
  }
}

@-webkit-keyframes truckMove {
  0% {
	-webkit-transform: translateX(0%);
	        transform: translateX(0%);
  }

  20% {
	-webkit-transform: translateX(36%);
	        transform: translateX(36%);
  }

  60% {
	-webkit-transform: translateX(36%);
	        transform: translateX(36%);
  }

  100% {
	-webkit-transform: translateX(110%);
	        transform: translateX(110%);
  }
}

@keyframes truckMove {
  0% {
	-webkit-transform: translateX(0%);
	        transform: translateX(0%);
  }

  20% {
	-webkit-transform: translateX(36%);
	        transform: translateX(36%);
  }

  60% {
	-webkit-transform: translateX(36%);
	        transform: translateX(36%);
  }

  100% {
	-webkit-transform: translateX(110%);
	        transform: translateX(110%);
  }
}

@-webkit-keyframes bkgMove {
  0% {
	-webkit-transform: translateX(0%);
	        transform: translateX(0%);
  }

  100% {
	-webkit-transform: translateX(-50%);
	        transform: translateX(-50%);
  }
}

@keyframes bkgMove {
  0% {
	-webkit-transform: translateX(0%);
	        transform: translateX(0%);
  }

  100% {
	-webkit-transform: translateX(-50%);
	        transform: translateX(-50%);
  }
}

@-webkit-keyframes waterMove {
  0% {
	-webkit-transform: translateX(0%);
	        transform: translateX(0%);
  }

  100% {
	-webkit-transform: translateX(-1.6%);
	        transform: translateX(-1.6%);
  }
}

@keyframes waterMove {
  0% {
	-webkit-transform: translateX(0%);
	        transform: translateX(0%);
  }

  100% {
	-webkit-transform: translateX(-1.6%);
	        transform: translateX(-1.6%);
  }
}

@-webkit-keyframes sceneMove {
  0% {
	-webkit-transform: translateX(0%);
	        transform: translateX(0%);
  }

  100% {
	-webkit-transform: translateX(-100%);
	        transform: translateX(-100%);
  }
}

@keyframes sceneMove {
  0% {
	-webkit-transform: translateX(0%);
	        transform: translateX(0%);
  }

  100% {
	-webkit-transform: translateX(-100%);
	        transform: translateX(-100%);
  }
}

/** 1440px Large Screens **/
@media only screen and (max-width: 90em) {
	/*.scene {
    	height: 95%;
		min-height: 667px;
	}*/
}

/** 1024px Medium Screens **/
@media only screen and (max-width: 64em) {
	/*.scene {
		min-height: 560px;
	}*/
}

/** 768px Small Screens **/
@media only screen and (max-width: 48em) {
	/*.scene {
    	height: 70%;
	}*/
	
	h2 {
    	font-size: 5rem;
	}
	
	h4 {
		font-size: 3rem;
	}
	
	.greetings p {
    	font-size: 1rem;
	}
}

@media only screen and (max-width: 46em) {
	
	.container, .scene {
    	min-height: 500px;
	}
}

@media only screen and (max-width: 41.688em) {
	/*.scene {
		min-height: 410px;
	}*/
}

@media only screen and (max-width: 35.5em) {
	/*.scene {
		min-height: 335px;
	}*/
}

/** 480px Smallest Screens **/
@media only screen and (max-width: 30em) {
	
	h2 {
    	font-size: 3rem;
		margin-top: 20px;
	}
	
	h4 {
		font-size: 1.75rem;
	}
	
	.greetings .message {
		max-width: 260px;
		padding: 10px 10px;
	}
	
	.greetings p {
		font-size: 0.875rem;
	}
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.hidden {
    display: none !important;
}

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap; /* 1 */
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    -webkit-clip-path: none;
    clip-path: none;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
    white-space: inherit;
}

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important;
        -webkit-box-shadow: none !important;
                box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }
    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
