@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600&display=swap');


* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
}

html,
body {
	height: 100vh;
	width: 100vw;
	max-height: 100vh;
	overflow: hidden;
	font-family: 'Fredoka', sans-serif;
	color: white;
	position: relative;
	overscroll-behavior: none;
	touch-action: none;
}

img,
button {
	-webkit-tap-highlight-color: transparent;
	user-select: none;
}


img {
	user-select: none;
	-webkit-user-drag: none;
	pointer-events: none;
}


body::before {
	content: '';
	position: absolute;
	width: 300%;
	height: 300%;
	background: radial-gradient(circle at 30% 30%, #0b8142f0, #00aaff, #002233);
	animation: aurora 10s ease-in-out infinite alternate;
	z-index: -1;
	opacity: 0.7;
	filter: blur(100px);
}

@keyframes aurora {
	0% {
		transform: translate(0, 0) scale(1);
		opacity: 0.6;
	}

	25% {
		transform: translate(-20%, -10%) scale(1.4) rotate(5deg);
		opacity: 0.85;
	}

	50% {
		transform: translate(10%, -5%) scale(1.2) rotate(-5deg);
		opacity: 0.75;
	}

	75% {
		transform: translate(-15%, 10%) scale(1.3) rotate(3deg);
		opacity: 0.9;
	}

	100% {
		transform: translate(0, 0) scale(1.1);
		opacity: 0.6;
	}
}


header {
	position: absolute;
	top: 10px;
	left: 15px;
	right: 15px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	z-index: 2;
}

.github-info {
	display: flex;
	align-items: center;
	gap: 10px;
}

.github-logo {
	width: 40px;
	height: 40px;
	border-radius: 50%;
}

.github-nick {
	font-size: 1.2rem;
	font-weight: 600;
}

#music-toggle {
	background: none;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
	color: white;
}


main {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100vh;
	gap: 40px;
	position: relative;
	z-index: 1;
}


.unipd-logo {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	width: 120px;
	opacity: 0.9;
}


.yoshi-wrapper {
	width: 200px;
	height: 200px;
	position: relative;
	cursor: pointer;
	animation: yoshi-idle 5s infinite ease-in-out;
	pointer-events: auto;
}

.yoshi-img {
	width: 100%;
	height: auto;
	transition: transform 0.3s ease;
	user-select: none;
	pointer-events: none;
}


.yoshi-wrapper.clicked {
	animation: wiggle 0.5s ease;
}

@keyframes yoshi-idle {

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

	2% {
		transform: translateY(-10px);
	}

	4% {
		transform: translateY(0);
	}

	6% {
		transform: translateY(-8px);
	}

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

@keyframes wiggle {
	0% {
		transform: translateX(0);
	}

	15% {
		transform: translateX(-12px);
	}

	30% {
		transform: translateX(12px);
	}

	45% {
		transform: translateX(-8px);
	}

	60% {
		transform: translateX(8px);
	}

	75% {
		transform: translateX(-4px);
	}

	90% {
		transform: translateX(4px);
	}

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


.icon-button {
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	width: 40px;
	height: 40px;
}

.icon-img {
	width: 100%;
	height: auto;
	transition: transform 0.2s ease;
	pointer-events: auto;
}

.icon-button.clicked .icon-img {
	animation: bounce 0.3s ease;
}

@keyframes bounce {
	0% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.2);
	}

	100% {
		transform: scale(1);
	}
}


@media (max-width: 768px) {
	body {
		padding: 0 10px;
	}

	.yoshi-wrapper {
		width: 150px;
		height: 150px;
		margin-bottom: 80px;
	}

	.unipd-logo {
		position: fixed;
		bottom: calc(20px + env(safe-area-inset-bottom));
		width: 90px;
		left: 50%;
		transform: translateX(-50%);
		z-index: 10;
		pointer-events: none;
	}


	.github-info {
		gap: 6px;
	}

	.github-logo {
		width: 32px;
		height: 32px;
	}

	.github-nick {
		font-size: 1rem;
	}

	#music-toggle {
		font-size: 1.2rem;
	}


	main {
		gap: 30px;

	}

	.icon-button {
		width: 30px;
		height: 30px;
	}

	.icon-img {
		width: 100%;
		height: auto;
	}

}

img,
button {
	outline: none;
}

*:focus {
	outline: none !important;
}

*:focus-visible {
	outline: none !important;
}

@supports not (bottom: env(safe-area-inset-bottom)) {
	.unipd-logo {
		bottom: 20px;
	}
}