/*
 * Styles for the Pong game
 * Author: David Laurell <david.laurell@gmail.com>
 * License: GPLv3
 */

@CHARSET "UTF-8";

#gamediv {
	display: block;
	margin: 0 auto;
	width: 960px;
	height: 540px;
	background: #150000;
	padding: 10px;
}
#log {
	padding-top: 10px;
}



/*
	Title screen
*/

#titleScreen {
	border: 2px solid #333;
	padding: 1em;
	margin: 0 auto;
	margin-top: 3em;
	width: 50%;
	text-align: center;
}

#titleScreen h1 {
	font-weight: normal;
	color: #ffc;
	font-size: 1.5em;
}

#titleScreen p {
	font-weight: bold;
	font-size: 0.8em;
	color: #ccc;
	text-align: left;
}

#titleScreen .vcard {
	font-size: 0.8em;
}

#titleScreen .vcard a {
	color: #ccc;
}



/*
	Play screen
*/

#playScreen {
	display: none;
}

#playScreen .ingamebuttons {
	display: none;
	float: left;
	position: relative;
	top: -2.5em;
	left: 0;
	text-align: center;
}

#gameCanvas {
	position: relative;
	top: 0;
	left: 0;
	color: #ccc;
}

#player1Score,
#computerScore,
#playerScore {
	position: relative;
	top: -340px;
	left: 0;
	font-size: 6em;
	color: #FFF;
	line-height: 0;
	width: 40%;
	opacity: 0.9;
	filter: alpha(opacity=90);
}

#player1Score,
#computerScore {
	float: left;
	text-align: right;
}

#playerScore {
	float: right;
	text-align: left;
}

#pauseText {
	display: none;
	position: relative;
	top: -360px;
	left: 0;
	font-size: 3em;
	margin: 3em auto;
	opacity: 0.4;
	filter: alpha(opacity=40);
	color: #ffc;
	text-align: center;
	line-height: 0;
}



/*
	Buttons
*/

#playButton,
#pauseButton,
#soundButton {
	border: 2px solid #333;
	background: #111;
	color: #ffc;
	padding: 0.3em 2em;
	font-size: 0.8em;
	opacity: 0.4;
	filter: alpha(opacity=40);
	line-height: 1.6;
}

#pauseButton,
#soundButton {
	float: left;
	margin-left: 1em;
}

#pauseButton:hover,
#soundButton:hover,
#playButton:hover {
	background: #444;
	color: #afa;
}

.section-wrapper {
	padding: 3rem 0 0 0;
	min-height: calc(100vh - 32px);
}

.u-center {
	text-align: center;
}

.middle-center {
	position: relative;
	top: 50%;
	transform: translateY(-50%);
}

.intro-image-wrapper {
	margin: 0 auto;
	max-width: 800px;
}
.intro-image-wrapper img {
	width: 100%;
}

footer {
	height: 32px;
	background-color: #555;
}


/* Game 1 */

.game1_player {
	display: inline-block;
	border: 1px solid #bbb;
	height: 50px;
	width: 50px;
	text-align: center;
	line-height: 50px;
	margin: 3px 25px 3px 3px;
	font-weight: 700;
	font-size: 1.5em;
}

.game1_player.square {}

.game1_player.circle {
	border-radius: 25px;
}

.game1_player.green {
	color: white;
	background-color: #54cc64;
}

.game1_player.red {
	color: white;
	background-color: #ff0b03;
}


/* */
.play.container {
	touch-action: none;
}

.player-action {
	/*color: white;*/
	height: 20rem;
	/*text-shadow: 1px 1px #bbb;*/
	font-size: 5rem;
}

.player-action:hover {
	/*color: white;*/
}

.player-action.green {
	color: #FFFFFF;
	background-color: #54cc64;
}

.player-action.green:hover {
	color: #FFFFFF;
	background-color: #118821;
}

.player-action.red {
	color: #FFFFFF;
	background-color: #ff0b03;
}

.player-action.red:hover {
	color: #FFFFFF;
	background-color: #e63731;
}

.player-action .player-action-text {
	display: inline-block;
	width: 200px;
}

.game2-action {
	width: 40px;
	text-align: center;
	padding-top: 3px 0;
	border: 1px solid #333;
	border-radius: 5px;
	margin-right: 5px;
	margin-bottom: 5px;
	white-space: nowrap;
	color: white;
	font-weight: 700;
	display: block;
	float: left;
}
.game2-action.up {
	background-color: #54cc64;
}
.game2-action.down {
	background-color: #ff0b03;
}
.game2-action .fa-arrow-up {
	color: #54cc64;
}
.game2-action .fa-arrow-down {
	color: #ff0b03;
}

.unselectable {
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
