
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	min-height: 100vh;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	font-family: 'Arial', sans-serif;
	padding: 20px;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
}

h1 {
	color: white;
	text-align: center;
	font-size: 2.5rem;
	margin-bottom: 2rem;
	text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.controls {
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	border-radius: 15px;
	padding: 2rem;
	margin-bottom: 2rem;
	box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.control-group {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	justify-content: center;
	align-items: center;
	margin-bottom: 1rem;
}

.input-group {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
}

.range-inputs {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

label {
	color: white;
	font-weight: bold;
	font-size: 1.1rem;
}

input[type="number"] {
	padding: 0.5rem;
	border-radius: 8px;
	border: 2px solid rgba(255,255,255,0.3);
	background: rgba(255,255,255,0.2);
	color: white;
	text-align: center;
	width: 80px;
	font-size: 1rem;
}

input[type="number"]:focus {
	outline: none;
	border-color: rgba(255,255,255,0.6);
	box-shadow: 0 0 10px rgba(255,255,255,0.3);
}

input[type="number"]::placeholder {
	color: rgba(255,255,255,0.7);
}

.range-separator {
	color: white;
	font-size: 1.2rem;
	font-weight: bold;
}

.draw-button {
	background: linear-gradient(45deg, #ff6b6b, #ffa500);
	color: white;
	border: none;
	padding: 1rem 2rem;
	border-radius: 10px;
	font-size: 1.1rem;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.draw-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.draw-button:active {
	transform: translateY(0);
}

.info {
	text-align: center;
	color: rgba(255,255,255,0.8);
	margin-top: 1rem;
	font-size: 0.9rem;
}

.balls-container {
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(5px);
	border-radius: 15px;
	padding: 1rem;
/*	min-height: 300px; */
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 1rem;
}

.ball {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 1.5rem;
	font-weight: bold;
	position: relative;
	cursor: pointer;
	opacity: 0;
	transform: scale(0.7) translateY(20px);
	transition: all 0.7s ease;
	box-shadow: 
		0 10px 25px rgba(0,0,0,0.3),
		inset -4px -4px 8px rgba(0,0,0,0.2),
		inset 4px 4px 8px rgba(255,255,255,0.3);
}

.ball.visible {
	opacity: 1;
	transform: scale(1) translateY(0);
}

.ball:hover {
	transform: scale(1.1) translateY(-5px) !important;
}

/* 3D highlight effect */
.ball::before {
	content: '';
	position: absolute;
	top: 15%;
	left: 25%;
	width: 30%;
	height: 30%;
	background: radial-gradient(circle, rgba(255,255,255,0.6), transparent);
	border-radius: 50%;
	opacity: 0.8;
}

.ball-number {
	position: relative;
	z-index: 2;
	text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.no-balls {
	color: rgba(255,255,255,0.7);
	text-align: center;
	font-size: 1.2rem;
	width: 100%;
}

.footer-info {
	text-align: center;
	color: rgba(255,255,255,0.7);
	margin-top: 2rem;
	line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
	.control-group {
		flex-direction: column;
		gap: 1rem;
	}
	
	.range-inputs {
		flex-direction: column;
		text-align: center;
	}
	
	h1 {
		font-size: 2rem;
	}
	
	.ball {
		width: 80px;
		height: 80px;
		font-size: 1.2rem;
	}

	.controls {
		padding: 1rem;
	}

	.balls-container {
		padding: 2rem;
	}
}

@media (max-width: 480px) {
	.ball {
		width: 70px;
		height: 70px;
		font-size: 1rem;
	}

	input[type="number"] {
		width: 60px;
	}

	.draw-button {
		padding: 0.8rem 1.5rem;
		font-size: 1rem;
	}
}

/* Loading state */
.loading {
	pointer-events: none;
	opacity: 0.7;
}

.loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border: 2px solid rgba(255,255,255,0.3);
	border-top: 2px solid white;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}
