canvas {
    width:100%;
    background:whitesmoke;
}
html,body {
    margin:0;
    padding:0;
    opacity:50%;
}

.tab-content
{
    overflow-y:scroll;
	width:100%;
	height:500px;
}

.keynote
{
    -webkit-animation: fadein .5s; /* Safari, Chrome and Opera > 12.1 */
       -moz-animation: fadein .5s; /* Firefox < 16 */
        -ms-animation: fadein .5s; /* Internet Explorer */
         -o-animation: fadein .5s; /* Opera < 12.1 */
            animation: fadein .5s;
}

@keyframes fadein {
    from { alpha: 0; }
    to   { alpha: 1; }
}

/* Firefox < 16 */
@-moz-keyframes fadein {
    from { alpha: 0; }
    to   { alpha: 1; }
}

/* Safari, Chrome and Opera > 12.1 */
@-webkit-keyframes fadein {
    from { alpha: 0; }
    to   { alpha: 1; }
}

/* Internet Explorer */
@-ms-keyframes fadein {
    from { alpha: 0; }
    to   { alpha: 1; }
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

#trackbox
{
	padding-top:50px;
}
.context-menu {
  display: none;
  position: absolute;
  z-index: 100;
  padding: 12px 0;
  width: 240px;
  background-color: #fff;
  border: solid 1px #dfdfdf;
  box-shadow: 1px 1px 2px #cfcfcf;
}

.trackrow
{
	padding-bottom:10px;
	padding-top:10px;
	padding-left:50px;
	width:40%;
	border-radius: 25px;
  
  display: block;
  margin-left: auto;
  margin-right: auto;
	opacity:.8;
}


.trackrow .volumeSlider{
    width:50%;
}
.trackrow:nth-child(1)
{
    background-color: black;

}
.trackrow:nth-child(2)
{
    background-color:  darkgoldenrod;
}
.trackrow:nth-child(3)
{
    background-color:  purple;
}
.trackrow:nth-child(4)
{
    background-color:  red;
}

.context-menu--active {
  display: block;
}

.context-menu__items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.context-menu__item {
  display: block;
  margin-bottom: 4px;
}

.context-menu__item:last-child {
  margin-bottom: 0;
}

.context-menu__link {
  display: block;
  padding: 4px 12px;
  color: #0066aa;
  text-decoration: none;
}

.context-menu__link:hover {
  color: #fff;
  background-color: #0066aa;
}

.PlaybackLine
{
    height:100%;
    width:1px;
    position:absolute;
    z-index: 2;
}

.keynote
{
    left:0;
    width:100%;
    border-bottom:'solid black 2px';
    position:fixed;
    pointer-events: none;
}

.gridNote {
     pointer-events: none;
     filter: saturate(70%) brightness(120%);
     z-index: 2;
}

#MainPlaybackLine
{
    border-left: thick solid red;
}

#RestartPlaybackLine
{
    border-left: thick solid green;
}
.container
{
     padding-top: 50px;
     width:90%;
}
#gridboxContainer
{
	overflow-x:scroll;
    overflow-y:scroll;
	width:100%;
	height:590px;
    cursor:crosshair;
}

div#testDZ
{
    /* above all elements, even if z-index is used elsewhere
       it can be lowered as needed, but this value surpasses
       all elements when used on YouTube for example.
        takes up 100% of page
         positions to point 0,0 - required for z-index
         *//*
          top: 0; left: 0;
          visibility:hidden;
          background-color: rgba(0,0,0,0.5); transition: visibility 175ms, opacity 175ms;
       */\
   	position:absolute;
    top: 0; left: 0;
    z-index: 4;
    width: 100%; height: 100%;

    background-color: rgba(0,0,0,0.0);

    transition: visibility 175ms, opacity 175ms;

    visibility:none;
    /* dim the page with 50% black background when visible */
    /* a nice fade effect, visibility toggles after 175ms, opacity will animate for 175ms. note display:none cannot be animated.  */

}


#GridboxArray{
    width:100%;
    overflow-y:scroll;
	height:400px;
}
#gridbox {
	width:650%;
	height:1000px;
	position:relative;
	/*background:#2F4F4F url('https://s3.amazonaws.com/com.appgrinders.test/images/grid_20.png') repeat;*/
	background:whitesmoke url('grid_horizontal.png') repeat;
}


#feedback { font-size: 1.4em; }
#selectable .ui-selecting { background: #FECA40; }
#selectable .ui-selected { background: #F39814; color: white; }

.slidecontainer {
    width: 90%;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 25px;
    background: #d3d3d3;
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
}

.slider:hover {
    opacity: 1;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    background: #4CAF50;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    background: black;
    cursor: pointer;
}

/* FOR MOBILES */
@media (max-width: 400px) {
  #TopBar #Homepage a {
    font-size: 16px !important; }

  #Content {
    font-size: 10px !important;
    max-width: calc(100% - 6px) !important; }

  #Content * {
    font-size: 14px !important; } }
html, body {
  padding: 0px;
  margin: 0px;
  height: calc(100% - 4px);
background:#f5ead8
}

/**
 *
 *  TOP BAR
 *
 */
#TopBar {
  background-color: black;
  height: 35px;
  margin: 3px;
  position: relative;
  width: calc(100% - 6px);
  font-family: monospace; }
  #TopBar #TonejsLogo {
    position: absolute;
    top: 3px; }
  #TopBar #Examples {
    right: 10px;
    top: 0px;
    height: 35px;
    line-height: 35px;
    position: absolute;
    width: 100px;
    text-align: left; }
    #TopBar #Examples a {
      position: absolute;
      font-size: 14px;
      color: white;
      text-transform: none;
      text-decoration: none; }

