
/* Tell the browser to render HTML 5 elements as block */
header, footer, aside, article, body, canvas, tab {
    display: block;
}
/*
html {
    height: 100%;
}
*/

body {
    margin: 0 auto;
    padding: 0;
    width: 940px;
/*     min-height: 100%; 
    position: relative; 
    top: 0px; */
    font-family: Verdana,Geneva,'DejaVu Sans',sans-serif;
    font-size: 16px;
    text-align:center;
    background-color: #f1f2f5; /* body backgnd */
/*    white-space: nowrap; /* otherwise pre-wrap spaces out all elements, nowrap squishes table */
}
 
header {
    width: 100%;
    max-width: 911px;
    border: 2px solid #c0c0c0;
    border-radius: 22px 0  0 22px;
    margin-bottom: 20px; /* some space below the header box */
    margin-top: 5px; /* some space above */
    max-height: 150px;
    /* background-color: #fdfdfd; */
    font-size: 19px;
    text-align: left;
    padding-left: 15px;
    padding-right: 10px;
    padding-bottom: 0px;
    color: #eee;
    -webkit-text-fill-color: #445; /* will override color (regardless of order) */
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: #eee;
    overflow: hidden;
}

.header-title {
    background-image: linear-gradient(to top right, rgba(1, 90, 156, 0.9), rgba(33, 103, 255, 0.1)),
    url("../img/lp-guitar-at-neck-pickup.jpg"),
    url("../img/lp-guitar-neck-diagonal-long.jpg"),
    /* url("../img/charvel-750-diagonal-down.jpg"), */
    url("../img/Roland-Space-Echo-RE200-front-panel.jpg");
    background-position: top left, bottom left, top right, 25px;
    background-size: 100%, 30%, 38%, 100%;
    background-repeat: no-repeat, no-repeat, no-repeat, repeat-x;
}

.header-piano {
    background-image: linear-gradient(to top right, rgba(1, 156, 90, 0.9), rgba(33, 255, 103, 0.1)),
        url("../img/art-piano-keyboard-angle-other.png"),
        url("../img/art-piano-keyboard-large-blur.png"),
        url("../img/Roland-Space-Echo-RE200-front-panel.jpg");
    background-position: top left, bottom left, top right, 25px;
    background-size: 100%, 32%, 38%, 100%;
    background-repeat: no-repeat, no-repeat, no-repeat, repeat-x;
}

footer {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
    margin-bottom: 10px;
}

#scaletitle.titlediv {
    height: 42px;
    min-height: 42px;
    float: left;
    min-width: 83%;
    max-width: 83%;
    margin-left: 32px;
    overflow: hidden;
}

/* use relative positioning and note DOM elements are transparent by default */
.container {
    position: relative;
    background-color: #fdfdfd;
    border: none;
}

/* set all the canvas layers to be positioned absolutely within the container */
.container > canvas {
  position: absolute;
  top: 0;
  left: 0;
}

#metacontainer.container {
}

/* setting up and styling the tabs */
.tab {
    overflow: hidden;
    border: none;
    padding: 0px 0px 0px 0px;
    margin: 0px 0px 0px 0px;
    font-size: 0px;
    background-color: #f1f2f5; /* default unselected, also body backgnd */
}

/* Style the buttons that are used to open the tab content */
.tab button {
    font-size: 17px;
    font-weight: bold;
    color: #555;
    background-color: #f1f2f5; /* default unselected, also body backgnd */
    border: 2px #c0c0c0;
/*    box-shadow: 0px 3px 0px 0px #303030; */
    border-style: solid solid none none;
    outline: none;
    border-radius: 20px 0px 0 0; /* only top left */
    moz-border-radius: 16px 0px 0 0;
    webkit-border-radius: 6px 0px 0 0;
    outline: none;
    cursor: pointer;
    height: 70px;
    /* make it so all the buttons fill ~100% container width */
    width: 10%;
    padding: 2px 4px;
    transition: 0.3s;
    float: left;
    display: inline-block;
}

