body, html {
  height: 100vh;
  margin: 0;
}

body{
	/*background-image: url("images/tile.png");*/
	background-color: #696969;
	background-repeat: repeat;
	color:white;
	/*touch-action: none;*/
}

/******************************/
/**** COMMON PAGE ELEMENTS ****/
/******************************/
.wt-group{
	width:500px;
	overflow: hidden;
	display: flex;
}

.updnbut{
    height:30px;
    width:30px;
}

#grids{
    height:30px;
    width:30px;
}

.valImg{
	width:150px;
}

/****WAIST****/
.clt-waist{
	clear:both;
	width:248px;
	height:205px;
	background-image: url("./images2/ctl_waist.png");
	background-repeat: no-repeat;
	padding:2px;
}

#waistval{
	position: relative;
	height:20px;
	left: 190px;
	top: 50px;
}

.updnbut{
	position: relative;
	left: 190px;
	top: 60px;
}

/****TURRET****/
.clt-turret{
	clear:both;
	width:248px;
	height:205px;
	background-image: url("./images2/ctl_turret.png");
	background-repeat: no-repeat;
	overflow: hidden;
}

#turretval{
	position: relative;
	height:20px;
	left: 190px;
	top: 50px;
}

.updnbut{
	position: relative;
	left: 190px;
	top: 60px;
}

/****SPEED****/
.clt-speed{
	clear:both;
	width:505px;
	height:205px;
	background-image: url("./images2/ctl_speed.png");
	background-repeat: no-repeat;
	overflow: hidden;
}

#speedval{
	position: relative;
	height:20px;
	left: 378px;
	top: 70px;
}

.ltrtbut{
    height:30px;
    width:30px;
	position: relative;
	left: 360px;
	top: 100px;
}

/****PATTERNS****/
.clt-pattern{
	clear:both;
	width:505px;
	height:315px;
	background-image: url("./images2/ctl_patterns.png");
	background-repeat: no-repeat;
	overflow: hidden;
}

#pattern{
	position: relative;
	left: 25px;
	top: 50px;
}

#patt-info{
	position: relative;
	left: 25px;
	top: 70px;
	height:80px;
	width:290px;
}

#pattern-buts{
	position: relative;
	left: 350px;
	top: -270px;
	width:130px;
}

#ballsval{
	position: relative;
	height:20px;
	left: 280px;
	top: -150px;
}

.clt-pattern .updnbut{
	position: relative;
	left: 280px;
	top: -140px;
}
/**/


.title{
  font-family: Arial, Helvetica, sans-serif;
  padding: 1px;
  padding-left: 90px;
  padding-right:90px;
  text-align: center;
  color: white;
  font-size: 30px;
}

/****COMMAND****/
.botControl{
	clear:both;
	width:505px;
	height:315px;
	background-image: url("./images2/ctl_command.png");
	background-repeat: no-repeat;
	overflow: hidden;
}

#firecom{
	position: relative;
	left: 20px;
	top: 50px;
}

.copyButton{
	position: relative;
	left: 200px;
	top: 30px;
	width:100px;
	height:50px;
}

/*Provides space so page content clears controls when scrolling to bottom.*/
#space80{
	width:100%;
	height:80px;
}

/******************/
/**** CONTROLS ****/
/******************/
.butsBotRightToc {
	position: fixed;
	bottom:0px;
	right:0px;
}

.butsBotRight {
	position: fixed;
	bottom:0px;
	right:0px;
}

.butsBotRightMin {
	display:none;
	position: fixed;
	bottom:0px;
	right:0px;
}

.butsBotRightMax {
	display:none;
	position: fixed;
	bottom:0px;
	right:0px;
}

.butsBotRightEoi {
	display:none;
	position: fixed;
	bottom:0px;
	right:0px;
}

.butsBotLeft {
	position: fixed;
	bottom:0px;
	left:0px;
}

.butsTopLeft {
	position: fixed;
	top:0px;
	left:0px;
}

.controlBut{
	height:60px;
}

.btns > a > img {
	padding-left: 10px;
}

.audioRestricted {
	opacity: 0.7;
}

/* Set the cover size based on situation */
.cover {
	display: block;
	margin: auto;
	max-width: 70%;
	max-height: calc(100vh - 100px);
}

/* Phone In Portrait */
@media only screen 
	and (min-device-width: 320px) 
	and (max-device-width: 480px)
	and (orientation: portrait) {
		.cover {
			max-width: 95vw;
		}
}

/* Phone In Landscape */
@media only screen 
	and (min-device-height: 320px) 
	and (max-device-height: 480px)
	and (orientation: landscape) {
		.cover {
			max-height: unset;
		}
}


/* Patreon button is oversized compared to rest so shrink and shift up a bit to look nice. */
.patreonBut{
	height:53px;
	margin-bottom:5px;
}

#audiobar{
	position:absolute;
	bottom:70px;
	right:5px;
	border: 0px solid red;
}
