:root {
  --primary-bg: #1a1a1a;
  --primary-text: #ffffff;
  --accent-color: #4ECDC4;
  --secondary-color: #FF6B6B;
  --gold-color: #FFE66D;
  --link-color: #95E1D3;
  --link-hover: #C7F0DB;
  --navbar-bg: #1a2332;
  --font-family: monospace;
}

body {
  background: #203349;
  color: #ffffff;
  font-family: var(--font-family);
}

.navbar {
  background-color: var(--navbar-bg);
  padding: 12px 0;
  border-bottom: 2px solid rgba(78, 205, 196, 0.3);
}

.site-title {
  font-size: 1.8em;
  font-family: var(--font-family);
  font-weight: 700;
  color: var(--accent-color);
  text-decoration: none;
}

.site-title:hover {
  color: var(--gold-color);
  text-decoration: none;
}

.site-tagline {
  color: #C7F0DB;
  font-size: 18px;
  font-weight: bold;
  margin-left: 12px;
}

/* Navigation links */
.nav-links {
  display: flex;
  gap: 1.5rem;
  margin-left: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--link-color);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--gold-color);
}

.text-accent { 
  color: var(--accent-color); 
}

.text-secondary { 
  color: var(--secondary-color); 
}

a,
.analytics-link {
  color: var(--accent-color);
  text-decoration: none;
}

.analytics-link:hover {
  color: var(--gold-color);
  text-decoration: underline;
}

.analytics-link2 {
  color: var(--link-color);
  text-decoration: none;
}

.analytics-link2:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.container3 {
  width: 80%;
  max-width: 1000px;
  margin: 30px auto 0 auto;
  padding: 10px;
  background: none;
}

.terminal {
  background: var(--primary-bg);
  color: var(--primary-text);
  border: 2px solid rgba(78, 205, 196, 0.3);
  border-radius: 8px;
  padding: 22px 28px 18px 28px;
  font-family: var(--font-family);
  font-size: 0.85em;
  margin-bottom: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  line-height: 1.6;
  overflow-x: auto;
  min-height: 90px;
  position: relative;
}

/* highlight bold text in gold */
.terminal b,
.terminal strong {
  color: var(--gold-color);
  font-weight: 700;
}

.terminal ul {
  margin: 10px 0 10px 30px;
  color: var(--primary-text);
  font-size: 1em;
}

.terminal code {
  background: #0d1117;
  color: var(--accent-color);
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 1em;
}

.terminal pre {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-size: 0.9em;
}

.indented-list ul {
  margin-left: 25px;
}

footer {
  margin-top: 40px;
  width: 80%;
  margin: 0 auto;
  font-size: 0.75em;
  text-align: center;
  padding: 1em 0;
  color: rgba(255, 255, 255, 0.7);
}

footer a {
  color: var(--link-color);
}

footer a:hover {
  color: var(--link-hover);
}

.faq-code {
  background: var(--primary-bg);
  color: var(--primary-text);
  border: 1px solid rgba(78, 205, 196, 0.3);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
  font-size: 1em;
  text-align: center;
}

