
/* /////////////////// */
/* LAYOUT AND UI STUFF */
/* /////////////////////////////////////////////////////////////////////////////////////////////// */

#audio_box {
  display: inline;
}

/* http://jsfiddle.net/mmansion/yhbfc/8/ */
.vinyl-container {
    text-align: center;
    position: absolute;
    width: 128px;
    height: 128px;
    right: 50%;
    top: 50%;
    margin-right: 6px; /*subtract by half width*/
    margin-top: -68px; /*subtract by half height*/
/*    margin-right: -64px;
    margin-top: -64px; */

}

/* /////////////////// */
/* SVG STUFF ///////// */
/* /////////////////////////////////////////////////////////////////////////////////////////////// */

/*svg .spinn:nth-of-type(2) {
  -webkit-animation: spinspin2 5s infinite linear;
  animation: spinspin2 5s infinite linear;
}
*/

/* http://www.colourlovers.com/palette/3406603/Sunset_at_Bayinbuluk */

body > svg {
  top: 0;
}

body > svg circle, body > svg rect {
  opacity: .25;
  fill: #F7D11E;
  stroke: #F27F40;
  stroke-width: 2;
  -webkit-transition: fill 1.5s ease-in-out;
     -moz-transition: fill 1.5s ease-in-out;
       -o-transition: fill 1.5s ease-in-out;
          transition: fill 1.5s ease;

  -webkit-transition: stroke 1.5s ease-in-out;
     -moz-transition: stroke 1.5s ease-in-out;
       -o-transition: stroke 1.5s ease-in-out;
          transition: stroke 1.5s ease;
}

body > svg, body > svg path, body > svg line, body > svg g {
  -webkit-transform-origin: center;
     -moz-transform-origin: center;
       -o-transform-origin: center;
          transform-origin: center;
}

body > svg rect:nth-of-type(0) {
  opacity: 0;
}

body > svg rect {
    -webkit-transform: rotate(-30deg);
       -moz-transform: rotate(-30deg);
         -o-transform: rotate(-30deg);
            transform: rotate(-30deg);
}

body > svg .bar rect, body > svg rect.equal  {
    -webkit-transform: rotate(0deg);
       -moz-transform: rotate(0deg);
         -o-transform: rotate(0deg);
            transform: rotate(0deg);
}

body > svg rect.equal, html.theme_2 body > svg rect.equal {
  opacity: 1;
  stroke-width: 0;
}

html.theme_3 body > svg rect.equal, html.theme_4 body > svg rect.equal  {
  opacity: 0.8;
  stroke-width: 0;
}

html.theme_1 body > svg rect.equal {
  fill: white;
  stroke-width: 0;
}

body > svg .isoco {
  stroke-width: 0;
}

body > svg path {
  fill: #f88e22;
  stroke: #fff;
  stroke-width: 2px;
  opacity: 0.4;
}

body > svg {
  position: fixed;
  z-index: -1;
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
  -webkit-transition: -webkit-transform 0.5s;
     -moz-transition: -moz-transform 0.5s;
       -o-transition: -o-transform 0.5s;
          transition: transform 0.5s;
}

body > svg .spin {
  fill: none;
  stroke-linecap: butt;
  -webkit-transform-origin: center;
     -moz-transform-origin: center;
       -o-transform-origin: center;
          transform-origin: center;
  -webkit-animation: draw 5s linear infinite;
     -moz-animation: draw 5s linear infinite;
          animation: draw 5s linear infinite;
}

.graticule {
  fill: none;
  stroke-width: 3px;
  stroke: #F7D11E;
  stroke-linecap: round;
  opacity: 1;
}


.hexagon {
  stroke-width: 0;
}

/* THEME 1 STUFF */

html.theme_1 {
  background-color: black;
}
html.theme_1 body > svg circle, html.theme_1 body > svg rect {
  fill: black;
  stroke: white;
  stroke-width: 3;
  opacity: 1;
}

html.theme_1 body > svg path {
  fill: none;
  stroke: #fff;
  stroke-width: 2px;
  opacity: 1;
}

htm1.theme_1 path.skew{
  fill: white;
  opacity: .7;
}

html.theme_1 .icon-menu {
  color: white;
}

html.theme_1 .isoco2, html.theme_1 .isoco3 {
  visibility: hidden;
}

html.theme_1 .hexagon {
  stroke-width: 1;
}

html.theme_1 .spin {
  opacity: 0.7;
}

html.theme_1 .graticule {
  fill: none;
  stroke: white;
}



/* THEME 2 STUFF - http://www.colourlovers.com/palette/944213/forever_lost */

html.theme_2 .i {
  color: black;
}

