:root {
	--primary-color: #00bcd4;
	--secondary-color: #4fc3f7;
	--accent-color: #81d4fa;
	--background-dark: #0a1929;
	--text-color: #ffffff;
	--box-bg: rgba(0, 188, 212, 0.1);
	--border-color: rgba(0, 188, 212, 0.2);
	--online-color: #4CAF50;
}

body {
	margin: 0;
	padding: 0;
	font-family: 'Minecraft', Arial, sans-serif;
	background-image: url('./bg.png');
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	background-repeat: no-repeat;
	color: var(--text-color);
	min-height: 100vh;
	position: relative;
	overflow-x: hidden;
}

body::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7));
	z-index: 0;
}

/* Particles Animation */
.particles {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 0;
}

.particle {
	position: absolute;
	width: 4px;
	height: 4px;
	background: var(--accent-color);
	border-radius: 50%;
	animation: fall linear infinite;
	opacity: 0.3;
}

@keyframes fall {
	0% {
		transform: translateY(-100vh);
	}
	100% {
		transform: translateY(100vh);
	}
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
	position: relative;
	z-index: 1;
}

.server-details {
	background:  rgba(13, 17, 23, 0.8);
	border-radius: 20px;
	padding: 40px;
	margin-top: 50px;
	backdrop-filter: blur(10px);
	border: 1px solid var(--border-color);
	box-shadow: 0 0 40px rgba(0, 188, 212, 0.1);
}

.header-section {
	text-align: center;
	margin-bottom: 40px;
}

/* Typing Animation Styles */
.typing-effect {
	display: flex;
	align-items: center;
	justify-content: center;
}

.typing-text {
	position: relative;
	white-space: nowrap;
	border-right: 3px solid var(--primary-color);
	animation: typing 3.5s steps(30, end), 
			   blink-caret .75s step-end infinite;
	overflow: hidden;
	width: 0;
	animation-fill-mode: forwards;
}

@keyframes typing {
	from { width: 0 }
	to { width: 100% }
}

@keyframes blink-caret {
	from, to { border-color: transparent }
	50% { border-color: var(--primary-color) }
}

h1 {
	color: var(--primary-color);
	font-size: 2.8em;
	margin-bottom: 30px;
	text-shadow: 0 0 20px rgba(33, 150, 243, 0.4);
	overflow: hidden;
}

h1 i {
	margin-right: 15px;
	animation: rotate 4s linear infinite;
	flex-shrink: 0;
}

