@import url("https://fonts.googleapis.com/css2?family=Comic+Neue:wght@700&family=Times+New+Roman&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Comic Neue", "Comic Sans MS", cursive;
  font-size: 18px;
  line-height: 1.45;
  color: #1a0033;
  background-color: #c4ff00;
  background-image:
    repeating-linear-gradient(
      45deg,
      #ff00ff22 0,
      #ff00ff22 10px,
      #00ffff22 10px,
      #00ffff22 20px
    ),
    url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30h60M30 0v60' stroke='%23000' stroke-opacity='.08'/%3E%3C/svg%3E");
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ctext y='18' font-size='16'%3E🐑%3C/text%3E%3C/svg%3E") 4 4, auto;
}

.top-bar {
  background: linear-gradient(90deg, red, yellow, lime, cyan, blue, magenta, red);
  color: #fff;
  font-weight: 700;
  padding: 6px 0;
  text-shadow: 2px 2px #000;
  border-bottom: 4px ridge #333;
}

.header {
  text-align: center;
  padding: 1rem;
  background: #ffff00;
  border: 6px double #ff0099;
  margin: 8px;
  box-shadow: 8px 8px 0 #000;
}

.hero-img {
  width: min(220px, 45vw);
  border: 5px solid #000;
  filter: contrast(1.3) saturate(1.4);
  image-rendering: pixelated;
}

.spin-slow {
  animation: wobble 4s ease-in-out infinite;
}

@keyframes wobble {
  0%, 100% { transform: rotate(-3deg) scale(1); }
  50% { transform: rotate(3deg) scale(1.05); }
}

.title {
  font-size: clamp(1.4rem, 5vw, 2.6rem);
  margin: 0.5rem 0;
  color: #ff0000;
  text-shadow: 3px 3px #00ff00, 6px 6px #0000ff;
  letter-spacing: 2px;
}

.glitch {
  position: relative;
  animation: glitch 2.5s infinite;
}

