/**
 * DEFAULT
 */

* {
	box-sizing: border-box;
}

canvas {
	position: fixed;
	margin: 0 auto;
	bottom: 0;
	left: 0;
	right: 0;
}

button {
	position: relative;
	z-index: 100;
}

body {
	position: relative;
	display: flex;
	background-color: black;
}

@font-face {
	font-family: 'FiraCode';
	src: 	url('assets/fonts/ttf/FiraCode-Light.ttf');
	src: 	url('assets/fonts/woff2/FiraCode-Light.woff2') format('woff2'),
	  		url('assets/fonts/woff/FiraCode-Light.woff') format('woff');
}

@font-face {
	font-family: 'RubikLight';
	src: 	url('assets/fonts/rubik/Rubik-Light.ttf');
	src: 	url('assets/fonts/rubik/Rubik-Light.woff2') format('woff2'),
	  		url('assets/fonts/rubik/Rubik-Light.woff') format('woff');
}

body {
	display: block;
	font-size: 12px;
	font-family: FiraCode, Helvetica, Arial, sans-serif;
}

h1 {
	font-size: 2.4em;
}

h2 {
	font-size: 1em;
}

/**
 * VIEW
 */

.view {
	height: calc(100% - 200px);
	width: auto;
	max-width: 1320px;
	margin: 50px auto 100px auto;
	position: relative;
}
@media (min-width: 836px) { 
	.view {
		margin: 125px auto;
	}
}


/**
 * PAGE
 */

.page {
	background-color: white;
	position: absolute;
	padding: 50px;
	z-index: 50;
	width: 100%;
	height: 100%;
}

.page.hide {
	display: none;
}

.page .layout {
	position: relative;
	height: 100%;
	max-width: 720px;
}

.page .layout .scroll {
	position: relative;
	height: 100%;
	padding-right: 50px;
	overflow: auto;
}

.page button.close {
	color: black;
	z-index: 99;
	height: 50px;
	width: 50px;
	top: 4px;
	right: 4px;
	cursor: pointer;
	position: absolute;
}
@media (min-width: 860px) { 
	.page button.close {
		top: 40px;
		right: 40px;
	}
}
top: 40px;
    right: 40px;

.page button.close:hover {
	opacity: .8;
}
.page button.close:focus {
	opacity: .8;
}

.page p, article p {
	line-height: 1.5em;
}

.simplebar-scrollbar {
    right: 0;
}

.simplebar-scrollbar:before {
    background-color: rgba(54, 51, 58, .5);
}

/**
 * OVERLAY
 */

.overlay {
	background-image: linear-gradient(to bottom, rgba(255,0,0,0), rgba(54, 51, 58, .5));
	width: 100%;
    position: fixed;
    height: 720px;
    bottom: 0;
    z-index: 1;
    opacity: .5;
}


/**
 * CONTENT
 */

.content {
	position: fixed;
	color: white;
	margin: 0 25px 50px 25px;
    max-width: 420px;
    z-index: 10;
    bottom: 0;
}
@media (min-width: 836px) { 
	.content {
		padding-top: 50px;
	}
}

.content p {
	line-height: normal;
}

.content.relative {
	margin-top: 50px;
	position: relative;
}

article {
	z-index: 10;
    color: white;
    position: relative;
    max-width: 720px;
    margin: 0 25px;
}

article h1 {
	font-size: 2.4em;
	text-transform: uppercase;
}

article h2 {
	padding-top: 20px;
}

.logo {
	opacity: .7;
	padding-bottom: 5px;
}

/**
 * FORM
 */

form {
	position: relative;
	margin-bottom: 50px; 
	max-width: 420px;
}

form p {
	margin-bottom: 25px;
}

form label {
	display: block;
	font-weight: bold;
	padding-bottom: 6px; 
}

form input, form textarea {
	color: black;
	display: block;
	margin: 0 0 30px 0; 
	padding: 10px;
	width: 100%;
	line-height: 1.5em;
}

form input:focus, form textarea:focus {
	outline: 1px rgba(255,146,141,.5) solid;
}

form input[type=submit] {
	cursor: pointer;
	color: white; 
	height: 42px;
	line-height: 24px;
	border: 0;
	background-color: rgba(255,146,141,1);
}

article form #firstname {
	display: none;
}

article form #gotcha {
	display: none;
}

form.disabled input, form.disabled textarea, form.disabled label {
	opacity: .5;
}