@keyframes rotate {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.welcome-subtitle {
    color: var(--text-color);
    font-size: 1.2em;
    margin: -20px 0 30px 0;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Update mobile responsiveness */
@media (max-width: 768px) {
    .welcome-subtitle {
        font-size: 1em;
        margin: -15px 0 25px 0;
    }
}

.ip-box {
	display: inline-flex;
	align-items: center;
	background: rgba(0, 0, 0, 0.3);
	padding: 15px 25px;
	border-radius: 10px;
	border: 1px solid var(--primary-color);
	gap: 15px;
}

.ip-box code {
	font-size: 1.2em;
	color: var(--secondary-color);
}

.copy-btn {
	background: transparent;
	border: none;
	color: var(--text-color);
	cursor: pointer;
	padding: 5px 10px;
	transition: all 0.3s ease;
}

.copy-btn:hover {
	color: var(--primary-color);
	transform: scale(1.1);
}

.info-container {
	display: flex;
	gap: 30px;
	margin: 40px 0;
}

.info-box {
	flex: 1;
	background: rgba(13, 17, 23, 0.8);
	border-radius: 15px;
	padding: 30px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	border: 1px solid var(--border-color);
	box-shadow: 0 0 20px rgba(0, 188, 212, 0.05);
}

.info-box:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(22, 108, 119, 0.589);
}

.info-header {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 25px;
}

.info-header i {
	font-size: 1.5em;
	color: var(--secondary-color);
}

.info-box h2 {
	color: var(--primary-color);
	margin: 0;
	font-size: 1.8em;
}

.info-box ul {
	list-style: none;
	padding: 0;
}

.info-box li {
	margin: 20px 0;
	display: flex;
	align-items: center;
	gap: 15px;
	transition: transform 0.2s ease;
}

.info-box li:hover {
	transform: translateX(10px);
}

.info-box li i {
	color: var(--secondary-color);
}

.buttons-container {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-top: 40px;
}

.button {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 15px 30px;
	border-radius: 10px;
	text-decoration: none;
	color: var(--text-color);
	font-weight: bold;
	transition: all 0.3s ease;
	background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
	border: none;
	box-shadow: 0 4px 15px rgba(0, 188, 212, 0.2);
}

.button i {
    font-size: 1.2em;
}

.button.discord {
	background: linear-gradient(135deg, #7289da, #21377c);
}

.button.store {
	background: linear-gradient(135deg, var(--primary-color), #146169);
}

.button.vote {
    background: linear-gradient(135deg, #886060, #743b3b);
}

.button.map {
	background: linear-gradient(135deg, #43834e, #13571e);
}

.button:hover {
	transform: translateY(-5px);
	box-shadow: 0 6px 20px rgba(0, 188, 212, 0.3);
}

.button.vote:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, #EE5253, #FF6B6B);
    box-shadow: 0 6px 20px rgba(238, 82, 83, 0.3);
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
	.container {
		padding: 15px;
	}

	.server-details {
		padding: 25px;
		margin-top: 30px;
	}

	h1 {
		font-size: 2.2em;
	}
}

@media (max-width: 768px) {
	.container {
		padding: 10px;
	}

	.server-details {
		padding: 20px;
		margin-top: 20px;
	}

	.info-container {
		flex-direction: column;
	}
	
	.buttons-container {
		flex-direction: column;
		padding: 0 10px;
	}
	
	.button {
		width: calc(100% - 20px);
		justify-content: center;
		margin: 5px 0;
		padding: 12px 15px;
		font-size: 0.95em;
	}

	.server-status {
		position: relative;
		top: 0;
		right: 0;
		justify-content: center;
		margin-bottom: 20px;
	}

	.info-box {
		padding: 15px;
	}

	.ip-box {
		flex-direction: column;
		gap: 10px;
		padding: 15px;
	}

	.ip-box code {
		font-size: 1em;
	}
}

@media (max-width: 480px) {
	.container {
		padding: 5px;
	}

	.server-details {
		padding: 15px;
		margin-top: 15px;
	}

	.buttons-container {
		margin: 20px 0;
	}

	.button {
		width: calc(100% - 10px);
		padding: 10px 15px;
		margin: 4px 0;
	}

	.info-header {
		gap: 10px;
	}

	.info-header i {
		font-size: 1.2em;
	}

	.info-box li {
		font-size: 0.9em;
		gap: 10px;
	}
}

.server-status {
	position: absolute;
	top: 20px;
	right: 20px;
	display: flex;
	align-items: center;
	gap: 8px;
	background: rgba(0, 0, 0, 0.3);
	padding: 8px 16px;
	border-radius: 20px;
	backdrop-filter: blur(5px);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-dot {
	width: 8px;
	height: 8px;
	background-color: var(--online-color);
	border-radius: 50%;
	animation: pulse 2s infinite;
}

.status-text {
	font-size: 0.9em;
	color: var(--online-color);
	font-weight: 500;
}

@keyframes pulse {
	0% {
		transform: scale(1);
		opacity: 1;
	}
	50% {
		transform: scale(1.2);
		opacity: 0.7;
	}
	100% {
		transform: scale(1);
		opacity: 1;
	}
}

/* Touch device optimizations */
@media (hover: none) {
	.button:hover {
		transform: none;
	}

	.info-box:hover {
		transform: none;
	}

	.info-box li:hover {
		transform: none;
	}

	/* Add active states for touch devices */
	.button:active {
		transform: scale(0.98);
		background: var(--secondary-color);
	}

	.info-box:active {
		transform: scale(0.99);
	}

	.copy-btn:active {
		transform: scale(0.95);
		color: var(--primary-color);
	}
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
	body {
		background-attachment: scroll;
	}

	.particle {
		display: none;
	}
}

/* Improve particle performance on mobile */
@media (max-width: 768px) {
	.particles {
		opacity: 0.5;
	}

	.particle {
		width: 3px;
		height: 3px;
	}
}
