/* Modernize.css - A drop-in style for legacy HTML */

:root {
  --primary-color: #2563eb;
  --text-color: #1f2937;
  --bg-color: #f9fafb;
  --card-bg: #ffffff;
  --border-radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  margin: 0;
  padding: 0;
}

/* Center the content and provide a max-width */
main, .container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

/* Typography improvements */
h1, h2, h3 {
  color: #111827;
  line-height: 1.2;
  margin-top: 2rem;
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  text-decoration: underline;
  opacity: 0.8;
}

/* Make images responsive */
img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

/* Modernize old-school tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

th {
  background-color: #f3f4f6;
  font-weight: 600;
}

/* Buttons and Inputs */
button, input[type="submit"] {
  background-color: var(--primary-color);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
}

button:hover {
  background-color: #1d4ed8;
}

/* Simple Navigation Bar */
nav {
  background: #ffffff;
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: center;
  gap: 20px;
}