body {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100vh;
	margin: 0;
	padding: 16px;
	background-color: #f0f0f0;
	font-family: "Press Start 2P", monospace;
}

.container {
	width: min(920px, 100%);
	padding: 1.5rem;
}

h1 {
	margin-top: 0;
	margin-bottom: 1rem;
}

.controls {
	display: flex;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.gravity-control {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

#gravityInput {
	width: 260px;
}

.preset-gravity-control {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	margin-bottom: 1rem;
}

.simulation-stage {
	position: relative;
	width: 100%;
	max-width: 800px;
}

#simulationCanvas {
	display: block;
	width: 100%;
	max-width: 800px;
	height: auto;
	border: 1px solid #000;
	background-image: url("images/pisa.png");
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
}

#ballIcon {
	position: absolute;
	left: 0;
	top: 0;
	width: 40px;
	height: 40px;
	font-size: 40px;
	line-height: 40px;
	display: inline-block;
	pointer-events: none;
	transform: translate(-50%, -50%);
}

#ballIcon::before {
	transform: scale(0.5);
}

#earthGravityBtn {
	font-size: 0.8rem;
}
