/* [::Built in::] Adapted from: https://eggramen.neocities.org/code/css_testpages */
body {
  font-size: 12px;
  font-family: "Lucida Sans", sans-serif;
  background: #8e576f;
}

.container {
  margin: 0 auto;
  margin-top: 30px;
  margin-bottom: 45px;
  border: 4px solid #1d1c32;
  width: 900px;
  border-radius: 3px;
  background: white;
  padding: 25px;
}

h1#title {
  font-size: 24px;
  color: #1d1c32;
  text-align: center;
  margin-bottom: 20px;
}

#guestbooks___guestbook-form-container {
  margin-bottom: 20px;
}

.guestbooks___input-container {
  margin-bottom: 15px;
}

.guestbooks___input-container input,
.guestbooks___input-container textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #1d1c32;
  border-radius: 3px;
  box-sizing: border-box;
}

#guestbooks___guestbook-form input[type="submit"] {
  background: #1d1c32;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 3px;
  cursor: pointer;
}

#guestbooks___guestbook-form input[type="submit"]:hover {
  background: #774459;
}

#guestbooks___error-message {
  color: red;
  margin-top: 10px;
}

#guestbooks___guestbook-made-with {
  text-align: right;
  margin-top: 20px;
}

#guestbooks___guestbook-made-with small {
  color: white;
}

#guestbooks___guestbook-made-with a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

#guestbooks___guestbook-made-with a:hover {
  text-decoration: underline;
}

#guestbooks___guestbook-messages-header {
  font-size: 18px;
  color: #1d1c32;
  margin-top: 20px;
}

#guestbooks___guestbook-messages-container {
  margin-top: 20px;
}

/* Reply styling */
.guestbook-message-reply {
  margin-left: 2.5rem;
  padding-left: 1rem;
  border-left: 3px solid #8e576f;
  opacity: 0.95;
}

.guestbook-message-reply blockquote {
  margin: 0;
  padding-left: 0;
  border-left: none;
}

/* 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;
}

.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: red;
}

#guestbooks___guestbook-form input[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .container {
    margin-top: 15px;
    margin-bottom: 15px;
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
  }
}
