/* Base styles */
:root {
  --primary: #2563eb;
  --background: #212121;
  --text: #ececec;
  --gray: #8499B7;
  --shadow: 0 2px 4px rgba(255,255,255,0.1);
  --light-background: #2F2F2F;
  --dark-background: #171717;
}

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

body {
  font-family: system-ui, sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Layout */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container h1 {
  font-size: 3.5rem;
  color: var(--primary);
}

.container h2 {
  font-size: 2.0rem;
  color: var(--primary);
}

.container h3 {
  font-size: 1.5rem;
  color: white;
}

/* Navigation */
nav {
  width: 100%;
  box-sizing: border-box; /* Ensures padding doesn't exceed the width */
  background: var(--dark-background);
  padding: 1rem 0;
  box-shadow: var(--shadow);
  position: fixed;  /* Fix the nav */
  top: 0;           /* Ensures it stays at the top */
  left: 0;          /* Aligns it to the left of the screen */
  z-index: 1000;    /* Ensures the nav stays on top of other elements */
}

.nav-content {
  display: flex;
  flex-wrap: wrap; 
  justify-content: space-between; /* Space between logo and links */
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: var(--primary);
  margin-bottom: 1rem; /* Add spacing when wrapping */
}

.nav-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  justify-content: center; /* Center links when wrapping */
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

/* Social Links */
.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 1rem 0;
}

.social-links a {
  color: var(--text);
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  background: var(--dark-background);
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
}

.social-links a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* Cards */
.card {
  background: var(--light-background);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-4px);
}

/* Buttons */
.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s;
}

.button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Footer */
footer {
  width: 100%;
  text-align: center;
  padding: 2rem;
  background: var(--dark-background);
  box-shadow: 0 -1px 3px rgba(255,255,255,0.1);
  margin-top: auto;
}

/* for tales */
ul {
  list-style-type: disc;
  margin-left: 20px;
}
.section {
  margin-bottom: 30px;
}
.subsection {
  margin-left: 20px;
  margin-bottom: 20px;
}
.sub-subsection {
  margin-left: 40px;
  margin-bottom: 15px;
}
.tales-navbar{
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  text-align: center;
}
.note {
  font-style: italic;
  color: #555;
}
.example {
  background-color: #f0f8ff;
  border-left: 3px solid #add8e6;
  padding: 10px;
  margin-top: 10px;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
th, td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}
th {
  background-color: #2F2F2F;
}
a {
  color: var(--primary);
}
