* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background-color: #c0c0c0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,0,0,0.03) 3px, rgba(0,0,0,0.03) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(0,0,0,0.03) 3px, rgba(0,0,0,0.03) 4px);
  color: #000;
  font-family: 'Comic Sans MS', 'Chalkboard SE', 'Trebuchet MS', cursive;
  font-size: 14px;
}

a { color: #0000ff; }
a:visited { color: #800080; }
a:hover { color: #ff0000; }

.page-wrapper {
  max-width: 780px;
  margin: 0 auto;
  background: #fff;
  border-left: 2px solid #808080;
  border-right: 2px solid #808080;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

/* MARQUEE BANNER */
.marquee-bar {
  background: #000080;
  color: #ffff00;
  padding: 6px 0;
  font-size: 16px;
  font-weight: bold;
  overflow: hidden;
  white-space: nowrap;
  font-family: 'Times New Roman', serif;
}
.marquee-inner {
  display: inline-block;
  animation: marquee 12s linear infinite;
}
@keyframes marquee {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* HEADER TABLE */
.header-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-bottom: 3px solid #000;
}
.header-table td {
  padding: 10px;
  vertical-align: middle;
}
.header-title {
  font-family: Impact, 'Arial Black', sans-serif;
  font-size: clamp(60px, 18vw, 160px);
  letter-spacing: -3px;
  line-height: 0.9;
  color: #000;
  text-decoration: none;
}
.header-title a {
  color: #000;
  text-decoration: none;
}
.header-right {
  text-align: right;
  font-size: 11px;
  color: #666;
}
.header-right div {
  margin-bottom: 4px;
}

/* UGLY HR */
.hr-rainbow {
  border: none;
  height: 6px;
  background: linear-gradient(90deg, red, orange, yellow, green, blue, indigo, violet);
}
.hr-black {
  border: none;
  height: 2px;
  background: #000;
  margin: 4px 0;
}

/* COUNTER */
.counter-section {
  text-align: center;
  padding: 8px;
  background: #ffffcc;
  border-top: 2px ridge #808080;
  border-bottom: 2px ridge #808080;
}
.hit-counter {
  font-family: 'Courier New', monospace;
  background: #000;
  color: #00ff00;
  padding: 2px 8px;
  border: 2px inset #808080;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 2px;
}

/* NAV */
.nav-bar {
  background: #000080;
  padding: 4px;
  text-align: center;
  border-bottom: 2px outset #c0c0c0;
}
.nav-bar a {
  color: #fff;
  text-decoration: none;
  padding: 4px 12px;
  font-family: 'Verdana', sans-serif;
  font-size: 12px;
  font-weight: bold;
  border: 1px outset #aaa;
  background: #4040c0;
  margin: 0 2px;
  display: inline-block;
}
.nav-bar a:hover {
  background: #6060e0;
  color: #ffff00;
}
.nav-bar a.active {
  background: #6060e0;
  border-style: inset;
  color: #ffff00;
}

/* CONTENT AREA */
.content-table {
  width: 100%;
  border-collapse: collapse;
}
.sidebar {
  width: 140px;
  background: #e8e8e8;
  vertical-align: top;
  padding: 8px;
  border-right: 2px groove #c0c0c0;
  font-size: 11px;
}
.sidebar-box {
  border: 2px inset #808080;
  background: #fff;
  padding: 6px;
  margin-bottom: 8px;
}
.sidebar-box h4 {
  font-family: 'Verdana', sans-serif;
  font-size: 11px;
  color: #800000;
  margin-bottom: 4px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 2px;
}
.main-content {
  vertical-align: top;
  padding: 15px;
}

/* NEW badge */
.new-badge {
  background: #ff0000;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  padding: 1px 4px;
  font-family: Arial, sans-serif;
  vertical-align: super;
}

/* GUESTBOOK / FORM */
.form-table {
  border: 3px ridge #808080;
  background: #f0f0ff;
  padding: 12px;
  margin: 15px 0;
  width: 100%;
}
.form-table h2 {
  font-family: 'Verdana', sans-serif;
  font-size: 18px;
  color: #800000;
  margin-bottom: 8px;
}
.form-table textarea {
  width: 100%;
  height: 100px;
  font-family: 'Comic Sans MS', cursive;
  font-size: 14px;
  padding: 6px;
  border: 2px inset #808080;
  background: #fff;
  resize: vertical;
}
.form-table textarea:focus {
  outline: 1px dotted #000;
}
.char-count {
  text-align: right;
  font-size: 11px;
  color: #666;
  margin-top: 2px;
}

.submit-btn {
  margin-top: 8px;
  padding: 6px 20px;
  font-family: 'Verdana', sans-serif;
  font-size: 14px;
  font-weight: bold;
  background: #c0c0c0;
  border: 2px outset #fff;
  cursor: pointer;
  color: #000;
}
.submit-btn:active {
  border-style: inset;
}
.submit-btn:hover {
  background: #d0d0d0;
}
.submit-btn:disabled {
  color: #808080;
}

.success-msg {
  display: none;
  background: #ccffcc;
  border: 2px solid #00aa00;
  padding: 8px;
  margin-top: 8px;
  font-weight: bold;
  color: #006600;
  font-size: 13px;
}

/* COMPLAINTS / GUESTBOOK ENTRIES */
.section-header {
  font-family: 'Verdana', sans-serif;
  font-size: 16px;
  color: #800000;
  border-bottom: 2px solid #800000;
  padding-bottom: 4px;
  margin: 20px 0 10px;
}

.complaint-entry {
  border: 1px solid #ccc;
  border-left: 4px solid #000080;
  background: #fafafa;
  padding: 8px 10px;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.4;
}
.complaint-entry:nth-child(odd) {
  border-left-color: #800000;
  background: #fff8f0;
}
.complaint-entry:hover {
  background: #ffffdd;
}
.complaint-text {
  word-break: break-word;
}
.complaint-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  flex-wrap: wrap;
  gap: 4px;
}
.complaint-time {
  font-size: 10px;
  color: #999;
  font-family: 'Verdana', sans-serif;
}
.reaction-btns {
  display: flex;
  gap: 4px;
}
.react-btn {
  font-family: 'Verdana', sans-serif;
  font-size: 11px;
  padding: 2px 8px;
  border: 2px outset #ccc;
  background: #e8e8e8;
  cursor: pointer;
  color: #000;
  white-space: nowrap;
}
.react-btn:hover {
  background: #d0d0d0;
}
.react-btn:active {
  border-style: inset;
}
.react-btn.agree:hover {
  background: #ccffcc;
}
.react-btn.complain:hover {
  background: #ffcccc;
}
.react-btn .count {
  font-weight: bold;
}
.react-btn.report {
  font-size: 10px;
  color: #666;
  border-color: #ddd;
  background: #f0f0f0;
}
.react-btn.report:hover {
  background: #ffdddd;
  color: #cc0000;
}
.report-form {
  border: 2px ridge #808080;
  background: #fff8f0;
  padding: 8px;
  margin-top: 8px;
  font-size: 12px;
  font-family: 'Verdana', sans-serif;
}
.report-form select,
.report-form textarea {
  width: 100%;
  font-family: 'Comic Sans MS', cursive;
  font-size: 12px;
  padding: 4px;
  border: 2px inset #808080;
  margin-top: 4px;
}
.report-form textarea {
  height: 50px;
  resize: vertical;
}
.report-form label {
  font-size: 11px;
  color: #666;
  display: block;
  margin-top: 6px;
}
.report-form .report-btns {
  margin-top: 6px;
  display: flex;
  gap: 4px;
}

.loading {
  text-align: center;
  padding: 20px;
  font-size: 16px;
  color: #808080;
}
.loading span {
}

.empty-state {
  text-align: center;
  padding: 30px;
  color: #808080;
  font-style: italic;
  border: 1px dashed #ccc;
}

/* FOOTER */
.footer {
  background: #e0e0e0;
  border-top: 2px groove #c0c0c0;
  padding: 10px;
  text-align: center;
  font-size: 11px;
  color: #666;
  font-family: 'Verdana', sans-serif;
}
.footer div { margin: 3px 0; }

.webring {
  margin-top: 8px;
  border: 1px solid #ccc;
  padding: 6px;
  display: inline-block;
  background: #fff;
  font-size: 10px;
}
.webring a {
  margin: 0 4px;
  font-weight: bold;
}

.total-complaints-text {
  font-family: Impact, sans-serif;
  font-size: 20px;
  color: #000;
}

.under-construction {
  text-align: center;
  padding: 5px;
  background: #ffffaa;
  border: 1px dashed #cc0000;
  font-size: 12px;
  color: #cc0000;
  font-weight: bold;
}

.stars {
  color: #ff0000;
  font-size: 12px;
  letter-spacing: 3px;
}

/* PAGE-SPECIFIC */
.page-title {
  font-family: 'Verdana', sans-serif;
  font-size: 20px;
  color: #800000;
  border-bottom: 3px double #800000;
  padding-bottom: 6px;
  margin-bottom: 12px;
}

.info-box {
  border: 2px ridge #808080;
  background: #f8f8ff;
  padding: 12px;
  margin: 10px 0;
}

.contact-table {
  border-collapse: collapse;
  width: 100%;
  margin: 10px 0;
}
.contact-table td {
  padding: 6px 8px;
  border: 1px solid #ccc;
  font-size: 13px;
}
.contact-table tr:nth-child(odd) td {
  background: #f0f0f0;
}
.contact-label {
  font-weight: bold;
  font-family: 'Verdana', sans-serif;
  width: 120px;
  color: #000080;
}

@media (max-width: 600px) {
  .sidebar { display: none; }
  .main-content { padding: 10px; }
  .header-title { letter-spacing: -2px; }
  .header-right { display: none; }
}
