/* ==========================================================================
   8. Media Queries - Smaller than 1130px
   ========================================================================== */

@media only screen and (max-width: 900px) {
  /* makes it a top sticky menu */
  .fixed-nav {
    opacity: 1;
    position: fixed;
    top: 0px;
    left: 0px;
    flex-wrap: wrap;
    flex-direction: row;
    width: 100vw;
    z-index: 99999;
    background: var(--color-background);
    border-radius: 0;
    text-align: center;
    padding: 4px;
  }

  a.fn-item {
    display: inline;
    margin-left: 10px;
  }

  blockquote {
    margin-left: 0;
  }

  .post-holder {
    padding-top: 20px;
  }

  #site-head {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    min-height: 240px;
    // padding: 15% 0;
    height: 100%;
    margin-bottom: 0rem;
  }

  .blog-title {
    font-size: 4rem;
    letter-spacing: -1px;
  }

  .blog-description {
    font-size: 2.2rem;
    line-height: 1.5em;
  }

  .post {
    font-size: 0.9em;
    line-height: 1.6em;
  }

  /* skip the top menu when scrolling */
  .post-holder .post {
    scroll-margin-top: 48px;
  }

  .post-template .post {
    padding-bottom: 1rem;
  }

  .post-template .post-header {
    padding: 40px 0;
  }

  h1 {
    font-size: 3.5rem;
    text-indent: -2px;
  }

  h2 {
    font-size: 3rem;
    line-height: 1.2em;
    letter-spacing: -1px;
    text-indent: -2px;
  }

  h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
  }
  
  h4 {
    font-size: 2rem;
  }
  
  h5 {
    font-size: 1.8rem;
  }
  
  h6 {
    font-size: 1rem;
  }

  #site-head #site-menu, #site-head.withCenteredImage #site-menu {
    font-size: 1.5rem;
    flex: 1;
    order: 2;
    flex-basis: 100%; 
    justify-content: start;
  }
  #top-banner {
    flex-wrap: wrap;
  }
  #site-head #site-languages,
  #site-head.withCenteredImage #site-languages {
    order: 1;
  }
  #blog-logo {
  }
}

/* ==========================================================================
   9. Media Queries - Smaller than 500px
   ========================================================================== */

@media only screen and (max-width: 500px) {
  .post-holder {
    padding-top: 20px;
  }

  #blog-logo {
    max-height: 6rem;
    margin-left: 1.5rem;
    max-width: 40%;
  }

  .inner,
  .pagination {
    width: auto;
  }

  .post {
    width: auto;
    margin-left: 16px;
    margin-right: 16px;
    font-size: 0.8em;
    line-height: 1.6em;
  }

  #site-head,
  #site-head.withCenteredImage {
    // padding: 1.5rem;
    height: 90%;
  }

  #header-arrow {
    display: none;
  }

  a.btn {
    margin-top: 10px;
    font-size: 1.1rem;
  }

  .blog-title {
    font-size: 3rem;
  }

  #site-head .blog-description,
  #site-head.withCenteredImage .blog-description {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
  }

  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 3rem;
  }

  h1,
  h2 {
    line-height: 1.1em;
    letter-spacing: -1px;
  }

  h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
  }
  
  h4 {
    font-size: 2rem;
  }

  .post-template .post {
    padding-bottom: 0;
  }

  .post-template .post-header {
    padding: 30px 0;
  }

  .site-footer {
    font-size: 1.3rem;
  }
  #site-head #top-banner,
  #site-head.withCenteredImage #top-banner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100vw;
    padding: 1rem 0;
  }

  #site-languages {
    align-self: center;
    padding-right: 1rem;
  }
  #site-head #site-menu,
  #site-head.withCenteredImage #site-menu {
    display: none;
  }

  #site-head #site-languages .btn-lang,
  #site-head.withCenteredImage #site-languages .btn-lang {
    margin: 1rem 0.3rem;
    font-size: 1rem;
  }
}
