@font-face {
    font-family: DAGGERSQUARE;
    src: url("fonts/daggersquare.regular.otf") format("opentype");
}


#pageContainer {
	padding: 1em auto;
}

#pageHeader {
	font-size: 3em;
	text-align: center;
	font-family: 'Bauhaus Modern', sans-serif;
}


#gameBoardContainer {
	background-color: #000;
	border-radius: 6px;
	padding: 1em;
	position: relative;
}

#gameBoard {
	background-color: #222;
	/* width: calc(100% - 2em); */
	height: calc(500px - 2em);
	border: 1px solid var(--lab-purple);
	position: relative;
}


#ball {
	background-color: #FFF;
	width: 1%;
	height: 2%;
	position: absolute;
	bottom: 50%;
	left: 49.5%;
	border-radius: 50%;
}

#gameBoard > .travelPoint {
	position: absolute;
	background-color: pink;
	width: 1px;
	height: 1px;
}

#gameBoard > .paddle {
	background-color: #EEE;
	width: 0.6%;
	height: 20px;
	position: absolute;
	bottom: 50%;
}

/*
#gameBoard > .paddle.p1 {
	left: 1em;
}

#gameBoard > .paddle.p2 {
	right: 1em;
}
*/


#gameBoardContainer #statsContainer {
	color: #fff;
	opacity: 0.4;
	position: absolute;

	top: 1.5em;
	left: 51%;

	z-index: 10;
}

#gameBoardContainer .scoreboard {
	font-family: DAGGERSQUARE, sans-serif;
	font-size: 6em;
	position: absolute;
	top: calc(8% + 1rem);
	color: #36c;
	opacity: 0.4;
}

#gameBoardContainer .scoreboard.p1 {
	left: calc(25% - 30px);
}

#gameBoardContainer .scoreboard.p2 {
	right: calc(25% - 30px);
}


#gameBoardContainer .playerLabel {
	position: absolute;
	top: -3px;
	color: #EEE;
}

#gameBoardContainer .playerLabel.p1 {
	left: 1.2em;
}

#gameBoardContainer .playerLabel.p2 {
	right: 1.2em;
}


#startAnimationContainer {
	display: none;
	width: 50%;
}

#startAnimationContainer > .countdown {
	display: none;
	font-size: 10em;
}

#startAnimationContainer > .countdown.active {
	display: block;
}



#halfwayLine {
	width: 1px;
	border-left: 1px dashed #EEE;
	opacity: 0.5;
	height: 100%;

	position: absolute;
	top: 0;
	left: calc(50% - 1px);
}


#gameActionsContainer {
	text-align: center;
	padding: 2em;
}








#gameOptionsContainer {
	margin-bottom: 2em;
}

#gameOptionsContainer > h2 {
	text-align: center;
}

#gameOptionsContainer .optionSet {
	margin-bottom: 3em;
}

#gamePointLimitOption {
	text-align: center;
}

#gamePointLimitOption > h3 {
	text-align: center;
}

#gamePointLimitOption label {
	display: inline-block;
    padding-top: 8px;
}

#gamePointLimitOption input {
	display: inline-block;
    margin: 0 0.5em;
	width: 72px;
}

#gameOptionsContainer .column.third-width {
	width: calc(100% / 3);
	float: left;
}

#gameOptionsContainer .column.left {
	border-right: 1px solid #DDD;
}

#gameOptionsContainer .column.center {
	text-align: center;
}

#gameOptionsContainer .column.right {
	text-align: right;
	border-left: 1px solid #DDD;
}



#startModeOptions {
	border: 1px solid #555;
	padding: 3em 2em 2em;
	border-radius: 5px;
	position: relative;
	margin-top: 2em;
}

#startModeOptions > h3 {
	position: absolute;
	top: -1em;
	left: calc(50% - 51px);

	background-color: #FFF;
	padding: 2px 6px;
    text-align: center;
}






#gameOptionsContainer > .optionSet.disabled {
	cursor: not-allowed;
}

#gameOptionsContainer > .optionSet.disabled > * {
	pointer-events: none;
	opacity: 0.4;
}


#gameOptionsContainer > .optionSet p {
	font-size: 0.8em;
	font-weight: bold;
	padding: 2px 0 0 3px;
	margin: 0 0 0 !important;
}




#keyboardInstructions {
	border-top: 2px solid #DDD;
	padding-top: 2em;
	margin: 1em auto 6em auto;

	margin-bottom: 20em !important;
	/* padding-bottom: 20em !important; */
}

#keyboardInstructions > h2{
	text-align: center;
}


#keyboardInstructions .p1,
#keyboardInstructions .p2 {
	width: 50%;
	float: left;
}

#keyboardInstructions .p2 {
	float: right;
}


#keyboardInstructions .p1 .text,
#keyboardInstructions .p2 .text{
	width: 50%;
}

#keyboardInstructions .p2 .text{
	float: right;
}


#keyboardInstructions .p1 h3 {
	padding-left: 0.75em;
}

#keyboardInstructions .p2 h3 {
	text-align: right;
	padding-right: 0.75em;
}



#keyboardInstructions > .optionSet {
	margin-bottom: 1.5em;
}

#keyboardInstructions .p1 .keyInstructions {
	
}

#keyboardInstructions .p2 .keyInstructions {
	
}


#keyboardInstructions .keys {
	width: 86px;
	position: relative;
}

#keyboardInstructions .p2 .keys {
	float: right;
}

#keyboardInstructions .keys .icon {
	float: left;
	margin: 0;
	color: #444;
	font-size: 2em;
	width: 1em;
}


#keyboardInstructions .keys .icon.disabled {
	opacity: 0.25;
}


#keyboardInstructions .keys .icon.invisible {
	visibility: hidden;
}



#keyboardInstructions .keyInstructions .keyText {
	position: absolute;
}

#keyboardInstructions .keyInstructions .keyText.W {
	top: 4px;
	left: 35px;
}

#keyboardInstructions .keyInstructions .keyText.A {
	top: 31px;
	left: 10px;
	color: #999;
	opacity: 0.5;
}

#keyboardInstructions .keyInstructions .keyText.S {
	top: 31px;
	left: 39px;
}

#keyboardInstructions .keyInstructions .keyText.D {
	top: 31px;
    left: 65px;
	color: #999;
	opacity: 0.5;
}


/*
#UPKey.active {
	USING .outline CLASS TO INVERT COLOR
}

#DOWNKey.active {
	USING .outline CLASS TO INVERT COLOR
}
*/

#WKey:not(.outline) +.keyText.W,
#SKey:not(.outline) +.keyText.S {
	color: #FFF;
}



#keyboardInstructions .p2 .text {
	text-align: right;
}



#gameOverModal * {
	text-align: center;
}