@font-face {
    font-family: 'yikesregular';
    src: url('../fonts/yikes/yikes__-webfont.woff2') format('woff2'),
         url('../fonts/yikes/yikes__-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}


html, body{
	height: 100%;
	margin: 0;padding: 0;
}
body{
	background-color: #660000;
}

.center-vertically{
	height: 100%;
	display: -webkit-box;      /* OLD - iOS 6-, Safari 3.1-6 */         /* OLD - Firefox 19- (buggy but mostly works) */
    display: -ms-flexbox;      /* TWEENER - IE 10 */     /* NEW - Chrome */
    display: flex;             /* NEW, Spec - Opera 12.1, Firefox 20+ */

    -webkit-box-align: center;

        -ms-flex-align: center;

            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
}
.container{
    margin-top: 30px;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	max-width: 800px;
	width: 100%;
	margin: auto;
}

.music-selector{
	width: 200px;

}
.dance-container{
	margin: auto;
	overflow: hidden;
	background-color: #FFFFFF;
	position: relative;
	height: 100vh;
	max-height: 500px;
	max-width: 600px;
	width: 100%;
	background-size: cover;
	background-position: center center;

}



.dancer{
    position: absolute;
	width: 0;
	margin-left: 43%;
	bottom: 230px;
	border: 5px dotted blue;

}

.dancer .body,
.dancer .legs{
	position: absolute;
	border: 1px solid red;
	border: 1px solid blue;

}
/*
.dancer .body:after{
	display: block;
	position: absolute;
	content: '';
	border:2px solid green;
	z-index: 3;
}
*/
.dancer .body{
 -webkit-transform-origin:  		bottom center;
	-ms-transform-origin: 	        bottom center;
	    transform-origin: 	        bottom center;
	z-index: 2;
}
.dancer .legs{
	z-index: 1;
}



.dancer  img {	
	position: absolute;
}
.dancer .body img{
 -webkit-transform:  		translateX(-50%) translateY(-100%);
	-ms-transform: 			translateX(-50%) translateY(-100%);
	    transform: 			translateX(-50%) translateY(-100%);

}
.dancer .legs img{
 -webkit-transform:  		translateX(-50%);
	-ms-transform: 			translateX(-50%);
	    transform: 			translateX(-50%);
	

}


.dancer .flip.reversed{
 -webkit-transform:  		scale(-1, 1);
 -ms-transform: 			scale(-1, 1);
     transform: 			scale(-1, 1);
}



nav{
	position: absolute;
	z-index: 4;
	right: 0;
}
nav ul{
	padding: 0;

}
nav li{
	cursor: pointer;
}
nav > ul > li{
	display: block;
	margin:20px 0;
	max-width: 150px;
	position: relative;
	left: 120px;
	-webkit-transition: left 0.5s ease;
	-o-transition: left 0.5s ease;
	transition: left 0.5s ease;

	background-color: #4b4b4b;
	background-color: rgba(75,75,75,0.3);
	border: 1px solid;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    border-right: none;
}

nav > ul > li label{
	font-family: yikesregular, arial, sans-serif;
    display: inline-block;
    top: 50%;
    position: absolute;

	-webkit-transform:  			translateY(-50%);
    -ms-transform: 					translateY(-50%);
	    transform: 					translateY(-50%);
    font-size: 1.5em;


}
nav > ul > li label span{
	display: block;

	-webkit-transform-origin:   	center center;
    -ms-transform-origin:           center center;
	    transform-origin:           center center;
    position: relative;

	-webkit-transform: 				rotate(-90deg) translateY(-50%);
    -ms-transform: 					rotate(-90deg) translateY(-50%);
    transform: 						rotate(-90deg) translateY(-50%);

}

nav > ul > li > ul{
    border-right: none;
	padding: 10px;
	padding-left: 35px;
	margin: 0;
	list-style: none;
}


nav > ul > li > ul > li{
	display: inline-block;
	vertical-align: top;
	font-family: yikesregular, arial, sans-serif;
}

nav > ul > li > ul > li:before,
.lights li:before{
	content: '';
	display: block;
	border-radius:50%;
	border: 1px solid #000;
	background-color: #FF0000;
	width: 15px;
	height: 15px;
	margin: 4px;

}


.no-touchevents nav > ul > li > ul > li:hover:before,
.no-touchevents .lights li:hover:before{
 -webkit-transform:  		scale(1.6);
 -ms-transform: 			scale(1.6);
     transform: 			scale(1.6);


}

nav > ul > li > ul > li.active:before{
	background-color: #FFFF00;
}


nav > ul > li > ul > li.off:before{
	background-color: #FFFF00;
	border: 1px solid  #00FF00;
}







.lights .lights-nav {
    padding: 0;
    margin: 8px;
    position: absolute;
    z-index: 2;
}
.lights .lights-nav li{
	vertical-align: top;
	font-family: yikesregular, arial, sans-serif;
}

.lights .lights-nav li:before{	
	display: inline-block;
	vertical-align: -6px;
}
.lights .lights-animation{	
	display: none;
    position: absolute;
    height: 100%;
}
.lights .lights-animation img{
    -webkit-transform-origin: center top;
    -ms-transform-origin: center top;
    transform-origin: center top;
    opacity: 0.4;
    height: 100%;
    position: absolute;
    z-index: 1;
}
.lights .lights-animation .light1 img{
	left: 102px;
	-webkit-filter: 	hue-rotate(290deg);
	        filter: 	hue-rotate(290deg);
 -webkit-transform:  	skew(-13deg,0deg);
	-ms-transform: 		skew(-13deg,0deg);
	transform: 			skew(-13deg,0deg);
  	
  	-webkit-animation:	light1 1s infinite;
    animation:			light1 1s infinite;

}

.lights .lights-animation .light2 img{
 -webkit-transform:  	skew(-2deg,0deg);
	-ms-transform: 		skew(-2deg,0deg);
	transform: 			skew(-2deg,0deg);

  	-webkit-animation:light2 1.2s infinite;
    animation:light2 1.2s infinite;
    -webkit-animation-timing-function: ease;
            animation-timing-function: ease;
}

@-webkit-keyframes light1 {
    0%   {-webkit-transform: skew(-13deg,0deg);transform: skew(-13deg,0deg);}
    50%  {-webkit-transform: skew(35deg,0deg);transform: skew(35deg,0deg);}
    100% {-webkit-transform: skew(-13deg,0deg);transform: skew(-13deg,0deg);}
}

@keyframes light1 {
    0%   {-webkit-transform: skew(-13deg,0deg);transform: skew(-13deg,0deg);}
    50%  {-webkit-transform: skew(35deg,0deg);transform: skew(35deg,0deg);}
    100% {-webkit-transform: skew(-13deg,0deg);transform: skew(-13deg,0deg);}
}
@-webkit-keyframes light2 {
    0%   {-webkit-transform: skew(-2deg,0deg);transform: skew(-2deg,0deg);}
    50%  {-webkit-transform: skew(42deg,0deg);transform: skew(42deg,0deg);}
    100% {-webkit-transform: skew(-2deg,0deg);transform: skew(-2deg,0deg);}
}
@keyframes light2 {
    0%   {-webkit-transform: skew(-2deg,0deg);transform: skew(-2deg,0deg);}
    50%  {-webkit-transform: skew(42deg,0deg);transform: skew(42deg,0deg);}
    100% {-webkit-transform: skew(-2deg,0deg);transform: skew(-2deg,0deg);}
}









.music-selector{
	padding: 15px;
	padding-right: 0;
	position: relative;
	margin-right: 35px;
}
.music-selector .label{
	position: relative;
    text-align: center;
	padding: 15px;
    padding: 7px 20px 3px 20px;
    font-size: 20px;
	font-family: yikesregular, arial, sans-serif;
	min-width: 150px;

	-webkit-transform: rotate(90deg) translateX(-50%);
    -ms-transform: rotate(90deg) translateX(-50%);
    transform: rotate(90deg) translateX(-50%);


	-webkit-transform-origin: 	right bottom;
    -ms-transform-origin: 		right bottom;
	transform-origin: 			right bottom;

	border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    background-color: #FFFFFF;
}
.music-selector h2{
	font-family: yikesregular, arial, sans-serif;
	color: #FFFFFF;
	font-size: 30px;
	text-align: center;
	text-shadow: 2px 2px 0px rgba(0, 0, 0, 1);
	font-weight: normal;
	margin-top: 0;
	margin-bottom: 5px;
}
.music-list{
	background-color: #FFFFFF;
	border-radius: 10px;
	font-family: arial;
	max-height: 300px;
	overflow: hidden;
	overflow-y: scroll;
}
.music-list ul{
	list-style: none;
    margin: 0;
	padding: 0;
}
.music-list li{
	padding: 8px;
	border-top: 1px solid #000;
	font-size: 12px;
}
.music-list li:first-child{
	border-top: none;
}
.music-list li .artist{
	font-family: 'arial black',arial, sans-serif;
}
.music-list li .song{
	font-size: 0.9em;
}
.music-list li .song:before{
	content: " - ";
}

.music-list li:hover{
	background-color: rgb(255,255,0);
	background-color: rgba(255,255,0,0.5);
	cursor: pointer;
}

.music-list li.active{
	background-color: #FFFF00;
}


.credits-button{
	position: absolute;
	bottom: 0;
	font-family: yikesregular, arial, sans-serif;
	color: #FFFFFF;
	font-size: 14px;
	border-left:1px solid #ffff99;
	border-right:1px solid #b21900;
	border-top:1px solid #ffff99;
	border-bottom:1px solid #b21900;
	border-radius: 7px;
	padding: 4px ;
    right: 5px;
    left: 15px;
    text-align: right;
    text-decoration: none;

}
.credits-button:hover{
	background-color: #ff6600;
	-webkit-box-shadow: 1px 1px 5px 0px rgba(0,0,0,0.75);
	box-shadow: 1px 1px 5px 0px rgba(0,0,0,0.75);
}
#credits-content {
	background-color: #FFF;
	text-align: center;
	font-size: 14px;
}
#credits-content h2{
	margin: 0;
	padding: 0;
	font-size: 60px;
	margin: auto;
	background-image: url(../images/logo.png?v2);
	background-size: contain;
	background-repeat: no-repeat;
	width: 3em;
	height: 1em;
	text-indent: -999px;
	overflow: hidden;
}
#credits-content .name{font-weight:bold;font-size:2em;}
#credits-content .title{font-weight:bold;font-size:1.3em;}
#credits-content .email{}
#credits-content .accolades{margin-top:5px;}
#credits-content .links{}
#credits-content .links a{
	font-size: 0.8em;
	display: inline-block;
	color: #FFFFFF;
	background-color: #000000;
	padding: 3px 6px;
	margin: 0 5px;
	text-decoration: none;
}
#credits-content .links a:hover{
	background-color: #660000;
}




