/* GUESTBOOK PAGE */

body {
  background-color: #fffcfe;
  overflow-x: hidden;
}


/* ♡ highlight selection ♡ */

::selection {
  color: #ffc4d4;
}


html {
  scroll-behavior: smooth;

  overflow-y: scroll;
  scrollbar-gutter: stable;
}


/* page */

.guestbook-page {
  width: 950px;

  margin: 75px auto 55px;

  color: #8a7070;

  font-family: Verdana, sans-serif;
  font-size: 10px;
  line-height: 1.6;
  position: relative;
}




/* two-column layout */

.guestbook-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
position: relative;
  align-items: start;
}


/* main boxes */

.guestbook-form-box,
.guestbook-messages-box {
  padding: 8px;

  background: #fffafd;

  border: 9px solid transparent;
  border-image:
    url("/img/laceborder.png")
    8 fill round;

  box-sizing: border-box;
}

.guestbook-box-inner {

  border: 1px dashed #f0d3df;

  box-sizing: border-box;
}


/* form box */

.guestbook-form-box {
  position: sticky;

  top: 20px;
}

.guestbook-form-box .guestbook-box-inner {
  padding: 24px;
}

.guestbook-form-box h2,
.guestbook-messages-box h2 {
  margin: 0;

  color: #a48787;

  font-family: "rainy hearts", cursive;
  font-size: 20px;
  font-weight: normal;
  line-height: 1.2;
}

.guestbook-form-note {
  margin: 6px 0 20px;

  color: #bea3ab;

  font-size: 8px;
  line-height: 1.6;
}


/* labels */

#guestbook-form label {
  display: block;

  margin: 0 0 5px;

  color: #af8996;

  font-size: 9px;
}

#guestbook-form label:not(:first-of-type) {
  margin-top: 14px;
}

#guestbook-form label span {
  margin-left: 3px;

  color: #cbb5bc;

  font-size: 7px;
}


/* form fields */

#guestbook-form input,
#guestbook-form textarea {
  width: 100%;

  padding: 8px 9px;

  color: #8a7070;
  background: #fffafd;

  border: 1px solid #efd4df;
  outline: 0;

  font-family: Verdana, sans-serif;
  font-size: 9px;
  line-height: 1.6;

  box-sizing: border-box;

  cursor: text;

  transition:
    border-color 0.25s ease,
    background 0.25s ease;
}

#guestbook-form textarea {
  height: 150px;

  resize: none;
}

#guestbook-form input:focus,
#guestbook-form textarea:focus {
  background: #ffffff;

  border-color: #dcafc0;
}

#guestbook-form input::placeholder {
  color: #d2bec5;
}


/* character count */

.guestbook-character-count {
  margin-top: 4px;

  color: #c4abb3;

  font-size: 7px;
  text-align: right;
}


/* submit button */

#guestbook-submit {
  width: 100%;

  margin-top: 17px;
  padding: 9px 12px;

  color: #a17e8a;
  background: #fff5f9;

  border: 1px dashed #e9c4d2;

  font-family: Verdana, sans-serif;
  font-size: 9px;

  cursor: url("/img/key2.png"), pointer;

  transition:
    color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}

#guestbook-submit:hover {
  color: #ca829d;
  background: #fffafd;

  transform: translateY(-1px);
}

#guestbook-submit:disabled {
  color: #cbb8be;

  cursor: default;

  transform: none;
}


/* form status */

.guestbook-form-status {
  min-height: 0;

  margin-top: 0;

  color: #b68597;

  font-size: 8px;
  line-height: 1.6;

  text-align: center;
}

.guestbook-form-status:not(:empty) {
  margin-top: 14px;
  padding: 10px;

  background: #fffafd;

  border: 1px dashed #efd3de;
}

.guestbook-form-status.error {
  color: #c07f95;
}


/* messages box */

.guestbook-messages-box .guestbook-box-inner {
  min-height: 540px;

  padding: 22px;
}

.guestbook-messages-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding-bottom: 12px;
  margin-bottom: 14px;

  border-bottom: 1px dashed #f0d3df;
}

.guestbook-messages-heading p {
  margin: 0;

  color: #bea4ad;

  font-size: 8px;
}


/* messages list */

.guestbook-messages {
  height: 490px;

  padding-right: 7px;

  overflow-x: hidden;
  overflow-y: auto;

  box-sizing: border-box;
}

.guestbook-loading,
.guestbook-empty,
.guestbook-load-error {
  min-height: 300px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 25px;

  color: #bca3ac;

  font-size: 9px;
  text-align: center;

  box-sizing: border-box;
}


/* individual message */

