.pixel-guestbook {
  position: fixed;
  width: 250px;
  height: 300px;
  background: #7f9c68;
  opacity: 0.65;
  border: 2px solid #000;
  top: 100px;
  right: 75px;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  box-shadow: 2 2 5px rgba(0,0,0,2);
  font-family: monospace;
}

.gb-header {
  background: #000;
  color: #7f9c68;
  padding: 8px;
  display: flex;
  justify-content: space-between;
  cursor: move;
  touch-action: none;
}
.gb-minimize {
  color: #7f9c68;
  background: #000;
  border: none;
  font-family: monospace;
  font-size: 14px;
  width: 20px;
  height: 20px;
  cursor: pointer;
}
.gb-minimize:hover {
  background: #222;
}

.gb-messages {
  flex-grow: 1;
  padding: 6px;
  overflow-y: auto;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: -0.5px;
  color: #000;
  background: rgba(127, 156, 104, 0.6);
  overflow-anchor: auto;
}

.gb-message {
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 0.5px solid #000;
}

.gb-input {
  display: flex;
  height: 30px;
  gap: 8px;
  padding: 5px;
  border-top: 2px solid #000;
}

.gb-message a {
  color: #000000; 
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.2s ease;
}

.gb-message a:hover {
  color: #3b4a31;
  text-decoration: none;
}

.gb-message a:active,
.gb-message a:focus {
  outline: 2px solid #4a6baf;
  outline-offset: 2px;
}

.input-fields {
  flex-grow: 1;
  background: #000;
  display: flex;
  align-items: center;
}

#gbText {
  width: 100%;
  background: #000;
  color: #7f9c68;
  border: 2px solid #7f9c68;
  padding: 4px;
  line-height: 16px;
  font-family: monospace;
  font-size: 12px;
  letter-spacing: -0.5px;
}
#gbText::placeholder {
  color: #555;
  opacity: 1;
}

#gbSubmit {
  width: 50px;
  background: #000;
  color: #7f9c68;
  border: none;
  font-family: monospace;
  font-weight: bold;
  cursor: pointer;
  font-size: 10px;
}

.pixel-guestbook.minimized {
  height: 30px !important;
}
.pixel-guestbook.minimized .gb-messages,
.pixel-guestbook.minimized .gb-input {
  display: none !important;
}

@keyframes blink-admin {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0.5; }
}

.gb-messages .msg-date {
  font-weight: 900; 
}


.gb-admin-label {
  color: #fff;
  font-weight: bold;
  margin-right: 4px;
  font-size: 12px;
  letter-spacing: 1px;
  animation: blink-admin 1s step-start infinite;
}


.gb-date {
  color: #333;
  font-size: 11px;
  font-weight: bold;
  font-spacing: -0.5px;
  margin-left: 4px;
}


@media (max-width: 600px) {
  .pixel-guestbook {
    width: 90% !important;
    height: auto !important;
    left: 50% !important;
    right: auto !important;
    bottom: 10px !important;
    transform: translateX(-50%) !important;
  }

  .gb-header span {
    font-size: 14px;
  }
  .gb-minimize {
    font-size: 12px;
    width: 18px;
    height: 18px;
  }
  .gb-input {
    height: 28px;
  }
  .gb-messages {
    font-size: 11px;
  }
}

