@charset "utf-8";




    /*************/
   /*           */
  /*   Fonts   */
 /*           */
/*************/


/*

	Yes, the following font file names and formats MUST BE CONTAINED IN QUOTES
	otherwise Firefox will refuse to load them. Chrome? Safari? Opera? Totally fine.
	Firefox loading backround-images using url() and no quotes? Totally fine.
	It’s literally just the @font-face rules that Firefox needs quotes for. 

*/


/*  Ginger Thin (as LIGHTER)  */

@font-face {

	font-family: Ginger;
	font-weight: 100;
	font-style:  normal;
	src: url( '../media/fonts/ginger-thin.eot' );
	src: url( '../media/fonts/ginger-thin.eot?#iefix' ) format( 'embedded-opentype' ),
		 url( '../media/fonts/ginger-thin.woff' ) format( 'woff' ),
		 url( '../media/fonts/ginger-thin.ttf'  ) format( 'truetype' ),
		 url( '../media/fonts/ginger-thin.svg#f37_ginger_thin' ) format( 'svg' );
}


/*  Ginger Light (as NORMAL)  */

@font-face {

	font-family: Ginger;
	font-weight: normal;
	font-style:  normal;
	src: url( '../media/fonts/ginger-light.eot' );
	src: url( '../media/fonts/ginger-light.eot?#iefix' ) format( 'embedded-opentype' ),
		 url( '../media/fonts/ginger-light.woff' ) format( 'woff' ),
		 url( '../media/fonts/ginger-light.ttf'  ) format( 'truetype' ),
		 url( '../media/fonts/ginger-light.svg#f37_ginger_light' ) format( 'svg' );
}


/*  Ginger Bold (as BOLD)  */

@font-face {

	font-family: Ginger;
	font-weight: bold;
	font-style:  normal;
	src: url( '../media/fonts/ginger-bold.eot' );
	src: url( '../media/fonts/ginger-bold.eot?#iefix' ) format( 'embedded-opentype' ),
		 url( '../media/fonts/ginger-bold.woff' ) format( 'woff' ),
		 url( '../media/fonts/ginger-bold.ttf'  ) format( 'truetype' ),
		 url( '../media/fonts/ginger-bold.svg#f37_ginger_bold' ) format( 'svg' );
}




    /***************/
   /*             */
  /*   General   */
 /*             */
/***************/


