@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Roboto:wght@400;700&display=swap');

body {
	margin: 0;
	font-family: 'Roboto', sans-serif;
	background: linear-gradient(135deg, #141e30, #243b55);
	color: #fff;
	overflow-x: hidden;
}

header {
	background: #121212;
	padding: 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	text-shadow: 2px 2px #000;
	position: sticky;
	top: 0;
	z-index: 1000;
}

.logo {
	font-family: 'Press Start 2P', cursive;
	font-size: 1.75rem;
	color: #fff;
}

nav ul {
	list-style: none;
	display: flex;
	margin: 0;
	padding: 0;
}

nav ul li {
	margin-left: 20px;
}

nav ul li a {
	color: #fff;
	text-decoration: none;
	font-size: 1rem;
	transition: color 0.3s ease, transform 0.3s ease;
}

nav ul li a:hover {
	color: #ff8c00;
	transform: scale(1.1);
}

.heros {
	position: relative;
	height: 300px;
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	color: #fff;
	overflow: hidden;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
	background: linear-gradient(to bottom, #000814, #001d3d);
}

.heros h1 {
	font-family: 'Press Start 2P', cursive;
	font-size: 3rem;
	color: #ffcc00;
	text-shadow: 3px 3px #000;
	z-index: 1;
}

/* Stars */
#retrobg-stars {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	pointer-events: none;
}

.retrobg-star {
	position: absolute;
	width: 2px;
	height: 2px;
	border-radius: 50%;
	background-color: #fff;
	opacity: var(--star-opacity, 0.7);
	top: calc(100% * var(--star-y));
	left: calc(100% * var(--star-x));
	animation: star-twinkle 3s infinite alternate ease-in-out;
}

/* Twinkling Animation */
@keyframes star-twinkle {

	0%,
	100% {
		opacity: 0.5;
	}

	50% {
		opacity: 1;
	}
}

/* Shooting Stars */
.shooting-star {
	position: absolute;
	width: 2px;
	height: 2px;
	background: linear-gradient(45deg, #fff, transparent);
	border-radius: 50%;
	top: calc(100% * var(--shoot-y));
	left: calc(100% * var(--shoot-x));
	transform: rotate(-45deg);
	animation: shoot 5s infinite ease-in-out;
	animation-delay: var(--delay);
}

/* Shooting Animation */
@keyframes shoot {
	0% {
		opacity: 0;
		transform: translate(0, 0) scale(1);
	}

	10% {
		opacity: 1;
		transform: translate(-30px, 30px) scale(1.5);
	}

	70% {
		opacity: 0.7;
		transform: translate(-100px, 100px) scale(0.8);
	}

	100% {
		opacity: 0;
		transform: translate(-150px, 150px) scale(0.5);
	}
}


.leaderboard-section {
	padding: 50px 20px;
	text-align: center;
}

.leaderboard-section h2 {
	font-family: 'Press Start 2P', cursive;
	font-size: 2rem;
	color: #ffcc00;
	margin-bottom: 20px;
	text-shadow: 2px 2px #000;
}

.leaderboard-section table {
	width: 90%;
	max-width: 800px;
	margin: 20px auto;
	border-collapse: collapse;
	background: rgba(0, 0, 0, 0.8);
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

.leaderboard-section table thead th {
	background: rgba(255, 255, 255, 0.1);
	color: #ffcc00;
	padding: 15px;
	font-family: 'Press Start 2P', cursive;
	text-shadow: 1px 1px #000;
}

.leaderboard-section table tbody td {
	padding: 15px;
	color: #fff;
	text-align: center;
}

.leaderboard-section table tbody tr {
	background: rgba(255, 255, 255, 0.05);
	transition: background-color 0.3s ease;
}

.leaderboard-section table tbody tr:hover {
	background: rgba(255, 255, 255, 0.1);
}

.leaderboard-section table tbody tr:nth-child(odd) {
	background: rgba(0, 0, 0, 0.7);
}

footer {
	background: #121212;
	text-align: center;
	padding: 20px;
	color: #fff;
	font-size: 0.9rem;
	text-shadow: 1px 1px #000;
}

footer a {
	color: #ffcc00;
	text-decoration: none;
	font-weight: bold;
	transition: color 0.3s ease;
}

footer a:hover {
	color: #ff8c00;
}

@media (max-width: 768px) {
	nav ul {
		flex-direction: column;
		align-items: flex-start;
		background-color: #1e1e1e;
		position: absolute;
		top: 60px;
		left: 0;
		width: 100%;
		display: none;
		padding: 10px 0;
		border-radius: 0 0 8px 8px;
		box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
	}

	nav ul.show {
		display: flex;
	}

	nav ul li {
		margin: 10px 0;
		text-align: center;
	}

	nav ul li a {
		font-size: 16px;
	}

	.menu-toggle {
		display: block;
	}
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.heros h1 {
		font-size: 2.2rem;
		/* Reduce size for medium screens */
	}
    .leaderboard-section h2 {
		font-size: 1.2rem;
		/* Reduce size for medium screens */
	}
    .logo {
		font-size: 1.1rem;
		/* Further reduce for smaller screens */
	}
}
.leaderboard-section a {
    color: white;
    text-decoration: none;
}

.leaderboard-section a:hover {
    color: #ffcc00; /* Optional: Add a hover effect with your site's accent color */
    text-decoration: underline;
}