/*
 * 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);
  }
}
#freq {
    background: linear-gradient(#ff0088, red);
    position: absolute; 
    left: 0;
    right: 0;
    margin: 0 auto;
}
body {
    background:#000;
    overflow: hidden;
}
#freq.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;
}
#title, #artist, #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;
}
#song_info_wrapper {
	position: absolute;
	width: 100%;
	text-align: center; 
}

#title {
	font-size: 10vw;
}

#artist {
    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) {
	#title {
		font-size: 100px;
	}

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

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

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