/* custonize tab button widths for better spacing */
.tab button:nth-child(6) {width: 11%; padding: 1px;}
.tab button:nth-child(7) {width: 11%; padding: 1px;}
.tab button:nth-child(8) {width: 9%; padding: 1px;}
.tab button:nth-child(9) {width: 11%; padding: 1px;}
.tab button:last-of-type {width: 8%; padding: 2px;}

/* Change background color of tab buttons on hover */
.tab button:hover {
    background-color: #cdcdcd;
}

/* Create an active/current tablink class */
.tab button.active {
    color: #231f20;
    border-color: #231f20;  /* darker */
    background-color: #fdfdfd; /* same as metacontainter */
}

/* Style the tab content (don't really have any yet, maybe for about/how-to */
.tabcontent {
    display: none;
    padding: 6px 12px;
    border: 1px solid #cccccc;
    border-top: none;
    animation: fadeEffect 0.5s; /* fade takes half second */
}

/* fades goes from zero to full opacity */
@keyframes fadeEffect {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* get rid of those lame selection dotted lines around objects */
::-moz-focus-inner, :active, :focus {
    outline:none;
    border:0;
    -moz-outline-style: none;
}

/* styling specific to arrows and triangles for buttons/controls */
/*
i {
    border: solid #666;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 4px 3px 3px 4px;
}
.right {
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
}
.left {
    transform: rotate(135deg);
    -webkit-transform: rotate(135deg);
}
.up {
    transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);
}
.down {
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
}
*/
.triangle {
  font-size: 50%;
  position: absolute;
  right: 10px;
  top: -2px;
  bottom: 0;
  margin-top: auto;
  margin-bottom: auto;
  height: 5px;
  color: #fff;
}

/* main stuff for the fretboard, buttons, and controls */

#uppercontainer.container {
    display: inline-block;
    width: 100%;
    margin: 0px 0px 0px 0px;
}

#fretcontainer.container {
    float: left;
    width: 883px; /* same size as freboard img */
    height: 188px;
    border-style: solid;
    border-color: #fdfdfd;
    border-width: 25px 3px 10px 5px;
    margin: 0px 0px 0px 0px;
}

#keyboardcontainer.container {
    /* float: left; */
    display: inline-block;
    width: 927px; /* same size as keyboard imgs */
    height: 246px;
    border-style: solid;
    border-color: #898989;
    border-width: 2px 2px 3px 3px;
    margin: 20px 0px 10px 0px;
}

canvas#canvas_background {
    visibility: visible;
}

#tunercontainer.container {
  display: inline-block;
  float: left;
  overflow: hidden;
  width: 42px;
  margin-left: 3px;
}

/* first the tuning buttons */
.tune-button {
  /* float: left; */
  display: inline-block;
  background-color: #f1f2f5; /* default unselected, close to body backgnd */
  width: 42px;
  height: 26px;
  min-width: 42px;
  font-size: 14px; font-weight: bold;
  color: #666;
  border: solid #999;
  /* letter-spacing: 0.075rem; */
  box-sizing: border-box;
  /* padding: 5px 3px 5px 3px; */
  position: relative;
  cursor: pointer;
  transition: background .3s ease;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none; /* make it so text is NOT selectable */
}

#tuneupbutton.tune-button {
  border-radius: 20px 20px 0 0;
  border-width: 2px 2px 1px 2px;
}

#tunedownbutton.tune-button {
  border-radius: 0 0 20px 20px;
  border-width: 1px 2px 2px 2px;
}

#tuneupbutton.tune-button:before {
    content: "\f106";
    font-family: FontAwesome;
}

#tunedownbutton.tune-button:before {
    content: "\f107";
    font-family: FontAwesome;
}

.tune-button:hover {
    background-color: #cdcdcd;
    text-decoration: none;
    transition: background .3s ease;
}

