/* Reset and base styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	background-color: rgb(18, 18, 18);
	color: rgb(140, 140, 145);
	overflow: hidden;
	height: 100vh;
}

/* Header styles */
#header {
	height: 15%;
	min-height: 80px;
	width: 100%;
	background-color: rgb(28, 28, 30);
	border-bottom: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 3rem;
}

#logo h1 {
	font-size: 2.5rem;
	font-weight: 700;
	color: rgb(140, 140, 145);
	letter-spacing: 1px;
}

#scoreboard {
	display: flex;
	gap: 2rem;
	align-items: center;
}

#scoreboard > div, #scoreboard > p {
	background-color: rgb(18, 18, 18);
	padding: 0.75rem 1.5rem;
	border-radius: 4px;
	border: 2px solid rgb(40, 40, 42);
}

#scoreboard p {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 500;
	color: rgb(140, 140, 145);
}

#scoreboard span {
	font-weight: 700;
	font-size: 1.3rem;
	color: rgb(170, 120, 255);
}

/* Game canvas area */
#game {
	height: 85%;
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: rgb(18, 18, 18);
	padding: 1rem;
	box-sizing: border-box;
}

#canvas {
	background-color: rgb(28, 28, 30);
	border-radius: 4px;
	max-width: 100%;
	max-height: 100%;
}



/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* High contrast mode support */
@media (prefers-contrast: high) {
	body {
		background-color: #000000;
	}

	#header {
		background-color: #1a1a1a;
		border-bottom: 4px solid #ffffff;
	}

	#canvas {
		background-color: #1a1a1a;
	}

	#scoreboard > div, #scoreboard > p {
		border: 3px solid #ffffff;
	}
}

/* Responsive design */
@media (max-width: 768px) {
	#header {
		flex-direction: column;
		height: auto;
		padding: 1rem;
		gap: 1rem;
	}

	#logo h1 {
		font-size: 1.8rem;
	}

	#scoreboard {
		gap: 1rem;
		flex-wrap: wrap;
		justify-content: center;
	}

	#scoreboard p {
		font-size: 0.9rem;
	}

	#scoreboard span {
		font-size: 1.1rem;
	}


}


