﻿/*
    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 "option" 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.*/

/* this is the parent list of the Filter dropdown Options for Playback*/ 
/* the > says to only drop one child level down to li, any li two children down will not get affected.*/


/*Overlay Background*/
	.pb-overlay {
		margin-left: 0px;
		margin-top: 70px;
		left: 0;
		top: 0;
		position: fixed; /* Stay in place */
		height: 50%;
		width: 0;
		z-index: 5; /* Sit on top */
		background-color: rgb(0,0,0); /* Black fallback color */
		background-color: rgba(255,255,255, 1); /* Black w/opacity */
		overflow: auto;  /* Disable horizontal scroll */
		overflow-y: n-resize;
		transition: 0.3s; /* 0.5 second transition effect to slide in or slide down the */
	}


/* Position the close button (top right corner) */
	.pb-overlay .pb-closebtn {
		position: absolute;
		top: 0px;
		right: 5px;
		color:black;
		font-size: 20px;
	}
	
	#display-options-close-button {
		margin:0px;
		padding:0px;	
	}


/* Filter Box */

	.options-attempts-checkbox-class {
		font-weight:normal;
	}

	.pb-options-control-action-header-class {
		display: block;
		text-align: center; /* Center text inside the div */
		width:100%;
		margin:0px;
		padding:0px;
		margin-top:5px;
		height:15px;
		text-decoration:none;
		font-weight:bold;
		background-color: lightblue; /* Just for visualization */

	}

	
	.filter-box-class {
		position:relative;		
		display:inline-block;
		width:100%;
		margin:0px;
		padding:0px;
		margin-top:10px;
		padding-bottom:4px;
		background:none;
		z-index: 0; /* Sit on top */
		overflow: auto;  /* Enable or Disable horizontal scroll */
		text-decoration:none;
		border-style: solid;
		border-width:0px 0px 1px 0px;
`		border-color:lightgrey;
	}

	.pb-horizontal-filter-list-class {
		float:left;
		width:98%;
		height:100%;
		margin:0px;
		padding:0px;
		text-decoration:none;
		list-style:none;
	}

	.pb-horizontal-filter-list-class > li {
		margin-left:2%;
		font-size:10px;
		/*min-width: 180px;*/
	}

	/*SELECT2 NOTES*/
	/*because we are using the Select2 to build some of the filters, anyone using this jquery special code*/
	/*may have issues formatting without explcitly going to the css code in the select2 directory and fixing*/
	/*directly there. application/jqueryscripts/selectwithsearchoption/select2/css/select2.min.css*/
	
	.options-filter-class {
		font-size:10px;
		width:100px;
		padding-top:0px;
		padding-bottom:0px;
	}


	#eventdate-datepicker-id {
		display:none;
		margin:0;
		padding:0;
		margin-left:45px;
		font-size:10px;
	}

	div.ui-datepicker{
		font-size:10px;
	}

	#options-filter-eventdate-id{margin-left:57px; margin-right:0px; padding-left:0px; padding-right:0px;}	
	#options-filter-year-id{margin-left:82px; margin-right:0px; padding-left:0px; padding-right:0px;}
	#options-filter-match-id{margin-left:7px; margin-right:0px; padding-left:0px; padding-right:0px;}
	#options-filter-rodset-id{margin-left:69px; margin-right:0px; padding-left:0px; padding-right:0px;}
	#options-filter-eventtype-id{ margin-left:10px; margin-right:0px; padding-left:0px; padding-right:0px;}
	#options-filter-game-id{margin-left:13px; margin-right:0px; padding-left:0px; padding-right:0px;}
	#options-filter-defenseplayer-id{margin-left:0px; margin-right:0px; padding-left:0px; padding-right:0px;}

/* End Filter Box */ 


/* UserType, Private, State Flags */ 

	.pb-options-toggle-flags-div-class {
		display:inline-block;
		position:relative;
		width:100%;
		margin:0px;
		padding:0px;
		padding-top:4px;
		padding-bottom:4px;
		text-decoration:none;
		background:none;
		overflow: auto;	
		z-index: 0; /* Sit on top */
		border-style: solid;
		border-width:0px 0px 1px 0px;
		background-color:lightcyan;
	}


	.pb-horizontal-toggle-filter-list-class {
		width:98%;
		height:100%;
		margin:0px;
		padding:0px;
		text-decoration:none;
		list-style:none;
	}

	.pb-horizontal-toggle-filter-list-class > li {
		margin-left:30px;
		min-width:120px;		
		font-size:10px;
	}

	#options-filter-usertype-id{ margin-left:16px; margin-right:0px; padding-left:0px; padding-right:0px;}
	#options-filter-accesstype-id{ margin-left:6px; margin-right:0px; padding-left:0px; padding-right:0px;}	
	#options-filter-state-id{margin-left:33px; margin-right:0px; padding-left:0px; padding-right:0px;}	

/* End Flags */



/*Display Attempts FoosEvents*/

	.foosevents-box-class {
		margin-top:1%;
		margin-bottom:1%;
		overflow: auto;
	}

	.foosevents-header-ul-class {
		display:flex;
		list-style: none;
		background-color:rgb(107, 170, 199);
		margin:0;
		padding:0;
		margin-left:0;
		padding-bottom:8px;
		height:12px;
	}

	.foosevents-header-ul-class > li {
		float:left;
		overflow:hidden;
		color:white;
		font-size:9px;
		text-align:center;
		margin:0;
		padding:0;
		list-style-type:none;
		height:12px;
	}

	#foosevents-horizontal-header-evtid-id{margin-left:1px; margin-right:0px; padding-left:0px; padding-right:0px;}
	#foosevents-horizontal-header-event-id{margin-left:7px; margin-right:0px; padding-left:0px; padding-right:0px;}
	#foosevents-horizontal-header-foosplayername-id{margin-left:5px; margin-right:0px; padding-left:0px; padding-right:0px;}

	#foosevents-horizontal-header-evtid-id {
		width:15%;
		max-width:15%;
	}

	#foosevents-horizontal-header-event-id {
		width:50%;
		max-width:50%;
	}

	#foosevents-horizontal-header-foosplayername-id {
		width:35%;
		max-width:35%;
	}

	.foosevents-content-class {
		position:relative;
		font-weight:bold;
		height: 150px;
		margin:0;
		padding:0;
		margin-left:0;
		background-color:rgba(242,242,242, .9);
		overflow:auto;
	}

	.foosevents-vertical-unordered-list-class {
		display:flex;
		list-style: none;
		margin:0;
		padding:0;
		margin-bottom:5px;
	}

	.foosevents-vertical-unordered-list-class > li {
		float:left;
		overflow: hidden;
		color:black;
		font-size:10px;
		text-align:center;
		margin-right:1%;
		padding:0;
		list-style-type:none;
	}

	#foosevents-horizontal-evtid-id{margin-left:1px; margin-right:0px; padding-left:0px; padding-right:0px;}
	#foosevents-horizontal-event-id{margin-left:7px; margin-right:0px; padding-left:0px; padding-right:0px;}
	#foosevents-horizontal-foosplayername-id{margin-left:5px; margin-right:0px; padding-left:0px; padding-right:0px;}

	#foosevents-horizontal-evtid-id {
		width:15%;
		max-width:15%;
	}

	#foosevents-horizontal-event-id {
		width:50%;
		max-width:50%;
	}

	#foosevents-horizontal-foosplayername-id {
		width:35%;
		max-width:35%;
	}

/* End of Display Attempts FoosEvents*/
	


/* Display Attempts Accordion Box */
/*Here is where we handle the accordion Box of FoosEvents Data*/
	.foosevents-accordionheader-ul-class {
		display:flex;
		list-style: none;
		background-color:rgb(107, 170, 199);
		margin:0;
		padding:0;
		margin-left:0px;
		padding-left:12px;
		padding-bottom:8px;
		height:12px;
	}

	.foosevents-accordionheader-ul-class > li {
		float:left;
		overflow:hidden;
		color:white;
		font-size:9px;
		text-align:center;
		margin:0;
		padding:0;
		list-style-type:none;
		height:12px;
	}

	#foosevents-accordionheader-evtdate-li-id {
		width:15%;
		max-width:15%;
	}

	#foosevents-accordionheader-event-li-id {
		width:30%;
		max-width:30%;
	}

	#foosevents-accordionheader-match-li-id {
		width:20%;
		max-width:20%;
	}

	#foosevents-accordionheader-game-li-id {
		width:15%;
		max-width:15%;
	}
	
	#foosevents-accordionheader-rodset-li-id {
		width:20%;
		max-width:20%;
	}


/*------------------------------------------*/

	#foosevents-accordion-box-id {
		display:inline-block;
		position:relative;
		width:100%;
		/*height:70%;*/
		max-height:340px;
		margin:0px;
		padding:0px;
		padding-top:4px;
		padding-bottom:4px;		
		background:white;
		z-index: 2; /* Sit on top */
		border: 0px solid lightgrey;
		overflow: auto;  /* Enable or Disable horizontal scroll */	
	}

	/*button class*/
	.accordion-class {
		width:100%;
		border: 0px solid lightgrey;
		font-size:10px;
		margin:0px;
		padding:0px;
		margin-bottom:5px;
		background-color:white;

	}

	.accordionbutton-inner-div-class {
		position:relative;
		height: auto;
		margin:0;
		padding:0;
		margin-left:0;
		background-color:none;
		border: 0px solid lightgrey;
		overflow:auto;
	}

	button.accordion-class:before {
		content: '\f055';
		font-family: "fontawesome";
		font-size: 10px;
		padding:0;
		margin:0;
		margin-top:3px;
		margin-right: 3px;
		float:left;
	}

	button.accordion-class.is-open:before {
		content: '\f056';
	}
 
	button.accordion-class:hover, button.accordion-class.is-open {
		background-color: #ddd;
	}

     
	.accordionbutton-ul-class {
		display:flex;
		list-style: none;
		background-color:none;
		margin:0;
		padding:0;
		margin-left:0;
		margin-top:0px;
		margin-bottom:0px;
		padding-top:2px;
		padding-bottom:2px;
		max-height:30px;
	}

	.accordionbutton-ul-class > li {
		float:left;
		color:black;
		font-size:9px;
		text-align:center;
		margin:0;
		padding:0;
		list-style-type:none;
		overflow:auto;

	}

	#foosevents-accordionbutton-evtdate-li-id {
		font-weight:bold;
		width:15%;
		max-width:15%;
	}

	#foosevents-accordionbutton-event-li-id {
		font-weight:bold;
		width:30%;
		max-width:30%;
	}

	#foosevents-accordionbutton-match-li-id {
		font-weight:bold;
		width:20%;
		max-width:20%;
	}

	#foosevents-accordionbutton-game-li-id {
		font-weight:bold;
		width:15%;
		max-width:15%;
	}
	
	#foosevents-accordionbutton-rodset-li-id {
		font-weight:bold;
		width:20%;
		max-width:20%;
	}


    /*-------------------------------------------------*/

	.accordion-content {
		width: 94%;
		color: black;
		margin:0px;
		padding:2px;
		background-color: rgb(248, 248, 245);
		margin-left:15px;
		padding: 0 10px;
		max-height: 0;
		overflow: auto;
		transition: 0.2s ease-in-out;
	}

	.accordion-ul-class {
		padding: 0px;
		margin:0px;
		margin-left:20px;
	}

	.accordion-ul-class > li{
		font-size:10px;
		color: black;
		list-style-type:none;
		text-decoration:none;
		font-weight:bold;
		width: 100%;	
	}

	.accordion-ul-class a{
		font-size:10px;
		font-weight:normal;
		color: black;
		text-decoration:none;
		list-style-type:none;
		margin-right:5px;
}

	#accordion-content-description-id {
		position:relative;
		display:inline-block;
		width:100%;
	}	

	#accordion-content-description-id > a{
		margin-top:4px;
		margin-bottom:0;
		font-size: 10px;
		font-weight:bold;
		width:100%;
		text-decoration:underline;
	}	
	
	#accordion-content-description-id > p{
		margin-top:-2px;
		margin-bottom: 0px;		
		margin-left:5px;
		padding-bottom:2px;
		font-size: 10px;
		width:80%;
	}

	#load-attempts-id {
		font-size:10px;
		margin-bottom:3px;
		color: black;
		text-decoration:bold;
		background-color:rgb(64,255,25);
	}

	#load-attempts-id:active
	{
		background-color:rgb(250,230,0);
	}

/* End Of Display Accordion*/






@media screen and (min-width: 200px) {
	.pb-horizontal-filter-list-class > li {
		font-size:10px;
	}
	
	.options-filter-class {
		font-size:10px;
	}

	#accordion-id {
		font-size:8px;
	}	
}
		


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

	div.ui-datepicker{
		font-size:12px;
	}	

	.options-filter-class {
		font-size:10px;
	}


	#accordion-id {
		font-size:10px;
	}
	
}

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

	#accordion-id {
		font-size:11px;
	}

	.accordion-ul-class > li{
		float:left;
		width:50%;
	} 		
}


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

	#options-filter-usertype-id{ margin-left:16px; margin-right:0px; padding-left:0px; padding-right:0px;}
	#options-filter-accesstype-id{ margin-left:6px; margin-right:0px; padding-left:0px; padding-right:0px;}	
	#options-filter-state-id{margin-left:33px; margin-right:0px; padding-left:0px; padding-right:0px;}		

	.pb-horizontal-filter-list-class > li {
		float:left;
		font-size:10px;
		min-width: 200px;
		margin-left:5%;
	}

	.options-filter-class {
		font-size:10px;
	}
	

	div.ui-datepicker{
		font-size:12px;
	}	
	
	#accordion-id {
		font-size:10px;
	}	
}

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


}

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

	#options-filter-usertype-id{ margin-left:5px; margin-right:0px; padding-left:0px; padding-right:0px;}
	#options-filter-accesstype-id{ margin-left:5px; margin-right:0px; padding-left:0px; padding-right:0px;}	
	#options-filter-state-id{margin-left:5px; margin-right:0px; padding-left:0px; padding-right:0px;}	

	.pb-horizontal-toggle-filter-list-class > li {
		float:left;
	}
	
}

@media screen and (min-width: 800px) {
	.pb-horizontal-filter-list-class > li {
		float:left;
		font-size:10px;
		min-width: 200px;
		margin-left:5%;
	}
	
}

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

}

