/*! HTML5 Boilerplate v5.0 | MIT License | http://h5bp.com/ */

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;
}

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


/* ==========================================================================
   Author's custom styles
   ========================================================================== */
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; }


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

:focus {
    outline: none;
}

a {
	color: white;
	transition: color 1s;
}

body.night {
	background: #0e3343;
	transition: background 3s ease-in-out;
}

/*img {
	width: 100%;
}*/

.container {
	position: absolute;
    overflow: hidden;
    display: table;
    height: 100%;
    width: 100%;
	min-width: 800px;
	min-height: 680px;
    left: 0;
    top: 0;
}

ul {
	padding: 0;
	margin: 0;
	list-style: none;
}

#scene, .layer {
    display: block;
    height: 100vh;
    width: 100%;
    padding: 0;
    margin: 0;
	min-height: 680px;
}

#scene {
    /*background-color: #a1d9e2;*/
    position: relative;
    overflow: hidden;
}

.layer, .bottom {
	position: absolute;
	text-align: center;
}

.bottom {
	bottom: 0;
}

#stars img {
	max-width: 1350px;
	margin: 20px auto;
	width: 100%;
}

#clouds-01, #clouds-02 {
	text-align: left;
}

#clouds-01 img, #clouds-02 img {
    max-width: 200px;
	position: absolute;
	-webkit-animation: swing 4s infinite alternate cubic-bezier(0.455, 0.03, 0.515, 0.955);
    animation: swing 4s infinite alternate cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

#clouds-01 img:nth-of-type(1) {
	left: 3%;
    top: 3%;
}

#clouds-01 img:nth-of-type(2) {
	left: 50%;
    max-width: 150px;
    top: 20%;
}

#clouds-01 img:nth-of-type(3) {
	right: 5%;
    top: 8%;
    max-width: 180px;
}

#clouds-02 img:nth-of-type(1) {
	top: 8%;
    max-width: 160px;
    left: 12%;
}

#clouds-02 img:nth-of-type(2) {
	right: 13%;
    top: 14%;
    max-width: 140px;
}

#sun img, #moon img {
	max-width: 130px;
    position: absolute;
    top: 14%;
    left: 50%;
    -webkit-transform: translateX(-50%);
            transform: translateX(-50%);
}

#moon img {
	top: 100%;
}

#sun img.set {
	top: 100%;
	transition: top 3s ease-in;
}

#moon img.rise {
	top: 14%;
	transition: top 3s ease-out;
}

.city img {
	width: 110%;
	min-width: 1490px;
	margin-left: -55%;
	left: 50%;
	bottom: 0;
	opacity: 0.1;
}

img.skyline.dark {
	opacity: 1;
	transition: opacity 3s ease-in;
}

.crane img {
	width: 423px;
	right: 0;
	bottom: 170px;
	left: calc(100% + 190px);
	margin: 0 auto;
	-webkit-transform: translateX(190px);
	        transform: translateX(190px);
}

.crane img.move {
	left: 0;
	transition: left 6s ease-in-out;
}

.boat img {
	margin: 0 auto;
	width: 785px;
	bottom: 0;
	left: 0;
	right: 0;
}


img.lights, .boat img.light {
	opacity: 0;
}

img.lights.lights-on, .boat img.light.lights-on {
	opacity: 1;
	transition: opacity 3s ease-in;
}

.boat img.light.lights-on.glow:nth-of-type(2) {
	-webkit-animation: glowAnimation 2s infinite;
	        animation: glowAnimation 2s infinite;
}

.boat img.light.lights-on.glow:nth-of-type(3) {
	-webkit-animation: glowAnimation2 3s infinite;
	        animation: glowAnimation2 3s infinite;
}

.boat img.light.lights-on.glow:nth-of-type(4) {
	-webkit-animation: glowAnimation3 2s infinite;
	        animation: glowAnimation3 2s infinite;
}

#dock {
	width: 150%;
	left: 50%;
	bottom: 0;
	margin-left: -75%;
	height: 170px;
	background-color: #3f5a66;
}

