@font-face {
	font-family: 'Matamata-Regular';
	src: url('../fonts/Matamata-Regular.otf');
}

@font-face {
	font-family: 'Roboto-Regular';
	src: url('../fonts/Roboto-Regular.ttf');
}

@font-face {
	font-family: 'Roboto-Thin';
	src: url('../fonts/Roboto-Thin.ttf');
}

body {
    margin: 0;
    background-color: #1E2658;
    scroll-behavior: smooth;
}

a, a:active, a:focus, a:hover, a:visited {color: #fff; font-weight: bold}

/* Hint arrow */
#arrow img {
    height: 2.6rem;
    cursor: pointer;
    background-color: #ffffff2e;
    border-radius: 50%;
    width: 2.6rem;
    padding: 1.2rem 1.1rem 1rem 1.1rem;
}

#arrow {
    text-align: center;
    width: 100%;
    background-repeat: no-repeat;
    background-position-x: center;
    position: absolute;
    top: 88vh;
    -webkit-animation-name: bounce;
    -moz-animation-name: bounce;
    -o-animation-name: bounce;
    animation-name: bounce;
     -webkit-animation-fill-mode: both;
    -moz-animation-fill-mode: both;
    -ms-animation-fill-mode: both;
    -o-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation-iteration-count: infinite;
    -moz-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    -webkit-animation-duration: 2s;
    -moz-animation-duration: 2s;
    -ms-animation-duration: 2s;
    -o-animation-duration: 2s;
    animation-duration: 2s;
}

    @-webkit-keyframes bounce {
	0%,20%,50%,80%,100% {
		-webkit-transform:translateY(0);
	}
	40% {
		-webkit-transform:translateY(-30px);
	}
	60% {
		-webkit-transform:translateY(-15px);
	}
    }
    @-moz-keyframes bounce {
	0%,20%,50%,80%,100% {
		-moz-transform:translateY(0);
	}
	40% {
		-moz-transform:translateY(-30px);
	}
	60% {
		-moz-transform:translateY(-15px);
	}
    }
    @-o-keyframes bounce {
	0%,20%,50%,80%,100% {
		-o-transform:translateY(0);
	}
	40% {
		-o-transform:translateY(-30px);
	}
	60% {
		-o-transform:translateY(-15px);
	}
    }
    @keyframes bounce {
	0%,20%,50%,80%,100% {
		transform:translateY(0);
	}
	40% {
		transform:translateY(-30px);
	}
	60% {
		transform:translateY(-15px);
	}
    }

.fadeOut {
    opacity: 0;
    transition: opacity 1s ease-out;
    -webkit-transition: opacity 1s ease-out;
    -moz-transition: opacity 1s ease-in-out;
}

.hidden {
    display: none;
}

/* parallax landscape */

#landscape {
    height: 94vw;
    z-index: -1;
}

#l-prlx-lyr-1, #l-prlx-lyr-2, #l-prlx-lyr-3, #l-prlx-lyr-4, #l-prlx-lyr-5 {
    position: fixed;
    top: 0;
    background-repeat: no-repeat;
    width: 100%;
    z-index: -1;
}

#l-prlx-lyr-1, #l-prlx-lyr-2, #l-prlx-lyr-3, #l-prlx-lyr-4 {
    height: 86vw;
}

#l-prlx-lyr-1 {
    background-image: url(../images/layer1.svg);
    position: fixed;
}

#l-prlx-lyr-2 {
    background-image: url(../images/layer2.svg);
}

#l-prlx-lyr-3 {
    background-image: url(../images/layer3.svg);
}

#l-prlx-lyr-4 {
    background-image: url(../images/layer4.svg);
}

#l-prlx-lyr-5 {
    background-image: url(../images/layer5.svg);
    height: 130vw;
}

/* parallax bridge */

#bridge {
	height: 61.2vw;
    z-index: -1;
    top: -1px;
}

#b-prlx-lyr-1, #b-prlx-lyr-2, #b-prlx-lyr-3, #b-prlx-lyr-4, #b-prlx-lyr-5, #b-prlx-lyr-6, #b-prlx-lyr-7, #b-prlx-lyr-8 {
    position: absolute;
    top: 0;
    background-repeat: no-repeat;
    width: 100%;
    height: 80vw;
    z-index: -1;
}


#b-prlx-lyr-1 {
    background-image: url(../images/bridge/back.svg);
}

#b-prlx-lyr-2 {
    background-image: url(../images/bridge/middle-left.svg);
}

#b-prlx-lyr-3 {
    background-image: url(../images/bridge/middle-right.svg);
}

#b-prlx-lyr-4 {
    background-image: url(../images/bridge/front_left.svg);
}

#b-prlx-lyr-5 {
    background-image: url(../images/bridge/front-right.svg);
}

#b-prlx-lyr-6 {
    background-image: url(../images/bridge/bridge.svg);
}

#b-prlx-lyr-7 {
    background-image: url(../images/bridge/wagons.svg);
    width: 300%;
}

#b-prlx-lyr-8 {
    background-image: url(../images/bridge/frame.svg);
}

/* parallax mine */

#mine {
	height: 50vw;
    z-index: 1;
}

