.postlist { counter-reset: start-from 49 }
/*much of this pulled from https://flamedfury.com/guides/11ty-homepage-neocities/ to get me started, make my own later*/
:root {
    /* Set sans-serif & mono fonts */
    --sans-font: Helvetica, "Roboto", sans-serif;
    --mono-font: Consolas, monospace;
  
    /* Default (light) theme */
    --bg: #d0d0d0;
    --accent-bg: #ffffff;
    --text: #333;
    --text-light: #585858;
    --border: #d8dae1;
    --accent-border: #585858;
    --accent: #74005f;
    --yellow: #FFB300;
    --red: #E62600;
    --blue: #227bff;
    --green: #27A61E;
  }
  
  /* Dark theme */
  @media (prefers-color-scheme: dark) {
    :root {
      --bg: #212121;
      --accent-bg: #4c4c4c;/* #2b2b2b;*/
      --text: #dcdcdc;
      --text-light: #ababab;
      --border: #666;
      --accent-border: #4c4c4c;
      --accent: #ffb300;
    }
  }
  
  * {
    box-sizing: border-box;
  }
  
  html {
    /* Set the font globally */
    font-family: var(--sans-font);
    scroll-behavior: smooth;
  }
  
  /* Make the body a nice central block */
  body {
    color: var(--text);
    background-image: linear-gradient(var(--accent-bg),var(--bg));
    font-size: 1.15rem;
    line-height: 1.5;
    margin: 0 auto;
    max-width: 40em;
    padding: 0 1em;
  }
  
  body > header {
    text-align: center;
    padding: 0 0.5rem 0rem 0.5rem;
    box-sizing: border-box;
  }
  
  body > header h1 {
    max-width: 100%;
    margin: 0rem auto;
  }
  
  /* Format navigation */
  nav {
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
    line-height: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-bottom: 1rem;
  }
  
  nav a:hover {
    color: var(--accent) !important;
  }
  /* area-specific nav formatting */
  .main-nav a {
    color: var(--text) !important;
    padding: 0.1rem 1rem;
  }

  .posts-nav a {
    color: var(--text) !important;
  }
  
  /* Reduce nav side on mobile */
  @media only screen and (max-width: 750px) {
    .main-nav a {
      border: none;
      padding: 0;
      color: var(--accent);
      text-decoration: underline;
      line-height: 1;
    }
  }
  /* remove list styling while preventing screen reader errors in nav elements
    see https://gerardkcohen.me/writing/2017/voiceover-list-style-type.html */
  .posts-nav ul {
    display:flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 1rem;
  }
  
  .main-nav ul {
    display:flex;
    justify-content: center;
    width: 65%;
    padding: 0 1rem;    
  }
  @media only screen and (max-width: 750px) {
    .main-nav ul{
      width: 100%;
    }
  }
  .main-nav li {
    padding: .3rem;
    margin: 0 .1rem;
    flex: 1 1 0;
    width: 0;
    text-align: center;
}

  nav li {
    list-style-type: none; /* remove bullets */
  }

  nav li::before {
    content: "\200B"; /* add zero-width space */
  }
  
  /* Add a little padding to ensure spacing is correct between content and nav */
  main {
    padding-top: 1.5rem;
  }
  
  body > footer {
    margin-top: 4rem;
    padding: 2rem 1rem 1.5rem 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: center;
    border-top: 1px solid var(--accent-border);

  }

  /* Format headers */
  
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.6rem;
    margin-top: 3rem;
  }
  
  /* Reduce header size on mobile */
  @media only screen and (max-width: 720px) {
    h1 {
      font-size: 2.5rem;
    }
  
    h2 {
      font-size: 2.1rem;
    }
  }
  
  /* Format links */
  a,
  a:visited {
    color: var(--accent);
  }
  
  a:hover {
    text-decoration: none;
  }

  [aria-current="page"] {
    background: var(--accent-bg);
    padding: 1rem;
    clip-path:circle();
  }

  /*secret div textbox for post page*/
  .secret {
    background: var(--accent-bg);
    width: fit-content;
    border-radius: 2rem;
    padding: .5rem;
    margin: .5rem auto;
  }

  .yellow {
    border: .3rem var(--yellow) solid;
  }

  .yellow:hover {
  outline: .3rem var(--yellow) solid;
  }

  .green {
    border: .3rem var(--green) solid;
  }

  .green:hover {
    outline: .3rem var(--green) solid;
    }

  .red {
    border: .3rem var(--red) solid;
  }

  .red:hover {
    outline: .3rem var(--red) solid;
    }

    .blue {
      border: .3rem var(--blue) solid;
    }
  
    .blue:hover {
      outline: .3rem var(--blue) solid;
      }

  .end {
    border-radius: 0 1rem 1rem 0;
  }

  .start {
    border-radius: 1rem 0 0 1rem;
  }

  .smol {
    font-size: .75rem;
    
  }

  picture img {
    width:60%;
    margin:auto;
  }

  pre code {
    overflow-x: scroll;
    display: block;
  }

  /* Tags */
  .post-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
  }
  .post-tag::before {
    content: "#"
  }
  .post-tag:hover {
    text-decoration: underline;
  }
  .post-metadata {
    display: inline-flex;
    flex-wrap: wrap;
    gap: .5em;
    list-style: none;
    padding: .5rem;
    margin: 0;
    width: 100%;
  }

  .webring {
    display: flex;
    justify-content: center;
  }