.guestbook-entry {
  position: relative;

  margin-bottom: 14px;
  padding: 17px 18px;

  background: transparent;

  border: 8px solid transparent;
  border-image:
    url("/img/pinkborder4.gif")
    6 fill
    round;
    
    

  box-sizing: border-box;
}

.guestbook-entry:last-child {
  margin-bottom: 0;
}

.guestbook-entry::before {
  content: "";

  position: absolute;

  top: 1px;
  left: 1px;
  right: 1px;
  bottom: 1px;


  pointer-events: none;
}




/* message heading */

.guestbook-entry-header {
  display: flex;
  justify-content: space-between;
  gap: 15px;

  align-items: center;

  padding-right: 20px;
  margin-bottom: 10px;
}

.guestbook-entry-name {
  color: #a87d8e;

  font-size: 10px;
  line-height: 1.4;
}

a.guestbook-entry-name {
  text-decoration: none !important;

  cursor: url("/img/key2.png"), pointer;
}

a.guestbook-entry-name:hover {
  color: #d186a2;

  text-decoration:
    underline
    dotted
    1px
    !important;

  text-underline-offset: 3px;
}

.guestbook-entry-date {
  flex-shrink: 0;

  color: #c3aab2;

  font-size: 7px;
}


/* message text */

.guestbook-entry-message {
  margin: 0;

  color: #8a7070;

  font-size: 9px;
  line-height: 1.8;

  white-space: pre-wrap;
  overflow-wrap: anywhere;
}


/* your reply */

.guestbook-reply {
  position: relative;

  margin-top: 14px;
  padding: 12px 14px;

  background: #fff;

  border: 8px solid transparent;
  border-image:
    url("/img/laceborder.png")
    8 fill
    round;
}

.guestbook-reply-title {
  margin: 0 0 5px;

  color: #c1879d;

  font-family: "rainy hearts", cursive;
  font-size: 13px;
}

.guestbook-reply-text {
  margin: 0;

  color: #9d858c;

  font-size: 8px;
  line-height: 1.75;

  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* guestbook entry loading animation */

.guestbook-entry {
  opacity: 0;

  transform: translateY(10px);

  animation:
    guestbook-entry-in
    1.2s
    ease
    forwards;

  animation-delay:
    calc(var(--entry-index, 0) * 180ms);
}

@keyframes guestbook-entry-in {
  from {
    opacity: 0;

    transform:
      translateY(10px);
  }

  to {
    opacity: 1;

    transform:
      translateY(0);
  }
}


.guestbook-entry-name-group {
  display: flex;
  align-items: center;
  gap: 6px;

  min-width: 0;
}

.guestbook-typing-icon {
  width: 18px;
  height: auto;

  flex-shrink: 0;

  display: block;

  pointer-events: none;
}

.guestbook-reply-paw {
  position: absolute;

  top: 11px;
  right: 11px;

  width: 16px;
  height: auto;

  display: block;

  pointer-events: none;
}

.guestbook-reply {
  padding-right: 45px;
}



.guestbook-messages-box {
  position: relative;
}

.guestbook-top-bow {
  position: absolute;

  top: -16px;
  left: 50%;

  width: 230px;
  height: auto;

  display: block;

  transform: translateX(-50%);

  pointer-events: none;

  z-index: 10;
}


.guestbook-melo-pen {
  position: absolute;

  top: -75px;
  left: 90px;

  width: 170px;
  height: auto;

  transform: rotate(18deg);

  pointer-events: auto;

  z-index: 20;

  filter: drop-shadow(
    0 2px 4px
    rgba(0, 0, 0, .08)
  );

  transition:
    transform .55s cubic-bezier(.25, .8, .25, 1),
    filter .4s ease;
}

.guestbook-melo-pen:hover {
  transform: rotate(15deg);

  filter: drop-shadow(
    0 5px 8px
    rgba(0, 0, 0, .12)
  );
}


/* madohomu decorations */

/* maid decorations */

.guestbook-maid {
  position: absolute;

  width: auto;
  height: 300px;

  pointer-events: none;

  z-index: 5;

  will-change: transform;
}


.guestbook-madoka {
  top: 355px;
  left: -165px;

  animation:
    guestbook-madoka-sway
    12s
    ease-in-out
    infinite;
}


.guestbook-homura {
  top: 355px;
  right: -165px;

  animation:
    guestbook-homura-sway
    12s
    ease-in-out
    infinite;

  animation-delay: -6s;
}


@keyframes guestbook-madoka-sway {
  0%,
  100% {
    transform: rotate(-1deg);
  }

  50% {
    transform: rotate(1deg);
  }
}


@keyframes guestbook-homura-sway {
  0%,
  100% {
    transform: rotate(1deg);
  }

  50% {
    transform: rotate(-1deg);
  }
}