  :root {
    --cbwidth: 8vh; /* 8vmax (no work on old iPad (v9.3)*/
    --white: #ffffff;
  }


* {
  box-sizing: border-box;
}

html {
  height: 100%;
  width: 100%;
  margin: 0;
  overflow: hidden;
  touch-action: none; /* stop the friggin iOS gestures!!!! */
}

body {
  height: 100%;
  width: 100%;
  margin: 0;
  background: #492f45;
  font-family: Verdana, sans-serif;
  overflow: hidden;
}

h1 {
  color: white;
}
.orange {
  background-color: orange;
  opacity: 0.8;
}

.absolutely {
  position: absolute;
}

canvas {
    position: absolute;
    left: 0px;
    top: 0px;
    background: #f5f5f2;
    cursor: crosshair;
}			

fieldset {
  position: absolute;
  width: auto;
  margin: 0 auto;
  display: flex;
  padding: 2px;		
}

.smallCanvas {
  position: relative;
}

.center {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
}

.centerText {
  text-align: center;
}

.table-hideable td {
  width: auto;
  transition: width 5s;
}

.hide-col {
  width: 0px !important;
  height: 0px !important;
  display: none !important; /* block wont work on iPad Safari! */
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

table {
  border: 3px solid black;
}

td {
  width: 2em;
  padding: 0px;
  text-align: center;
  cursor: -webkit-pointer; 
  cursor: pointer;
}

table.tdBig td {
  padding: 5px;
  text-align: center;
}

table.tdWide td {
  width: 20em;
  padding: 5px;
/*  text-align: center; */
}

table.tdShort td {
  padding: 0px;
}

.grab {
  cursor: -webkit-grab; 
  cursor: grab;
  background-color: rgba(255, 255, 128, .5);
}

.minmax {
  cursor: -webkit-nesw-resize; 
  cursor: nesw-resize;
  background-color: rgba(255, 255, 128, .5);
}

.bigbutton {
    font-size:4vmax;
    height: 30vmax;
    margin: 5px;
    padding: 0px;
    border-radius: 10px;
    background: antiquewhite;
    opacity: 0.8;
}

button {
/*  font-family: 'Palatino'; */
  font-size:30px;
  height:40px;
  margin: 5px;
  padding: 0px;
  border-radius: 8px;
}

li {
  font-size:1vmax;
}

.plist {
  font-size:3vmax;
  margin: 0px;
  padding: 0px;
}

.soundicon {
  position: absolute;
  font-size:2vmax;
  height: 3vmax;
  margin: 0px;
  padding: 0px;
  border-radius: 10px;
  /* background: rgb(177, 132, 73); */
  background-repeat: no-repeat;
  background-position: center center;
  opacity: 0.9;
  cursor: cell;
}

.stop-select {
    -webkit-user-select: none;  /* Chrome all / Safari all */
    -moz-user-select: none;     /* Firefox all */
    -ms-user-select: none;      /* IE 10+ */
    user-select: none;          /* Likely future */      
  }

  .stomp-select {
    -webkit-user-select: all;  /* Chrome all / Safari all */
    -moz-user-select: all;     /* Firefox all */
    -ms-user-select: all;      /* IE 10+ */
    user-select: all;          /* Likely future */      
  }

select {
  caret-color: red;
/*  font-family: 'Palatino'; */
  font-size:4vw;
}

.lowerLeft {
  position: absolute;
  left: 0px;
  bottom: 0px;
  width: 100%
}

.lower {
  position: absolute;
  margin: 0px;
  bottom: 0px;
  /* width: 100%  */
}

.lobut {
  margin: 0px;
}

flexbox {
  margin: 0 auto;
  display: flex;
  flex-direction: row;     /* make main axis horizontal (default setting) */
  justify-content: left; /* center items horizontally, in this case */
  align-items: center;     /* center items vertically, in this case */	
  }
flexbox.left {
  justify-content: left; /*  */
  align-items: stretch; 
  }

#line:checked { background-image: url(Bits/Lines.jpg); }
#line { background-image: url(Bits/Dots.jpg); }

#cont:checked { background-image: url(Bits/Cont.jpg); }
#cont { background-image: url(Bits/Int.jpg); }

#LFO:checked { background-image: url(Bits/LFO.jpg); }
#LFO { background-image: url(Bits/Freq.jpg); }

#notes:checked { background-image: url(Bits/Keyboard.jpg); }
#notes { background-image: url(Bits/Slider.jpg); }

#togSon:checked { background-image: url(Bits/Vol.jpg); }
#togSon { background-image: url(Bits/Mute.jpg); }

input[type=checkbox] {
  -webkit-appearance: none;
  position: relative;
  width: var(--cbwidth);
  height: calc(var(--cbwidth) / 2);
  background-size: calc(var(--cbwidth) / 1) calc(var(--cbwidth) / 2);
  border-radius: calc(var(--cbwidth) / 8);
  outline: none;
  transition: background-image .90s;
  opacity: 0.9;
  box-shadow: 0px 2px 5px 1px gray;
}

#inputty:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: calc(var(--cbwidth) / 2);
  width: calc(var(--cbwidth) / 2);
  background-color: navy;
  border-radius: calc(var(--cbwidth) / 8);
  transition: all 0.5s;
  opacity: 0.8;
  background-color: #F7CA33;
}

input:checked {
/*  background-image: url(Bits/Dots.jpg); */
  transition: background-image .90s;

}

input:checked:before {
  transform: translate(100%);
  transition: all 0.5s;
  background-color: #ECF0F3;
}

input[type=range] {
  width: 80%;
}

input[type=range].fill {
  width: auto;
}

.smallfont {
  display: block;
  font-size: .67em;
  margin-top: 0em;
  margin-bottom: 0em;
  margin-left: 0;
  margin-right: 0;
  font-weight: bold;
}

.nopadding {
  padding: 0px;
}

.rotate {
  transform: rotate(-90deg);
}
.tdnarrow {
  width: 1em;
}

.Myinline {
  display: inline;
}

/******************************************************/
/* Customize the label (the CBcontainer) */
.CBcontainer {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default checkbox */
.CBcontainer input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 0;
  left: 30%;
  height: 25px;
  width: 25px;
  background-color: #eee;
}

.lefty {
  left: 3%;
}
/* On mouse-over, add a grey background color */
.CBcontainer:hover input ~ .checkmark {
  background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.CBcontainer input:checked ~ .checkmark {
  background-color: #2196F3;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.CBcontainer input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.CBcontainer .checkmark:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.noborder {
  border: 0px;
  padding: 0px;
}

.justright {
  text-align: right;
}

.justleft {
  text-align: left;
}

.slidecontainer {
  width: 33%; /* Width of the outside container */
}

.lilfont {
  font-size:1vmax;
}
