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: #cfdbe4;
}

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

:focus {
    outline: none;
}

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

h2.language {
	font-weight: normal;
	font-size: 6.5rem;
	line-height: 1;
	font-family: Helvetica, Arial, sans-serif;
}

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

.container {
	width: 100vw;
	height: 100vh;
	overflow: hidden;
}

.scene {
	height: 90%;
	min-height: 840px;
	overflow: hidden;
	position: relative;
}

.scene > div {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 100%;
	vertical-align: middle;
}

.scene > div .greetings {
	position: relative;
	top: 0;
	right: 0;
	left: 0;
	height: 100%;
	vertical-align: middle;
}

.greetings {
	width: 14.285%;
	text-align: center;
	display: inline-block;
}

.greetings .message {
	max-width: 310px;
    margin: 10px auto 0;
    /*background-color: rgba(206,218,227,0.8);*/
    background-color: rgba(255,255,255,0.8);
    padding: 10px 20px;
    border-radius: 10px;
	transform: translateY(-20px);
    opacity: 0;
	animation: messageMove 1s forwards ease-out;
	animation-delay: 31s;
}

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

/*#words > div:nth-of-type(2) {
	left: 14.286%;
}

#words > div:nth-of-type(3) {
	left: 28.573%;
}

#words > div:nth-of-type(4) {
	left: 42.858%;
}

#words > div:nth-of-type(5) {
	left: 57.144%;
}

#words > div:nth-of-type(6) {
	left: 71.43%;
}

#words > div:nth-of-type(7) {
	left: 85.716%;
}*/

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

a {
	color: #e62526;
	transition: color 0.3s;
}

a:hover, a:focus {
	color: #be3932;
	transition: color 0.3s;
}

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

#cities, #words {
	width: 700%;
}

#clouds {
	width: 205%;
}

#water {
	width: 417.969%;
}

#clouds img {
	left: 0;
	animation: cloudsMove 28s forwards linear;
	animation-timing-function: cubic-bezier(0.4,0.38,0.38,0.5);
	animation-delay: 2s;
}

#water img {
	left: 0;
	bottom: 0;
	animation: waterMove 28s forwards linear;
	animation-timing-function: cubic-bezier(0.4,0.38,0.38,0.5);
	animation-delay: 2s;
}

#boat img {
	bottom: -1%;
}

#wave {
	width: 80%;
    height: 40%;
    position: absolute;
    bottom: 0;
    left: 10%;
    overflow: hidden;
}

#wave:after {
	content: '';
    width: 700%;
    height: 100%;
    background-image: url(../img/Wave.svg);
    position: absolute;
    bottom: -10%;
    left: 0;
    display: block;
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: bottom left;
	animation: waveMove 30s forwards linear;
	animation-timing-function: cubic-bezier(0.4,0.38,0.38,0.5);
	animation-delay: 2s;
}

#cities img {
	bottom: -1px;
	left: 0;
	animation: cityMove 28s forwards linear;
	animation-timing-function: cubic-bezier(0.4,0.38,0.38,0.5);
	animation-delay: 2s;
}

#words {
	top: -10px;
	left: 0;
	animation: wordsMove 28s forwards linear;
	animation-timing-function: cubic-bezier(0.4,0.38,0.38,0.5);
	animation-delay: 2s;
}

#snow {
    background-image: url('../img/s1.png'), url('../img/s2.png'), url('../img/s3.png');
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 0;
    animation: snow 20s linear infinite, fadeIn 4s linear forwards;
	animation-delay: 30s;
	opacity: 0;
}

#bottom {
	width: 100%;
    padding-bottom: 25%;
    background-color: #598ea9;
	position: relative;
	margin-top: -2px;
}

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

.hide {
	display: none;
}

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

	100% {
		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;
	}
}

@keyframes cityMove {
  0% {
	transform: translateX(0);
  }

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

@keyframes wordsMove {
  0% {
	transform: translateX(0);
  }

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

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

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

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

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

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

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

@keyframes waveMove {
  0% {
	transform: translateX(0);
  }

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

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

	#wave:after {
		
	}
}

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

	#wave:after {
		bottom: -8%;
	}
}

/** 768px Small Screens **/
@media only screen and (max-width: 48em) {
	.scene {
    	height: 70%;
	}
	
	#bottom {
		padding-bottom: 75%;
	}
	
	h2 {
    	font-size: 5rem;
	}
	
	h2.language {
    	font-size: 4.5rem;
	}
	
	h4 {
		font-size: 3rem;
	}
	
	.greetings p {
    	font-size: 1rem;
	}
	
	#clouds img {
		animation: cloudsMove 25s forwards ease-in-out;
	}

	#water img {
		animation: waterMove 25s forwards ease-in-out;
	}

	#wave:after {
		animation: waveMove 25s forwards ease-in-out;
	}

	#cities img {
		animation: cityMove 25s forwards ease-in-out;
	}

	#words {
		animation: wordsMove 25s forwards ease-in-out;
	}

	.greetings .message {
		animation: messageMove 1s forwards ease-out;
		animation-delay: 28s;
	}

	#snow {
		animation: snow 25s linear infinite, fadeIn 3s linear forwards;
		animation-delay: 27s;
	}
	
	#wave:after {
    	bottom: -7%;
	}
}

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

@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) {
	.scene {
    	height: 60%;
		min-height: 360px;
	}
	
	#bottom {
		padding-bottom: 150%;
	}
	
	h2 {
    	font-size: 3rem;
	}
	
	h2.language {
    	font-size: 2.5rem;
	}
	
	h4 {
		font-size: 1.75rem;
	}
	
	.greetings .message {
		max-width: 260px;
		padding: 10px 10px;
	}
	
	.greetings p {
		font-size: 0.875rem;
	}
	
	#wave:after {
    	bottom: -5%;
	}
}

/* ==========================================================================
   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;
        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;
    }
}