form.disabled input[type=submit] {
	opacity: 1;
	background-color: rgba(137, 209, 142, 1);
}

/**
 * LINKS
 */

a {
	color: white;
	text-decoration: none;
}

a:hover {
	opacity: .8;
}
a:focus {
	opacity: .8;
}


/**
 * HEADER
 */

h1 {
    font-size: 1em;
    font-weight: bold;
}

@media (min-width: 836px) { 
	.content h1 {
		
	}
}

nav ul {
	margin: 0;
    padding: 0;
    list-style: none;
}

nav ul a {
	color: rgba(255,146,141,1);
	border-bottom: 2px rgba(255,146,141,.5) solid;
}

nav ul li {
	display: inline;
	padding-top: 10px;
	padding-right: 1px;
}

nav ul {
	margin-top: 10px;
}

nav ul.links {
	float: left;
}

nav ul.intern {
	text-align: right;
	float: right;
}

nav ul.intern a {
	color: rgba(186,183,189,1);
	border-bottom: 2px rgba(186,183,189,.5) solid;
}

/**
 * CONTROL
 */

.control {
	display: none;
	z-index: 10;
	position: absolute;
	left: 34px;
	bottom: 50px;
}
@media (min-width: 836px) { 
	.control {
		left: 34px;
		position: absolute;
	}
}

.control button {
	color: white;
	z-index: 99;
	height: 50px;
	width: 50px;
	cursor: pointer;
}

.control button:hover {
	opacity: .8;
}
.control button:focus {
	opacity: .8;
}

.control button#animateButton svg {
	fill: currentColor;	
	width: 24px;
}
@media (min-width: 836px) { 
	.control button#animateButton svg {
		width: 18px;
	}
}

.control button#animateButton .off {
	color: #36333a;
	display: inline-block;
	transform: rotate(180deg);
}

.control button#animateButton .on {
	display: none;
}

.control button#animateButton.active .off {
	display: none;
}

.control button#animateButton.active .on {
	display: inherit;
}

/**
 * PLAYER
 */

#player {
	z-index: 90;
	position: fixed;
	right: 25px;
	background-color: #36333a;
	height: 50px;
	width: 300px;
	bottom: inherit;
}
@media (min-width: 836px) { 
	#player {
		right: 30px;
		bottom: 0;
		position: absolute;
	}
}

#player .tracks {
	position: relative;
	overflow: hidden;
	height: 50px;
}

#player .tracks .title {
	z-index: 10;
	position: relative;
	height: 50px;
	display: none;
}
#player .tracks .title.active {
	display: inherit;
}

#player .tracks img.cover {
	z-index: 10;
	height: 50px;
	width: 50px;
}

#player .tracks .title a {
	font-size: .85em;
	position: absolute;
	display: inline-block;
	line-height: 50px;
	height: 50px;
	color: white;
    padding-left: 10px;
    border: 0;
}

#player button {
	z-index: 99;
	cursor: pointer;
	color: white;
}
#player button:hover {
	opacity: .8;
}
#player button:focus {
	opacity: .8;
}

#player button#playButton {
	z-index: 99;
	position: absolute;
	height: 50px;
	width: 50px;
}

#player button .load {
	display: none;
}
#player button .active {
	display: none;
}

#player button.active .ready {
	display: none;
}
#player button.active .active {
	display: inherit;
}

#player.load button .load {
	display: inherit;
}
#player.load button .ready {
	display: none;
}
#player.load button .active {
	display: none;
}

#player button#playButton svg {
	fill: currentColor;	
	width: 18px;
}

#player button#playButton .load {
	animation: spin 5s infinite;
	transform-origin: 50% 50%;
}
@keyframes spin {
   from {transform:rotate(0deg);}
   to {transform:rotate(360deg);}
}

@media (min-width: 836px) { 
	#player button#playButton svg {
		width: 14px;
	}
}

#player button#nextButton {
	position: absolute;
	right: 0;
	height: 50px;
	width: 50px;
}
#player button#nextButton svg {
	fill: currentColor;	
	width: 18px;
}
@media (min-width: 836px) { 
	#player button#nextButton svg {
		width: 14px;
	}
}

#player button#previousButton svg {
	fill: currentColor;	
	width: 18px;
}
@media (min-width: 836px) { 
	#player button#previousButton svg {
		width: 14px;
	}
}