/* Shared classic theme, administration, and guestbook controls. */
#background {
  background: no-repeat center center fixed url('../img/bg/img1.gif');
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background-size: cover;
}
#background-cover { background-color: #1d1f21; opacity: .8; }
#background, #background-cover {
  margin: auto; position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
}
@media (min-width: 1200px) { .container { max-width: 1450px; } }
.card { background-color: rgba(29, 31, 33, .7); }
.admin-content { margin-top: 2rem; }
.admin-nav { flex-direction: row; color: white; }
.table { color: white; }
.login-form { max-width: 550px; }
.guest-comment { white-space: pre-wrap; overflow-wrap: anywhere; }
.guest-dialog { border: 0; padding: 0; width: min(94vw, 500px); max-height: 90vh; overflow-y: auto; color: #212529; background: transparent; border-radius: .3rem; }
.guest-dialog::backdrop { background: rgba(0,0,0,.6); }
.post-body img { max-width: 100%; height: auto; }
.post-body pre { color: #ddd; background: #151719; padding: 1rem; overflow-x: auto; }
.post-body { overflow-wrap: anywhere; }
.img-thumbnail { padding: .25rem; background-color: #262626; border: 1px; border-radius: .6rem; max-width: 25% !important; height: auto; }
.guest-field-label { display: none; }
.guestbook-table td { overflow-wrap: anywhere; }
.guestbook-table .guest-comment { min-width: 12rem; }
@media (max-width: 767.98px) {
  .guestbook-table-wrap { overflow: visible; }
  .guestbook-table, .guestbook-table tbody { display: block; width: 100%; border: 0; }
  .guestbook-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  .guestbook-table tbody tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin-bottom: 1rem; padding: .35rem; border: 1px solid #dee2e6; border-radius: .25rem; }
  .guestbook-table td { display: block; min-width: 0; padding: .5rem; border: 0; }
  .guestbook-table .guest-name, .guestbook-table .guest-email, .guestbook-table .guest-comment, .guestbook-table .guest-actions, .guestbook-table .guest-empty { grid-column: 1 / -1; min-width: 0; }
  .guestbook-table .guest-name { font-weight: 500; }
  .guest-field-label { display: block; margin-bottom: .25rem; color: #aaa; font-size: .8rem; font-weight: 400; white-space: normal; }
  .guest-dialog { width: calc(100vw - 1rem); max-height: calc(100dvh - 1rem); margin: auto; }
  .guest-dialog .form-control { font-size: 1rem; }
  .guest-dialog button { min-width: 44px; min-height: 44px; }
}