/*.waves img {
	width: 120%;
	left: 50%;
	bottom: -300px;
	margin-left: -60%;
	-webkit-animation: wave 4s 0.1s infinite linear;
    -moz-animation: wave 4s 0.1s infinite linear;
    animation: wave 4s 0.1s infinite linear;
}

#scene li:nth-of-type(9) img {
	bottom: -175px;
}

#scene li:nth-of-type(10) img {
	bottom: -215px;
}

#scene li:nth-of-type(11) img {
	bottom: -265px;
}

#scene li:nth-of-type(9) img, #scene li:nth-of-type(11) img {
	left: 44%;
	-webkit-animation: wave 4.5s 0.1s infinite linear;
    -moz-animation: wave 4.5s 0.1s infinite linear;
    animation: wave 4.5s 0.1s infinite linear;
}*/

.wave {
	width: 120%;
	left: 50%;
	position: absolute;
	margin-left: -63%;
	background-image: url(../img/wave-pattern.png);
	background-repeat: repeat-x;
	height: 300px;
	background-size: 174px;
	bottom: -230px;
	-webkit-animation: wave 4s 0.1s infinite linear;
    animation: wave 4s 0.1s infinite linear;
}

#scene li:nth-of-type(11) .wave {
	bottom: -155px;
}

#scene li:nth-of-type(12) .wave {
	bottom: -180px;
}

#scene li:nth-of-type(13) .wave {
	bottom: -205px;
}

#scene li:nth-of-type(11) .wave, #scene li:nth-of-type(13) .wave {
	background-position: 87px 0;
	-webkit-animation: wave 4.5s 0.1s infinite linear;
    animation: wave 4.5s 0.1s infinite linear;
}

#greeting {
	opacity: 0;
	top: -100px;
	left: 5%;
	color: white;
	position: absolute;
	z-index: 1000;
	max-width: 310px;
}

#greeting.show {
	opacity: 1;
	top: 20%;
	transition: all 2s ease-out;
}

#greeting h1 {
	font-family: 'Rochester', cursive;
	font-weight: normal;
    margin: 0;
	font-size: 3rem;
}

#greeting h2 {
	margin: 0 auto 20px;
	font-size: 1.5rem;
}

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

a:hover, a:focus {
	color: #ffff7d;
	transition: color 1s;
}

#languages {
	color: white;
	position: absolute;
	top: 0;
	width: 100%;
	height: 100%;
	font-size: 1.5rem;
}

.language {
	position: absolute;
	top: -10%;
	opacity: 0.5;
}

#languages div:nth-child(odd) {
	font-family: 'Roboto Condensed', sans-serif;
	font-size: 1.25rem;
}

#languages div:nth-child(even) {
	font-family: 'Rochester', cursive;
}

#languages div:nth-child(1) {
	left: 5%;
}

#languages div:nth-child(2) {
	left: 10%;
}

#languages div:nth-child(3) {
	left: 15%;
}

#languages div:nth-child(4) {
	left: 20%;
}

#languages div:nth-child(5) {
	left: 25%;
}

#languages div:nth-child(6) {
	left: 30%;
}

#languages div:nth-child(7) {
	left: 35%;
}

#languages div:nth-child(8) {
	left: 40%;
}

#languages div:nth-child(9) {
	left: 45%;
}

#languages div:nth-child(10) {
	left: 50%;
}

#languages div:nth-child(11) {
	left: 55%;
}

#languages div:nth-child(12) {
	left: 60%;
}

#languages div:nth-child(13) {
	left: 65%;
}

#languages div:nth-child(14) {
	left: 70%;
}

#languages div:nth-child(15) {
	left: 75%;
}

#languages div:nth-child(16) {
	left: 80%;
}

#languages div:nth-child(17) {
	left: 85%;
}

#languages div:nth-child(18) {
	left: 90%;
}

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

.hide {
	display: none;
}

#languages div:nth-child(odd).drop {
	/*top: 100%;
	transition: all 5s;*/
	-webkit-animation: drop 18s infinite ease-in;
    animation: drop 18s infinite ease-in;
}

#languages div:nth-child(even).drop {
	/*top: 100%;
	transition: all 5s;*/
	-webkit-animation: drop 20s infinite ease-in;
    animation: drop 20s infinite ease-in;
}

#languages div:nth-child(1).drop {
	-webkit-animation-delay: 0s;
	        animation-delay: 0s;
}

#languages div:nth-child(2).drop {
	-webkit-animation-delay: 6s;
	        animation-delay: 6s;
}

#languages div:nth-child(3).drop {
	-webkit-animation-delay: 8s;
	        animation-delay: 8s;
}

#languages div:nth-child(4).drop {
	-webkit-animation-delay: 13s;
	        animation-delay: 13s;
}

#languages div:nth-child(5).drop {
	-webkit-animation-delay: 8s;
	        animation-delay: 8s;
}