@keyframes glitch {
  0%, 90%, 100% { transform: none; }
  92% { transform: skewX(5deg); color: #0ff; }
  94% { transform: skewX(-5deg); color: #f0f; }
}

.subtitle {
  font-family: "Times New Roman", Times, serif;
  font-size: 1.25rem;
  font-weight: bold;
}

.blink {
  animation: blink 0.8s step-end infinite;
}

.blink-slow {
  animation: blink 1.4s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 0.75rem;
}

.badge {
  background: #000;
  color: #0f0;
  padding: 4px 10px;
  font-size: 0.85rem;
  border: 2px inset #666;
}

.badge-hot {
  background: #ff0066;
  color: #fff;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  50% { transform: scale(1.08); }
}

.fine-print {
  font-size: 0.7rem;
  margin: 0.25rem 0 0;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 8px;
  background: #000;
  position: sticky;
  top: 0;
  z-index: 50;
  border-top: 3px solid lime;
  border-bottom: 3px solid lime;
}

.nav a {
  color: #0ff;
  text-decoration: underline wavy #f0f;
  padding: 6px 10px;
  background: #330066;
  border: 2px outset #9966ff;
  font-size: 0.95rem;
}

.nav a:hover {
  background: #ff00ff;
  color: #ffff00;
}

.main {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px;
}

@media (max-width: 768px) {
  .main {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: 2;
  }
}

.sidebar .box {
  background: #fff;
  border: 4px groove #999;
  padding: 10px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.box-title {
  font-weight: bold;
  margin: 0 0 6px;
}

.counter span {
  display: block;
  font-family: "Courier New", monospace;
  font-size: 1.4rem;
  color: #f00;
  background: #000;
  padding: 6px;
  text-align: center;
}

.online {
  margin: 4px 0;
  color: #008000;
  font-weight: bold;
}

.online.dim {
  color: #666;
  font-weight: normal;
}

.webring a {
  color: #00f;
  font-size: 0.85rem;
}

.sidebar-deco {
  width: 100%;
  border: 3px dashed red;
  opacity: 0.9;
}

.content {
  min-width: 0;
}

.section {
  background: rgba(255, 255, 255, 0.92);
  border: 5px ridge #ff6600;
  padding: 1rem 1.25rem;
  margin-bottom: 16px;
  box-shadow: inset 0 0 30px #ffff0022;
}

.section-alt {
  background: #ffe6f2;
  border-color: #9900ff;
}

.section h2 {
  font-family: "Times New Roman", Times, serif;
  color: #000080;
  border-bottom: 3px dotted #f00;
  padding-bottom: 4px;
  margin-top: 0;
}

.quote {
  margin-top: 1rem;
  padding: 10px;
  background: #000;
  color: #0f0;
  font-style: italic;
  border-left: 8px solid #f0f;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 12px;
  align-items: start;
}

@media (max-width: 600px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.fig {
  margin: 0;
  text-align: center;
}

.fig img {
  max-width: 100%;
  border: 4px solid #000;
  transform: rotate(2deg);
}

.fig-wide img {
  max-height: 280px;
  width: auto;
  object-fit: cover;
}

figcaption {
  font-size: 0.8rem;
  color: #444;
  margin-top: 6px;
}

.versions {
  font-family: "Times New Roman", Times, serif;
}

.highlight {
  background: yellow;
  display: inline-block;
  padding: 4px 8px;
  border: 2px solid red;
  transform: rotate(-1deg);
}

.float-right {
  float: right;
  max-width: 180px;
  margin: 0 0 10px 12px;
  border: 5px double #00f;
}

.warn {
  color: #f00;
  font-weight: bold;
  text-align: center;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.gal-item {
  display: block;
  text-align: center;
  text-decoration: none;
  color: inherit;
  background: #ccc;
  border: 3px inset #666;
  padding: 4px;
}

.gal-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  filter: sepia(0.3) contrast(1.2);
}

.gal-item span {
  font-size: 0.75rem;
  display: block;
  margin-top: 4px;
}

.services .disclaimer {
  font-size: 0.85rem;
  background: #ffcccc;
  padding: 6px;
  border: 1px solid #f00;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 0.95rem;
}

.price-table th,
.price-table td {
  border: 2px solid #000;
  padding: 8px;
}

.price-table th {
  background: #ff00ff;
  color: #fff;
}

.price-table tr:nth-child(even) {
  background: #e0e0ff;
}

.cta {
  font-family: inherit;
  font-size: 1.2rem;
  padding: 12px 24px;
  background: linear-gradient(#0f0, #090);
  border: 4px outset #0a0;
  cursor: pointer;
  animation: shake 3s infinite;
}

@keyframes shake {
  0%, 96%, 100% { transform: translateX(0); }
  97% { transform: translateX(-4px); }
  98% { transform: translateX(4px); }
  99% { transform: translateX(-4px); }
}

.cta:hover {
  background: #f00;
  color: #fff;
}

.order-msg {
  margin-top: 10px;
  font-weight: bold;
  color: #800080;
}

.manifesto {
  font-size: 1.3rem;
  text-align: center;
  padding: 16px;
  background: #000;
  color: #fff;
  border: 4px solid gold;
}

.sign-off {
  text-align: right;
  font-size: 1.1rem;
}

.guestbook .entry {
  background: #f5f5dc;
  border: 1px solid #999;
  padding: 8px;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.guest-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.guest-form input,
.guest-form textarea {
  font-family: inherit;
  border: 3px inset #888;
  padding: 8px;
}

.guest-form button {
  font-family: inherit;
  background: #00ced1;
  border: 3px outset #0aa;
  padding: 10px;
  font-weight: bold;
  cursor: pointer;
}

.footer {
  background: #333;
  color: #0f0;
  padding: 8px 0;
  margin-top: 20px;
  border-top: 6px solid #f0f;
}

.footer-center {
  text-align: center;
  font-size: 0.8rem;
  margin: 8px 0 0;
  color: #aaa;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal img {
  max-width: 95vw;
  max-height: 90vh;
  border: 8px solid #ff0;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 2rem;
  background: #f00;
  color: #fff;
  border: none;
  cursor: pointer;
  width: 48px;
  height: 48px;
}
