* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  background-color: #121212;
  color: #e0e0e0;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background-color: #1e1e1e;
  border-bottom: 2px solid #333;
}

header h1 {
  font-size: 1.5rem;
  color: #ffffff;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

nav a {
  color: #a0a0a0;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.2s ease;
}

nav a:hover,
nav a.active {
  color: #4da6ff;
}

main {
  flex: 1;
  padding: 3rem 5%;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

h2 {
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* --- Buttons --- */
.cta-button {
  display: inline-block;
  background-color: #4da6ff;
  color: #121212;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 1rem;
  transition: background-color 0.2s ease;
}

.cta-button:hover {
  background-color: #3388dd;
}

/* --- Theory Feed Cards --- */
.theory-feed {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.theory-card {
  display: block;
  background-color: #1e1e1e;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #333;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.theory-card:hover {
  transform: translateY(
    -3px
  ); /* Makes the card float up slightly when hovered */
  border-color: #4da6ff;
}

.theory-card .date {
  font-size: 0.9rem;
  color: #888;
  display: block;
  margin-bottom: 0.5rem;
}

.theory-card h3 {
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.theory-card p {
  margin-bottom: 0;
  color: #a0a0a0;
  font-size: 1rem;
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 1.5rem;
  background-color: #1e1e1e;
  border-top: 1px solid #333;
  font-size: 0.9rem;
  color: #666;
}
