:root {
  --bg-color: #ffd7a0;
  --border-color: #ff8c00;
  --outline-color: #cc5500;
}

html {
  font-family: verdana, sans-serif;
  display: flex;
  justify-content: center;
}

body {
  margin: 0;
  max-width: 810px;
  background: #4a2a00;
  background-image: url('../images/blog/bg.jpg');
  background-size: 420px 420px;
  background-repeat: repeat;
  -ms-interpolation-mode: nearest-neighbor;
}

header {
  background: white;
  padding: .1em 1em;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

header p {
  float: right;
  color: #00000030
}

nav {
  background: linear-gradient(#b34700, #994000, #803500);
  color: white;
  display: flex;
  font-size: 15px;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

nav ul {
  list-style: none;
  display: flex;
  flex: 1;
  margin: 0;
  padding-left: 1em;
}

nav li {
  padding: 0 0.5em;
  padding-top: 15px;
  border: #803500 2px solid;
  border-top: none;
  border-bottom: none;
  margin-left: -2px;
}

nav div {
  padding: 1em;
  align-self: center;
}

main {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  background: var(--bg-color);
  justify-content: center;
}

aside {
  width: 30%;
}

.blog-icon {
  padding: 1em 0;
  max-height: 200px;
  max-width: 200px;
}

#blog {
  max-width: 65%;
}

aside, #blog {
  padding: 10px;
  margin: 0;
}

#blog {
  margin-top: 2em;
}

table {
  border-collapse: collapse;
}

h4 {
  margin: 0;
}

td, .table-heading, .friends {
  border: solid 1px var(--border-color);
  margin: 0;
  padding: 5px;
}

table, .table-heading, .friends {
  background: var(--bg-color);
  outline: 2px solid var(--outline-color);
}

.table-heading {
  border: solid 2px var(--border-color);
  padding: 10px;
  margin-top: 15px;
  margin-bottom: 2px;
  border-radius: 10px 10px 0 0;
}

td:first-child {
  width: 33%;
}

.friends-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.person {
  font-size: 14px;
  width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 10px;
}

.person p {
  margin: 0;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.person img {
  max-width: 70px;
  max-height: 70px;
  display: flex;
  padding: 10px 0;
}

article.post {
  background: var(--bg-color);
  padding: 1em;
  margin: 2em 1em;
  display: flex;
  flex-direction: column;
  max-width: 70vh;
  border-radius: 10px;
  border: 2px solid var(--border-color);
  outline: 2px solid var(--outline-color);
}

.comment {
  border-top: solid 2px var(--border-color);
}

.reply {
  border-top: solid 1px var(--border-color);
}

a.userlink, a.ping, .person a {
  text-decoration: none;
}

span.userlink {
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.private {
  background: #ff8c00;
  padding: .75em 1em;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  border-top: 2px solid #cc5500;
  outline: 2px solid #b34700;
  color: white;
}

.private p, .private img {
  padding: 0 .5em;
}

/* Простой, в стиле старого интернета */
audio {
  width: 100%;
  background: #ffd7a0;
  border: 3px solid #ff8c00;
  outline: 2px solid #cc5500;
  border-radius: 0;
  height: 25px;
}

/* Для браузеров, которые позволяют стилизацию */
audio::-webkit-media-controls-panel {
  background: #ffd7a0;
  border-radius: 0;
}

audio::-webkit-media-controls-play-button {
  background: #ff8c00;
  border: 1px solid #cc5500;
}

audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display {
  color: #b34700;
  font-weight: bold;
}

@media only screen and (max-width: 816px) {
  body {
    width: 90%;
  }
  aside {
    flex-direction: row;
    width: 70%;
  }
  li.unnecessary {
    display: none;
  }
}

@media only screen and (max-width: 600px) {
  body {
    width: 100%;
  }
  aside, #blog {
    width: 90%;
    max-width: 90%;
  }
  nav {
    height: 50px;
    width: 100%;
  }
  nav li, nav div, header p {
    display: none;
  }
}