* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #000;
  color: #00ff00;
  font-family: 'Courier New', Courier, monospace;
  height: 100%;
  display: flex;
  flex-direction: column; /* Stack content vertically */
  justify-content: flex-start; /* Ensure content starts from the top */
  align-items: center; /* Center content horizontally */
  overflow-y: auto; /* Allow scrolling for vertical overflow */
  scroll-behavior: smooth;
  padding-top: 100px; /* Add space from the top */
  padding-bottom: 50px; /* Space at the bottom */
}

/* Canvas Background */
canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
}

/* Terminal Box */
.terminal-box {
  background: rgba(10, 10, 10, 0.9);
  border: 2px solid #00ff00;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 0 20px #00ff00;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  max-width: 90vw;
  width: 100%; /* Ensure it takes up full width */
  position: relative;
  margin-bottom: 50px; /* Added space below the live stats section */
}

/* Heading */
h1 {
  font-size: 2.5rem;
  color: #00ff99;
  text-shadow: 0 0 10px #00ff99;
  animation: flicker 2s infinite;
  text-align: center;
}

@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: 0.4; }
}

/* Stats Display */
#total-community-count {
  font-size: 4rem;
  font-weight: bold;
  color: #00ff00;
  text-shadow: 0 0 10px #00ff00;
  white-space: nowrap;
  position: relative;
}

#total-community-count::after {
  content: '|';
  animation: blink 1s steps(2, start) infinite;
  position: absolute;
  right: -20px;
  color: #00ff00;
}

@keyframes blink {
  to { visibility: hidden; }
}

/* Download Link */
#download-link {
  padding: 12px 28px;
  background-color: transparent;
  color: #00ff00;
  border: 2px solid #00ff00;
  font-size: 1.2rem;
  text-decoration: none;
  border-radius: 6px;
  box-shadow: 0 0 12px #00ff00;
  transition: all 0.2s ease-in-out;
  text-transform: uppercase;
  position: relative;
}

#download-link:hover {
  background-color: #00ff00;
  color: #000;
  box-shadow: 0 0 30px #00ff00;
}

/* Last Updated Text */
.last-updated {
  font-size: 0.9rem;
  color: #00cc00;
  opacity: 0.7;
  margin-top: -10px;
}

/* Mod Showcase Section */
.mod-showcase {
  background: rgba(10, 10, 10, 0.9);
  border: 2px solid #00ff00;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 0 20px #00ff00;
  margin-top: 50px; /* Move it down to be below the stats section */
  width: 90%; /* Adjust width to fit within the screen */
  max-width: 900px;
  text-align: center;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(-50px);
  animation: slideDown 1s ease-out forwards;
}

@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Heading for Mod Section */
.mod-showcase h2 {
  color: #00ff99;
  font-size: 2.5rem;
  text-shadow: 0 0 10px #00ff99;
  margin-bottom: 30px;
}

/* Mod Screenshot Image */
.mod-img {
  width: 100%;
  max-width: 700px;
  height: auto;
  margin-bottom: 30px;
}

/* Feature List */
.features {
  list-style-type: none;
  font-size: 1.2rem;
  color: #00cc00;
  padding: 0;
  margin-top: 20px;
}

.features li {
  margin: 15px 0;
}

/* Responsive Design for smaller screens */
@media (max-width: 768px) {
  .terminal-box { padding: 20px; }
  h1 { font-size: 1.8rem; }
  #total-community-count { font-size: 2rem; }
  #download-link { font-size: 1rem; }

  /* Adjust mod showcase for smaller screens */
  .mod-showcase {
    margin-top: 30px;
    width: 100%; /* Full width on smaller screens */
    padding: 20px;
  }

  .mod-showcase h2 {
    font-size: 2rem;
  }

  .mod-img {
    width: 90%;
    max-width: 500px;
  }

  .features li {
    font-size: 1rem;
    margin: 10px 0;
  }
}