@media screen and (max-width: 500px){

	.credits-button{display: none;}

	.container{
	    -webkit-box-orient: vertical;
	    -webkit-box-direction: normal;
	        -ms-flex-direction: column;
	            flex-direction: column;
	    height: 100vh;
	}

	.music-selector{
		cursor: pointer;
    	height: 50px;
		-webkit-transition: height 0.5s ease;
		-o-transition: height 0.5s ease;
		transition: height 0.5s ease;
		width: auto;
    	padding: 0;
		margin: 0;
		overflow: hidden;
	}
	body.expanded .music-selector {
		height: 179px;
	}


	.music-selector .music-list{
		width: auto;
		height: 130px;
    	padding: 0;
		border-radius: 0;
	}
	.music-selector h2{
		margin-top: 0.4em;
	}
	.music-selector h2:after{
		content: '';
	    width: 0;
	    height: 0;
	    border-left: 10px solid transparent;
	    border-right: 10px solid transparent;
	    border-top: 10px solid #FFFFFF;
	    position: absolute;
	    right: 11px;
	    top: 21px;;
	}
	.expanded .music-selector h2:after{
		border-left: 10px solid transparent;
		border-right: 10px solid transparent;
		border-bottom: 10px solid #FFFFFF;
		border-top: none;	   
	}
	
	.music-selector .label{
		display: none;
	}

	.music-list li{}
	.music-list li .artist{display:inline;}
	.music-list li .song{display:inline;}


	.dance-container{
		max-height: inherit;
		-webkit-box-flex: 1;
		    -ms-flex: 1;
		        flex: 1;
	}
	.dancer{
		bottom: 50%;
	}

}



