body {
  max-width: 90vw;
  margin: 1em auto;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #ccc;
  color: #666;
  font-size: calc(0.9rem + 0.6vw);
  line-height: 1.3;
}

/* mobile first  - one column*/
.container {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "header"
    "content"
    "sidebar"
    "footer";
  grid-gap: 1.5vh;
}

header {
  grid-area: header;
}

h1,
h2 {
  text-align: left;
}

.articleDetails {
  padding: 0.5em 1em;
  background-color: #bdbdbe;
  border-radius: 15px;
}

/* bottom transparent navigator */
.navWrapper {
  display: flex;
  background-color: rgba(194, 185, 185, 0.9);
  border-radius: 15px;
  position: fixed;
  bottom: 2vh;
  width: 90vw;
}

.navWrapper > div {
  flex: 1;
  text-align: center;
  padding: 0.5em 0;
}

a {
  text-decoration: none;
  color: #444446;
}

a:hover {
  color: #ffffff;
}

a:active {
  color: black;
  font-weight: 900;
}

.navWrapper > div > a {
  font-weight: 500;
}

@media (max-width: 400px) {
  ul {
    font-size: calc(0.5rem + 0.5vw);
  }

  ul > li {
    flex: auto;
    padding: 2px;
    margin-right: 0;
  }
}

article {
  grid-area: content;
  text-align: justify;
  padding: 2vh 2vw;
  border: 1px solid #666;
  border-radius: 15px;
}

.menu {
  text-align: justify;
  padding: 0.2vh 0.2vw;
  border: 1px solid #666;
  border-radius: 25px;
  display: inline;
}

big {
  font-size: 1.5em;
  font-weight: 600;
}

.big {
  font-size: 1.5em;
  font-weight: 600;
}

/* styling h1 used for article titles*/
.xl-title {
  font-size: 2em;
  font-weight: 900;
  margin-top: 0.5vh;
}

@media (max-width: 768px) {
  .xl-title {
    font-size: 1.3em;
    font-weight: 700;
    margin-top: 0;
  }

  h2 {
    font-size: 1.3em;
    font-weight: 300;
    margin-top: 0;
  }
}

aside {
  grid-area: sidebar;
  padding-top: 4vh;
}

footer {
  grid-area: footer;
}

.inArticle {
  max-width: 45vw;
}

/* photo and BU in main text */
.pic_BU {
  float: left;
  padding: 0.7vh 1.6vw 0.3vh 0;
  max-width: 45vw;
}

.pic_BU_right {
  float: right;
  padding: 1vh 0vw 0.3vh 1.6vw;
  max-width: 45vw;
}

.sidePic {
  max-height: 80vh;
  max-width: 40vw;
}

/*default for small screens - elements at bottom:*/
.side {
  padding: 1vh 2vw 1vh 2vw;
  border: 1px solid #666;
  border-radius: 25px;
  margin-bottom: 2vh;
  position: relative;
  /*display: grid;
    grid-template-columns: 1fr 2fr;
    grid-template-areas: 
    "image" "text" "text";
    justify-items: center;
    align-items: center;
    grid-gap: 1vw;*/
}

.side_pic_BU {
  float: left;
  padding: 0.7vh 1.6vw 0.3vh 0;
  max-width: 45vw;
}

/* empty div to pevent pic from going over cell border*/
.clear-both {
  clear: both;
}

/* was trying to place text at the bottom of cell but didn't work
.picText {
}
*/

.side-bottom {
  margin-bottom: 5vh;
}

figcaption {
  font-size: calc(0.7rem + 0.1vw);
  text-align: left;
}

.figcaption {
  font-size: calc(0.7rem + 0.3vw);
  text-align: left;
  margin: 0;
}

sup {
  font-size: calc(0.5rem + 0.3vw);
}

.footnotes {
  font-size: calc(0.6rem + 0.3vw);
  text-align: left;
  margin: 0;
  line-height: 1.1;
}

.rightAlign {
  text-align: right;
}

.leftAlign {
  text-align: left;
}

.larger-text {
  font-size: calc(1rem + 0.7vw);
  font-weight: 600;
}

/* more width for smaller screens also for bottom nav (so it stays central)*/
@media all and (max-width: 700px) {
  body {
    max-width: 95vw;
  }

  .navWrapper {
    width: 95vw;
  }
}

@media print {
  @page {
    margin-top: 1cm;
    margin-bottom: 1cm;
    margin-left: 1cm;
    margin-right: 1cm;
  }

  body {
    background: none;
  }

  .article-details {
    display: block;
    padding: 0;
    margin: 0;
    break-after: avoid;
  }

  article {
    display: block;
    break-before: avoid;
    font-size: 10pt;
    border: none;
    padding: 0;
    margin: 0;
  }
  .navWrapper {
    display: none;
  }
  img {
    max-width: 100% !important;
  }
}

.articles-footer {
  margin: 1vh 0 6vh 1vw;
  font-size: calc(0.4rem + 0.5vw);
  text-align: left;
}

.xs-caps {
  font-variant: small-caps;
  font-weight: bolder;
}