html.theme_2 .progressBar {
  background-color: black;
}

html.theme_2 {
  background-color: #EBE3AA;
}
html.theme_2 body > svg circle, html.theme_2 body > svg path, html.theme_2 body > svg rect, html.theme_2 body > svg line {
  fill: #5D4157;
  stroke: white;
  stroke-width: 1;
  opacity: .25;
}

html.theme_2 .hexagon {
  stroke-width: 0;
}
html.theme_2 .graticule {
  fill: none;
  stroke: #5D4157;
  opacity: .6;
  stroke-width: .5px;
  stroke-dasharray: 20px 2px;
  stroke-dashoffset: 10px;
}

/*html.theme_2 .spin:nth-of-type(3n) {
  stroke: #5D4157;
}
*/

/* THEME 3 STUFF - http://www.colourlovers.com/palette/728391/Dig_My_Olive_Branch */

html.theme_3 {
  background-color: #300018;
}
html.theme_3 body > svg circle, html.theme_3 body > svg path, html.theme_3 body > svg rect, html.theme_3 body > svg line {
  fill: #E5EDB8;
  stroke: white;
  stroke-width: 1;
  opacity: .25;
}

html.theme_3 .isoco3 {
  visibility: hidden;
}

html.theme_3 .graticule {
  fill: none;
  stroke: #E5EDB8;
  stroke-width: 15px;
  opacity: 0.6
}

/* THEME 4 STUFF - http://www.colourlovers.com/palette/3406636/Just_Breathe */

html.theme_4 .i {
  color: black;
}

html.theme_4 .progressBar {
  background-color: black;
}

html.theme_4 {
  background-color: #F4F0CD;
}
html.theme_4 body > svg circle, html.theme_4 body > svg path, html.theme_4 body > svg rect, html.theme_4 body > svg line {
  fill: #E4A57A;
  stroke: white;
  stroke-width: 1;
  opacity: .3;
}
html.theme_4 body > svg circle:nth-of-type(4) {
  fill: #ADD9C8;
}
html.theme_4 body > svg circle:nth-of-type(3) {
  fill: #F1E3B4;
}
html.theme_4 body > svg circle:nth-of-type(2) {
  fill: #DFE3C8;
}

html.theme_4 .hexagon {
  stroke-width: 0;
}

html.theme_4 .hexagon:nth-of-type(3n) {
  stroke-width: 10px;
}

html.theme_4 .spin:nth-of-type(3n+1) {
    stroke: #E4A57A;
}

html.theme_4 .graticule {
  fill: none;
  opacity: 1;
  stroke: #E4A57A;
}


/* THEME 5 STUFF - http://www.colourlovers.com/palette/443995/i_demand_a_pancake */

html.theme_5 .i {
  color: black;
}

html.theme_5 .progressBar {
  background-color: black;
}

html.theme_5 {
  background-color: #9DE0AD;
}

html.theme_5 body > svg circle, html.theme_5 body > svg path, html.theme_5 body > svg rect, html.theme_5 body > svg line {
  fill: #594F4F;
  stroke: white;
  stroke-width: 1;
  opacity: .5;
}

html.theme_5 body > svg circle:nth-last-of-type(3) {
  fill: #E5FCC2;
}

html.theme_5 body > svg .isoco {
  stroke-width: 0;
  opacity: .7;
}

html.theme_5 body > svg .isoco:nth-of-type(odd) {
  fill: #E5FCC2;
}

html.theme_5 body > svg rect.equal {
  opacity: 1;
  stroke-width: 0;
  transform: skewY(45deg);
}

html.theme_5 .hexagon {
  stroke-width: 50px;
  stroke-dasharray: 3px;
}

html.theme_5 .hexagon:nth-of-type(odd), html.theme_5 .hexagon:nth-of-type(3n), html.theme_5 .hexagon:nth-of-type(3n+1), html.theme_5 .hexagon:nth-of-type(7n), html.theme_5 .hexagon:nth-of-type(11n) {
  display: none;
}

html.theme_5 .graticule {
  fill: none;
  stroke: #594F4F;
  stroke-dasharray: 5px;
  opacity: 1;
}


/* menu svg overrides */

html.theme_1 .menu-controls, html.theme_3 .menu-controls, html.theme_4 .menu-controls, html.theme_5 .menu-controls {
  text-shadow: 0 0 0 rgba(0,0,0,0);
}
html.theme_2 .menu-controls .i, html.theme_3 .menu-controls .i, html.theme_5 .menu-controls .i {
  color: white;
  text-shadow: 2px 2px 0 rgba(0,0,0,1);
}

