@import url('https://fonts.googleapis.com/css2?family=Tektur&display=swap');

body {
	display: flex;
    flex-direction: column;
    min-height: 100vh; /* Set minimum height to 100% of viewport height */
	margin: 0;
	padding: 0;
	background-color: #0d0d0d;
	color: #f4f4f4;
	font-family: 'Tektur', monospace;
	background-attachment: fixed;
	background-image: url('/img/background.png');
    background-size: cover;      /* Makes image cover entire area */
    background-repeat: no-repeat; /* Prevents tiling */
    background-position: center; /* Centers the image */
}

.site-content {
    flex: 1; /* Allow this container to grow and fill available space */
}

/* Menu container */
.menu {
	display: flex;
	justify-content: center;
	background-color: rgba(30,30,30,0.95);
	padding: 10px 0;
	box-shadow: 0 0 20px rgba(255,60,40,0.2);
}

/* Menu links */
.menu a {
	color: #ff3b2f;
	text-decoration: none;
	padding: 12px 20px;
	margin: 0 5px;
	border-radius: 5px;
	position: relative;
	transition: all 0.3s ease;
}

/* Hover effect */
.menu a:hover {
	background-color: rgba(255,59,47,0.1);
	text-shadow: 0 0 5px #ff3b2f, 0 0 10px #b30000;
	transform: translateY(-2px);
}

/* Active/current page */
.menu a.active {
	background-color: rgba(255,59,47,0.2);
	box-shadow: 0 0 10px #ff3b2f, 0 0 20px #b30000;
}

/* Responsive */
@media (max-width: 600px) {
	.menu {
		flex-direction: column;
		align-items: center;
	}
	.menu a {
		margin: 5px 0;
	}
}

h1 {
	text-align: center;
	color: #ff3b2f;
	font-size: 2.8em;
	letter-spacing: 3px;
	text-shadow: 0 0 10px #ff3b2f, 0 0 20px #b30000;
	margin-top: 50px;
	animation: flicker 4s infinite;
}

.uptime {
	text-align: center;
	margin-top: 20px;
	font-size: 1.3em;
	color: #ffcf7d;
	text-shadow: 0 0 5px #ffcf7d66;
}

p {
	text-align: center;
	color: #ffffff;
}

table {
	width: 90%;
	margin: 50px auto;
	border-collapse: collapse;
	background-color: rgba(30, 30, 30, 0.9);
	box-shadow: 0 0 25px rgba(255, 60, 40, 0.2);
	border: 1px solid rgba(255, 60, 40, 0.3);
}

/* Style table links to match the dark/neon theme */
table a {
    color: #ff3b2f; /* neon red like your menu */
    text-decoration: none;
    transition: all 0.3s ease;
}

table a:hover {
    color: #ffcf7d; /* lighter highlight on hover */
    text-shadow: 0 0 5px #ff3b2f, 0 0 10px #b30000;
    transform: translateY(-1px);
}

th, td {
	padding: 12px 16px;
	text-align: center;
	border-bottom: 1px solid rgba(255,255,255,0.1);
}

th {
	background-color: rgba(255, 60, 40, 0.1);
	color: #ff3b2f;
	font-size: 1.1em;
	letter-spacing: 1px;
	text-transform: uppercase;
}

tr:hover {
	background-color: rgba(255, 60, 40, 0.08);
	transition: background 0.2s ease-in-out;
}

td {
	color: #e0e0e0;
}

.no-players {
	text-align: center;
	color: #777;
	padding: 20px;
	font-style: italic;
}

footer {
	text-align: center;
	margin-top: 50px;
	color: #555;
	font-size: 0.9em;
	padding: 1rem;
}

/* flicker animation for the title */
@keyframes flicker {
	0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
		text-shadow: 0 0 10px #ff3b2f, 0 0 20px #b30000;
	}
	20%, 24%, 55% {
		text-shadow: none;
	}
}

/* === Fullscreen popup background === */
#playerModal {
  display: none; /* hidden by default */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 5, 0.9);
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}

/* === Modal content box === */
#playerModal .modal-content {
  background: rgba(15, 15, 15, 0.95);
  border: 2px solid #ff3b3b;
  box-shadow: 0 0 25px #ff3b3b66;
  border-radius: 12px;
  padding: 25px 35px;
  width: 350px;
  position: relative;
  animation: popupFade 0.3s ease;
  text-align: left;
}

/* === Player name === */
#playerModal .modal-title {
  text-align: center;
  color: #ff3b2f;
  font-size: 2em;
  letter-spacing: 2px;
  text-shadow: 0 0 10px #ff3b2f, 0 0 20px #b30000;
  margin-bottom: 15px;
  animation: flicker 4s infinite;
}

/* Steam profile link inside modal */
#playerModal .modal-steam-profile {
    text-align: center;       /* center the link under the name */
    margin-bottom: 15px;      /* space between Steam link and stats */
    font-size: 0.95em;        /* slightly smaller than modal text */
    color: #4db8ff;           /* neon-blue accent */
    text-shadow: 0 0 5px #4db8ff, 0 0 10px #0080ff; /* glow effect */
    word-break: break-word;   /* prevent long Steam IDs from overflowing */
}

#playerModal .modal-steam-profile a {
    color: #4db8ff;           /* same neon-blue for link */
    transition: all 0.3s ease;
}

#playerModal .modal-steam-profile a:hover {
    color: #a0e6ff;
    text-shadow: 0 0 8px #4db8ff, 0 0 15px #00bfff;
    transform: translateY(-1px);
}

/* === Stats inside === */
#playerModal .modal-info {
  font-size: 1em;
  color: #e6e6e6;
  line-height: 1.5;
  text-align: left;
}

#playerModal .stat-line {
  display: flex;
  justify-content: space-between;
  margin: 4px 0;
}

#playerModal .stat-label {
  color: #ff6060;
}

#playerModal .stat-value {
  color: #fff;
  text-shadow: 0 0 5px #ff3b3b;
}

/* === Close button === */
#playerModal .close {
  position: absolute;
  top: 8px;
  right: 15px;
  color: #ff3b2f;
  font-size: 26px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

#playerModal .close:hover {
  color: #ffcf7d;
  text-shadow: 0 0 10px #ff3b2f;
}

/* === Entry animation === */
@keyframes popupFade {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
