/*
 * Audiovisualization using the html canvas element.
 * ©2017, Dominik Hofacker
 * https://www.behance.net/dominikhofacker
 * Please consider supporting this project on behance:
 * https://www.behance.net/gallery/49260123/Web-Audio-Visualization
 */
@keyframes hue {
  0% {
	filter: hue-rotate(0deg);
	-webkit-filter: hue-rotate(0deg);
  }

  100% {
	filter: hue-rotate(-360deg);
	-webkit-filter: hue-rotate(-360deg);
  }
}
#div_canvas {
	background: linear-gradient(#ff0088, red);
	position: absolute; 
	left: 0;
	right: 0;
	margin: 0 auto;
	z-index: 0;
}
body {
	background:#000;
	overflow: hidden;
}
#canvas_canvas.animateHue, body.animateHue {
	animation-name: hue;
	animation-duration: 500s;
	animation-delay: 1s;
	animation-iteration-count: infinite;

	-webkit-animation-name: hue;
	-webkit-animation-duration: 500s;
	-webkit-animation-delay: 1s;
	-webkit-animation-iteration-count: infinite;
}
#titre, #artiste, #album {
	position: relative;
	text-align: center;
	width: 100%;
	z-index: 999;
	font-weight: 100;
	font-family: "Roboto", sans-serif;
	/*font-size: 100px;*/
	color: #fff;
	visibility: hidden;
	letter-spacing: -.05em;
	text-shadow: 0px 0px 8px rgba(0, 0, 0, 0.5);
	margin-bottom: 15px;
}
#info_piste {
	position: absolute;
	width: 100%;
	text-align: center; 
}

#titre {
	font-size: 10vw;
}

#artiste {
	font-size: 3vw;
}

#album {
	font-size: 3vw;
	/*font-size: 40px;*/
	margin-bottom: 0;
}

input, button, #loading {
	position: absolute;
	top: 10px;
	left: 5px;
	display: block;
	z-index: 999;
	
}

#playSampleButton {
	top: 40px;
}

#useMicButton {
	top: 70px;
}

#loading {
	display: inline-block;
	top: 44px; 
	left: 110px;
	font-family: "Roboto", sans-serif; 
	font-size: 12px;
}

html, body {
  width:  100%;
  height: 100%;
  margin: 0px;
}

@media screen and (min-width: 1000px) {
	#titre {
		font-size: 100px;
	}

	#artiste, #album {
		font-size: 40px;
	}
}

@media screen and (max-width: 500px) {
	#artiste, #album {
		font-weight: 300;
		font-size: 4vw;
	}
}

@media screen and (max-width: 436px) {
	#artiste, #album {
		font-weight: 300;
		font-size: 4.5vw;
	}
	
	#titre {
		
	}
}