body {
	font-family: 'Courier New', Courier, monospace;
	background-color: #000;
	color: #0f0;
	margin: 0;
	padding: 0 10px 40px 10px;
	min-height: 100vh;
	text-align: center;
	overflow-x: hidden;
	overflow-y: auto;
}

.static {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: repeating-linear-gradient(
		0deg,
		rgba(0, 0, 0, 0.15),
		rgba(0, 0, 0, 0.15) 1px,
		transparent 1px,
		transparent 2px
	);
	opacity: 0.2;
	z-index: 1;
	pointer-events: none;
}

.container {
	background-color: rgba(0, 0, 0, 0.7);
	border: 2px solid #0f0;
	border-radius: 10px;
	padding: 30px;
	max-width: 800px;
	width: 90%;
	box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
	position: relative;
	z-index: 2;
	margin: 40px auto;
	text-align: center;
}

h1 {
	font-size: 2rem;
	margin-bottom: 20px;
	text-shadow: 0 0 10px #0f0;
	animation: glitch 1s infinite alternate;
}

.message {
	font-size: 1.2rem;
	margin-bottom: 30px;
	color: #0f0;
}

.back-button {
	display: inline-block;
	background-color: #0f0;
	color: #000;
	padding: 10px 20px;
	border-radius: 5px;
	text-decoration: none;
	font-weight: bold;
	margin: 20px 0;
	transition: all 0.3s;
	animation: pulse 2s infinite;
}

.back-button:hover {
	background-color: #00ff00;
	box-shadow: 0 0 15px #0f0;
	transform: scale(1.05);
}

@keyframes pulse {
	0% { box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.4); }
	70% { box-shadow: 0 0 0 10px rgba(0, 255, 0, 0); }
	100% { box-shadow: 0 0 0 0 rgba(0, 255, 0, 0); }
}

table {
	width: 100%;
	border-collapse: collapse;
	margin: 20px 0;
	background-color: rgba(0, 50, 0, 0.3);
	border: 1px solid #0f0;
}

th, td {
	padding: 12px 15px;
	text-align: left;
	border-bottom: 1px solid #0f0;
}

th {
	background-color: rgba(0, 40, 0, 0.7);
	color: #0f0;
	font-weight: bold;
	text-transform: uppercase;
}

tr:hover {
	background-color: rgba(0, 60, 0, 0.3);
}

.rank-1 {
	color: gold;
	font-weight: bold;
}

.rank-2 {
	color: silver;
	font-weight: bold;
}

.rank-3 {
	color: #cd7f32; /* bronze */
	font-weight: bold;
}

.submission-info {
	margin-top: 30px;
	text-align: center;
	background-color: rgba(0, 50, 0, 0.3);
	border: 1px solid #0f0;
	border-radius: 5px;
	padding: 20px;
}

.discord-tag {
	font-weight: bold;
	color: #5865F2; /* Discord blue */
	background-color: rgba(88, 101, 242, 0.1);
	padding: 5px 10px;
	border-radius: 4px;
	display: inline-block;
	margin: 10px 0;
}

@keyframes glitch {
	0% { transform: translate(2px, 0) skew(0deg); }
	20% { transform: translate(-2px, 0) skew(0deg); }
	40% { transform: translate(0, 0) skew(0deg); }
	60% { transform: translate(2px, 0) skew(0deg); }
	80% { transform: translate(-2px, 0) skew(0deg); }
	100% { transform: translate(0, 0) skew(0deg); }
}

@media screen and (max-width: 600px) {
	.container {
		width: calc(100% - 40px);
		padding: 20px;
	}
	
	th, td {
		padding: 8px 10px;
		font-size: 0.9rem;
	}

	/* Add table wrapper for horizontal scrolling */
	.table-wrapper {
		width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		margin: 20px 0;
	}

	/* Ensure table doesn't shrink below minimum width */
	table {
		min-width: 600px;
	}

	/* Make video links more touch-friendly */
	td a {
		display: inline-block;
		padding: 5px 10px;
		background-color: rgba(0, 255, 0, 0.1);
		border-radius: 4px;
	}
}

/* Add styles for very small screens */
@media screen and (max-width: 400px) {
	.container {
		padding: 15px;
	}

	h1 {
		font-size: 1.5rem;
	}

	.message {
		font-size: 1rem;
	}

	.back-button {
		padding: 8px 16px;
		font-size: 0.9rem;
	}
}

/* Runner link styles */
.runner-link {
	color: #00ff00;
	text-decoration: none;
	position: relative;
	transition: all 0.2s;
}

.runner-link:hover {
	color: #ffff00;
	text-shadow: 0 0 5px #0f0;
}

.runner-link::after {
	content: '';
	position: absolute;
	width: 0;
	height: 1px;
	bottom: -2px;
	left: 0;
	background-color: #ffff00;
	transition: width 0.3s;
}

.runner-link:hover::after {
	width: 100%;
}

/* Responsive styles for embedded videos */
@media screen and (max-width: 600px) {
	.video-container {
		max-width: 100%;
		margin: 1rem auto;
	}
	
	.profile-stats {
		flex-direction: column;
		gap: 1rem;
	}
	
	.run-card {
		flex-direction: column;
		gap: 1rem;
		text-align: center;
	}
}

/* Time link styles */
.time-link {
	color: #0f0;
	text-decoration: none;
	position: relative;
	transition: all 0.2s;
	font-weight: bold;
}

.time-link:hover {
	color: #0ff;
	text-shadow: 0 0 5px #0f0;
}

.time-link::after {
	content: '';
	position: absolute;
	width: 0;
	height: 1px;
	bottom: -2px;
	left: 0;
	background-color: #0ff;
	transition: width 0.3s;
}

.time-link:hover::after {
	width: 100%;
}