body {
	margin: 0;
	padding: 0;
	height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background: #121212;
	font-family: Arial, sans-serif;
}

.container {
	perspective: 1000px;
}

h1, span {
	color: #fff;
	font-size: 2.5rem;
	margin: 0;
	text-align: center;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

span {
	color: gray;
	font-size: 1rem;
}

.container.rolling {
	animation: shake 1.67s;
}

@keyframes shake {
	0% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-100px);
	}

	100% {
		transform: translateY(0);
	}
}

.cube {
	width: 150px;
	height: 150px;
	position: relative;
	transform-style: preserve-3d;
	transition: transform 1.5s ease-out;
}

.face {
	position: absolute;
	width: 150px;
	height: 150px;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 80px;
	border-radius: 15px;
	background: #fff;
	border: 3px solid #333;
	box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
}

.front {
	transform: rotateY(0deg) translateZ(75px);
}

.back {
	transform: rotateY(180deg) translateZ(75px);
}

.right {
	transform: rotateY(90deg) translateZ(75px);
}

.left {
	transform: rotateY(-90deg) translateZ(75px);
}

.top {
	transform: rotateX(90deg) translateZ(75px);
}

.bottom {
	transform: rotateX(-90deg) translateZ(75px);
}

#diceBtn {
	margin-top: 50px;
	padding: 15px 40px;
	font-size: 24px;
	background: white;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
	transition: all 0.3s;
}

#diceBtn:hover {
	transform: translateY(-2px);
	box-shadow: 0 7px 20px rgba(0, 0, 0, 0.4);
}

#diceBtn:active {
	transform: translateY(0);
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.result {
	margin-top: 30px;
	font-size: 48px;
	color: white;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
	min-height: 60px;
}

.pins {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	width: 100px;
	height: 100px;
	padding: 0px;
}

.pin {
	width: 20px;
	height: 20px;
	background-color: #fff;
	border-radius: 50%;
}

.pin.active {
	background-color: #000;
}

.credits {
	position: fixed;
	bottom: 10px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.7);
	text-align: center;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.credits a {
	color: rgba(255, 255, 255, 0.9);
	text-decoration: none;
	transition: color 0.3s;
}

.credits a:hover {
	color: #fff;
}