html.theme_2 .menu svg * {
  stroke-width: 0;
  fill: #EBE3AA;
}

html.theme_2 .menu #grid svg * {
  stroke-width: 1;
}

html.theme_3 .menu #icosahedron svg * {
  opacity: 0.6;
  stroke-width: 0;
}

html.theme_3 .menu #grid svg * {
  stroke-width: 4;
}

html.theme_4 .menu svg * {
  stroke-width: 0;
}

html.theme_4 .menu #grid svg * {
  stroke-width: 1;
}

html.theme_5 .menu #icosahedron svg path {
  opacity: 1;
  stroke-width: 0;
}
html.theme_5 .menu #icosahedron svg path:nth-of-type(odd) {
  fill: #E5FCC2;
  opacity: 0.5;
}

html.theme_5 .menu #equal rect {
  transform: skewY(30deg) translateY(-8px);
}

html.theme_5 .menu .hexagon {
  stroke-width: 10px;
  stroke-dasharray: 2px;
  fill: none;
}

/* /////////////////// */
/* ANIMATIONS STUFF // */
/* /////////////////////////////////////////////////////////////////////////////////////////////// */

@-webkit-keyframes spinspin {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes spinspin {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@-webkit-keyframes spinspin2 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(-360deg);
    transform: rotate(-360deg);
  }
}
@keyframes spinspin2 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(-360deg);
    transform: rotate(-360deg);
  }
}

@keyframes draw {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(-360deg);
    transform: rotate(-360deg);
  }
}

@-webkit-keyframes draw {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(-360deg);
    transform: rotate(-360deg);
  }
}

@keyframes fade {
  100% {
    opacity: 0;
  }
}

@-webkit-keyframes fade {
  100% {
    opacity: 0;
  }
}

@keyframes fadeIn {
  100% {
    opacity: 1;
  }
}

@-webkit-keyframes fadeIn {
  100% {
    opacity: 1;
  }
}

/* BLINK KEYFRAME */
/* http://mudbugmedia.com/blog/2012/10/03/css3-keyframe-animation/ */

@keyframes blink {
  0% {transform: scale(1,1.6);}
  2% {transform: scale(1,0);}
  4% {transform: scale(1,0);}
  5% {transform: scale(1,1.6);}
  100% {transform: scale(1,1.6);}
}

@-webkit-keyframes blink {
  0% {transform: scale(1,1.6);}
  2% {transform: scale(1,0);}
  4% {transform: scale(1,0);}
  5% {transform: scale(1,1.6);}
  100% {transform: scale(1,1.6);}
}


/* /////////////////// */
/* RANGE SLIDER -- http://codepen.io/aronwoost/pen/nlyrf */
/* /////////////////////////////////////////////////////////////////////////////////////////////// */

* {
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}

.slider {
  width: 200px;
  position: absolute;
  right: 325px;
  top: 19px;
}

.slider-volume {
  right: 567px;
}

input[type="range"] {
  width: 100%;
  height: 3px;
  margin: 0;
  border: none;
  padding: 1px 4px;
  border-radius: 14px;
  background: rgba(35, 37, 40, .6);
  -webkit-appearance: none;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
  -webkit-box-shadow: inset 0 1px 0 0 #0d0e0f, inset 0 -1px 0 0 #3a3d42;
          box-shadow: inset 0 1px 0 0 #0d0e0f, inset 0 -1px 0 0 #3a3d42;
  outline: none; /* no focus outline */
}

input[type="range"]::-moz-range-track {
  border: inherit;
  background: transparent;
}

input[type="range"]::-ms-track {
  border: inherit;
  color: transparent; /* don't drawn vertical reference line */
  background: transparent;
}

input[type="range"]::-ms-fill-lower,
input[type="range"]::-ms-fill-upper {
  background: transparent;
}

input[type="range"]::-ms-tooltip {
  display: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  -webkit-box-shadow: inset 0 1px 0 0 black, inset 0 -1px 0 0 black;
  box-shadow: inset 0 1px 0 0 black, inset 0 -1px 0 0 black;
  width: 16px;
  height: 16px;
  border: none;
  border-radius: 12px;
  background-color: white;
  cursor: ew-resize ;
}
input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: none;
  border-radius: 12px;
  background-color: white;
  cursor: ew-resize ;
}