#m-prlx-lyr-1, #m-prlx-lyr-2-1, #m-prlx-lyr-2-2, #m-prlx-lyr-3, #m-prlx-lyr-4, #m-prlx-lyr-5 {
    position: absolute;
    top: 0;
    background-repeat: no-repeat;
    width: 100%;
    height: 80vw;    
    background-size: contain;
    z-index: -1;
}

#m-prlx-lyr-1 {
    background-image: url(../images/mine/back.svg);
}

#m-prlx-lyr-2-1 {
    background-image: url(../images/mine/dwarf.svg);
}

#m-prlx-lyr-2-2 {
    background-image: url(../images/mine/arm.svg);
}

#m-prlx-lyr-3 {
    background-image: url(../images/mine/middle.svg);
}

#m-prlx-lyr-4 {
    background-image: url(../images/mine/wagon.svg);
}

#m-prlx-lyr-5 {
    background-image: url(../images/mine/front.svg);
}

/* stars mine */

#star1, #star2, #star3, #star4 {
    animation: pulsate 2s ease-in infinite;
    animation-direction: alternate;
    position: absolute;
    display: inline-block;
}

#star1 {
    left: 42vw;
}

#star2 {
    left: 26vw;
}

#star3 {
    left: 57vw;
}

#star4 {
    left: 74vw;
}

#star1 img {
    height: 4vw;
    width: 4vw;
}

#star2 img {
    height: 5vw;
    width: 5vw;
    transform: rotate(13deg);
}

#star3 img {
    height: 7vw;
    width: 7vw;
    transform: rotate(50deg);
}

#star4 img {
    height: 5vw;
    width: 5vw;
    transform: rotate(58deg);
}

#star1 a. #star2 a, #star3 a, #star4 a {
    display: inline-block;
}

@keyframes pulsate {
  0% {
    transform: scale(.75) rotate(0deg);
  }
  100% {
    transform: scale(1.25) rotate(5deg);
  }
}


/* dwarf animation */

#m-prlx-lyr-2-2 {
    animation: rotation 2s linear infinite;
}

@keyframes rotation {
  0% {
    transform: rotate(-80deg);
    transform-origin: 57.6% 19.2%;
  }
  15% {
    transform: rotate(0deg);
    transform-origin: 57.6% 19.2%;
  }
  80% {
    transform: rotate(-70deg);
    transform-origin: 57.6% 19.2%;
  }
  100% {
    transform: rotate(-80deg);
    transform-origin: 57.6% 19.2%;
  }
}


/* content */

.content {
    background-color: #1E2658;
    padding: 5rem 8rem;
    z-index: 1;
}

.content2 {
    margin-top: -3rem;
    padding-bottom: 1rem;
}

.content3 {
	height: 1000px;
}

/* profile */

.profile {
    display: flex;
    margin: 4rem 0;
    align-items: center;
}

.pb {
    margin-right: 3rem;
}

.pb img {
	border-radius: 50%;
}

.layer {
	position: absolute;
	left:0;
	bottom: 0;
	top:0;
	right:0;
    height: 1000px;
}



/* bridge */
#bridge {
	position: relative;
	width: 100%;
    	overflow: hidden;
}

/* mine */
#mine {
    position: relative;
    width:100%;
    top: -1px; 
}

#landscape, #bridge, #mine {
    overflow: hidden;
}

/* Logo */

.logo img {
	height: 5rem;
}

.logo {
    position: fixed;
    right: 2rem;
    top: 2rem;
    z-index: 2;
    cursor: pointer;
}

/* Fonts */

h1 {
	font-family: 'Matamata-Regular';
	font-size: 4.3rem;
    font-weight: normal;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    line-height: 1;
}

h1, h2 {
	color: #FF9900;
}

h2 {
    	font-family: 'Roboto-Regular';
	font-size: 1.2rem;
}

body {
	color: #fff;
	font-family: 'Roboto-Thin';
	font-size: 1.2rem;
	font-weight: lighter;
	line-height: 1.9;
}

h2, p {
	margin: 0;
}

p {
	margin-bottom: 1rem;
}

ul {
    padding-inline-start: 1em;
}

@media (max-width: 1200px) {
    .content {
        padding-left: 7rem;
        padding-right: 7rem;
    }
}

@media (min-width: 641px) and (max-width: 810px) {
    h1 {
	font-size: 4.5rem;
    }
    
    p, li {
	font-size: 1.1rem;
    }
    
    .logo img {
        height: 4rem;
    }

    .content {
    	padding-left: 4rem;
	padding-right: 4rem;
    }
}

/* mobile */

@media (max-width: 640px) {
    h1 {
        font-size: 2.6rem;
    }

    p, ul {
	font-size: 1.1rem;
    }
        
    .profile {
        flex-direction: column;
    }
    
    .pb {
        margin-bottom: 1rem;
        margin-right: 0;
    }

    .content {
    	padding-left: 2.6rem;
    	padding-right: 2.6rem;
    }
    
    .content1 {
        margin-top: -6vw;
    }
    
    .content2 {
        margin-top: -7.7vw; 
    }
    
    .logo img {
        height: 3.2rem;
    }
    
    .pb img {
        width: 9rem;
	height: 9rem;
    }
}
