@import url(https://fonts.googleapis.com/css?family=Lato:400,700);

body {
  background-color: #EEEEEE;
  font-family: 'Lato', sans-serif;
  margin: 0;
  color: #161616;
}

#content {
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 0px calc((100vw - 768px + 16px)*0.25);
}
#content > pre > code {
  border: black 3px solid;
  max-height: calc(768px * 0.33);
  display: block;
  overflow-x: auto;
}

#content p {
  max-height: initial;
}
#content object[type="application/pdf"] {
  width: 100%;
  height: 500px;
}
#content * {
  max-width: 768px;
  max-height: 768px;
}

#content .small {
  max-height: calc(576px * 0.5);
}
#content p:has(> .small) {
  white-space: nowrap;
  max-width: fit-content;
}

@media only screen and (max-width: calc(768px + 32px)) {
  #content {
    margin: 0px 8px
  }
  #content p, li {
    max-width: 100%;
    font-size: .875rem;
  }
  #content * {
    max-width: 100%
  }
  #content .small {
    max-height: 100%;
  }
  #content p:has(> .small) {
    white-space: initial;
    overflow: initial;
    max-width: initial;
  }
  h2 {
    font-size: 1.25rem;
  }
}