/* SHOW AND HIDE THE MUSIC TAB BASED ON THE HEIGHT OF THE VIEWPORT */
@media screen and (max-width: 500px) and (max-height: 620px){
	body.expanded  nav > ul > li.music {display:none;}
}
@media screen and (max-width: 500px) and (max-height: 488px){
	nav > ul > li.music {display:none;}
}

@media screen and (min-width: 501px) and (max-height: 445px){
	nav > ul > li.music {display:none;}
}



@media screen and (max-width: 500px) and (max-height: 730px){
	.dancer{
		-webkit-transform: scale(0.9);
		    -ms-transform: scale(0.9);
		        transform: scale(0.9);
		bottom: 50%;
	}
}
@media screen and (max-width: 500px) and (max-height: 600px){
	.dancer{-webkit-transform: scale(0.8);-ms-transform: scale(0.8);transform: scale(0.8)}
}
@media screen and (max-width: 500px) and (max-height: 550px){
	.dancer{-webkit-transform: scale(0.7);-ms-transform: scale(0.7);transform: scale(0.7);}
}
@media screen and (max-width: 500px) and (max-height: 500px){
	.dancer{-webkit-transform: scale(0.6);-ms-transform: scale(0.6);transform: scale(0.6);}
}





@media screen and (min-width: 501px) and (max-height: 500px){
	.dancer{
		-webkit-transform: scale(0.9);
		    -ms-transform: scale(0.9);
		        transform: scale(0.9);
	}
}

@media screen and (min-width: 501px) and (max-height: 420px){
	.dancer{-webkit-transform: scale(0.8);-ms-transform: scale(0.8);transform: scale(0.8);}
}
@media screen and (min-width: 501px) and (max-height: 360px){
	.dancer{-webkit-transform: scale(0.7);-ms-transform: scale(0.7);transform: scale(0.7);}
}
@media screen and (min-width: 501px) and (max-height: 315px){
	.dancer{-webkit-transform: scale(0.6);-ms-transform: scale(0.6);transform: scale(0.6);}
}
@media screen and (min-width: 501px) and (max-height: 265px){
	.dancer{-webkit-transform: scale(0.5);-ms-transform: scale(0.5);transform: scale(0.5);}
}