/*Implement Google Fonts*/
@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Orbitron:wght@400;700;900&display=swap");

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	max-height: 100vh;
	max-width: 100vw;

	background-color: #070712;

	background-image:
		radial-gradient(
			circle at 30% 50%,
			rgba(0, 224, 255, 0.05),
			transparent 60%
		),
		radial-gradient(
			circle at 70% 50%,
			rgba(255, 42, 144, 0.05),
			transparent 60%
		);
	font-family: "Share Tech Mono", monospace;
	text-align: center;
	display: flex;
	flex-direction: column;
	justify-content: space-evenly;
	align-items: center;
	color: white;
}

h1 {
	font-family: "Orbitron", sans-serif;
	text-align: center;
	text-shadow:
		0 0 10px cyan,
		0 0 20px cyan,
		0 0 40px cyan;
	color: cyan;
	margin-top: 150px;
}

/*Styling scoreboard*/

#scoreboard {
	display: flex;
	justify-content: space-around;
	align-items: center;
	margin: 0 auto;
	width: 300px;
	height: 30px;
	padding: 10px;
	font-family: "Orbitron", sans-serif;
}

.score {
	font-weight: 700;
	font-size: 40px;
}

#score-left {
	color: #0ff0fc;
}

#score-rigth {
	color: #bc13fe;
}

/* Styling arena*/

#arena {
	position: relative;
	width: 50vw;
	height: 60vh;
	background: #0a0a1a;
	border: 2px solid rgba(0, 245, 255, 0.15);
	border-radius: 4px;
	overflow: hidden;
	box-shadow:
		0 0 0 1px rgba(0, 245, 255, 0.05),
		inset 0 0 80px rgba(0, 0, 0, 0.6);
}

/*Central Line*/

#center-line {
	position: absolute;
	left: 50%;
	top: 0;
	width: 1vw;
	height: 100%;
	transform: translateX(-50%);
	background: repeating-linear-gradient(
		to bottom,
		rgba(255, 255, 255, 0.08) 0px,
		rgba(255, 255, 255, 0.08) 16px,
		transparent 16px,
		transparent 32px
	);
}

.paddle {
	position: absolute;
	width: 1vw;
	height: 10vh;
	border-radius: 5px;
	transition: box-shadow 0.1s;
}

#player {
	left: 48vw;
	background: #00f5ff;
	box-shadow:
		0 0 10px #00f5ff,
		0 0 30px #00f5ff,
		0 0 60px rgba(0, 245, 255, 0.3);
}

#machine {
	right: 10;
	background: #ff006e;
	box-shadow:
		0 0 10px #ff006e,
		0 0 30px #ff006e,
		0 0 60px rgba(255, 0, 110, 0.3);
}

/*create Ball*/

#ball {
	width: 1vw;
	height: 2vh;
	background-color: white;
	border-radius: 50%;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}
