body {
    background-color: #ffffff;
    font-size: 1.8rem;
    color: #000000;
}

a {
    color: #6C7A89;
    text-decoration: none;
}

.navbar {
    margin-bottom: 10px;
    text-align: center;
}

.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.navbar li {
    margin: 0;
    display: inline-block;
    line-height: 0.1em;
    padding: 0;
}

.navbar li a {
    display: block;
    color: #6C7A89;
    text-align: center;
    text-decoration: none;
}

.navbar li h3 {
    margin: 1em;
    font-size: 4rem;
}

.navbar li h4 {
    margin: 5%;
}

.navbar li h6 {
    line-height: 2.5;
}
.navbar li i {
    display: block;
    text-align: center;
    padding: 14px 16px;
}

.social-img {
    background-color: #6C7A89;
}

sidebar {
    font-size: 1.25rem;
    font-weight: bold;
    width: 15%; 
    height: 100%;
    position: fixed;
    right: 0;
    padding: 2%;
    text-align: center;
    background-size: cover;
}

sidebar > ul {
    list-style-type: none;
    padding: 0px 10px;
    margin-top: 0px;
}

.static-item {
    text-transform: uppercase;
    font-size: 1.5rem;
    font-weight: bold;
}

.cat-border {
    border: 2px solid #6C7A89;
    text-transform: uppercase;
}

.cat-border a:focus,
.cat-border a:hover {
    color: #F2F1EF;
    background-color: #6C7A89;
    padding: 1%;
}

sidebar > ul > li > a:hover,
sidebar > ul > li > a:focus {
    color: #F2F1EF;
    background-color: #6C7A89;
    padding: 1%;
}

sidebar > h2 {
    font-size: 15px;
    margin-bottom: 5px;
    padding-bottom: 3%;
}

maincontent {
    display: block;
    line-height: 1.6em;
    width: 85%;
}

maincontent > ol {
    list-style-type: none;
}

mainarticle ul {
    list-style: square inside;
}

mainarticle ul li p {
    padding-left: 3%;
    margin-top: -2%;
    font-size: 1.5em;
}

mainarticle a {
    background: #f4f5f6;
    font-weight: bold;
    font-style: italic;
}

maincontent table {
    max-width: 100%;
    width: 0;
}

maincontent table tbody tr td pre {
    padding-right: 20px;
}

maincontent table tbody tr td .highlight {
    width: 90rem;
}

.page-title {
    border-bottom: 1.5px solid #eee;
    width: 85%;
}

hr {
    border-top: 0.3rem double #6C7A89;
}

pre {
    padding-left: 1.5%;
    border-left: 0.3rem solid #6C7A89;
}

code {
    font-size: 100%;
    font-style: italic;
}

ul {
   list-style: square inside;
}

.social-icons-a {
    max-width: 3%;
}

.social-icons-m {
    max-width: 20%;
}

.pagination-dir {
    font-size: 2.5rem;
    margin-top: 2%;
}

.static-page-urls a{
    background: #f4f5f6; 
    font-weight: bold; 
    font-style: italic; 
    color: #6C7A89; 
    text-decoration: none;
}

/* Tablet and below (iPad width and smaller) - Stack layout vertically */
@media (max-width: 768px) {
  .container {
    display: flex;
    flex-direction: column;
    position: static;
    padding: 0;
  }

  .navbar {
    order: 1;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 20px;
    padding: 0 2rem;
  }

  .navbar ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }

  .navbar ul > div {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }

  .navbar li {
    display: inline-block;
    padding: initial;
    text-align: center;
  }

  .navbar li a {
    display: inline-block;
  }

  .navbar li h3 {
    font-size: 3rem;
    margin: 0.5em;
    display: inline-block;
  }

  .navbar li h6 {
    line-height: initial;
    font-size: 1.2rem;
    letter-spacing: 0;
    display: inline-block;
  }

  sidebar {
    order: 2;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 20px;
    font-size: 1.4rem;
    border-bottom: 2px solid #6C7A89;
    margin-bottom: 20px;
    left: auto !important;
    right: auto !important;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
  }

  sidebar ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
  }

  sidebar ul li {
    display: inline-block;
    margin: 0;
    white-space: nowrap;
  }

  sidebar h2 {
    font-size: 1.4rem;
    margin: 0;
    display: inline-block;
  }

  sidebar > * {
    margin: 0;
  }

  maincontent {
    order: 3;
    width: 100%;
    font-size: 1.6rem;
    padding: 0 20px;
    display: block;
  }

  maincontent h2 {
    font-size: 2.4rem;
  }

  maincontent h5 {
    font-size: 1.8rem;
  }

  mainarticle ul li p {
    padding-left: 5%;
    margin-top: -6%;
  }

  .social-icons-m {
    max-width: 30px;
  }

  .page-title {
    width: 100%;
  }
}
