main nav a {
   font-size:16px;
   padding: 0 10px;
}

aside nav ul li {
   display: block;
   padding: 0 10px;
}

body {
   text-align: justify;
   line-height: 1.3;
   font-size: 18px;
}

main article {
  max-width: 1068px;
  margin: 0 auto;
  padding: 0 60px;
}

.index {
  max-width:850px;
}

img, video {
  display: block;
  margin-left: auto;
  margin-right: auto;
  height: auto;
  max-height: 600px;
  max-width: 100%;
}

.preview {
  transition: all 0.3s ease;
}

.preview:hover {
  opacity: 0.7;
  cursor: pointer;
  transform: scale(1.02);
}

@media (max-width: 600px) {
  main article, .preview, img, video {
    width: 90%;
    max-width: 400px;
    margin: 0 auto;
    padding: 0 12px;
  }

  main article {
    box-sizing: border-box;
  }

  main nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  main nav a {
    font-size: 14px;
    padding: 0 7px;
  }

  aside > .side-inner {
    padding: 24px 16px;
  }

  aside .side-inner img {
    max-width: 130px;
  }

  aside .side-inner ul.social {
    padding-top: 16px;
  }

  .side-tools {
    justify-content: center;
    padding: 0 16px;
  }
}

table, th, td {
  border: 1px solid;
  margin: auto;
}

audio {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

@media screen and (min-width: 768px) {
  aside .side-inner {
  padding: 0;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  }

  .side-tools {
    position: absolute;
    left: 20px;
    bottom: 18px;
    top: auto;
    transform: none;
    z-index: 3;
    max-width: calc(100% - 40px);
    margin: 0;
    justify-content: flex-start;
  }
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem 0;
}

a.btn_disabled {
  background-color: #993706;
  padding: .6em .6em;
  font-size: .8em;
  line-height: 1;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border: none;
  border-radius: .25em;
}

/* XMPP icon in the sidebar */
a.sc-xmpp {
  background-color: #3088d4;
}

/* Avatar on the contact page */
img.penguin {
  border-radius: 50%;
  max-width: 220px;
}

/* Theme + language controls: bottom-left corner of the sidebar */
.side-tools {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  width: auto;
  margin: 18px auto 0;
  padding: 0;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  color: #bbb;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  padding: 6px 11px;
  font: inherit;
  font-size: .78em;
  line-height: 1;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.theme-toggle:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .06);
}

.theme-toggle:focus-visible {
  outline: 2px solid #f0b429;
  outline-offset: 2px;
}

.theme-toggle b {
  color: #f0b429;
  font-weight: 600;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78em;
  letter-spacing: .04em;
}

.lang-switch a {
  color: #aaa;
  text-decoration: none;
  padding: 4px 2px;
}

.lang-switch a:hover {
  color: #fff;
}

.lang-current {
  color: #f0b429;
  font-weight: 700;
}

