




/* Scope everything to the book-page only */
.book-page .guestbook-content {
  /* (optional) match your article background */
  background: #F7F7F7;
  padding: 1rem;
}

/* Style each entry box */
.book-page .gb-entry {
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 1rem;
  overflow: hidden;
}

/* Header stripe */
.book-page .gb-header {
  background: #dcefff;
  padding: 0.5rem;
  font-weight: bold;
}

/* Message body */
.book-page .gb-message {
  padding: 0.5rem;
  border-top: 1px solid #eee;
}

/* Tweak links just in this section */
.book-page .guestbook-content a {
  color: ##6bbaec;
  text-decoration: none;
}
.book-page .guestbook-content a:hover {
  text-decoration: underline;
}


/* Ensure the guestbook area has some breathing room */
.book-page .guestbook-content {
  background: #fff;           /* white background for contrast */
  padding: 1.5rem;            /* space inside the box */
  border-radius: 6px;         /* gentle rounded corners */
  box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* subtle drop-shadow */
  margin-bottom: 2rem;        /* separate from footer */
  }
/* Each entry box */
.book-page .gb-entry {
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

/* Header stripe */
.book-page .gb-header {
  background: #e6f2ff;
  padding: 0.75rem 1rem;
  font-weight: bold;
  font-size: 0.95rem;
}

/* Message body */
.book-page .gb-message {
  padding: 1rem;
  border-top: 1px solid #eee;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Alternate background for readability */
.book-page .gb-entry:nth-child(2n) .gb-message {
  background: #f9f9f9;
}
/* Center the form and constrain its width */
.book-page .guestbook-content form {
  max-width: 600px;
  margin: 1rem auto;
  background: #fafafa;
  border-radius: 6px;
}


/* Form labels */
.book-page .guestbook-content form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

/* Text inputs & textarea */
.book-page .guestbook-content form input[type="text"],
.book-page .guestbook-content form input[type="email"],
.book-page .guestbook-content form textarea {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
  box-sizing: border-box;
}

/* Honeypot hidden */
.book-page .guestbook-content form .hp-field {
  display: none;
}

/* Submit button */
.book-page .guestbook-content form button {
  background: #0057b8;
  color: #fff;
  border: none;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
}
.book-page .guestbook-content form button:hover {
  background: #004494;
}
/* Pending or success messages */
.book-page .guestbook-content p strong {
  display: block;
  background: #e0f7e9;
  border: 1px solid #b2e2c4;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  color: #2e7d32;
}
/* Center & constrain only the guestbook-inner area */
.book-page .guestbook-inner {
  max-width: 800px;    /* whatever width you prefer */
  width: 100%;         /* so it’s fluid on small screens */
  margin: 0 auto;      /* centers it inside the right column */
  box-sizing: border-box;
  padding: 0 1rem;     /* optional side‐padding */
}

/* Center & space your inner Guestbook title */
.book-page .guestbook-inner .guestbook-title {
  text-align: center;
  margin-top: 0;            /* no extra space above */
  margin-bottom: 1rem;      /* 1rem below the title */
}

/* Center & give breathing room under the “Create new entry” link */
.book-page .guestbook-inner .create-entry {
  text-align: left;
  margin-bottom: 2rem;      /* space before the list of entries */
}

.book-page .gb-pagination {
  font-size: 1rem;
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.book-page .gb-pagination span,
.book-page .gb-pagination a {
 white-space: nowrap;
}

.book-page .gb-pagination .gb-goto-form {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Style the number field and button identically */
.book-page .gb-pagination .gb-goto-form input[type="number"],
.book-page .gb-pagination .gb-goto-form button {
  width: 1.6rem;           /* same width */
  height: 1.4rem;        /* same height */
  padding: 0;            /* remove extra padding */
  font-size: .9rem;
  line-height: 1.4rem;   /* vertically center text */
  text-align: center;
  border: 1px solid #0057b8;
  border-radius: 3px;
  background: #fff;
  color: #0057b8;
  cursor: pointer;
  box-sizing: border-box;
}

.book-page .gb-pagination .gb-goto-form input[type="number"]::-webkit-outer-spin-button,
.book-page .gb-pagination .gb-goto-form input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.book-page .gb-pagination .gb-goto-form input[type="number"] {
  -moz-appearance: textfield;
}


.book-page .gb-pagination .gb-goto-form button:hover {
  background: #f0f8ff;   /* or set to #fff to disable */
}
/* Reset any global span rules for our pagination */
.book-page .gb-pagination span.gb-total,
.book-page .gb-pagination span.gb-goto,
.book-page .gb-pagination span.gb-pageinfo,
.book-page .gb-pagination a.gb-prev,
.book-page .gb-pagination a.gb-next {
  font-size: .9rem;         /* your desired size */
  /*color: #000; */          /* override global color if needed */
  display: inline-block;   /* ensure box-model behavior */
  margin-right: .5rem;
  margin-left: 2rem;
  line-height: 2.5rem;     /* align with your input/button heights */
}

/* If your global CSS has more aggressive span rules, you can bump specificity */
body.book-page .gb-pagination span.gb-total { /*…*/ }


/* ───────────────────────────────────────────────────────────
   Mobile/Tablet: center link & stack pagination vertically
   ─────────────────────────────────────────────────────────── */
@media (max-width: 1024x) {
  /* Center the “Create new entry” under the Guestbook title */
  .book-page .guestbook-inner .create-entry {
    text-align: center;
    margin: 1rem auto;  /* add some breathing room */
  }

  /* Make the pagination bar stack as a column and center */
  .book-page .gb-pagination {
    justify-content: center;   /* center all items in the row */
    flex-wrap: wrap;          /* allow wrapping if very narrow */
    gap: 0.5rem;              /* space between items */
  }

  /* Ensure each pagination item is inline and auto-width */
  .book-page .gb-pagination span,
  .book-page .gb-pagination a,
  .book-page .gb-pagination .gb-goto-form {
    display: inline-flex;
    align-items: center;
    margin: 0 0.25rem;
    width: auto;
  }

  /* And center the “Go to page” form itself */
  .book-page .gb-pagination .gb-goto-form {
    justify-content: center;
  }
}
/* Remove any bottom margin on the guestbook article */
.book-page .guestbook-content {
  margin-bottom: 0;
}


/* ───────────────────────────────────────────────────────────
   Submit page layout: centered page‐title + boxed form
   ─────────────────────────────────────────────────────────── */
.book-page .page-title {
  text-align: left;
  margin: 3.5rem 0 1.5rem 0;
  font-size: 1.5rem;
}

/* The white box that contains the form */
.book-page .form-container {
  max-width: 600px;
  margin: 0 auto 10rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Light‐blue header bar of the box */
.book-page .form-container .fc-header {
  background: #dcefff;
  padding: 0.75rem 1rem;
  font-weight: bold;
  font-size: 1.1rem;
  
}

/* Inner form padding */
.book-page .form-container form {
  padding: 1.5rem 1rem;
  background: #fff;
  }

/* Labels */
.book-page .form-container label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Inputs & textarea */
.book-page .form-container input[type="text"],
.book-page .form-container input[type="email"],
.book-page .form-container textarea {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 1rem;
  border: 1px solid #bbb;
  border-radius: 4px;
  font-size: 0.95rem;
  box-sizing: border-box;
}

/* Submit button */
.book-page .form-container .gb-submit {
  background: #0057b8;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
}
.book-page .form-container .gb-submit:hover {
  background: #004494;
}

/* Tighter reCAPTCHA container */
.book-page .g-recaptcha {
  transform: scale(0.90);
  transform-origin: 0 0;
  margin-bottom: 1rem;
}

/* Responsive tweak: full width on small screens */
@media (max-width: 600px) {
  .book-page .form-container {
    margin: 0 1rem 2rem;
  }
}
/* Space & color for form icons */
.book-page .form-container label i {
  margin-right: 0.5rem;
  color: #0057b8;     /* match your button/link color */
  width: 1rem;        /* align labels nicely */
  text-align: center;
}

/* Ensure the label text stays vertically centered */
.book-page .form-container label {
  display: flex;
  align-items: center;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
/* Simple “Back” link styling */
.book-page .back-link {
  text-align: left;    /* center under the form or above */
  margin: 1rem 0;
}

.book-page .back-link a {
  color: #0057b8;
  text-decoration: none;
  font-size: 0.95rem;
}

.book-page .back-link a:hover {
  text-decoration: underline;
}


/* ────────────────────────────────────────────────
   Centered block for Admin link & attribution
   ──────────────────────────────────────────────── */
.book-page .gb-extra-footer {
  text-align: center;
  margin: 2rem 0;
}

.book-page .gb-extra-footer .gb-admin-link a {
  font-size: 0.95rem;
  color: #0057b8;
  text-decoration: none;
  font-weight: 600;
}
.book-page .gb-extra-footer .gb-admin-link a:hover {
  text-decoration: underline;
}

/* Attribution text */
.book-page .gb-extra-footer .gb-attribution {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #777;
}

.book-page .gb-extra-footer .gb-attribution a {
  color: #0057b8;
  text-decoration: none;
}
.book-page .gb-extra-footer .gb-attribution a:hover {
  text-decoration: underline;
}


/* ─────────────────────────────────────────────────────────
   Admin Login Form (inside .guestbook-content)
   ───────────────────────────────────────────────────────── */

.guestbook-content > .form-container {
  max-width: 600px;
  margin: 6rem auto 2rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Header bar */
.guestbook-content .form-container .fc-header {
  background: #b6ddff;
  padding: 0.75rem 1rem;
  font-weight: bold;
  font-size: 1.1rem;
  text-align: center;
}

/* Form padding */
.guestbook-content .form-container form {
  padding: 1.5rem 1rem;
  background: #fff;
}

/* Error message */
.guestbook-content .form-error {
  color: #c00;
  background: #fce4e4;
  border: 1px solid #f5c2c2;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

/* Labels & icons */
.guestbook-content .form-container label {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.guestbook-content .form-container label i {
  margin-right: 0.5rem;
  color: #0057b8;
  width: 1.2rem;
  text-align: center;
}

/* Inputs */
.guestbook-content .form-container input[type="text"],
.guestbook-content .form-container input[type="password"],
.guestbook-content .form-container textarea {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 1rem;
  border: 1px solid #bbb;
  border-radius: 4px;
  font-size: 0.95rem;
  box-sizing: border-box;
}

/* Submit button */
.guestbook-content .form-container .gb-submit {
  background: #b3d7f0;
  color: #000;
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  display: block;
  margin: 4rem auto 0;
}
.guestbook-content .form-container .gb-submit:hover {
  background: #004494;
  color: #fff;
}

/* left-align the “Administrator Login” heading */
.guestbook-content .page-title {
  text-align: center;
  margin: 2rem 0 1rem;
  font-size: 1.5rem;
}



/* ───────────────────────────────────────────────────────────
   Admin Dashboard: separate entries
   ─────────────────────────────────────────────────────────── */



/* Separate admin entries */
.admin-entry {
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  background: #fafafa;
  font-size: 0.9rem;           /* overall entry text */
  line-height: 1.4;            /* keeps it readable */
}

/* Header stripe for admin entries */
.admin-entry .gb-header {
  background: #e6f2ff;
  padding: 0.5rem 1rem;
  font-weight: bold;
  font-size: 0.85rem;
}

/* Message body */
.admin-entry .gb-message {
  padding: 1rem;
  border-top: 1px solid #eee
  font-size: 0.9rem;
}

/* Admin action links */
.admin-actions {
  padding: 0.5rem 1rem;
  border-top: 1px solid #ddd;
  background: #fff;
}
.admin-actions a {
  margin-right: 1rem;
  color: #0057b8;
  text-decoration: none;
}
.admin-actions a:hover {
  text-decoration: underline;
}
/* Constrain admin entries separately from the nav */
.admin-inner {
  max-width: 700px;      /* width for the entry column */
  margin: 0 auto;        /* center within the right column */
}
/* Smaller section headings in admin dashboard */
.admin-inner .admin-section {
  font-size: 1.2rem;      /* shrink from default */
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* Style for the IP text */
.admin-inner .ip {
  font-size: 0.85rem;
  color: #555;
  margin-left: 0.5rem;
}