.tune-button:active {
  background: #999;
  transition: background .2s ease;
}

select.tuner-select {
  overflow: hidden;
  color: #777;
  border-style: solid;
  border-color: #999;
  border-width: 1px 2px 1px 2px;
  border-radius: 5px 0px 0px 0px;
  padding: 0px;
  margin: 0px;
  text-padding: 0px;
  font-size: 12px;
  height: 31px;
  width: __;
  min-width: 42px;
  max-width: 42px;
/*  list-style: none; */
  outline: none;
/*  box-shadow: 0px 2px 6px 0 rgba(0,0,0,0.2); */
/*  transition: all .3s ease; */
}

.tuner-select select {
  padding: 0px;
  border: none;
  width: 80%;
  box-shadow: 0px 2px 6px 0 rgba(0,0,0,0.2);
}

.tuner-select option {
  border: none;
  margin: 0px;
  background: #fff;
  padding: 2px 0px 3px 0px;
/*  box-sizing: border-box; */
  font-size: 12px;
  text-align-last: center; text-align: center;
  -ms-text-align-last: center;
  -moz-text-align-last: center; text-align-last: center;
  cursor: pointer;
/*  max-width: 42px; */
/*   width: 42px; /* only selected area, not dropdown */
  width: __;
}
.tuner-select option:hover,
.tuner-select option:focus {
  box-shadow: 0 0 10px 20px #aaa inset;
  color: #666;
  background: #f6f6f6;
  transition: background .2s ease;
}
.tuner-select select:focus {
  background: #f6f6f6;
}

/* the control buttons BELOW the fretboard */
#control-button-container.container {
   height: 36px;
   max-height: 36px;
   padding: 1px;
   margin-left: auto;
   display: inline-block;
}

/* styling for our dropdown button and list */
.dropdown-menu {
    display: flex;
    display: inline-block;
    position: relative;
}
.dropdown-button {
  background-color: #f1f2f5; /* default unselected, close to body backgnd */
  width: 120px;
  min-width: 120px;
  height: 34px;
  font-size: 14px; font-weight: bold;
  color: #666;
  border: 2px solid #999; border-radius: 20px;
  /* letter-spacing: 0.025rem; */
  box-sizing: border-box;
  padding: 5px 3px 5px 3px;
  position: relative;
  vertical-align: middle;
  cursor: pointer;
  transition: background .3s ease;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none; /* make it so text is NOT selectable */
  /* text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4); */
  /* -webkit-box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.4), inset 0 2px 3px rgba(255, 255, 255, 0.9);
  -moz-box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.4), inset 0 2px 3px rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.4), inset 0 2px 3px rgba(255, 255, 255, 0.9);
  */
}
.dropdown-button:hover, .dropdown-button:focus {
  background: #cdcdcd;
  /* box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.4); */
  text-decoration: none;
  transition: background .3s ease;
}
.dropdown-button:active {
  background: #999;
  transition: background .2s ease;
  -webkit-box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.6);
  -moz-box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.6);
}
.dropdown-menu ul.active {
  visibility: visible;
  transition: all .3s ease;
  transform: scaleY(1);
}
.dropdown-menu ul {
  visibility: hidden;
  overflow: auto;
  color: #777;
  font-size: 14px;
  padding: 0;
  list-style: none;
  transform: scaleY(0);
  transform-origin: top;
  box-shadow: 0px 2px 6px 0 rgba(0,0,0,0.2);
  position: absolute;
  z-index: 11;
  right: 20px;
  margin-top: 0px;
  top: 100%;
  min-width: 80px;
  transition: all .3s ease;
}
.dropdown-menu li {
  background: #fff;
  padding: 5px 10px 5px 15px;
  box-sizing: border-box;
  cursor: pointer;
  transition: background .2s ease;
}
.dropdown-menu li:hover {
  background: #f6f6f6;
  transition: background .2s ease;
}