#MobileStart {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 10000;
  top: 0px;
  left: 0px;
  background-color: rgba(0, 0, 0, 0.8); }
  #MobileStart #Button {
    position: absolute;
    left: 50%;
    top: 50%;
    background-color: #7F33ED;
    color: white;
    font-family: monospace;
    border-radius: 3px;
    margin-top: -40px;
    margin-left: -40px;
    width: 80px;
    height: 80px;
    text-align: center;
    line-height: 80px; }
  #MobileStart #Button:hover {
    background-color: #7F33ED;
    color: white; }
  #MobileStart #Button:hover:active {
    background-color: #ED33CF;
    color: #22DBC0; }

#Content {
  font-family: monospace;
  position: absolute;
  left: 3px;
  width: calc(100% - 6px);
  margin-bottom: 15px; }
  #Content #Title {
    height: 23px;
    line-height: 23px;
    font-size: 1.2em;
    color: white;
    width: calc(100% - 15px);
    padding-left: 15px;
    background-color: black; }
  #Content #Explanation {
    position: relative;
    font-family: monospace;
    padding: 15px;
    color: black;
    font-size: 14px;
    box-sizing: border-box;
    border: 3px solid black;
    border-top-width: 0px;
    width: 100%; }
    #Content #Explanation img {
      width: 80%;
      max-width: 700px;
      margin-left: auto;
      margin-right: auto;
      display: block; }
  #Content a {
    color: black;
    font-family: monospace;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none; }
  #Content a:hover {
    color: #1EDF3E; }
  #Content a:hover:active {
    color: #ED33CF; }
  #Content #DragContainer {
    margin-left: 3px;
    margin-top: 3px;
    margin-bottom: 15px;
    width: calc(100% - 3px);
    height: 400px;
    position: relative;
    color: white; }
  #Content .Slider.x {
    position: relative;
    height: 94px;
    width: 100%;
    margin-top: 3px; }
    #Content .Slider.x .Axis {
      top: 50%;
      margin-top: -1.5px; }
  #Content .Slider.y {
    position: relative;
    width: 94px;
    height: 400px; }
    #Content .Slider.y .Axis {
      left: 50%;
      margin-left: -1.5px; }
  #Content .Dragger {
    width: 90px;
    height: 90px;
    position: absolute;
    background-color: black;
    border-radius: 50%;
    z-index: 1;
    margin-top: -2px;
    border: 2px solid white;
    cursor: -webkit-grab; }
    #Content .Dragger #Name {
      width: 100%;
      height: 100%;
      position: relative;
      text-align: center;
      font-size: 12px;
      font-family: monospace;
      line-height: 90px;
      color: white; }
  #Content .Dragger:hover {
    background-color: #3833ED;
    color: white; }
  #Content .Dragger.is-pointer-down {
    cursor: -webkit-grabbing;
    background-color: #ED33CF; }
    #Content .Dragger.is-pointer-down #Name {
      color: #1EDF3E; }
  #Content .Axis {
    position: absolute;
    background-color: black;
    width: 3px;
    height: 3px;
    top: 3px;
    left: 3px;
    border-radius: 1.5px;
    z-index: 0; }
  #Content #xAxis {
    width: calc(100% - 6px); }
  #Content #yAxis {
    height: calc(100% - 6px); }
  #Content .Button {
    width: 100%;
    margin-top: 3px;
    height: 90px;
    background-color: black;
    line-height: 90px;
    color: white;
    border-radius: 10px;
    text-align: center;
    cursor: pointer; }
  #Content .Button:hover {
    color: white;
    background-color: #3833ED; }
  #Content .Button:hover:active, #Content #Content .Button:hover:active.Active {
    color: #22DBC0;
    background-color: #ED33CF; }
  #Content .Button.Toggle.Active {
    box-sizing: border-box;
    border: 3px solid black;
    line-height: 84px;
    color: black;
    background-color: white; }
  #Content .Transport {
    width: 100%;
    height: 30px;
    background-color: black;
    line-height: 30px;
    color: white;
    border-radius: 10px;
    margin-top: 3px;
    position: relative; }
    #Content .Transport #Position {
      width: 70px;
      left: 50%;
      margin-left: -35px;
      text-align: left;
      height: 100%;
      position: absolute;
      color: white; }

#Keyboard {
  margin: 3px !important; }

code {
  background-color: #ECECEC;
  color: #333;
  padding: 1px; }


  .loader {
      position:fixed;
      top:40%;
      right:40%;
      z-index: 100000;
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #3498db;
    width: 120px;
    height: 120px;
    -webkit-animation: spin 1s linear infinite; /* Safari */
    animation: spin 1s linear infinite;
  }

  /* Safari */
  @-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
  }

  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }


#Loading {
  font-family: monospace;
  z-index: 100000;
  position: absolute;
  background-color: rgba(140, 140, 140, 0.5);
  width: 100%;
  height: calc(100% - 37.5px);
  top: 37.5px;
  left: 0px;
  opacity: 1;
  -webkit-transition: opacity 0.4s;
          transition: opacity 0.4s; }
  #Loading #Text {
    color: white;
    position: absolute;
    text-align: center;
    top: 50%;
    left: 50%;
    width: 300px;
    margin-left: -150px;
    height: 60px;
    margin-top: -30px;
    line-height: 60px;
    font-size: 42px; }

#Loading.Loaded {
  pointer-events: none;
  opacity: 0; }
