*,
*::after,
*::before {
	box-sizing: border-box;
}
html {
	font-size: 62.5%;
}
body {
	font-size: 1.6rem;
    line-height: 1.5;
	font-family: 'Barlow Medium', Helvetica, Arial, sans-serif;
	background-color: #152637;
	margin: 0;
}


/* Page Loader */

.js .loading::before {
	content: '';
	position: fixed;
	z-index: 100000;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.js .loading::after {
	content: '';
	position: fixed;
	z-index: 100000;
	top: 50%;
	left: 50%;
	width: 60px;
	height: 60px;
	margin: -30px 0 0 -30px;
	pointer-events: none;
	border-radius: 50%;
	opacity: 0.4;
	background: rgba(255, 255, 255, 0.6);
	animation: loaderAnim 0.7s linear infinite alternate forwards;
}

@keyframes loaderAnim {
	to {
		opacity: 1;
		transform: scale3d(0.5,0.5,1);
	}
}


/* Content */

#container {
	width: 100vw;
	height: 100vh;
	left: 0;
	top: 0;
	position: fixed;
	z-index: -1;
}

canvas {
	display: block;
}

.demo-1 .frame {
	opacity: 0;
}

h1, h2, h3 {
	font-family: 'Barlow Bold', Helvetica, Arial, sans-serif;
	color: #fff;
}
p, li, span, a, small {
	color: #fff;
}


.content {
	position: relative;
	max-width: 72rem;
	height: 100vh;
	margin: 0 auto;
	
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	
}
.content > * {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
}
.content > .content__item--button {
	z-index: 1000;
}
.content > .content__item--cover {
	pointer-events: none;
}

.content__inner {
	max-width: 26rem;
	margin: 0 auto;	
}
img {
	display: block;
}
p {
	margin-bottom: .5rem;
}
.text-intro {
	font-size: 2.2rem;
}

a {
	color: #fff;
	transition: color .2s ease-in-out;
}
a:hover,
a:focus {
	color: #8def12;
}


/* btn */

.content__button {
	padding: 0;
	margin: 0;
	background: none;
	border: 0;
	color: #fff;
	cursor: pointer;
	font-size: 1.8rem;
	font-family: 'Barlow Bold', Helvetica, Arial, sans-serif;
	position: relative;
	z-index: 1000;	
}

.content__button::after {
	content: '';
	position: absolute;
	width: 100%;
	height: 2px;
	background: #8def12;
	left: 0;
	top: 100%;
	opacity: 1;
	transition: transform 0.3s, opacity 0.3s;
	transform: scale3d(1,1,1);
	transform-origin: 0% 50%;
}

.content__button:hover::after {
/* 	opacity: 0; */
	transition: transform 0.3s, opacity 0.1s;
	transform: scale3d(0,1,1);
}

/* // Message */

.content__intro,
.content__title,
.content__outro {
	text-align: center;
	margin: 0;
}
.content__intro {
	font-size: 1.8rem;
	margin-bottom: 1rem;
	opacity: .6;	
}
.content__title {
	font-size: 3.6rem;
	line-height: 1;	
}
.content__outro {
	font-size: 2.2rem;	
}
.content__outro::before {
	content: '—';
	display: block;
	margin: 0 auto;
	line-height: 1;
}


/* // hide */


.js .content__item > * {
	opacity: 0;
	pointer-events: none;
}
.content__title span {
	display: inline-block;
	opacity: 0;
}

.js .content__item .content__button,
.content__item--details p a,
.content__item--details small a {
	opacity: 1;
	pointer-events: auto;
}


.js .loading .content__button {
	opacity: 0;
}



/* Fonts */

@font-face {
    font-family: 'Barlow Bold';
    src: url('../fonts/barlow-bold-webfont.woff2') format('woff2'), url('../fonts/barlow-bold-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Barlow Medium';
    src: url('../fonts/barlow-medium-webfont.woff2') format('woff2'), url('../fonts/barlow-medium-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* RWD */

@media only screen and (min-width: 30em) {

	.content__intro {
		font-size: 2rem;	
	}
	.content__title {
		font-size: 5.2rem;	
	}
	.content__outro {
		font-size: 2.8rem;	
	}

}

@media only screen and (min-width: 45em) {

	.content__title {
		font-size: 7.2rem;	
	}

}