/* regular style buttons for the fill/polulate and clear fretboard actions */
/* this is basically the same as the dropdown-button, could make same class */
.click-button {
  /* float: left; */
  display: inline-block;
  background-color: #f1f2f5; /* default unselected, close to body backgnd */
  width: 90px;
  height: 34px;
  min-width: 80px;
  font-size: 14px; font-weight: bold;
  color: #666;
  border: 2px solid #999; border-radius: 20px;
  letter-spacing: 0.075rem;
  box-sizing: border-box;
  padding: 5px 3px 5px 3px;
  position: relative;
  vertical-align: top;
  margin-left: 20px;
  cursor: pointer;
  transition: background .3s ease;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none; /* make it so text is NOT selectable */
  /* text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4); */
  /* -webkit-box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.4), inset 0 2px 3px rgba(255, 255, 255, 0.9);
  -moz-box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.4), inset 0 2px 3px rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.4), inset 0 2px 3px rgba(255, 255, 255, 0.9);
  */
}
.click-button:hover {
/* .click-button:hover, .click-button:focus { */
  background: #cdcdcd;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: background .3s ease;
}
.click-button:active {
  background: #999;
  transition: background .2s ease;
  -webkit-box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.6);
  -moz-box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.6);
}


/* radio button type buttons and button group */

/* the group of radio buttons as a single element */
.btn-group {
  display: inline-block;
  overflow: hidden;
  /* position: relative; */
  margin-left: 5px;
  margin-right: 5px;
  padding: 0px;
  vertical-align: top;
  -webkit-width: 300px;
  -moz-width: 332px;
  -ms-width: 330;
  height: 30px;
  min-width: 200px;
  max-width: 336px;
  background-color: #f1f2f5; /* default unselected, close to body backgnd */
  color: #666;
  border: 2px solid #999; border-radius: 20px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none; /* make it so text is NOT selectable */
}

input[type="radio"] {
  display: none;
}

input[type="radio"] + label {
  display: inline-block;
  background-color: #f1f2f5; /* default unselected, close to body backgnd */
  color: #666;
  vertical-align: middle;
  text-align: center;
  margin: 0px -6px 0px 0px;
  cursor: pointer;
}

/* different styling for the differet positions of the buttons */
.btn-primary {
  font-size: 15px; font-weight: bold;
  padding: 5px 5px 7px 5px;
  border-left: 1px solid #aaa;
}

.btn-primary-left {
  display: inline-block;
  float: left;
  font-size: 15px; font-weight: bold;
  padding: 5px 10px 7px 17px;
}

.btn-primary-right {
  display: inline-block;
  font-size: 15px; font-weight: bold;
  padding: 5px 15px 7px 5px;
  border-left: 1px solid #aaa;
}

input[type="radio"]:checked + label {
  outline: 0;
  -webkit-box-shadow: inset 0 2px 4px rgba(255,255,255,0.15),0 1px 2px rgba(255,255,255,0.05);
  -moz-box-shadow: inset 0 2px 4px rgba(255,255,255,0.15),0 1px 2px rgba(255,255,255,0.05);
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.15),0 1px 2px rgba(255,255,255,0.05);
/* same as above but black shadow
  -webkit-box-shadow: inset 0 2px 4px rgba(0,0,0,0.15),0 1px 2px rgba(0,0,0,0.05);
  -moz-box-shadow: inset 0 2px 4px rgba(0,0,0,0.15),0 1px 2px rgba(0,0,0,0.05);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.15),0 1px 2px rgba(0,0,0,0.05);
 */
  color: #111;
  /* make background-color a flat but electric blue to match select border */
  background-color: rgb(102, 175, 233);
}

input[type="radio"]:hover + label {
  background: #cdcdcd;
  text-decoration: none;
  transition: background .3s ease;
}

input[type="radio"]:checked:hover + label {
  background: #85c1e9; /* light blue */
  text-decoration: none;
  transition: background .3s ease;
}


/* toggle switch slider type buttons */

