/*
    FoosFit Progressive Web App
	Developed by Aptus Engineering, Inc. for WeFoos LLC
	Author(s): Narendran Muraleedharan <narendran.m@aptus.aero>
			   Rakshith Subramanyam <rakshith.s@aptus.aero>
			   James Guerra <james.g@aptus.aero>

	__DISCLAIMER__
	THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED WARRANTIES,
	INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
	AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
	REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
	SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
	PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
	OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
	WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
	OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
	ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

/*The actual Menu "PB-Ctrl" button which is on the main menu bar is formatted in menu.css*/
/*This keeps all the menu formatting together. Only the Overlay is coded here.*/

/* PB-Control Control Overlay Menu */
.pbcontrol-overlay {
    position:fixed;
    left: 0;
    top: 0;
	margin-left: 5%;
    margin-top: 210px;
    height: 180px;
    width: 0;
	max-width:460px;
    z-index: 5; /* Sit on top */
    background-color: rgb(0,0,0); /* Black fallback color */
    background-color: rgba(0,0,0, .9); /* Black w/opacity */
    overflow: hidden; /* Enable or Disable horizontal scroll */
    transition: 0.3s; /* 0.5 second transition effect to slide in or slide down the */
}


/*PB Test Button for Motor Bug*/
.pbc-test-button-class {
		font-size:10px;
		color:white;
		z-index:20;
		
		background-image: -webkit-gradient(
			linear,
			left bottom,
			left top,
			color-stop(0, rgb(98,190,220)),
			color-stop(1, rgb(30,190,116))
		);						
}

.pbcontrol-topbuttons-div-class {
	position:absolute;
	height:12px;
	z-index:20;
	margin:0;
	padding:0;
	top:1px;
	margin-left:85px;
}

.pbcontrol-invertdefensebutton-class {
	width: 22px;
	color:white;
}

.pbc-convertbytabletype-div-class {
	position:absolute;
	height:12px;
	z-index:20;
	margin:0;
	padding:0;
	top:0px;
	margin-left:118px;
	color:white;
	font-size:10px;
}

.pbc-normalizeposition-div-class {
	position:absolute;
	height:12px;
	z-index:20;
	margin:0;
	padding:0;
	top:0px;
	margin-left:208px;
	color:white;
	font-size:10px;
}

.pbcontrol-defenseduration-div-class {
	display:block;
	position:relative;
	margin:0;
	padding:0;	
}

.pbcontrol-defenseduration-title-div-class {
	display:inline-block;
	color:white;
	font-size:10px;
	margin:0;
	padding:0;
	margin-left:2px;
	max-width:100px;
}

.pbcontrol-defenseduration-time-div-class {
	display:inline-block;
	color:rgb(10,250,170);;
	margin:0;
	padding:0;
	max-width:50px;
}

.pbcontrol-offenseplayer-div-class {
	display:block;
	position:relative;
	margin:0;
	padding:0;	
}

.pbcontrol-offenseplayer-title-div-class {
	display:inline-block;
	color:white;
	font-size:10px;
	margin:0;
	padding:0;
	margin-left:13px;
	/*max-width:100px;*/
}

.pbcontrol-offenseplayer-name-div-class {
	display:inline-block;
	color:rgb(10,250,170);;
	margin:0;
	padding:0;
	/*max-width:200px;*/
}


/*OutputVideoRate (Record and Play) fps */
.pbcontrol-fps-full-class {	
	position:relative;
	display:block;
	margin-bottom:5px;
	width: 100%;
	margin:0px;
	padding:0px;
	background-color:rgba(230,255,255,.3);
}

.pbcontrol-record-play-fps-table-class {
	display: table;   /* Allow the centering to work */
	margin: 0 auto;
	font-size:9px;	
}

.pbcontrol-horizontal-record-play-fps-ul-class {
	margin:0px;
	padding:0px;
	margin-left:3px;
	width:100%;
	list-style: none;
	font-size:8px;
	text-decoration:none;
}

.pbcontrol-horizontal-record-play-fps-ul-class > li {
	float:left;
	margin:0px;
	padding:0px;
	margin-right:5px;
	margin-bottom:5px;
}

.pbcontrol-record-fps-dropdown-list-class {
	text-decoration:none;
	font-weight:normal;
	color: white;
	border:1px solid rgb(173,171,171);
	background-color: rgb(186, 115, 174);
	border-radius: 1px;
}

