body {
	user-select: none;
	-webkit-user-select: none;
}

.mobile {
	display: none;
}

body {
    /* set margin to 0 and overflow to hidden, to go fullscreen */
    margin: 0px;
    overflow: auto;
    font: 24px "Lucida Grande", Helvetica, Arial, sans-serif;
	background-color: black;
}
div#msg {
    position: absolute;
    z-index: 995;
    opacity: 0;
    transition:opacity 0.5s ease-out;
    color: silver;
    background: midnightblue;
    border: 1px solid purple;
    padding: 2px 4px 2px 4px;
    pointer-events:none;
}
div#exIm {
    position: absolute;
    z-index: 997;
    opacity: 0;
    transition:opacity 0.5s ease-out;
    color: silver;
    background: midnightblue;
    border: 1px solid purple;
    padding: 2px 4px 2px 4px;
    pointer-events:none;
	top: 5%;
	left: 5%;
}
span.explan {
    font: 18px "Lucida Grande", Helvetica, Arial, sans-serif;
    padding: 0px 0px 0px 0px;
}
textArea#settingsText {
	width: 30em;
	height: 80ex;
	font: 24px "Lucida Grande", Helvetica, Arial, sans-serif;
}

div#container {
    top: 0px;
    left: 0px;
    width: auto;//100%; //1500px;
    height: 100%; //1000px;
    padding: 10px;
    border: 1px solid purple;
}

div.controls {
	//position: absolute;
	cursor: grab;
	font-size: 20px;
    //z-index: 999;
    color: lightblue;
    background-color: hsl(240, 71%, 11%); //#d8d8ff; //lightblue;
    //border: 1px solid royalblue;
    padding: 4px;
	width: 100%;
	height: 100%;
	max-height: 100%;
	overflow: auto;
	scrollbar-width: none;
}

div.controls span {
    //padding: 4px 16px;
    text-decoration: none;
}

div.controls a {
	color: #99f;
}


input[type=button].ctrlTab {
	display: none;
	position: absolute;
	z-index: 999;
	border: none;
	left: 0;
	top: 50%;
	height: auto;
	width: auto;
	padding: 3px;
	color: hsl(0, 0%, 73%);
	background-color: hsl(0, 0%, 19%);
	transform: rotate(90deg);
	transform-origin: bottom left;
	font: 20px "Lucida Grande", Helvetica, Arial, sans-serif;
	cursor: default;
}

div.annotation {
	position: absolute;
	border: none;
	left: 0;
	width: auto;
	height: auto;
	bottom: 0;
	color: hsl(180, 100%, 77%);
	background-color: transparent;
	z-index: 990;
	pointer-events: none;
	font: 40px "Lucida Grande", Helvetica, Arial, sans-serif;
	padding-left: 1%;
	padding-bottom: 1%;
}

.timetable td {
    //text-align: center;
}

.rowspaced {
	border-spacing: 0 1ex;
}

div.controls .heading {
    display: block;
    color: white;
    background-color: hsl(240, 78%, 14%);
}

.control {
    background-color: hsl(240, 43%, 1%);
    border: 1px solid hsl(240, 78%, 14%);
    padding: 2px 4px 2px 4px;
}

.element {
	display: block;
}

.advanced {
	display: none;
}

.accordion {
	font-size: 26px;
	margin-top: 1ex;
    padding: 4px 4px;
    display: block;
    color: hsl(120, 100%, 60%);
    transition: 0.2s;
    cursor: pointer;
	width: auto;
}

.accordion td {
	padding-left: 2px;
}

.accordion:hover {
    background-color: hsl(240, 71%, 31%); //#d8d8ff; //lightblue;
}

.option, .nonoption {
    padding: 4px 16px;
    color: lightblue;
    display: block;
}

.optionnonblock {
    padding: 4px 16px;
    color: lightblue;
	display: inline;
}

input.option, input.nonoption {
  margin: 0;
  width: 100%;
  border: 1px solid hsl(0, 0%, 47%);
  background-color: hsl(240, 100%, 78%);
  padding: 0px;
  font-size: 20px;
  font-weight: normal;
  cursor: pointer;
}