/* for the lettername sharp/flat, tonic show/hide, left/right, and future: fretlength 12/24 */
.sfonoffswitch {
    /* float: left; */
    display: inline-block;
    position: relative;
    width: 90px;
    margin-left: 10px;
    vertical-align: top;
    -webkit-user-select:none; -moz-user-select:none; -ms-user-select: none;
    user-select: none; /* make it so text is NOT selectable */
}
.sfonoffswitch-checkbox {
    display: none;
}
.sfonoffswitch-label {
    display: block; overflow: hidden; cursor: pointer;
    border: 2px solid #999; border-radius: 20px;
}
.sfonoffswitch-inner {
    display: block; width: 200%; margin-left: -100%;
    transition: margin 0.3s ease-in 0s;
}

.sfonoffswitch-inner:before, .sfonoffswitch-inner:after {
    display: block; float: left; width: 50%; height: 30px; padding: 0; line-height: 30px;
    font-size: 20px; color: white; font-weight: bold;
    box-sizing: border-box;
}
.sfonoffswitch-inner:before {
    content: "♯"; /* sharp */
    padding-left: 15px;
    background-color: #eee; color: #cc2911;
    text-align: left;
}
.sfonoffswitch-inner:after {
    content: "♭"; /* flat */
    padding-right: 15px;
    background-color: #eee; color: #116699;
    text-align: right;
}

.sfonoffswitch-switch {
    display: block; width: 20px; margin: 5px;
    background: #3366cc;
    position: absolute; top: 0; bottom: 0;
    right: 56px;
    border: 2px solid #999; border-radius: 20px;
    transition: all 0.3s ease-in 0s; 
}
.sfonoffswitch-checkbox:checked + .sfonoffswitch-label .sfonoffswitch-inner {
    margin-left: 0;
}
.sfonoffswitch-checkbox:checked + .sfonoffswitch-label .sfonoffswitch-switch {
    right: 0px; 
    background-color: #ff3300; 
}

/* similar stuff as above but for the tonic switch */
.tonoffswitch {
    display: inline-block;
    position: relative;
    vertical-align: top;
    width: 90px;
    -webkit-user-select:none; -moz-user-select:none; -ms-user-select: none;
    user-select: none; /* make it so text is NOT selectable */
}
.tonoffswitch-checkbox {
    display: none;
}
.tonoffswitch-label {
    display: block; overflow: hidden; cursor: pointer;
    border: 2px solid #999; border-radius: 20px;
}
.tonoffswitch-inner {
    display: block; width: 200%; margin-left: -100%;
    transition: margin 0.3s ease-in 0s;
}
.tonoffswitch-inner:before, .tonoffswitch-inner:after {
    display: block; float: left; width: 50%; height: 30px; padding: 0; line-height: 30px;
    font-size: 14px; color: white; font-weight: bold;
    box-sizing: border-box;
}
.tonoffswitch-inner:before {
    content: "show";
    padding-left: 12px;
    background-color: #eee; color: #666;
    text-align: left;
}
.tonoffswitch-inner:after {
    content: "hide";
    padding-right: 12px;
    background-color: #eee; color: #898989;
    text-align: right;
}

.tonoffswitch-switch {
    display: block; width: 20px; margin: 5px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    content: "T"; /* html is what is shown */
    color: #555;
    padding: 0;
    background: #a1a1a1;
    position: absolute; top: 0; bottom: 0;
    right: 56px;
    border: 2px solid #999; border-radius: 20px;
    transition: all 0.3s ease-in 0s; 
}
.tonoffswitch-checkbox:checked + .tonoffswitch-label .tonoffswitch-inner {
    margin-left: 0;
}
.tonoffswitch-checkbox:checked + .tonoffswitch-label .tonoffswitch-switch {
    right: 0px; 
    color: #555;
    background-color: #33cc33; 
}

