/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  font-size: 16px;
}

body {
  height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f4;
}

/* Header Styles */
header {
  background-color: #2c3e50;
  color: white;
  padding: 1rem;
  margin-bottom: 2rem;
}

header h1 {
  margin: 0;
  text-align: center;
}

header a {
  color: white;
  text-decoration: none;
}

header a:hover {
  color: #ecf0f1;
}

/* Main Content Area */
#main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  background-color: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  min-height: calc(100vh - 200px);
}

#page {
  padding: 2rem;
}

#content {
padding: 2rem;
}

#landing-content {
  padding: 2rem;
  text-align: center;
}

.actions a:last-of-type {
padding-left: 1rem;
}

/* Introduction Section */
.intro {
  margin-bottom: 2rem;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 5px;
}

.intro h2 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
}

.intro p {
  color: #666;
  font-size: 1.1rem;
}

/* Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #dee2e6;
}

/* Table Header */
table th {
  background-color: #2c3e50;
  color: #fff;
  padding: 15px;
  text-align: left;
  border: 1px solid #1a252f;
  font-weight: bold;
  font-size: 1rem;
}

/* Table Cells */
table td {
  padding: 12px 15px;
  border: 1px solid #dee2e6;
  vertical-align: top;
  line-height: 1.4;
}

/* Table Row Alternating Colors */
table tr:nth-child(even) {
  background-color: #f8f9fa;
}

/* Table Row Hover Effect */
table tr:hover {
  background-color: #f2f2f2;
  transition: background-color 0.3s ease;
}

/* Conservation Status Colors */
.status-low-concern {
  color: #27ae60;
  font-weight: bold;
}

.status-moderate-concern {
  color: #f39c12;
  font-weight: bold;
}

.status-extreme-concern {
  color: #c0392b;
  font-weight: bold;
}

.status-extinct {
  color: #7f8c8d;
  font-weight: bold;
}

/* Navigation Menu */
#menu {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

#menu li {
  margin-bottom: 1rem;
}

#menu a {
  display: block;
  padding: 1rem;
  background-color: #2c3e50;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

#menu a:hover {
  background-color: #34495e;
}

/* Footer Styles */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #2c3e50;
  color: white;
  margin-top: 2rem;
}

footer p {
  margin: 0;
}

/* Links */
a {
  color: #8989ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #34495e;
  text-decoration: underline;
}

#landing-content a {
  color: #2c3e50;
  text-decoration: none;
}

#landing-content a:hover {
  color: #34495e;
  text-decoration: underline;
}

#landing-content ul {
  list-style-type: none;
  padding: 0;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.ml-1 { margin-left: 1rem; }
.mr-1 { margin-right: 1rem; }

.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }

/* Responsive Design */
@media screen and (max-width: 768px) {
  html {
      font-size: 14px;
  }

  #main {
      padding: 10px;
  }

  #page {
      padding: 1rem;
  }

  table {
      display: block;
      overflow-x: auto;
      white-space: nowrap;
  }

  table th,
  table td {
      padding: 8px;
  }

  .intro h2 {
      font-size: 1.5rem;
  }

  /* Stack menu items on mobile */
  #menu li {
      margin-bottom: 0.5rem;
  }

  #menu a {
      padding: 0.8rem;
  }
}

/* Print Styles */
@media print {
  body {
      background: white;
  }

  #main {
      box-shadow: none;
      padding: 0;
  }

  header, footer, #menu {
      display: none;
  }

  table {
      border: 1px solid #000;
  }

  table th {
      background-color: #fff !important;
      color: #000;
      border: 1px solid #000;
  }

  table td {
      border: 1px solid #000;
  }

  .status-low-concern,
  .status-moderate-concern,
  .status-extreme-concern,
  .status-extinct {
      color: #000;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
      animation: none !important;
      transition: none !important;
  }
}

/* Focus Styles */
a:focus,
button:focus {
  outline: 3px solid #2c3e50;
  outline-offset: 2px;
}

/* Additional Table Enhancements */
table th:first-child,
table td:first-child {
  border-left: 1px solid #dee2e6;
}

table th:last-child,
table td:last-child {
  border-right: 1px solid #dee2e6;
}

/* Backyard Tips Cell Specific Style */
table td:last-child {
  min-width: 200px;
  max-width: 300px;
}

/* Name Column Emphasis */
table td:first-child {
  font-weight: bold;
  color: #2c3e50;
}

/* Table Caption if needed */
table caption {
  padding: 10px;
  font-weight: bold;
  text-align: left;
  color: #2c3e50;
}
