/* Import anime-style fonts */
@import url("https://fonts.googleapis.com/css2?family=Fredoka+One:wght@400&family=Comic+Neue:wght@300;400;700&display=swap");

* {
	box-sizing: border-box;
}

body {
	font-family: "Comic Neue", "Comic Sans MS", cursive;
	background: linear-gradient(135deg, #000 0%, #1a1a1a 50%, #333 100%);
	margin: 0;
	padding: 0;
	min-height: 100vh;
	overflow-x: hidden;
}

#app {
	width: 100%;
	min-height: 100vh;
	margin: 0;
	padding: 0;
	background: transparent;
	border-radius: 0;
	box-shadow: none;
}

/* Global anime animations */
@keyframes twinkle {
	0%,
	100% {
		opacity: 1;
		transform: scale(1) rotate(0deg);
	}
	50% {
		opacity: 0.5;
		transform: scale(1.2) rotate(180deg);
	}
}

@keyframes pulse {
	0%,
	100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.05);
	}
}

@keyframes shake {
	0%,
	100% {
		transform: translateX(0);
	}
	25% {
		transform: translateX(-5px);
	}
	75% {
		transform: translateX(5px);
	}
}

@keyframes glow {
	0%,
	100% {
		box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
	}
	50% {
		box-shadow: 0 0 20px rgba(255, 255, 255, 0.8),
			0 0 30px rgba(255, 255, 255, 0.6);
	}
}

@keyframes bounce {
	0%,
	100% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(-10px);
	}
}

/* Anime-style headings */
h1,
h2,
h3 {
	color: #000;
	margin-bottom: 20px;
	font-weight: 900;
	font-family: "Comic Sans MS", cursive;
	text-shadow: 3px 3px 0 #fff, -1px -1px 0 #000, 1px -1px 0 #000,
		-1px 1px 0 #000, 1px 1px 0 #000;
}

h1 {
	font-size: 2.5rem;
	animation: pulse 2s ease-in-out infinite;
}

h2 {
	font-size: 2rem;
}

h3 {
	font-size: 1.5rem;
}

/* Anime-style buttons */
button {
	margin: 12px 10px 12px 0;
	padding: 15px 25px;
	font-size: 1.1rem;
	border-radius: 15px;
	border: 4px solid #000;
	background: #fff;
	color: #000;
	font-weight: 800;
	cursor: pointer;
	font-family: "Comic Sans MS", cursive;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

button:hover,
button:focus {
	background: #f0f0f0;
	outline: none;
	transform: translateY(-3px) scale(1.05);
	box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

button:active {
	transform: translateY(-1px) scale(1.02);
}

/* Primary button variant */
button.primary {
	background: #000;
	color: #fff;
}

button.primary:hover {
	background: #333;
}

/* Input styles */
input[type="number"],
input[type="text"],
input[type="password"] {
	width: 100%;
	margin-left: 0;
	padding: 12px 15px;
	border: 3px solid #000;
	border-radius: 10px;
	font-size: 1.1rem;
	background: #f8f8f8;
	margin-bottom: 15px;
	transition: all 0.3s ease;
	font-family: "Comic Sans MS", cursive;
	font-weight: 600;
}

input[type="number"]:focus,
input[type="text"]:focus,
input[type="password"]:focus {
	border: 3px solid #000;
	outline: none;
	background: #fff;
	transform: scale(1.02);
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

input[type="file"] {
	margin-top: 8px;
	font-size: 1rem;
	font-family: "Comic Sans MS", cursive;
	font-weight: 600;
	padding: 8px;
	border: 2px solid #000;
	border-radius: 8px;
	background: #fff;
}

/* Label styles */
label {
	font-size: 1.2rem;
	color: #000;
	margin-bottom: 8px;
	display: block;
	font-weight: 800;
	font-family: "Comic Sans MS", cursive;
}

/* Color and image squares */
.color-square,
.img-square {
	width: 50px;
	height: 50px;
	display: inline-block;
	border: 3px solid #000;
	margin-bottom: 10px;
	vertical-align: middle;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
	transition: all 0.3s ease;
}

.color-square:hover,
.img-square:hover {
	transform: scale(1.1);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.img-square {
	background-size: cover;
	background-position: center;
}

/* Level sections */
.level-section {
	margin-bottom: 30px;
	padding: 25px;
	border: 4px solid #000;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 0 0 6px #fff, 0 0 0 10px #000;
	animation: bounce 4s ease-in-out infinite;
}

.level-section h3 {
	text-align: center;
	margin-bottom: 20px;
	font-size: 1.8rem;
}

/* Form styles */
form {
	margin-top: 20px;
}

/* User list styles */
ul#usersList {
	padding-left: 0;
	margin-top: 25px;
	margin-bottom: 25px;
	list-style: none;
}

ul#usersList li {
	background: #fff;
	border: 4px solid #000;
	margin-bottom: 15px;
	padding: 20px;
	border-radius: 15px;
	font-size: 1.1rem;
	color: #000;
	font-weight: 600;
	font-family: "Comic Sans MS", cursive;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	transition: all 0.3s ease;
	position: relative;
}

ul#usersList li:hover {
	transform: translateY(-3px) scale(1.02);
	box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

/* Anime-style scrollbar */
::-webkit-scrollbar {
	width: 12px;
}

::-webkit-scrollbar-track {
	background: #000;
	border-radius: 10px;
}

::-webkit-scrollbar-thumb {
	background: #fff;
	border-radius: 10px;
	border: 2px solid #000;
}

::-webkit-scrollbar-thumb:hover {
	background: #f0f0f0;
}

/* Responsive utilities */
@media (max-width: 768px) {
	h1 {
		font-size: 2rem;
	}
	h2 {
		font-size: 1.7rem;
	}
	h3 {
		font-size: 1.3rem;
	}

	button {
		padding: 12px 20px;
		font-size: 1rem;
	}

	input[type="number"],
	input[type="text"],
	input[type="password"] {
		font-size: 1rem;
		padding: 10px 12px;
	}

	.level-section {
		padding: 20px 15px;
		margin-bottom: 25px;
	}

	ul#usersList li {
		padding: 15px;
		font-size: 1rem;
	}
}

@media (max-width: 480px) {
	h1 {
		font-size: 1.8rem;
	}
	h2 {
		font-size: 1.5rem;
	}
	h3 {
		font-size: 1.2rem;
	}

	button {
		padding: 10px 15px;
		font-size: 0.9rem;
	}

	.level-section {
		padding: 15px 10px;
		margin-bottom: 20px;
	}

	.color-square,
	.img-square {
		width: 40px;
		height: 40px;
	}
}

/* Special anime effects */
.sparkle {
	position: relative;
}

.sparkle::after {
	content: "✨";
	position: absolute;
	top: -5px;
	right: -5px;
	font-size: 1.2rem;
	animation: twinkle 2s ease-in-out infinite;
}

.glow {
	animation: glow 2s ease-in-out infinite;
}

.wiggle {
	animation: shake 0.5s ease-in-out;
}

/* Loading animations */
.loading {
	position: relative;
}

.loading::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border: 3px solid #000;
	border-top: 3px solid transparent;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}
