/**
 * KUJIKUJI - Main Stylesheet
 * Interactive 3D Lottery Application
 */

/* ===== Base Styles ===== */
body {
	margin: 0;
	background-color: #000;
	color: #fff;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	font-size: 14px;
	line-height: 1.6;
	overscroll-behavior: none;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ===== Links ===== */
a {
	color: #4a9eff;
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: #6bb3ff;
	text-decoration: underline;
}

a:active {
	color: #2a7edf;
}

/* ===== Buttons ===== */
button {
	cursor: pointer;
	text-transform: uppercase;
	font-family: inherit;
	transition: all 0.2s ease;
}

button:disabled {
	cursor: not-allowed;
	opacity: 0.5;
}

/* ===== Info Section ===== */
#info {
	position: absolute;
	top: 0px;
	width: 100%;
	padding: 10px;
	box-sizing: border-box;
	text-align: center;
	-moz-user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
	z-index: 1;
}

a, button, input, select {
	pointer-events: auto;
}

/* ===== GUI Styles ===== */
.lil-gui {
	z-index: 2 !important;
}

@media all and ( max-width: 640px ) {
	.lil-gui.root { 
		right: auto;
		top: auto;
		max-height: 50%;
		max-width: 80%;
		bottom: 0;
		left: 0;
	}
}

/* ===== Overlay ===== */
#overlay {
	position: absolute;
	font-size: 16px;
	z-index: 2;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	background: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(5px);
}

#overlay button {
	background: transparent;
	border: 0;
	border: 2px solid rgb(255, 255, 255);
	border-radius: 8px;
	color: #ffffff;
	padding: 14px 24px;
	text-transform: uppercase;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.3s ease;
}

#overlay button:hover {
	background: rgba(255, 255, 255, 0.1);
	transform: scale(1.05);
}

#overlay button:active {
	transform: scale(0.98);
}

/* ===== Error Messages ===== */
#notSupported {
	width: 50%;
	margin: 20px auto;
	background-color: #dc3545;
	padding: 15px;
	border-radius: 8px;
	text-align: center;
	font-weight: bold;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
	body {
		font-size: 13px;
	}
	
	#overlay button {
		padding: 12px 20px;
		font-size: 14px;
	}
	
	#notSupported {
		width: 80%;
		font-size: 12px;
	}
}

@media (max-width: 480px) {
	body {
		font-size: 12px;
	}
	
	#overlay button {
		padding: 10px 16px;
		font-size: 13px;
	}
}

/* ===== Animations ===== */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.fade-in {
	animation: fadeIn 0.5s ease-out;
}

/* ===== Loading Spinner ===== */
.spinner {
	border: 4px solid rgba(255, 255, 255, 0.1);
	border-top: 4px solid #fff;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
	margin: 20px auto;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}