/* similar stuff as above but for the arpeggio switch */
.arponoffswitch {
    display: inline-block;
    position: relative;
    vertical-align: top;
    width: 90px;
    -webkit-user-select:none; -moz-user-select:none; -ms-user-select: none;
    user-select: none; /* make it so text is NOT selectable */
}
.arponoffswitch-checkbox {
    display: none;
}
.arponoffswitch-label {
    display: block; overflow: hidden; cursor: pointer;
    border: 2px solid #999; border-radius: 20px;
}
.arponoffswitch-inner {
    display: block; width: 200%; margin-left: -100%;
    transition: margin 0.3s ease-in 0s;
}
.arponoffswitch-inner:before, .arponoffswitch-inner:after {
    display: block; float: left; width: 50%; height: 30px; padding: 0; line-height: 30px;
    font-size: 14px; color: white; font-weight: bold;
    box-sizing: border-box;
}
.arponoffswitch-inner:before {
    content: "show";
    padding-left: 12px;
    background-color: #eee; color: #666;
    text-align: left;
}
.arponoffswitch-inner:after {
    content: "hide";
    padding-right: 12px;
    background-color: #eee; color: #898989;
    text-align: right;
}

.arponoffswitch-switch {
    display: block; width: 20px; margin: 5px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    content: "A"; /* html is what is shown */
    color: #555;
    padding: 0;
    background: #a1a1a1;
    position: absolute; top: 0; bottom: 0;
    right: 56px;
    border: 2px solid #999; border-radius: 20px;
    transition: all 0.3s ease-in 0s; 
}
.arponoffswitch-checkbox:checked + .arponoffswitch-label .arponoffswitch-inner {
    margin-left: 0;
}
.arponoffswitch-checkbox:checked + .arponoffswitch-label .arponoffswitch-switch {
    right: 0px; 
    color: #555;
    background-color: #ffcc33; 
}

/* similar stuff as above but for the left right (flip) switch */
.lronoffswitch {
    display: inline-block;
    position: relative;
    margin-right: 0px;
    margin-left: 0px;
    vertical-align: top;
    width: 90px;
    -webkit-user-select:none; -moz-user-select:none; -ms-user-select: none;
    user-select: none; /* make it so text is NOT selectable */
}
.lronoffswitch-checkbox {
    display: none;
}
.lronoffswitch-label {
    display: block; overflow: hidden; cursor: pointer;
    border: 2px solid #999; border-radius: 20px;
}
.lronoffswitch-inner {
    display: block; width: 200%; margin-left: -100%;
    transition: margin 0.3s ease-in 0s;
}
.lronoffswitch-inner:before, .lronoffswitch-inner:after {
    display: block; float: left; width: 50%; height: 30px; padding: 0; line-height: 30px;
    font-size: 14px; color: white; font-weight: bold;
    box-sizing: border-box;
}
.lronoffswitch-inner:before {
    content: "right";
    padding-left: 12px;
    background-color: #eee; color: #666;
    text-align: left;
}
.lronoffswitch-inner:after {
    content: "left";
    padding-right: 12px;
    background-color: #eee; color: #666;
    text-align: right;
}

.lronoffswitch-switch {
    display: block; width: 20px; margin: 5px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    content: "H"; /* html is what is shown */
    color: #fdfdfd;
    background: #555;
    padding: 0;
    position: absolute; top: 0; bottom: 0;
    right: 56px;
    border: 2px solid #999; border-radius: 20px;
    transition: all 0.3s ease-in 0s; 
}
.lronoffswitch-checkbox:checked + .lronoffswitch-label .lronoffswitch-inner {
    margin-left: 0;
}
.lronoffswitch-checkbox:checked + .lronoffswitch-label .lronoffswitch-switch {
    right: 0px; 
    color: #555;
    background-color: #fdfdfd; 
}

