body {
	margin: 0;
	background-color: #000;
	color: #fff;
	font-family: Monospace;
	font-size: 13px;
	line-height: 24px;
	overscroll-behavior: none;
}

a {
	color: #f00;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

button {
	cursor: pointer;
	text-transform: uppercase;
}

canvas {
	display: block;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  outline: none;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0); 
  touch-action: none;
}

#info {
	position: absolute;
	top: 0px;
    color:  white;
	width: 100%;
	padding: 10px;
	box-sizing: border-box;
	text-align: center;
	-moz-user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
	z-index: 1; /* TODO Solve this in HTML */
}

@media only screen and (max-width: 600px) and (orientation : portrait) {
    #info {
        top: auto;
        bottom:  0px;
        line-height: 12px;
    }
}

#info2 {
	position: absolute;
	top: 0px;
    right: 0px;
	//width: 200px;
    font-size: 12px;
    background-color:white;
    color: black;
	padding: 10px;
	box-sizing: border-box;
	text-align: center;
	-moz-user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
	z-index: 1; /* TODO Solve this in HTML */
    white-space: nowrap;
}

a, button, input, select {
	pointer-events: auto;
}

#freq {
  position: absolute;
  top: 50px;
  left: 10px;
  display: none;
}

.dg.ac {
	-moz-user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;
	user-select: none;
	z-index: 2 !important; /* TODO Solve this in HTML */
}

#overlay {
	position: absolute;
	z-index: 2;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0,0,0,0.7);
}

	#overlay button {
		background: #ffffff;
		border: 0;
		color: #000000;
		padding: 16px 20px;
		text-transform: uppercase;
		cursor: pointer;
	}

#notSupported {
	width: 50%;
	margin: auto;
	background-color: #f00;
	margin-top: 20px;
	padding: 10px;
}

#clipboard, #tutorial {
    background-image: url(../textures/clipboard.png);
    width: 400px;
    height: 600px;
    position: absolute;
    z-index: 50;
    top: 70px;
    left: 10px;
    display: none;
}

@media only screen and (max-width: 600px) {
    #clipboard, #tutorial {
        transform: scale(0.8);
        top: 30px;
        left: -18px;
    }
}

#cbpaper, #cbpaper2 {
    width: 356px;
    height: 510px;
    position: absolute;
    left: 14px;
    top: 62px;
    padding: 6px;
    color: #000;
}

#cbpaper {
    overflow-y: scroll;
}

#morserx {
    height: 20px;
    overflow: hidden;
}
#cbdata, #cbrdata {
    height: 180px;
    overflow-y: scroll;
    line-height: 12px;
}
#cbdesc, #cbinfo, #cbdesc2, #cbinfo2 {
    line-height: 12px; 
}

#cbinfo2 {
	overflow-y: scroll;
    height: 410px;
}

#cbdata:after,#cbrdata:after {
  content: '';
  width: 10px;
  height: 2px;
  background: black;
  opacity: 0;
  display: inline-block;
  animation: blink 0.5s linear infinite alternate;
}

#cbinfo2 img {
    width: 100%;
    cursor:zoom-in;
}

.tutimg.fullscreen img {
  width: 100%;
  height: 100%;
  cursor:zoom-out !important;
}
.tutimg.fullscreen {
  z-index: 9999;
  position: fixed;
  margin: 0 auto;
  width: 90%;
  height: 90%;
  top: 5%;
  left: 5%;
  background-color: #FFF;
  padding:10px;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.btn {
    color: #fff;
    background-color: #5bc0de;
    padding: 5px;
    border: 1px solid white;
}

#clipbtn {
    position: absolute;
    z-index: 50;
    top: 10px;
    left: 10px;
}
#helpbtn {
    position: absolute;
    z-index: 50;
    top: 10px;
    left: 90px;
}

.pagebtn {
    color: white !IMPORTANT;
    background-color: #587ed6;
    padding: 2px 5px;
    border: 1px solid darkblue;
    //float: right;
    display: inline;
    text-decoration: none !IMPORTANT;
}

#tomorse {
    width:90%;
}

.x {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 23px;
    height: 23px;
    border: 2px solid #eef5df;
    background-color: #ff5248;
    border-radius: 50%;
}

.x::before,
.x::after {
    position: absolute;
    top: 10px;
    left: 5px;
    width: 13px;
    height: 3px;
    content: "";
    background-color: #eef5df;
}

.x::before {
    -ms-transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.x::after {
    -ms-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

.x:hover {
    cursor: pointer;
}

.x:hover {
    transform: scale(1.1);
}

#c {
    width: 100%;
    height: 100%;
}     

.rotation-pad {
position: absolute;
}

.rotation-pad .region {
position: absolute;
width: 100px;
height: 100px;
background: radial-gradient(rgba(218, 225, 230, 0.25) 5%, rgba(218, 225, 230, 0.50) 95%),
      url("../images/cam2.png") center center no-repeat;
border: 2px solid rgba(218, 225, 230, 0.25);
border-radius: 90px;
box-shadow: 0px 0px 5px rgba(194, 200, 204, 0.55);
-webkit-user-select: none;
}

.rotation-pad .handle {
opacity: 0.1;
position: absolute;
height: 30px;
width: 30px;
top: 0px;
left: 0px;
background: radial-gradient(rgba(215, 225, 255, 0.70) 0%, rgba(215, 225, 255, 0.50) 100%);
/*border: 1px solid rgba(145, 105, 245, 0.90);*/
border-radius: 50%;
box-shadow: 0px 0px 7px rgba(195, 205, 245, 0.9);
text-align: center;
font: 24px/44px"Courier New", Courier, monospace;
-webkit-user-select: none;
}

.movement-pad {
position: absolute;
}

.movement-pad .region {
position: absolute;
width: 100px;
height: 100px;
background: radial-gradient(rgba(218, 225, 230, 0.25) 5%, rgba(218, 225, 230, 0.50) 95%),
      url("../images/nav.png") center center no-repeat;
border: 2px solid rgba(218, 225, 230, 0.25);
border-radius: 90px;
box-shadow: 0px 0px 5px rgba(194, 200, 204, 0.55);
-webkit-user-select: none;
}

.movement-pad .handle {
opacity: 0.1;
position: absolute;
height: 30px;
width: 30px;
top: 0px;
left: 0px;
background: radial-gradient(rgba(215, 225, 255, 0.70) 0%, rgba(215, 225, 255, 0.50) 100%);
/*border: 1px solid rgba(145, 105, 245, 0.90);*/
border-radius: 50%;
box-shadow: 0px 0px 7px rgba(195, 205, 245, 0.9);
text-align: center;
font: 24px/44px"Courier New", Courier, monospace;
-webkit-user-select: none;
}

.model a {
  color: black;
  text-decoration:none;
}
.model:hover {
  background-color:#5bc0de;
}

.ldBar {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 50px;
  color: white;
  transform: translate(-50%,-50%);
  -ms-transform: translate(-50%,-50%);
  text-align: center;
}
.ldBar.label-center > .ldBar-label {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  text-shadow: 0 0 3px #fff;
}
.ldBar-label:after {
  content: "%";
  display: inline;
}
.ldBar.no-percent .ldBar-label:after {
  content: "";
}

@media only screen and (max-width: 600px) {
    .ldBar {
        width: 350px !IMPORTANT;
    }
}

#camera-pad {
  position: absolute;
  bottom: 130px;
  right: 130px;
}

.movement-pad {
  position: absolute;
  bottom: 130px;
  left: 30px;
}