.cursor {
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Navigation styles for new header */
.nav-icon {
  vertical-align: middle;
  margin-right: 8px;
  width: 32px;
  height: 32px;
}

.nav-icon2 {
  vertical-align: middle;
  margin-right: 8px;
  width: 64px;
  height: 64px;
}

.nav-title-group {
  display: inline-block;
}

.status-display {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  margin-left: 8px;
}

.status-indicator {
  font-weight: bold;
}

.status-indicator.online {
  color: #4ECDC4;
}

.status-indicator.offline {
  color: #FF6B6B;
}

.stats-display {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  margin-right: 1rem;
}

.stat-value {
  color: var(--secondary-color);
  font-weight: bold;
}

.stat-separator {
  margin: 0 0.5rem;
}

.discord-btn {
  background-color: #5865F2;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.discord-btn:hover {
  background-color: #7289DA;
  color: white;
  text-decoration: none;
}

/* Mobile menu styles */
.mobile-nav {
  display: none;
}

.mobile-nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.mobile-nav-left {
  display: flex;
  align-items: center;
}

.mobile-nav-icon {
  width: 30px;
  height: 30px;
  margin-right: 0.5rem;
}

.mobile-site-title {
  color: var(--accent-color);
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
}

.mobile-site-title:hover {
  color: var(--gold-color);
  text-decoration: none;
}

.mobile-menu-btn {
  background: none;
  border: none;
  color: var(--accent-color);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
  height: 0;
  width: 100%;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  background-color: rgba(26, 35, 50, 0.98);
  overflow-y: hidden;
  transition: 0.5s;
}

.mobile-menu-content {
  position: relative;
  top: 15%;
  width: 100%;
  text-align: center;
  margin-top: 30px;
  padding: 0 2rem;
}

.mobile-menu-overlay .closebtn {
  position: absolute;
  top: 20px;
  right: 45px;
  font-size: 60px;
  color: var(--accent-color);
  text-decoration: none;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.mobile-nav-links a {
  color: var(--link-color);
  font-size: 1.3rem;
  text-decoration: none;
  transition: color 0.3s;
}

.mobile-nav-links a:hover {
  color: var(--gold-color);
}

.mobile-status {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.mobile-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
}

.mobile-discord-btn {
  display: inline-block;
  background-color: #5865F2;
  color: white;
  padding: 1rem 2rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 1rem;
}

.mobile-discord-btn:hover {
  background-color: #7289DA;
  color: white;
}

/* Desktop navigation visibility */
.desktop-nav {
  display: block;
}

/* File grid */
.file-grid {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 0.25em 1em;
  margin-left: 1em;
  margin-bottom: 1em;
}

.file-grid a {
  color: var(--link-color);
}

.file-grid a:hover {
  color: var(--link-hover);
}

/* War report styles */
.war-report pre {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-size: 0.9em;
}

.desktop-war-table {
  display: block;
}

.mobile-war-table {
  display: none;
}

.mobile-player-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.player-name {
  color: var(--accent-color);
  font-weight: bold;
}

.player-result {
  text-align: center;
}

.player-stats {
  color: var(--gold-color);
}

.file-content {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-size: 0.9em;
}

/* Download section styles */
.download-section {
  margin: 1em 0;
  padding-left: 1em;
}

.download-links {
  margin-top: 0.5em;
  padding-left: 1em;
}

/* Color adjustments for various text elements */
.terminal span[style*="color:yellow"] {
  color: var(--gold-color) !important;
}

.terminal span[style*="color:cyan"] {
  color: var(--accent-color) !important;
}

.terminal span[style*="color:magenta"] {
  color: #C77DFF !important;
}

.terminal span[style*="color:green"] {
  color: #52D053 !important;
}

.terminal span[style*="color:red"] {
  color: var(--secondary-color) !important;
}

.terminal span[style*="color:#4169E1"] {
  color: #7EC8E3 !important;
}

.terminal span[style*="color:lime"] {
  color: #A8E6CF !important;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .nav-links {
    gap: 1rem;
    margin-left: 1rem;
  }
  
  .site-tagline {
    display: none;
  }
}

/* Changed from 992px to 600px to allow phones in desktop mode to see navigation */
@media (max-width: 600px) {
  .nav-links {
    display: none;
  }
  
  .stats-display {
    display: none;
  }
}

/* Changed from 768px to 480px for mobile nav trigger */
@media (max-width: 480px) {
  /* Hide desktop nav, show mobile nav */
  .desktop-nav {
    display: none !important;
  }
  
  .mobile-nav {
    display: block;
    background-color: var(--navbar-bg);
    padding: 1rem;
  }
  
  .container3 {
    width: 97%;
  }
  
  .terminal {
    font-size: 0.80em;
    padding: 10px 5px;
  }
  
  .navbar {
    font-size: 1.2em;
  }
  
  .file-grid {
    grid-template-columns: 1fr;
  }
  
  footer {
    width: 95%;
    font-size: 0.7em;
  }
  
  .war-report pre {
    font-size: 0.7rem;
  }
  
  .desktop-war-table {
    display: none;
  }
  
  .mobile-war-table {
    display: block;
    margin: 1rem 0;
  }
  
  .file-content {
    font-size: 0.75rem;
  }
}

/* Additional adjustments for very small screens */
@media (max-width: 400px) {
  .container3 {
    width: 97%;
  }
  
  .terminal {
    font-size: 0.80em;
    padding: 10px 5px;
  }
  
  .navbar {
    font-size: 1.2em;
  }
}

/* Make sure the main content has proper spacing */
.main-content {
  min-height: calc(100vh - 200px);
}

/* Ensure nav-right items align properly */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Fix for mobile browser navigation issue */
html {
  height: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100%;
  overflow-x: hidden;
  position: relative;
}

/* Ensure links don't interfere with browser navigation */
a {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

/* Prevent zoom on input focus on iOS */
input, select, textarea {
  font-size: 16px;
}

/* Safe area for mobile devices */
@supports (padding: env(safe-area-inset-top)) {
  .mobile-nav {
    padding-top: calc(1rem + env(safe-area-inset-top));
  }
  
  .mobile-menu-overlay {
    padding-top: env(safe-area-inset-top);
  }
}