/* Guestbook widget — adapted to match alysterwho.blog torn-paper theme */

body {
  background: transparent;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.95em;
  font-weight: normal;
  color: #333;
}

h1 {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.1em;
  font-weight: normal;
  color: #333;
  display: none;
}

a {
  color: #333;
  text-decoration: underline;
}
a:hover {
  color: #666;
}

main {
  width: 100%;
  margin: auto;
}

.container {
  background: transparent;
  padding: 2em 0;
  border-radius: 0;
  max-width: 69em;
  margin: 0 auto;
}

input[type="text"],
input[type="url"],
textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  padding: 0.5em;
  margin-bottom: 1em;
  border: 1px solid #999;
  border-radius: 3px;
  background: transparent;
  color: #333;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.95em;
  font-weight: normal;
}

input[type="submit"] {
  background: transparent;
  color: #333;
  font-weight: normal;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1em;
  border: 1px solid #333;
  border-radius: 3px;
  padding: 0.5em 1.2em;
  cursor: pointer;
}
input[type="submit"]:hover {
  background: transparent;
  color: #666;
  border: 1px solid #666;
}
input[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#guestbooks___guestbook-made-with {
  text-align: right;
  font-size: 0.85em;
  opacity: 0.7;
}

#guestbooks___guestbook-messages-header {
  margin-top: 1em;
  font-size: 1em;
  font-weight: normal;
}

#guestbooks___guestbook-messages-container {
  margin-top: 1em;
  font-size: 0.95em;
}

hr {
  border: 0;
  border-top: 1px dashed #999;
  margin: 1em 0;
}

/* Reply styling */
.guestbook-message-reply {
  margin-left: 2.5rem;
  padding-left: 1rem;
  border-left: 3px solid #999;
  opacity: 0.9;
}
.guestbook-message-reply blockquote {
  margin: 0;
  padding-left: 0;
  border-left: none;
  font-style: italic;
  color: #333;
}

/* Proof of Work bot deterrent */
.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;
  font-weight: normal;
  color: #333;
}
.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: #2e7d4f;
}
.guestbooks___pow-label-text--error {
  color: #b23b3b;
}

@media (max-width: 1200px) {
  main {
    width: 85%;
  }
}
@media (orientation: portrait) {
  main {
    width: 100%;
    padding: 0;
    margin: 0 auto;
  }
}