/* similar stuff as above but for the (flat/evil) fifth switch */
.fifthswitch {
    display: inline-block;
    float: right;
    position: relative;
    margin: 10px 28px 0px 0px;
    width: 90px;
    -webkit-user-select:none; -moz-user-select:none; -ms-user-select: none;
    user-select: none; /* make it so text is NOT selectable */
}
.fifthswitch-checkbox {
    display: none;
}
.fifthswitch-label {
    display: block; overflow: hidden; cursor: pointer;
    border: 2px solid #999; border-radius: 20px;
}
.fifthswitch-inner {
    display: block; width: 200%; margin-left: -100%;
    transition: margin 0.3s ease-in 0s;
}
.fifthswitch-inner:before, .fifthswitch-inner:after {
    display: block; float: left; width: 50%; height: 30px; padding: 0; line-height: 30px;
    font-size: 20px; color: white; font-weight: bold;
    box-sizing: border-box;
    overflow: hidden;
}
.fifthswitch-inner:before {
    content: "♮";
    padding-left: 25px;
    background-color: #cc1000; color: #eee; /* rather red */
    text-align: left;
}
.fifthswitch-inner:after {
    content: "♭";
    padding-right: 25px;
    background-color: #cc4400; color: #111; /* hellfire orange */
    text-align: right;
}

.fifthswitch-inner:disabled:before, .fifthswitch-inner:disabled:after {
    background-color: #eee; color: #898989; /* grey */
}

.fifthswitch-switch {
    display: block; width: 20px; margin: 5px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    content: "5"; /* html is what is shown */
    color: #111;
    padding: 0;
    background: #aa1000;
    position: absolute; top: 0; bottom: 0;
    right: 56px;
    border: 2px solid #999; border-radius: 20px;
    transition: all 0.3s ease-in 0s; 
}

.fifthswitch-checkbox:checked + .fifthswitch-label .fifthswitch-inner {
    margin-left: 0;
}
.fifthswitch-checkbox:checked + .fifthswitch-label .fifthswitch-switch {
    right: 0px; 
    color: #eee;
    background-color: #dd1000; 
}


/* table settings, and put table in container */
#tablecontainer.container {
  display: block;
  border: 10px solid #fdfdfd;
}

/* SS: this is not used right now, only using color-list */
table {
  border-collapse: collapse;
/*     border-collapse:separate;border-spacing:0 5px;width:49.5%;table-layout:fixed
 */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none; /* make it so text is NOT selectable */
}

