/* Copyright (c) 2025 by Alexandre Vacassin  (https://codepen.io/alexandrevacassin/pen/zxvxvGq) */
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

body {
	background: radial-gradient(ellipse at center, #000 0%, #111 100%);
	font-family: "Inter", "Segoe UI", sans-serif;
	color: white;
	overflow: hidden;
	margin: 0;
	background: url("https://raw.githubusercontent.com/alexandrevacassin/codepen/refs/heads/main/planets/stars.jpg");
	background-size: cover;
	font-weight: 300;
	line-height: 1.6em;
	color: white;
}

#app {
	display: flex;
	flex-direction: column;
	align-items: center;
	height: 100vh;
	justify-content: center;
}
canvas {
	display: block;
}
.controls {
	position: absolute;
	top: 50%;
	width: 100%;
	display: flex;
	justify-content: space-between;
	transform: translateY(-50%);
	padding: 0 30px;
}
.controls button {
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: white;
	font-size: 0px;
	padding: 10px;
	border-radius: 24px;
	cursor: pointer;
	transition: background 0.3s, border 0.3s;
	margin: 24px;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.controls button:hover {
	background: rgba(255, 255, 255, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.4);
}
.planet-info {
	position: absolute;
	bottom: 64px;
	width: 100%;
	text-align: center;
	transition: all 0.6s ease;
	opacity: 0;
	transform: translateY(20px);
}
.planet-info.show {
	opacity: 1;
	transform: translateY(0);
}
.planet-info h2 {
	font-size: 40px;
	margin-bottom: 24px;
	font-weight: 800;
}
.planet-info p {
	font-size: 18px;
	max-width: 800px;
	margin: 0 auto;
}
.options {
	position: absolute;
	top: 20px;
	right: 20px;
}
.options label {
	cursor: pointer;
}
