body {
	margin: 0;
	overflow: hidden;
	font-family: sans-serif;
}

canvas {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	display: block;
	z-index: -2;
	background: url(assets/textures/sky.png);
	background-size: cover;
}

.texturedBackground {
    backdrop-filter: blur(100px) saturate(1.8);
    background: url(assets/textures/bg.png);
    background-size: cover;
}

#usernameBox {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(1.5);
	transform-origin: center center;
	z-index: 1000;
	background: url(assets/textures/bg.png);
  	backdrop-filter: contrast(50) blur(100px) saturate(1.8);
  	border: 1px rgba(0, 0, 0, 0.2) solid;
	padding: 8px;
	font-family: sans-serif;
	color: white;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

#usernameBox input {
	background: rgba(0, 0, 0, 0.2);
	color: white;
	border: none;
	padding: 5px 10px;
	outline: none;
}

.button {
	color: #dbdbdb;
	border: none;
	padding: 5px 10px;
	cursor: pointer;
	font-weight: bold;
}

.button:hover {
	cursor: pointer;
	color: white;
  scale: 1.005;
}

.button:disabled {
	cursor: not-allowed;
	color: #aaa;
  scale: 1;
}

.cosmeticSelector {
	display: grid;
	grid-template-columns: repeat(6, 32px);
	gap: 6px;
	justify-content: center;
	width: max-content;
	margin: 0 auto;
}

.cosmeticItem {
	width: 32px;
	height: 32px;
	cursor: pointer;
	border: 2px solid transparent;
	transition: border 0.2s;
	image-rendering: pixelated;
}

.hatCosmetic {
	height: 40px;
}

.cosmeticItem.selected {
	border-color: #2ecc71;
}

#title {
  image-rendering: pixelated;
}