.pbcontrol-record-fps-select-class {
	font-size:9px;
	max-width:75px;
}

.pbcontrol-play-fps-dropdown-list-class {
	text-decoration:none;
	font-weight:normal;
	color: white;
	border:1px solid rgb(173,171,171);
	background-color: rgb(186, 115, 174);
	border-radius: 1px;
}

.pbcontrol-play-fps-select-class {
	font-size:9px;
	max-width:75px;
}

.pbcontrol-play-auto-update-checkbox-label-class {
	color:white;
	padding:0;
}

.pbcontrol-play-auto-update-checkbox-input-class {
    padding:0;
	margin:0;
}

/*  End OutputVideoRate*/



/* Animation Activation from PB-Ctrl Window*/
.pbcontrol-animationactivation-full-class {	
	position:relative;
	display:block;
	margin-bottom:5px;
	width: 100%;
	margin:0px;
	padding:0px;
	background-color:rgba(157, 159, 159, 0.3);
}

.pbcontrol-animationactivation-table-class {
	/* This allows centering, but we are not doing it right now for Animation*/
	display: table;   /* Allow the centering to work */
	/*margin: 0 auto;*/
	width:100%;
	font-size:10px;	
}


.pbcontrol-horizontal-animationactivation-ul-class {
	display:flex;
	margin:0px;
	padding:0px;
	margin-left:3px;
	width:100%;
	list-style: none;
	font-size:11px;
	text-decoration:none;
}

#pbcontrol-horizontal-animationactivation-ul-id li:last-child {
	margin-left: auto; /* pushes the last item to the right */
}

.pbcontrol-horizontal-animationactivation-ul-class > li {
	margin:0px;
	padding:0px;
	margin-right:5px;
	margin-bottom:5px;
	float:left;

	text-decoration:none;
	font-weight:bold;
	color: white;
	list-style: none;
	/*border:1px solid rgb(173,171,171);*/
	border:none;
	background-color: none;
	border-radius: 1px;
}

.pbcontrol-animationactivation-checkbox-label-class {
	color:white;
	padding:0;
}

.pbcontrol-animationactivation-checkbox-input-class {
    padding:0;
	margin:0;
}

.pbcontrol-showanimation-button-class {
	font-size:12px;

}
/* End Animation Activation from PB-Ctrl Window*/




/* Position the close button (top right corner) */
.pbcontrol-overlay .closePBControlbtn {
    position: absolute;
	color:grey;
    top: 0px;
    right: 5px;
    font-size: 20px;
}

#pbcontrol-selectedpbattempt-id {
	position:relative;
	padding-top:4px;
	font-size: 14px;
	height:15px;
	color:rgb(10,250,170);
	background-color: rgba(0,0,0, .5); /* Black w/opacity */
	margin-top: 5px;
	margin-left: 5px;
	white-space: nowrap;
}

.horizontal-pbcontrol-list-class {
	position:relative;
	display:flex;
	margin:0px;
	padding:0px;
	margin-top:5px;
	margin-left:5px;
	list-style: none;
	background-color:grey;
}

.horizontal-pbcontrol-list-class > li {
    float:left;
   	margin-left:5px;
	width: 35px;
    height: 100%;
    color: black;
    text-decoration: none;
	background:none;
}

.pbcontrol-buttons-class {
    width: 25px;
	margin:0px;
    opacity: 1;
}

#pbcontrol-downloadbutton-id {
	margin-top: 4px;
	width: 35px;
}

#pbcontrol-audio-list-id {
	font-size: 12px;
	color: black;
	margin-top: 5px;
}

#pbcontrol-loopbutton-id {
	margin-left:10px;
}

#pbcontrol-delayinput-id {
	font-size: 10px;
}



/*Accordion style layout for Manual Input. Need this to conserve space*/
#pbc-manual-accordion-box-id {

	display:block;
	color: white;
	width:95%;
	margin:0px;
	padding:0px;
	padding-top:1px;
	padding-bottom:1px;
	margin-top:3px;
	margin-left:5px;
	background:none;
}

#pbc-manual-button-accordion-id {
	width:82%;
	font-size:10px;
	background:lightcyan;
}

button.pbc-manual-button-accordion-class:after {
	content: '\f055';
	font-family: "fontawesome";
	font-size: 10px;
	margin-right: 5px;
	float:left;
}

button.pbc-manual-button-accordion-class.is-open:after {
	content: '\f056';
}
 