input[type="range"]::-ms-thumb {
  width: 16px;
  height: 16px;
  border-radius: 12px;
  border: 0;
  background-image: linear-gradient(to bottom, #529de1 0, #245e8f 100%); /* W3C */
}

/* /////////////////// */
/* MODAL STUFF -- http://tympanus.net/Development/ModalWindowEffects/ */
/* /////////////////////////////////////////////////////////////////////////////////////////////// */

/* http://css-tricks.com/forums/topic/transforms-cause-font-smoothing-weirdness-in-webkit/ */
.md-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 50%;
  max-width: 630px;
  min-width: 320px;
  height: auto;
  z-index: 2000;
  visibility: hidden;
  color: white;
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateX(-50%) translateY(-50%);
     -moz-transform: translateX(-50%) translateY(-50%);
      -ms-transform: translateX(-50%) translateY(-50%);
       -o-transform: translateX(-50%) translateY(-50%);
          transform: translateX(-50%) translateY(-50%);
}

.md-show {
  visibility: visible;
}

.md-show.md-effect-1 .md-content {
  opacity: 0.7;
  -webkit-transform: scale(1);
     -moz-transform: scale(1);
      -ms-transform: scale(1);
       -o-transform: scale(1);
          transform: scale(1);
}

.md-effect-1 .md-content {
  opacity: 0;
  -webkit-transform: scale(0.7);
     -moz-transform: scale(0.7);
      -ms-transform: scale(0.7);
       -o-transform: scale(0.7);
          transform: scale(0.7);
  -webkit-transition: all 0.3s;
     -moz-transition: all 0.3s;
       -o-transition: all 0.3s;
          transition: all 0.3s;
}

.md-content {
  color: #fff;
  background: black;
  position: relative;
  border-radius: 20px;
  margin: 0 auto;
}

.md-content h3 {
  margin: 0;
  font-family: 'Helvetica Neue';
  padding: 0.4em;
  font-size: 2.4em;
  font-weight: 100;
  opacity: 0.8;
  background: rgba(0,0,0,0.1);
  border-radius: 3px 3px 0 0;
}

.md-content > div {
  padding: 15px 40px 30px;
  margin: 0;
  font-weight: lighter;
  font-size: 15px;
}

.md-content > div p {
  margin: 0;
  padding: 10px 0;
}

.md-content > div ul li {
  padding: 5px 0;
  /*font-size: 0.8em;*/
}

#modal-about a, #modal-about a:visited, #modal-soundcloud a, #modal-soundcloud a:visited {
  color: white;
}

#modal-about a:hover {
  text-decoration: none;
}

.md-content button {
  display: block;
  margin: 0 auto;
  font-size: 0.8em;
}

button {
  border: none;
  padding: 0.6em 1.2em;
  background: white;
  color: black;
  font-family: 'Lato', Calibri, Arial, sans-serif;
  font-size: 1em;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-block;
  margin: 3px 2px;
  border-radius: 2px;
}

#modal-keyboard ul {
  padding-left: 0;
}

#modal-keyboard li {
  display: block;
}

/* https://news.ycombinator.com/item?id=2299806 */

.key {
  display: inline-block;
  color: #333;
  font: bold 9pt arial;
  text-decoration: none;
  text-align: center;
  width: 25px;
  height: 23px;
  margin: 3px;
  background: #eff0f2;
  -moz-border-radius: 4px;
  border-radius: 4px;
  border-top: 1px solid #f5f5f5;
  -webkit-box-shadow: inset 0 0 25px #e8e8e8, 0 1px 0 #c3c3c3, 0 2px 0 #c9c9c9, 0 2px 3px #333;
  -moz-box-shadow: inset 0 0 25px #e8e8e8, 0 1px 0 #c3c3c3, 0 2px 0 #c9c9c9, 0 2px 3px #333;
  box-shadow: inset 0 0 25px #e8e8e8, 0 1px 0 #c3c3c3, 0 2px 0 #c9c9c9, 0 2px 3px #333;
  text-shadow: 0px 1px 0px #f5f5f5;
  cursor: text;
}

.key span {
  display: block;
  margin: 5px 0 0;
  text-transform: uppercase;
}

/* /////////////////// */
/* UNSORTED STUFF //// */
/* /////////////////////////////////////////////////////////////////////////////////////////////// */

/*
.q0-9 { fill: rgb(197,27,125); }
.q1-9 { fill: rgb(222,119,174); }
.q2-9 { fill: rgb(241,182,218); }
.q3-9 { fill: rgb(253,224,239); }
.q4-9 { fill: rgb(247,247,247); }
.q5-9 { fill: rgb(230,245,208); }
.q6-9 { fill: rgb(184,225,134); }
.q7-9 { fill: rgb(127,188,65); }
.q8-9 { fill: rgb(77,146,33); }
*/


body > svg line {
  stroke: #f88e22;
  stroke-width: 2px;
}

html.theme_1 body > svg line {
  stroke: #fff;
  stroke-width: 2px;
}

body {
  background: none !important;
}
