/* General Styles */
body {
  background-color: #000000; /* Black background */
  color: #2ee6a8; /* Seafoam green text */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

#wrapper {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header {
  background-color: #111;
  text-align: center;
  padding: 25px 10px;
  border-bottom: 2px solid #2ee6a8;
  width: 100%;
  max-width: 1200px;
}

header h1 {
  margin: 0;
  color: #2ee6a8;
  font-size: 2em;
  letter-spacing: 1px;
}

/* Navigation Menu */
nav {
  width: 100%;
  max-width: 1200px;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 15px 0 0 0;
  display: flex;
  justify-content: center;
}

nav ul li {
  display: inline-block;
  margin: 0 12px;
}

nav ul li a {
  text-decoration: none;
  color: #2ee6a8;
  font-weight: bold;
  font-size: 1.05em;
  transition: color 0.3s, text-shadow 0.3s;
}

nav ul li a:hover {
  color: #00ffaa;
  text-shadow: 0 0 8px #00ffaa;
}

/* Main Section - CHANGED THIS */
main {
  max-width: 800px;
  margin: 20px auto 40px auto; /* Reduced top margin from 40px to 20px */
  padding: 25px;
  background-color: #101010;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(46, 230, 168, 0.3);
  width: 100%;
}

h2, h3 {
  color: #2ee6a8;
}

p {
  font-size: 1.05em;
  color: #d4f9eb; /* Slightly lighter for readability */
  text-align: justify;
}

/* Table styling for routines page */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background-color: #0a0a0a;
  border: 1px solid #2ee6a8;
}

table th {
  background-color: #111;
  color: #2ee6a8;
  padding: 12px;
  text-align: left;
  border-bottom: 2px solid #2ee6a8;
}

table td {
  padding: 10px 12px;
  border-bottom: 1px solid #1a1a1a;
  color: #d4f9eb;
}

table tr:hover {
  background-color: #151515;
}

/* Footer */
footer {
  text-align: center;
  padding: 15px;
  margin-top: auto; /* Pushes footer to bottom */
  border-top: 2px solid #2ee6a8;
  background-color: #111;
  font-size: 0.9em;
  color: #2ee6a8;
  width: 100%;
  max-width: 1200px;
}

/* Buttons or Links Inside Main (optional enhancement) */
a.button {
  display: inline-block;
  background-color: #2ee6a8;
  color: #000;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.3s;
}

a.button:hover {
  background-color: #00ffaa;
  transform: scale(1.05);
}