button.pbc-manual-button-accordion-class:hover, button.pbc-manual-button-accordion-class.is-open {
	background-color: none;
}

.pbc-manual-accordion-content-class {
	margin:5px;
	padding:2px;
	background-color: none;
	padding: 0 10px;
	max-height: 0;
	overflow-x:auto;
	transition: max-height 0.2s ease-in-out;
}

#pbc-manual-ul-content-id {
	display:block;
	color: white;
	font-size:9px;
	margin:0px;
	padding:0px;
	padding-top:1px;
	padding-bottom:2px;
	margin-top:3px;
	margin-left:3px;
	list-style: none;
	background-color:rgba(0,0,0, .3);
}

#pbc-manual-ul-content-id li{
}

#pbc-manual-ul-content-id input {
	font-size:10px;
	width:80%;
}

#pbc-manual-ul-content-id button {
	margin:0;
	padding:0;
	padding-left:1px;
	padding-right:7px;
	margin-top:1px;
	width:4%;
}

/* End of Accordion for Manaul Data Input */
/*------------------------------------------------------*/


#pbcontrol-attempts-box-id {
	margin:5px;
	padding:5px;
	background:rgba(0,0,0, .1);
	z-index: 7; /* Sit on top */
	border: none;
	position:relative;
	max-height:175px;
	overflow: auto; /* Enable or Disable horizontal scroll */
}

#attempts-vertical-unordered-list-id  {
	display:flex;
	margin:0px;
	padding:0px;
	list-style:none;
}

#attempts-vertical-unordered-list-id > li {
	float:left;
	text-align:left;
	padding-left:1px;
	padding-right:1px;
	padding-bottom:5px;
	margin-right:0px;
	margin-left:0px;
	color:white;
}

#attempts-vertical-unordered-list-id > li{ background: rgba(0,0,0, .5); }
#attempts-vertical-unordered-list-id > li:nth-child(odd) { background: rgba(0,0,0, .5); }


#attempts-horizontal-pbfileid-id {
	width:14%;
	max-width:14%;
	white-space: nowrap;

}

#attempts-horizontal-otherdetails-id {
	width:86%;
	max-width:86%;
	white-space: nowrap;
}


@media screen and (min-width: 200px) {
	
	#pbcontrol-selectedpbattempt-id {
		font-size:8px;
	}

	#pbc-manual-ul-content-id input {
		font-size:10px;
		width:70%;
	}

	.pbcontrol-buttons-class {
    	width: 15px;
	}
	
	#pbcontrol-downloadbutton-id {
		width: 22px;
	}

	#attempts-horizontal-pbfileid-id {
		font-size:12px;		
	}

	#attempts-horizontal-otherdetails-id {
		font-size:12px;		
	}		
	
	#attempts-vertical-unordered-list-id > li {
		font-size:8px;
	}	
	
}


@media screen and (min-width: 325px) {
	
	#pbcontrol-selectedpbattempt-id {
		font-size:10px;
	}

	.pbcontrol-buttons-class {
    	width: 18px;
	}
	
	#pbcontrol-downloadbutton-id {
		width: 27px;
	}

	#attempts-vertical-unordered-list-id > li {
		font-size:10px;
	}
	
}

@media screen and (min-width: 400px) {

	#pbcontrol-selectedpbattempt-id {
		font-size:10px;
	}

	#pbc-manual-ul-content-id input {
		font-size:10px;
		width:80%;
	}
	
	.pbcontrol-buttons-class {
    	width: 18px;
	}

	#pbcontrol-downloadbutton-id {
		width: 27px;
	}

	#attempts-vertical-unordered-list-id > li {
		font-size:10px;
	}	
	
}


@media screen and (min-width: 520px) {
	
	#pbcontrol-selectedpbattempt-id {
		font-size:10px;
	}

	.pbcontrol-buttons-class {
    	width: 18px;
	}

	#pbcontrol-downloadbutton-id {
		width: 27px;
	}

	#attempts-vertical-unordered-list-id > li {
		font-size:10px;
	}
	
}


@media screen and (min-width: 620px) {

	#pbcontrol-selectedpbattempt-id {
		font-size:10px;
	}

	.pbcontrol-buttons-class {
    	width: 18px;
	}

	#pbcontrol-downloadbutton-id {
		width: 27px;
	}

	#attempts-vertical-unordered-list-id > li {
		font-size:10px;
	}	
	
}


	