input[type=button] {
  -webkit-appearance: none;
  //margin: 6px;
  width: auto;
  border: 1px solid hsl(0, 0%, 27%);
  color: hsl(60, 100%, 50%);
  background-color: hsl(240, 45%, 34%);
  padding: 2px 2px 2px 2px;
  margin: 2px 2px;
  font-size: 20px;
  font-weight: normal;
  //cursor: pointer;
  text-align: center;
  align: center;
}

input[type=button]:hover {
  background-color: hsl(240, 100%, 63%);
}
input[type=button]:active {
  background-color: hsl(240, 100%, 67%);
}

.cpselect {
    margin: 2px 4px 2px auto;
    border: none;
    color: hsl(60, 100%, 50%);
    background-color: hsl(246, 45%, 34%);
    font-size: 20px;
	width: auto;
	height: auto;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

.moonItem {
    color: hsl(75, 100%, 50%);
}

.cpselect-square {
    margin: 2px 0 2px 0;
    border: none;
    color: hsl(60, 100%, 47%);
    background-color: hsl(246, 45%, 34%);
    font-size: 20px;
}

select:hover {
    background-color: hsl(240, 100%, 56%);
}

input[type="number"] {
    -moz-appearance: textfield;
	font-size: 20px;
	color: hsl(72, 100%, 47%);
	background-color: hsl(240, 45%, 34%);
    text-align: right;
}

//input[type="number"]:hover,
//    -moz-appearance: number-input;
//	background-color: hsl(240, 45%, 75%);
//}

.centered {
	margin: 1% 5%;
}

input.d1 {
    width: 1.6em;
    text-align: center;
}
input[type="text"].d2 {
    width: 2.2em;
    text-align: right;
}
input.d3 {
    width: 2.6em;
    text-align: right;
}
input.d4 {
    width: 3.2em;
    text-align: right;
}
input[type="number"].d2 {
    width: 2.2em;
    text-align: right;
}
input[type="number"].d3 {
    width: 2.6em;
    text-align: right;
}
input[type="number"].d4 {
    width: 3.2em;
    text-align: right;
}
input[type="number"].d5 {
    width: 4em;
    text-align: right;
	padding-right: 0.25em;
}

.viewnum  {
    width: 4em;
	padding-right: 0.25em;
}

.locationnum  {
    width: 4em;
	padding-right: 0.25em;
}

.onscreen_controls input[type=button]:hover {
	color: hsl(0, 0%, 67%);
	background-color: hsl(240, 100%, 63%);
}

.onscreen_controls {
	color: hsl(75, 100%, 50%);
	background-color: transparent;
	font-size: min( 24px, 3.3vmin );
    z-index: 500;
	height: auto;
	position: absolute;
	width: auto;
	margin: 0;
	padding: .5ex 0 .5ex 0;
	//display: none;
}

.onscreen_controls table {
	border-spacing: 0.2ex;
}

.onscreen_controls table td {
	padding-top: 0px;
	padding-bottom: 0px;
	padding-left: auto;
	padding-right: auto;
	text-align: center;
	color: hsl(200, 43%, 60%);
}

.onscreen_controls2 {
	color: hsl(0, 0%, 47%);
	background-color: transparent;
	font-size: 24px;
    z-index: 500;
	position: absolute;
}

.onscreen_controls input {
	display: block;
	margin: auto;
	color: hsl(200, 43%, 47%);
	background-color: transparent;
	border: 0px solid hsl(0, 0%, 47%);
	margin: 0px;
}

.onscreen_controls input[type=button] {
	font-size: min( 24px, 3.3vmin );
	margin: 0;
}

.onscreen_controls input[type=button]:hover {
	background-color: hsl(60, 30%, 25%);
	color: hsl(200, 43%, 60%);
}

.onscreen_controls input[type=button]:active {
	color: hsl(200, 43%, 70%);
	background-color: hsl(60, 30%, 40%);
}

#os-planet {
	width: auto;
	color: hsl(60, 53%, 59%);
	text-align: center;
}

.oscselect {
	display: inline;
	border: 1px solid hsl(60, 53%, 59%);
	color: hsl(60, 53%, 59%);
    background-color: black;
	margin: 5 0 5 0;
	width: auto;
	height: auto;
    font-size: 0.85em;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
	text-align-last: center;
}