#languages div:nth-child(6).drop {
	-webkit-animation-delay: 4s;
	        animation-delay: 4s;
}

#languages div:nth-child(7).drop {
	-webkit-animation-delay: 12s;
	        animation-delay: 12s;
}

#languages div:nth-child(8).drop {
	-webkit-animation-delay: 3s;
	        animation-delay: 3s;
}

#languages div:nth-child(9).drop {
	-webkit-animation-delay: 9s;
	        animation-delay: 9s;
}

#languages div:nth-child(10).drop {
	-webkit-animation-delay: 6s;
	        animation-delay: 6s;
}

#languages div:nth-child(11).drop {
	-webkit-animation-delay: 2s;
	        animation-delay: 2s;
}

#languages div:nth-child(12).drop {
	-webkit-animation-delay: 10s;
	        animation-delay: 10s;
}

#languages div:nth-child(13).drop {
	-webkit-animation-delay: 4s;
	        animation-delay: 4s;
}

#languages div:nth-child(14).drop {
	-webkit-animation-delay: 8s;
	        animation-delay: 8s;
}

#languages div:nth-child(15).drop {
	-webkit-animation-delay: 5s;
	        animation-delay: 5s;
}

#languages div:nth-child(16).drop {
	-webkit-animation-delay: 7s;
	        animation-delay: 7s;
}

#languages div:nth-child(17).drop {
	-webkit-animation-delay: 14s;
	        animation-delay: 14s;
}

#languages div:nth-child(18).drop {
	-webkit-animation-delay: 11s;
	        animation-delay: 11s;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@-webkit-keyframes wave {
  0% {
    -webkit-transform: rotateZ(0deg) translate3d(0,2.5%,0) rotateZ(0deg);
    transform: rotateZ(0deg) translate3d(0,2.5%,0) rotateZ(0deg);
  }

  100% {
    -webkit-transform: rotateZ(360deg) translate3d(0,2.5%,0) rotateZ(-360deg);
    transform: rotateZ(360deg) translate3d(0,2.5%,0) rotateZ(-360deg);
  }
}

@keyframes wave {
  0% {
    -webkit-transform: rotateZ(0deg) translate3d(0,2.5%,0) rotateZ(0deg);
    transform: rotateZ(0deg) translate3d(0,2.5%,0) rotateZ(0deg);
  }

  100% {
    -webkit-transform: rotateZ(360deg) translate3d(0,2.5%,0) rotateZ(-360deg);
    transform: rotateZ(360deg) translate3d(0,2.5%,0) rotateZ(-360deg);
  }
}

@-webkit-keyframes swing {
  0% {
    -webkit-transform: rotateZ(5deg);
    transform: rotateZ(5deg);
  }

  100% {
    -webkit-transform: rotateZ(-5deg);
    transform: rotateZ(-5deg);
  }
}

@keyframes swing {
  0% {
    -webkit-transform: rotateZ(5deg);
    transform: rotateZ(5deg);
  }

  100% {
    -webkit-transform: rotateZ(-5deg);
    transform: rotateZ(-5deg);
  }
}

@-webkit-keyframes glowAnimation {
    0% { opacity: 1; }

    50% { opacity: 0.3; }

    100% { opacity: 1; }
}

@keyframes glowAnimation {
    0% { opacity: 1; }

    50% { opacity: 0.3; }

    100% { opacity: 1; }
}

@-webkit-keyframes glowAnimation2 {
    0% { opacity: 0.6; }

    25% { opacity: 0.3; }
	
	50% { opacity: 1; }

    75% { opacity: 0.3; }
	
	100% { opacity: 0.6; }
}

@keyframes glowAnimation2 {
    0% { opacity: 0.6; }

    25% { opacity: 0.3; }
	
	50% { opacity: 1; }

    75% { opacity: 0.3; }
	
	100% { opacity: 0.6; }
}

@-webkit-keyframes glowAnimation3 {
    0% { opacity: 1; }

    33% { opacity: 0.6; }
	
	66% { opacity: 0.3; }

    100% { opacity: 1; }
}

@keyframes glowAnimation3 {
    0% { opacity: 1; }

    33% { opacity: 0.6; }
	
	66% { opacity: 0.3; }

    100% { opacity: 1; }
}

@-webkit-keyframes drop {
    from { top: -10%; -webkit-transform: rotate(0deg); transform: rotate(0deg); }
	
    to { top: 95%; -webkit-transform: rotate(45deg); transform: rotate(45deg); }
}

