@import url('https://fonts.googleapis.com/css2?family=EB+Garamond&display=swap');

body {
  background-color: #f5f5fa;
  font-family: 'EB Garamond', serif;
  font-size: 18px;
  line-height: 1.25;
  margin: 20px auto;
  padding: 20px 0;
  text-align: justify;
  width: 600px;
}

code {
  color: #d63384;
}

figcaption {
  font-style: italic;
}

figure {
  margin: 0;
}

h1 {
  font-size: 24px;
  text-align: center;
}

h3 {
  font-size: 22px;
  margin-bottom: 5px;
}

h4 {
  font-size: 20px;
}

nav {
  border-bottom: 1px solid #dddddd;
  border-top: 1px solid #dddddd;
  display: flex;
  flex-wrap: wrap;
  font-size: 18px;
  justify-content: space-between;
  margin: 0 auto;
  padding: 10px 0;
}

nav a {
  color: #333;
  margin: 0 10px;
  text-decoration: underline;
}

nav a.active {
  color: #555;
  cursor: default;
  pointer-events: none;
  text-decoration: none;
}

pre {
  background-color: #f4f4f4;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 10px;
  overflow: auto;
  font-family: 'Courier New', monospace;
  font-size: 11px;
}

table {
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 16px;
  table-layout: fixed;
}

th, td {
  border: 1px solid #ccc;
  padding: 10px 15px;
  text-align: left;
}

th {
  background-color: #e6e6ff;
}

time {
  margin-top: 0;
}

tr:nth-child(even) {
  background-color: #f2f2f2;
}

.reddit-polls-tabulator {
  width: 800px;
  position: relative;
  left: -101px; 
}

.reddit-posts-tabulator {
  width: 725px;
  position: relative;
  left: -62px;
}

@media (max-width: 600px) {
  body {
    width: 80%;
  }
  
  nav {
    align-items: flex-start;
    flex-direction: column;
  }

  nav a {
    line-height: 1.5;
    text-align: left;
    width: 100%;
  }

  .reddit-polls-tabulator {
    left: 0;
    width: auto;
    max-width: 800px; 
    overflow-x: auto; 
  }
  
  .reddit-posts-tabulator {
    left: 0; 
    width: auto;
    max-width: 725px; 
    overflow-x: auto;
  }
}
