/* CSS Document */

body {
	background-color: #000000;
	background-repeat: no-repeat;
	background-size: cover;
	font-family: Impact, Haettenschweiler, "Franklin Gothic Bold", "Arial Black", "sans-serif";
	display: flex;
	justify-content: center;
}

h1 {
	color: #B10000;
}


.court {
	float: left;
	justify-content: center;
	align-items: center;
	display: flex;
	width: 90vw;
	padding: 20px;
	margin: 20px;
	height: 900px;
	border: 5px dotted #ffffff;
	  
	
}

.court img {
	width: 100%;
	padding: 5px;
	display: block;
}

.court h1 {
	float: left;
	padding: 5px;
	color: #B10000;
	transition: color 0.5s;
}

.court h1:hover {
	color: #0000BB;
}

.court .circle {
	display: block;
	background: #B10000;
	background: radial-gradient(circle at 100px 100px, #B10000, #0000BB);
	border: 2px solid #444444;
	box-shadow: 2px 3px 4px #111111;
	border-radius: 50%;
	height: 10vw;
	width: 10vw;
	margin: 0;
	position: absolute;
	animation: bounce 1.5s infinite alternate;
}

.court .circle:hover {
	animation-direction: reverse;
}


#game-container {
    position: relative;
    width: 600px;
    height: 400px;
    margin: 0 auto;
    background-color: #000000;
	background-image: url("images/InfiniPongCourt.png");
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
    border: 1px solid #ccc;
}

#ball {
    position: absolute;
    top: 200px;
    left: 290px;
    width: 20px;
    height: 20px;
    background-color: #000;
	background: radial-gradient(circle at 1px 0px, #B10000, #0000BB);
	border: 1px solid #414141;
    border-radius: 50%;
}

#paddle {
    position: absolute;
    top: 180px;
    left: 50px;
    width: 10px;
    height: 40px;
    background-color: #0000BB;
}

#opponent-paddle {
    position: absolute;
    top: 180px;
    right: 50px;
    width: 10px;
    height: 40px;
    background-color: #B10000;
}



@keyframes bounce {
	0% {
		transform: translateY(0) translateX(-325px);
	}
	20% {
		transform: translateY(-100px) translateX(-100px);
	}
	40% {
		transform: translateY(130px) translateX(100px);
	}
	60% {
		transform: translateY(-120px) translateX(200px);
	}
	80% {
		transform: translateY(60px) translateX(350px);
	}
	100% {
		transform: translateY(-100px) translateX(-325px);
	}
}