@media all and ( min-aspect-ratio: 4/3 ){

	html, body { font-size: 1.3333vh; }
}
@media all and ( max-aspect-ratio: 4/3 ){

	html, body { font-size: 1vw; }
}
html, body {

	width:  100%;
	height: 100%;
}
body {

	margin:  0;
	border:  0;
	padding: 0;
	background-color: #111;
	color: #666;
	font-family: Ginger, "Helvetica Neue", Helvetica, Arial, sans-serif;
	overflow: hidden;
	text-align: center;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
a {
	color: #999;
	text-decoration: none;
}
a:hover {

	color: #FFF;
}




h1 {
	
	width: 100%;
	padding: 6rem 0 0 0;
	text-align: center;
	color: #FFF;
	font-weight: 100;
	font-size:   4rem;
	line-height: 4rem;
	letter-spacing: -0.05rem;
}
.clear {

	clear: both;
}
.instrument {

	position: relative;
	white-space: nowrap;
}
.instrument.mini {

	padding-top: 8rem;
}




    /************************/
   /*                      */
  /*   Triggers NATURAL   */
 /*                      */
/************************/


.trigger-container {
	
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	z-index: 10;
	position: relative;
	display: inline-block;
	margin: 0 1px 0 1px;
	width:  6rem;
	height: 0;/*  Will equal 33rem  */
	text-align: center;
	font-size:   2rem;
	line-height: 3rem;
}
.trigger-container.engaged {

	z-index: 11;
}
.trigger-container .note-name {

	position: absolute;
	top:   4rem;
	width: 6rem;
	text-align: center;
	color: transparent;
	font-size: 1.5rem;
	font-weight: 100;
	transition-property: color;
	transition-duration: 0.3s;
	transition-timing-function: linear;
}
.trigger-container .note-name strong {

	font-size: 3rem;
	font-weight: normal;
}
.trigger-container.engaged .note-name {

	color: #FFF;
	transition-property: color;
	transition-duration: 0.0s;
	transition-timing-function: linear;
}
.trigger-container .trigger {

	z-index: 10;
	position: absolute;
	top: 9rem;
	border-bottom-left-radius:  0.5rem;
	border-bottom-right-radius: 0.5rem;
	width:   6rem;
	height: 24rem;
	background-color: #999;
	font-size:   2rem;
	line-height: 3rem;
	cursor: pointer;
	transition-property: background-color;
	transition-duration: 0.3s;
	transition-timing-function: linear;
}
.trigger-container.engaged .trigger {

	background-color: #FFF;
	transition-property: background-color;
	transition-duration: 0.0s;
	transition-timing-function: linear;
}
.trigger-container .chars-list {

	position: absolute;
	bottom: 2rem;
	width: 100%;
	text-align: center;
	color: #FFF;
	font-size: 2rem;
}
.trigger-container.engaged .chars-list {

	color: transparent;
}




    /**************************/
   /*                        */
  /*   Triggers UNNATURAL   */
 /*                        */
/**************************/


.trigger-container.unnatural {

	z-index: 20;
	width: 4rem;
}
.trigger-container.unnatural + .trigger-container.natural {

	margin-left: -2rem;
}
.trigger-container.natural + .trigger-container.unnatural {

	margin-left: -2rem;
}
.trigger-container.unnatural .note-name {

	top:   0;
	width: 4rem;
}
.trigger-container.unnatural .trigger {

	width:   4rem;
	height: 14rem;
	background-color: #000;
	color: #999;
}
.trigger-container.unnatural.engaged .trigger {

	z-index: 21;
	background-color: #FFF;
}
.trigger-container.unnatural .chars-list {

	color: #FFF;
}




    /*********************/
   /*                   */
  /*   Triggers MINI   */
 /*                   */
/*********************/


.mini .trigger-container {
	
	width: 3rem;
}
.mini .trigger-container .trigger {

	top:     6rem;
	width:   3rem;
	height: 12rem;
	font-size:   1.0rem;
	line-height: 1.5rem;
}
.mini .trigger-container.unnatural + ( .mini .trigger-container.natural ){

	margin-left: -1rem;
}
.mini .trigger-container.natural + .trigger-container.unnatural {

	margin-left: -1rem;
}
.mini .trigger-container .note-name {

	top:   2rem;
	width: 3rem;
	font-size: 0.75rem;
}
.mini .trigger-container .note-name strong {

	font-size: 1.5rem;
}
.mini .trigger-container.unnatural .note-name {

	top: 0;
	width: 1.5rem;
}
.mini .trigger-container.unnatural .trigger {

	/*top:   -5rem;*/
	width:  2rem;
	height: 7rem;
}
.mini .trigger-container .chars-list {

	bottom:    1rem;
	font-size: 1rem;	
}




    /************************/
   /*                      */
  /*   Triggers RAINBOW   */
 /*                      */
/************************/


.rainbow .trigger-container.unnatural .trigger {

	border: 2px solid #111;
	border-top: none;
}

/*  A♭  */.rainbow .name-index-0  .trigger { background-color: hsl( 247, 100%, 15% ); }
/*  A   */.rainbow .name-index-1  .trigger { background-color: hsl( 270, 100%, 15% ); }
/*  B♭  */.rainbow .name-index-2  .trigger { background-color: hsl( 292, 100%, 15% ); }
/*  B   */.rainbow .name-index-3  .trigger { background-color: hsl( 315, 100%, 15% ); }
/*  C   */.rainbow .name-index-4  .trigger { background-color: hsl(   0, 100%, 15% ); }
/*  C♯  */.rainbow .name-index-5  .trigger { background-color: hsl(  23, 100%, 15% ); }
/*  D   */.rainbow .name-index-6  .trigger { background-color: hsl(  45, 100%, 15% ); }
/*  E♭  */.rainbow .name-index-7  .trigger { background-color: hsl(  67, 100%, 15% ); }
/*  E   */.rainbow .name-index-8  .trigger { background-color: hsl(  90, 100%, 15% ); }
/*  F   */.rainbow .name-index-9  .trigger { background-color: hsl( 180, 100%, 15% ); }
/*  F♯  */.rainbow .name-index-10 .trigger { background-color: hsl( 203, 100%, 15% ); }
/*  G   */.rainbow .name-index-11 .trigger { background-color: hsl( 225, 100%, 15% ); }

/*  A♭  */.rainbow .engaged.name-index-0  .trigger { background-color: hsl( 247, 100%, 50% ); }
/*  A   */.rainbow .engaged.name-index-1  .trigger { background-color: hsl( 270, 100%, 50% ); }
/*  B♭  */.rainbow .engaged.name-index-2  .trigger { background-color: hsl( 292, 100%, 50% ); }
/*  B   */.rainbow .engaged.name-index-3  .trigger { background-color: hsl( 315, 100%, 50% ); }
/*  C   */.rainbow .engaged.name-index-4  .trigger { background-color: hsl(   0, 100%, 50% ); }
/*  C♯  */.rainbow .engaged.name-index-5  .trigger { background-color: hsl(  23, 100%, 50% ); }
/*  D   */.rainbow .engaged.name-index-6  .trigger { background-color: hsl(  45, 100%, 50% ); }
/*  E♭  */.rainbow .engaged.name-index-7  .trigger { background-color: hsl(  67, 100%, 50% ); }
/*  E   */.rainbow .engaged.name-index-8  .trigger { background-color: hsl(  90, 100%, 50% ); }
/*  F   */.rainbow .engaged.name-index-9  .trigger { background-color: hsl( 180, 100%, 50% ); }
/*  F♯  */.rainbow .engaged.name-index-10 .trigger { background-color: hsl( 203, 100%, 50% ); }
/*  G   */.rainbow .engaged.name-index-11 .trigger { background-color: hsl( 225, 100%, 50% ); }

/*  A♭  */.rainbow .engaged.name-index-0  .note-name { color: hsl( 247, 100%, 50% ); }
/*  A   */.rainbow .engaged.name-index-1  .note-name { color: hsl( 270, 100%, 50% ); }
/*  B♭  */.rainbow .engaged.name-index-2  .note-name { color: hsl( 292, 100%, 50% ); }
/*  B   */.rainbow .engaged.name-index-3  .note-name { color: hsl( 315, 100%, 50% ); }
/*  C   */.rainbow .engaged.name-index-4  .note-name { color: hsl(   0, 100%, 50% ); }
/*  C♯  */.rainbow .engaged.name-index-5  .note-name { color: hsl(  23, 100%, 50% ); }
/*  D   */.rainbow .engaged.name-index-6  .note-name { color: hsl(  45, 100%, 50% ); }
/*  E♭  */.rainbow .engaged.name-index-7  .note-name { color: hsl(  67, 100%, 50% ); }
/*  E   */.rainbow .engaged.name-index-8  .note-name { color: hsl(  90, 100%, 50% ); }
/*  F   */.rainbow .engaged.name-index-9  .note-name { color: hsl( 180, 100%, 50% ); }
/*  F♯  */.rainbow .engaged.name-index-10 .note-name { color: hsl( 203, 100%, 50% ); }
/*  G   */.rainbow .engaged.name-index-11 .note-name { color: hsl( 225, 100%, 50% ); }







#editor-toggle {

	top:  -14rem;
	left: -24rem;
	background-image: url( ../media/buttons/fullscreen.svg );
}
#editor-eval {

	top:  -14rem;
	left: -20rem;
	background-image: url( ../media/buttons/play.svg );
}
#editor-container {

	position: absolute;
	z-index: 30;
	bottom: 0;
	right: -60vw;
	width:  50vw;
	height: 89vh;
	box-shadow: 0 0 1rem rgba( 0, 0, 0, 0.5 );
	border-top-left-radius: 2rem;
	background-color: rgba( 255, 255, 255, 0.98 );
	overflow: hidden;
	opacity: 0;
	transition-property: right, opacity;
	transition-duration: 0.4s;
	transition-timing-function: ease-in;
}
#editor-container.show {

	right:  0;
	opacity: 1;
	transition-property: right, opacity;
	transition-duration: 0.2s;
	transition-timing-function: ease-out;
}
#editor {

	-moz-box-sizing: border-box;
	box-sizing: border-box;
	margin: 0;
	width:  100%;
	height: 100%;
	outline: none;
	border:  none;
	background-color: transparent;
	padding: 2rem;
	color: #222;
	font-family: "Courier New" Courier, monospace;
	font-size:   1vw;
	line-height: 2vw;
	tab-size: 4;
	white-space: pre;
	overflow: auto;
	resize: none;
}