/* Below is the styling for our main table with id=color-list */
.color-list a,.links-list a,p a{color:#069;text-decoration:none}#linear a:hover,.color-list a:hover,.links-list a:hover,p a:hover{color:#930;text-decoration:underline}.txtw{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.6)}.txtb{color:#000;text-shadow:0 1px 0 rgba(255,255,255,.6)}.tw{color:#fff;text-shadow:0 1px 0 rgba(0,0,0,.2)}.tb{color:#000;text-shadow:0 1px 0 rgba(255,255,255,.2)}.bgtw{background-color:#fff}.bgtb{background-color:#565656;text-shadow:0 -1px 0 rgba(0,0,0,1)}.left{float:left}.right{float:right}.odd{background:#F5F6FA}.even{background:#fcfdfd}.clear:after{content:" ";clear:both;display:block;height:0;visibility:hidden}

/* then later */
.color-list{border-collapse: collapse; /* SS: was separate; */ border-spacing:0 10px;color:#777;display:table;font-size:14px;margin-top:10px;width:100%}.color-list a{text-decoration:none}.color-list tr:nth-child(odd) td{background:#FCFDFD}.color-list tr:nth-child(even) td{background:#F5F6FA}.color-list tr:hover td{background-color:#EDEFF4}
.color-list tr td{width:5%; height: 22px}
.color-list tr td:first-child{border-radius:7px 0 0 7px;text-align:center;width:20%}.color-list tr td:first-child a{display:block;font-weight:500;padding:10px 0}
.color-list tr td:first-child a.tw{color:#fff}.color-list tr td:first-child a.tb{color:#000}
.color-list tr td:last-child{border-radius:0 7px 7px 0; width:25%}
.color-list tr td:nth-child(2),.color-list tr th:nth-child(2){padding: 0px; width: 6%}
.color-list tr td:nth-child(3),.color-list tr th:nth-child(3){padding-left: 5px; width:7%}
.color-list tr td:nth-child(4),.color-list tr th:nth-child(4){width:7%}
.color-list tr td:nth-child(8),.color-list tr th:nth-child(8){width:15%}
@media screen and (max-width:768px){.color-list{font-size:13px}.color-list tr td:nth-child(n+3),.color-list tr th:nth-child(n+3){display:none}}@media screen and (max-width:320px){.color-list{font-size:12px}}#footer{margin-top:0;padding:20px 0 30px 0}#footer .fluid-footer{padding:20px 0;border-top:1px solid #D8D8D8}#footer a{color:#777;text-decoration:none}#footer span{color:#777;font-size:12px;margin-top:5px}#footer .about{float:right;text-align:right}#footer .info{float:left;text-align:left}@media screen and (max-width:768px){#footer{padding:20px 0 10px}#footer span{width:100%}}

/* then much later */
.color-list td,.ie6 color-list th,.ie7 .color-list td,.ie7 .color-list th,.ie8 .color-list td,.ie8 .color-list th{text-align:center}

/* add some spacing within the table cells */
.color-list td {
    /* width:50px;height:50px; */
    padding-top: 10px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    text-align: center;
}

/* attributes for the color picker in the color column of table */
.colorpickcell
{
  padding: 0;
  margin: 0;
  outline: none;
  display:inline-block;
  opacity: 0;
  /* visibility: hidden; // does not show picker at all */
}

/* can use an inset shadow for the color cells but that overrides the rounded corners */
td.colorcol {
    /* can add a bluish glow around the colour cells, looks quite nice */
    /* filter: drop-shadow(0 0 8px rgba(102, 175, 233, 0.5)); */
}

h2 {
    font-size: 24px;
    color: #777;
/*     line-height: 40px; */
    padding: 10px 0px 0px 20px;
    text-align: left;
    margin: 0;
}
 
h3 {
    font-family: 'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
    font-size: 18px;
    color: #eee;
    /* line-height: 22px; */
    padding: 3px 0px 0px 0px;
    -webkit-text-fill-color: #eee; /* Will override color (regardless of order) */
    -webkit-text-stroke-width: 0px;
    -webkit-text-stroke-color: #ddd;
}
 
p {
    padding-bottom: 10px;
}


/* at the bottom here style our modal box for the "about" and info dialog */
/* Modal (background properties) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 13; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}
/* Close X Button */
.close-x {
    padding: 0px;
    top: 0px;
    color: #aaa;
    text-align: right;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
.close-x:hover,
.close-x:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
} 
 /* Modal Header */
.modal-header {
    padding: 15px 5px;
    height: 20px;
    background-image: linear-gradient(to right, rgba(1, 90, 156, 1), rgba(33, 103, 255, 0.2));
    color: white;
    border-radius: 20px 20px 0 0;
}

/* Modal Body */
.modal-body {
    font-size: 13px;
    text-align: left;
    padding: 2px 15px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

/* Modal Footer */
.modal-footer {
    padding: 2px 16px;
    height: 25px;
    background-image: linear-gradient(to right, rgba(1, 90, 156, 1), rgba(33, 103, 255, 0.2));
    color: white;
    /* border-radius: 0 0 20px 20px; */
}

/* Modal Content */
.modal-content {
    position: relative;
    background-color: #fdfdfd;
    /* margin-top: 150px; */
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    border-radius: 20px 20px 0 0;
    width: 80%;
    /* max-height: 80%; */
    overflow-y: initial;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    animation-name: animatemodal;
    animation-duration: 0.5s
}
@keyframes animatemodal {
    from {top: -300px; opacity: 0}
    to {top: 0px; opacity: 1}
} 

