.guestbook-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 9999;
  overflow-y: auto;
}

.guestbook-overlay.active {
  display: block;
}

.guestbook-content {
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
}

.close-btn {
  float: right;
  cursor: pointer;
}

.tabs {
  margin-bottom: 10px;
}

.tab-btn {
  padding: 5px 10px;
  cursor: pointer;
}

.tab-btn.active {
  font-weight: bold;
}

.tab-content {
  display: none;
  margin-bottom: 10px;
}

.tab-content.active {
  display: block;
}

#pixelCanvas {
  border: 1px solid black;
  cursor: crosshair;
  image-rendering: pixelated;
  display: block;
  margin: 10px 0;
}

.color-picker {
  margin-bottom: 10px;
}

#colorPicker {
  margin-right: 10px;
}

#textTab input {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 5px;
}

.submit-btn {
  width: 100%;
  padding: 10px;
  cursor: pointer;
}

.guestbook-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px;
  cursor: pointer;
  border: 1px solid black;
  background: white;
}

.stains-gallery {
  margin-top: 20px;
}

.stain-item {
  border: 1px solid black;
  padding: 5px;
  margin-bottom: 10px;
}

.stain-item img {
  max-width: 100%;
  image-rendering: pixelated;
}

.random-stain {
  position: absolute;
  max-width: 80px;
  max-height: 80px;
  image-rendering: pixelated;
  z-index: 50;
}

#toggleRandomStains {
  position: fixed;
  bottom: 60px;   /* put it above your "Leave a Stain" button */
  right: 20px;
  padding: 6px 10px;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  cursor: pointer;
}

#toggleRandomStains:active {
  background: #eee;
}
