@font-face {
  font-family: 'TF2 Build';
  src: url('tf2build.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'TF2 Secondary';
  src: url('tf2secondary.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* Top Bar / Navigation */
.top-bar {
  top: 0;
  left: 0;
  width: 100%;
  background: #282828;
  border-bottom: 1px solid #444;
  z-index: 1000;
}

.top-bar-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.nav-links li {
  margin-left: 1.5rem;
}

.nav-links a {
  color: #ddd;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #e67e22;               /* Orange on hover/active */
}

/* Push main content down so top bar doesn't overlap it */
.container {
  margin-top: 80px;             /* = top-bar height + some padding; adjust if needed */
  padding-top: 1rem;            /* Extra breathing room */
}

.modal {
  display: none;                  /* Hidden by default */
  position: fixed;
  z-index: 1001;                  /* Above top bar */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;                 /* Scroll if content overflows */
  background-color: rgba(0,0,0,0.6);  /* Dark semi-transparent overlay */
}

/* Modal Content Box */
.modal-content {
  background-color: #222;         /* Matches your dark theme */
  margin: 10% auto;               /* 10% from top, centered */
  padding: 2rem;
  border: 1px solid #444;
  border-radius: 12px;
  width: 80%;
  max-width: 600px;               /* Keeps it readable on big screens */
  box-shadow: 0 8px 32px rgba(0,0,0,0.7);
  color: #eee;
  position: relative;
}

.modal-content a {
  color: #a0d0ff;                  /* Soft blue links */
  text-decoration: underline;
}

/* Close Button (X) */
.close {
  color: #aaa;
  float: right;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.close:hover,
.close:focus {
  color: #e67e22;                 /* TF2 orange on hover */
  text-decoration: none;
}


body {
  font-family: 'TF2 Secondary', 'Arial', sans-serif;  /* Fallback to Arial if font fails to load */
  background: #323A43;
  color: #eee;
  margin: 0;
  padding: 20px;
}

.logo {
  display: block;
  max-width: 400px;          /* ← Change this number to whatever size looks good (e.g., 300px, 500px) */
  width: 100%;               /* Allows it to shrink on narrow screens */
  height: auto;              /* Keeps perfect proportions, no stretching */
  margin: 20px auto;         /* Centers it with some breathing room */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

h1 { text-align: center; }

.search {
  width: 100%;
  max-width: 400px;
  padding: 10px;
  font-size: 1.1em;
  margin: 20px auto;
  display: block;
}

.sort-buttons {
  text-align: center;
  margin: 10px 0 20px;
}

.sort {
  padding: 8px 16px;
  margin: 0 5px;
  background: #333;
  color: white;
  border: 1px solid #555;
  cursor: pointer;
}

.sort:hover { background: #444; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: linear-gradient(#333, #222);  
  border: 2px solid #e67e22;  
  border-radius: 12px;
  padding: 1.2rem;
  box-shadow: 0 6px 12px rgba(0,0,0,0.6);
}

.name { margin: 0 0 0.6rem; font-size: 1.3em; }

.map, .players, .location {
  margin: 0.3rem 0;
  color: #aaa;
}

.join-btn {
  display: block;
  margin-top: 1rem;
  background: #e67e22;
  color: white;
  text-align: center;
  padding: 0.6rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
}

.join-btn2 {
  display: block;
  margin-top: 1rem;
  background: #e67e22;
  color: white;
  text-align: center;
  padding: 0.6rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
}

.join-btn:hover { background: #d35400; }

.join-btn2:hover { background: #d35400; }

/* Footer */
.footer {
  width: 100%;                    /* Full width of the parent (body/html) */
  background: #282828;
  border-top: 1px solid #444;
  color: #aaa;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 3rem;
  font-size: 0.9rem;
  box-sizing: border-box;         /* Ensures padding doesn't add extra width */
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;                 /* Centers inner content */
}

/* Safety net: hide any potential overflow */
html, body {
  overflow-x: hidden;             /* Prevents horizontal scroll from anything */
  margin: 0;
  padding: 0;
  width: 100%;
}

.footer p {
  margin: 0 0 0.8rem 0;
  line-height: 1.5;
}

.footer-links a {
  color: #e67e22;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #ff8533;
  text-decoration: underline;
}

.separator {
  margin: 0 0.8rem;
  color: #555;
}

/* Optional: Make footer stick to bottom on short pages */
html, body {
  height: 100%;
  margin: 0;
}

.container {
  min-height: calc(100vh - 100px);  /* Adjust 180px based on your header/footer height */
  /* or use flex on body if preferred */
}

body {
  display: flex;
  flex-direction: column;
}

footer {
  margin-top: auto;  /* Pushes footer to bottom */

}

