/* General Styling */
body, html {
  margin: 0;
  padding: 0;
  min-height: 100vh; /* Ensure the body takes up at least the full viewport height */
  display: flex;
  flex-direction: column;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: #121212; /* Dark background */
  color: #e0e0e0; /* Light text color */
  justify-content: center;
  align-items: center;
}

/* Main content should take full available space, pushing footer down */
.main-container {
  text-align: center;
  margin: auto;
  flex-grow: 1; /* This ensures that the main container grows to fill available space */
}

/* Centering and Box Styling */
h1 {
  margin-bottom: 40px;
  font-size: 36px;
  color: #00ff88; /* Neon green for the title */
}

/* Box Grid (Front page stays as is) */
.box-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
  width: 90%;
  max-width: 1200px;
}

/* Box Styling */
.box {
  background-color: #1e1e1e; /* Dark box background */
  border-radius: 10px;
  padding: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  text-decoration: none;
}

.box h2 {
  font-size: 24px;
  color: #00ff88; /* Neon green for headings */
}

.box p {
  font-size: 16px;
  color: #cccccc; /* Lighter text color for the description */
}

.box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.box.coming-soon {
  background-color: #333333; /* Dim background for coming soon items */
  cursor: default;
}

.box.coming-soon:hover {
  transform: none;
  box-shadow: none;
}

/* Responsive */
@media (max-width: 600px) {
  h1 {
    font-size: 28px;
  }

  .box h2 {
    font-size: 20px;
  }

  .box p {
    font-size: 14px;
  }
}

/* Pages other than front page (85% table and form element scaling) */
.container {
  text-align: center;
  padding: 20px;
  width: 95%;
  max-width: 1400px;
}

/* Form */
form {
  margin-bottom: 30px;
  font-size: 18px;
}

input, button {
  padding: 12px; /* Reduced padding to 85% of the original */
  font-size: 18px;
  margin: 8px;
  border: none;
  border-radius: 6px;
}

input {
  background-color: #333333;
  color: #ffffff;
  width: 60%;
  text-align: center;
}

button {
  background-color: #007bff;
  color: #ffffff;
  cursor: pointer;
}

button:hover {
  background-color: #0056b3;
}

/* Table Styling (85% padding and spacing) */
table {
  width: 100%; /* Full-width table */
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 16px; /* Keep font size as is */
  font-weight: bold; /* Bold table text */
}

th, td {
  padding: 10px; /* Reduced padding by 85% */
  text-align: center;
  border-bottom: 1px solid #444444;
}

th {
  background-color: #2c2c2c;
  cursor: pointer;
  color: #ffffff;
  font-size: 18px;
}

td {
  color: #cccccc;
}

/* Sorting Arrows */
th.sorted-asc::after {
  content: '▲';
  margin-left: 8px; /* Reduced margin */
  font-size: 12px;
}

th.sorted-desc::after {
  content: '▼';
  margin-left: 8px; /* Reduced margin */
  font-size: 12px;
}

/* Link and Button Styling in Table */
a {
  color: #4caf50;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button.copy-btn {
  background-color: #4caf50;
  border: none;
  padding: 4px; /* Reduced button size */
  cursor: pointer;
  color: white;
}

/* Pagination Styling (85% size reduction) */
#pagination {
  margin-top: 30px;
  text-align: center;
}

#pagination button {
  padding: 8px 12px; /* Reduced padding for pagination */
  margin: 4px;
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
}

#pagination button:hover {
  background-color: #0056b3;
}

/* Result Section */
#result {
  margin-top: 20px;
}

/* Footer Styling */
footer {
  text-align: center;
  padding: 20px;
  background-color: #1e1e1e; /* Dark background */
  color: #ffffff;
  font-size: 18px;
  width: 100%; /* Full width of the viewport */
  position: relative;
  bottom: 0;
  margin-top: auto; /* Ensure the footer is pushed to the bottom */
}

footer a {
  color: #00ff88; /* Neon green for link */
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
