:root {
  --colour1: #111;      /* black */
  --colour2: #732370;   /* purple */
  --colour3: #fef9d7;   /* white */
  --colour4: #b10000;   /* red */
  --colour5: #466E47   /* green */
}

/* guestbook form */
.gbform * {
  box-sizing: border-box;
}
.gbform {
  max-width: 400px;
  width: 100%;
  margin: 0 0 .625em;
}
.gbform label {
  display: block;
  margin-bottom: .2em;
}
.gbform input, 
.gbform textarea {
  font: inherit;
  padding: .25em;
  width: 100%;
}
.gbform textarea {
  height: 5em;
}
.gbform input[type="checkbox"] {
  width: auto;
}
.gbform input:focus, 
.gbform textarea:focus {
  background-color: #faf9fc;
}
.gbform input[type="submit"] {
  border: 1px solid var(--colour2);
  background-color: var(--colour2);
  color: var(--colour3);
  cursor: pointer;
  transition: background-color .5s ease-in-out,
    color .5s ease-in-out;
}
.gbform input[type="submit"]:hover,
.gbform input[type="submit"]:focus {
  background-color: var(--colour3);
  color: var(--colour2);
}
.gbform input[type="submit"]:disabled {
  background-color: #898989;
  cursor: not-allowed;
}

.field {
  margin-bottom: .3em;
}
.consent {
  clear: both;
  margin-bottom: 1em;
}
.consent label {
  display: inline;
}
.error,
.field.error label {
  color: #cc3333;
}
.field.error input,
.field.error textarea {
  border-color: #cc3333;
  background-color: #ffeded;
}

/* guestbook character counter */
.counterBlock {
  text-align: right;
  font-size: .92rem;
  color: #666;
}
#countdown {
	display: inline;
  background-color: inherit;
  border: none;
  text-align: right;
  width: 3em;
  padding: 0;
}
.small {
  font-size: .9rem;
}

/* guestbook entries */
.gbentry {
  padding: .5rem 1rem;
  border: 1px solid #8ec196;
  border-radius: .25rem;
  margin: .5rem 0;
  background-color: #fff;
}
.gbcomment {
  padding-bottom: .5rem;
}
.gbauthor {
  font-size: 86%;
  color: #666;
}
.gbauthor::before {
  content: 'From ';
}
.gbauthor span::before {
  content: ' on ';
}

.more {
  text-align: center;
}
.more a {
  text-decoration: none;
  color: #333;
  background-color: rgba(19, 167, 81, .22);
}
.more a,
.more span {
  padding: .15em .35em;
  border: 1px solid #999;
  border-radius: 3px;
}
.more a:hover,
.more a:focus {
  color: #108B6E;
  background-color: rgba(16, 139, 110, .22);
}
.more span {
  color: #999;
}

.pageno {
  display: none;
}