@keyframes drop {
    from { top: -10%; -webkit-transform: rotate(0deg); transform: rotate(0deg); }
	
    to { top: 90%; -webkit-transform: rotate(45deg); transform: rotate(45deg); }
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

@media only screen and (max-width: 768px) {
	.container {
		min-width: 541px;
	}
	
	#stars img {
		width: 200%;
		left: 50%;
		position: absolute;
		margin-left: -100%;
		top: 8%;
	}
	
	#sun img, #moon img.rise {
		top: 5%;
	}
	
	#clouds-01 img:nth-of-type(3) {
		right: 4%;
		top: 2%;
	}
	
	#clouds-01 img:nth-of-type(2) {
		display: none;
	}
	
	#clouds-02 img:nth-of-type(2) {
		top: 6%;
	}
	
	#dock {
		bottom: -24px;
	}
	
	.crane img {
		bottom: 146px;
		width: 270px;
		left: calc(100% + 120px);
    	-webkit-transform: translateX(120px);
    	        transform: translateX(120px);
	}
	
	.boat img {
		width: 500px;
		bottom: 40px;
	}
	
	.wave {
		background-size: 94px;
	}
	
	#scene li:nth-of-type(10) .wave, #scene li:nth-of-type(12) .wave {
		background-position: 49px 0;
	}
	
	#scene li:nth-of-type(11) .wave {
    	bottom: -165px;
	}
}

@media only screen and (max-width: 540px) {
	.container {
		min-width: 320px;
		min-height: 590px;
	}
    
    #scene {
        min-height: 590px;
    }
	
	#sun img, #moon img {
    	max-width: 90px;
	}
	
	#stars img {
    	width: 300%;
	}
	
	#clouds-01 img:nth-of-type(3) {
		display: none;
	}
	
	#clouds-01 img:nth-of-type(1) {
		left: 3%;
		top: 3%;
		max-width: 140px;
	}
	
	#clouds-02 img:nth-of-type(1) {
		top: 8%;
		max-width: 110px;
		left: 18%;
	}
	
	#clouds-02 img:nth-of-type(2) {
		top: 1%;
		right: 1%;
		max-width: 100px;
	}
	
	.boat img {
		width: 300px;
		bottom: 80px;
	}
	
	.crane img {
		width: 158px;
		left: calc(100% + 71px);
		-webkit-transform: translateX(71px);
		        transform: translateX(71px);
	}
	
	.wave {
		background-size: 44px;
		bottom: -270px;
	}
	
	#scene li:nth-of-type(13) .wave {
		bottom: -230px;
	}
	
	#scene li:nth-of-type(12) .wave {
		bottom: -200px;
	}
	
	#scene li:nth-of-type(10) .wave, #scene li:nth-of-type(12) .wave {
		background-position: 29px 0;
	}
	
	@-webkit-keyframes wave {
	  0% {
		-webkit-transform: rotateZ(0deg) translate3d(0,1%,0) rotateZ(0deg);
		transform: rotateZ(0deg) translate3d(0,1%,0) rotateZ(0deg);
	  }
	
	  100% {
		-webkit-transform: rotateZ(360deg) translate3d(0,1%,0) rotateZ(-360deg);
		transform: rotateZ(360deg) translate3d(0,1%,0) rotateZ(-360deg);
	  }
	}
	
	@keyframes wave {
	  0% {
		-webkit-transform: rotateZ(0deg) translate3d(0,1%,0) rotateZ(0deg);
		transform: rotateZ(0deg) translate3d(0,1%,0) rotateZ(0deg);
	  }
	
	  100% {
		-webkit-transform: rotateZ(360deg) translate3d(0,1%,0) rotateZ(-360deg);
		transform: rotateZ(360deg) translate3d(0,1%,0) rotateZ(-360deg);
	  }
	}
	
	#greeting {
		text-align: center;
		left: 0;
    	width: calc(100% - 20px);
		max-width: calc(100% - 20px);
        padding: 0 10px;
	}
	
	#languages {
		font-size: 1rem;
	}
	
	#languages div:nth-child(odd) {
		font-size: 0.875rem;
	}
	
	#languages {
		-webkit-transform: translateX(-4%);
		        transform: translateX(-4%);
	}
}

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

.hidden {
    display: none !important;
    visibility: hidden;
}

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

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@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,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group;
    }

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

    img {
        max-width: 100% !important;
    }

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

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