.oscselect .moonItem {
    color: hsl(75, 100%, 50%);
}


#os-planet input[type=button] {
	display: inline;
	padding: 0;
	color: hsl(60, 53%, 59%);
	background-color: transparent;
	border: 0px solid hsl(60, 53%, 59%);
	margin: 0px;
}
#os-planet input[type=button]:hover {
	background-color: hsl(60, 30%, 25%);
	color: hsl(60, 53%, 69%);
}
#os-planet input[type=button]:active {
	color: hsl(60, 53%, 69%);
	background-color: hsl(60, 30%, 40%);
}


#os-floating {
	margin: auto;
	width: 5em;
	color: hsl(60, 53%, 59%);
	background-color: transparent;
	border: 1px solid hsl(60, 53%, 59%);
}
#os-real-time {
	margin: auto;
	width: 5em;
	color: hsl(200, 43%, 60%);
	background-color: transparent;
	border: 1px solid hsl(200, 43%, 60%);
}

#os-real-time:hover {
	background-color: hsl(60, 30%, 25%);
}
#os-floating:hover {
	background-color: hsl(60, 30%, 25%);
}
#os-real-time:active {
	background-color: hsl(60, 30%, 40%);
}
#os-floating:active {
	background-color: hsl(60, 30%, 40%);
}

.top_left {
	left: 0.4ex;
	top: 0.2ex;
	padding: .25ex .5em .5ex 0;
}

.top_right {
	top: 0.6vw;
	right: 0.4vw;
	padding: 0 0 .5vh .5vw ;
}

.bottom_left {
	left: 0.4ex;
	bottom: 0.2ex;
	padding: .5ex .5em 0 0;
}

.bottom_right {
	right: 0.4ex;
	bottom: 0.2ex;
	padding: .5ex 0 0 .5em;
}

.osselect:hover {
	color: hsl(0, 0%, 67%);
	background-color: hsl(240, 100%, 63%);
}
.osselect:active {
	color: hsl(0, 0%, 67%);
	background-color: hsl(0, 23%, 41%);
}

::-webkit-scrollbar {
    width: 0px;
}

.fade {

	transition:opacity 1s ease-out 2s;

}
.fade1 {

	transition:opacity 0.5s ease 0.5s;

}
.quickfade {

	transition:opacity 0.3s ease 0.3s;

}

.disable {
	pointer-events: none;
}

.touch-circle {
	position: absolute;
	z-index: 990;
	border: 3px solid white;
	width: auto; //calc(2ex + 3px);
	height: auto; //calc(2ex + 3px);
	border-radius: calc(2ex + 3px);
	-webkit-border-radius: calc(2ex + 3px);
	background: transparent;
	display: none;
}

.touch-circle-inner {
	position: relative;
	border: 3px solid black;
	width: 2ex;
	height: 2ex;
	border-radius: 2ex;
	-webkit-border-radius: 2ex;
	background: transparent;
	display: block;
}

// mozilla sliders - webkit must go in <style> element.
input[type=range] {
    -webkit-appearance: none;
	appearance: none;
}

input[type=range]::-moz-range-track {
    appearance: none;
    width: 100%;
    height: 1.2em;
    cursor: pointer;
    box-shadow: 1px 1px 1px hsl(0, 0%, 0%), 0px 0px 1px hsl(0, 0%, 5%);
    background: hsl(240, 100%, 30%); //darkblue;
    border-radius: 1.3px;
    border: 0.2px solid hsl(0, 0%, 0%);
}
input[type=range]:hover::-moz-range-track {
    background: hsl(240, 100%, 65%);
}
input[type=range]::-moz-range-thumb {
    appearance: none;
    box-shadow: 1px 1px 1px hsl(0, 0%, 0%), 0px 0px 1px hsl(0, 0%, 5%);
    border: 0.2px solid hsl(0, 0%, 0%);
    height: 1.2em;//1em;
    width: 1.2em;//1em;
    border-radius: 50%;
    background: hsl(240, 100%, 70%);
    cursor: pointer;
}
input[type=range]:hover::-moz-range-thumb {
    background: hsl(240, 100%, 85%);
}