.button {

	border-radius: 4rem;
	width:  4rem;
	height: 4rem;
	background-size: 100% 100%;
}




.score-play-pause {

	position: relative;
	top: 4rem;
	display: inline-block;
	border-radius: 4rem;
	width:  4rem;
	height: 4rem;
	background-image: url( ../media/buttons/play.svg );
	background-size: 100% 100%;
	background-repeat: no-repeat;
	cursor: pointer;
	-webkit-animation: pulse 2s ease-in-out infinite;
	-moz-animation:    pulse 2s ease-in-out infinite;
	-o-animation:      pulse 2s ease-in-out infinite;
	animation:         pulse 2s ease-in-out infinite;
}
@-webkit-keyframes pulse {

	0%   { opacity: 1.0; }
	50%  { opacity: 0.3; }
	100% { opacity: 1.0; }
}
@-o-keyframes pulse {

	0%   { opacity: 1.0; }
	50%  { opacity: 0.3; }
	100% { opacity: 1.0; }
}
@keyframes pulse {

	0%   { opacity: 1.0; }
	50%  { opacity: 0.3; }
	100% { opacity: 1.0; }
}
.score-play-pause.is-playing {

	background-image: url( ../media/buttons/pause.svg );
	opacity: 0.5;
	-webkit-animation: none;
	-moz-animation:    none;
	-o-animation:      none;
	animation:         none;
}
.score-play-pause:hover {

	background-image: url( ../media/buttons/play-hover.svg );
	opacity: 1;
	-webkit-animation: none;
	-moz-animation:    none;
	-o-animation:      none;
	animation:         none;
}
.score-play-pause.is-playing:hover {

	background-image: url( ../media/buttons/pause-hover.svg );
}
#play-pause-container .score-play-pause {

	top:  0.8rem;
	left: 0.8rem;
}




#fullscreen-toggle {

	position: absolute;
	top:   2rem;
	right: 2rem;
	background-image: url( ../media/buttons/fullscreen.svg );
}
#fullscreen-toggle:hover {

	background-image: url( ../media/buttons/fullscreen-hover.svg );
}
#fullscreen-toggle-container {

	background-color: #111;
}
:-webkit-full-screen {

    position: fixed;
    top: 0;
    width:  100%;
    height: 100%;
    background: none;
}




footer {

	position: absolute;
	bottom:  2rem;
	left:    0;
	width: 100%;
	text-align: center;
	font-size:   1.2rem;
	line-height: 3rem;
}
.button {

	position: relative;
	display: inline-block;
	width:  4rem;	
	height: 4rem;
	background-size: 100% 100%;
	background-repeat: no-repeat;
	opacity: 0.2;
	cursor: pointer;
}
.button:hover {

	opacity: 1;
}
.button + .button {

	margin-left: 0.2rem;
}
#github   { background-image: url( ../media/buttons/github.svg ); }
#twitter  { background-image: url( ../media/buttons/twitter.svg ); }
#facebook { background-image: url( ../media/buttons/facebook.svg ); }




#cache {

	width:  0;
	height: 0;
	overflow: hidden;
}







