@font-face {
	font-family: 'tdg';
	src: url('./public/tdg.woff2') format('woff2');
	font-weight: normal;
	font-style: normal;
}
:root {
	--primary-color: #e7017e;
	--secondary-color: #333;
	--tertiary-color: #ff5500;
	--light: #fff;
	--color-1: hsl(327, 99%, 88%);
	--color-2: hsl(327, 99%, 85%);
	--color-3: hsl(327, 99%, 82%);
	--color-4: hsl(327, 99%, 79%);
	--color-5: hsl(327, 99%, 76%);
	--color-6: hsl(327, 99%, 73%);
	--color-7: hsl(327, 99%, 70%);
	--color-8: hsl(327, 99%, 67%);
	--color-9: hsl(327, 99%, 64%);
	--color-10: hsl(327, 99%, 61%);
	--color-11: hsl(327, 99%, 58%);
	--color-12: hsl(327, 99%, 55%);
	--color-13: hsl(327, 99%, 52%);
	--color-14: hsl(327, 99%, 49%);
	--color-15: hsl(327, 99%, 46%);
	--color-16: hsl(327, 99%, 43%);
	--color-17: hsl(327, 99%, 40%);
	--color-18: hsl(327, 99%, 37%);
	--color-19: hsl(327, 99%, 34%);
	--color-20: hsl(327, 99%, 31%);
	--color-21: hsl(327, 99%, 28%);
	--color-22: hsl(327, 99%, 25%);
	--color-23: hsl(327, 99%, 22%);
	--ff: 'tdg', serif;
}
html,
body {
	height: 100%;
	width: 100%;
	box-sizing: border-box;
}

body {
	background-image: url('./public/background-final.webp');
	background-size: cover;
	background-position: bottom;
	background-repeat: no-repeat;
	font-family: var(--ff);
	color: white;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	height: 100vh;
	margin: 0;
	padding: 20px;
}
p {
	margin: 0;
}

.main-container {
	position: relative;
	margin-right: 5vw;
}

.logo-container {
	position: fixed;
	bottom: calc(40vh + 20px);
	left: 6vw;
}

.logo-container img {
	width: 60vh;
}

.roulette-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	width: 100%;
	min-width: 30vw;
	margin-right: 100px;
}

.roulette-wrapper {
	position: relative;
	width: 100%;
	padding-bottom: 100%;
	height: 0;
	border: 5px solid var(--primary-color);
	border-radius: 100vw;
}

.roulette-indicator {
	position: absolute;
	top: -20px;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 20px solid transparent;
	border-right: 20px solid transparent;
	border-top: 30px solid var(--primary-color);
	filter: drop-shadow(0px 0px 4px rgba(0, 0, 0, 0.8));
	z-index: 10;
}

#roulette-canvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.button {
	padding: 20px;
	font-size: 1.5em;
	cursor: pointer;
	border: none;
	background-color: var(--primary-color);
	color: white;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.6);
	font-family: var(--ff);
	transition: 0.3s;
	border-radius: 200vw;
	aspect-ratio: 1;
	text-transform: uppercase;
	z-index: 999;

	&:hover {
		opacity: 0.8;
	}
}
#noob {
	position: absolute;
	top: -10px;
	right: 40px;
}
#pro {
	position: absolute;
	top: -60px;
	right: 160px;
}
#spin-button {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: fit-content;
	height: 70px;
	aspect-ratio: 1;
	color: var(--light);
	padding: 0;
	box-shadow: unset;

	svg {
		width: 60px;
		height: 70px;
		transform: scaleX(-1);
	}
	&:hover {
		transform: translate(-50%, -50%) rotateZ(360deg);
		transition: 0.5s ease-in-out;
	}
}

#result {
	visibility: hidden;
	position: absolute;
	top: 78vh;
	left: 4vw;
	color: var(--light);
	padding: 10px 20px;
	border-radius: 10px;
	text-transform: uppercase;

	.mapa {
		font-size: 8vh;
	}
	.pez {
		margin-top: -0.2em;
		font-size: 5vh;
	}
}

.roulette-indicator {
	width: 0;
	height: 0;
	border-left: 20px solid transparent;
	border-right: 20px solid transparent;
	border-top: 50px solid var(--light);
	position: absolute;
	top: -40px;
	left: 50%;
	transform: translateX(-50%);
	transform-origin: 50% 0%;
	z-index: 10;
	filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3));
	transition: transform 0.05s ease-out;
}

@keyframes pointerWobble {
	0% {
		transform: translateX(-50%) rotateZ(0deg);
	}
	50% {
		transform: translateX(-50%) rotateZ(-20deg);
	}
	100% {
		transform: translateX(-50%) rotateZ(0deg);
	}
}

.roulette-indicator.wobbling {
	animation: pointerWobble 0.1s ease-out;
}
