/* KAI BLOG Guestbook - Bearblog Theme */

html {
  font-family: sans-serif;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

:root {
  --width: 920px;
  --font-main: Verdana, sans-serif;
  --font-secondary: Verdana, sans-serif;
  --font-scale: 1em;

  --background-color: #fffcfa;
  --heading-color: #555;
  --text-color: #5b5656;
  --muted-color: #888;
  --link-color: #429EEE;
  --visited-color: #2d8ce0;
  --code-background-color: #f2f2f2;
  --code-color: #222;
  --blockquote-color: #222;
  --em-color: #5b5656c4;
  --input-background: #ffffff;
  --input-border: #cccccc;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background-color: #292a2b;
    --heading-color: #f4f4f4;
    --text-color: #fbfafa;
    --muted-color: #a6a3b8;
    --link-color: #429EEE;
    --visited-color: #72b9f5;
    --code-background-color: #000;
    --code-color: #ddd;
    --blockquote-color: #ccc;
    --em-color: #fbfafac7;
    --input-background: #202124;
    --input-border: #555;
  }
}

body {
  font-family: var(--font-secondary);
  font-size: var(--font-scale);
  margin: auto;
  padding: 20px;
  max-width: var(--width);
  text-align: left;
  background-color: var(--background-color);
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.5;
  color: var(--text-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-main);
  color: var(--heading-color);
}

h1#title {
  line-height: 1.6;
  border-bottom: dotted;
  text-align: center;
}

a {
  color: var(--link-color);
  cursor: pointer;
  text-decoration: underline;
}

a:hover {
  text-decoration: wavy underline;
}

strong,
b {
  color: var(--heading-color);
}

main {
  line-height: 1.6;
  border-bottom: dotted;
  padding-bottom: 1.2em;
}

em,
i {
  color: var(--em-color);
}

hr {
  border: 0;
  border-top: 1px dashed;
}

code {
  font-family: monospace;
  padding: 2px;
  background-color: var(--code-background-color);
  color: var(--code-color);
  border-radius: 3px;
}

blockquote {
  border-left: 1px solid #999;
  color: var(--blockquote-color);
  padding-left: 20px;
  font-style: italic;
}

footer {
  padding: 25px 0;
  text-align: center;
}

.inline {
  width: auto !important;
}

.highlight,
.code {
  padding: 1px 15px;
  background-color: var(--code-background-color);
  color: var(--code-color);
  border-radius: 3px;
  margin-block-start: 1em;
  margin-block-end: 1em;
  overflow-x: auto;
}

.sr-only {
  display: none;
}

.button-link {
  background: none;
  border: none;
  color: var(--link-color);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

.button-link:hover {
  text-decoration: wavy underline;
}

/* Guestbook container */

.container {
  margin: 20px auto;
  width: 100%;
  max-width: 958px;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  border: none !important;
  border-radius: 0;
  background: transparent;
  color: var(--text-color);
  padding: 0;
}

/* Form */

#guestbooks___guestbook-form-container {
  margin-bottom: 20px;
  background: transparent;
}

.guestbooks___input-container {
  margin-bottom: 15px;
}

.guestbooks___input-container input,
.guestbooks___input-container textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--input-border);
  border-radius: 6px;
  box-sizing: border-box;
  background: var(--input-background);
  color: var(--text-color);
  font-family: inherit;
  font-size: inherit;
}

.guestbooks___input-container input::placeholder,
.guestbooks___input-container textarea::placeholder {
  color: var(--muted-color);
  opacity: 1;
}

/* Submit button */

#guestbooks___guestbook-form input[type="submit"] {
  background: var(--link-color);
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
}

#guestbooks___guestbook-form input[type="submit"]:hover {
  opacity: 0.85;
}

#guestbooks___guestbook-form input[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Messages */

#guestbooks___error-message {
  color: #e34b4b;
  margin-top: 10px;
}

#guestbooks___guestbook-messages-header {
  font-size: 18px;
  color: var(--heading-color);
  margin-top: 20px;
}

#guestbooks___guestbook-messages-container {
  margin-top: 20px;
  color: var(--text-color);
  background: transparent;
}

#guestbooks___guestbook-messages-container a {
  color: var(--link-color);
}

/* Hide branding */

#guestbooks___guestbook-made-with {
  display: none !important;
}

/* Replies */

.guestbook-message-reply {
  margin-left: 2.5rem;
  padding-left: 1rem;
  border-left: 3px solid var(--link-color);
  opacity: 0.95;
  color: var(--text-color);
}

.guestbook-message-reply blockquote {
  margin: 0;
  padding-left: 0;
  border-left: none;
}

/* Proof of Work */

.guestbooks___pow-container {
  margin: 0.75em 0;
}

.guestbooks___pow-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  cursor: pointer;
  user-select: none;
  font-size: 0.95em;
}

.guestbooks___pow-checkbox-label input[type="checkbox"] {
  width: 1.1em;
  height: 1.1em;
  cursor: pointer;
}

.guestbooks___pow-label-text--loading {
  opacity: 0.7;
}

.guestbooks___pow-label-text--verified {
  color: #7aa469;
}

.guestbooks___pow-label-text--error {
  color: #e34b4b;
}

/* Mobile */

@media (max-width: 640px) {
  body {
    padding: 15px;
  }

  .container {
    margin: 15px auto;
    padding: 0;
  }

  .guestbook-message-reply {
    margin-left: 1rem;
    padding-left: 0.75rem;
  }
}