/* Elmore's Industrial Shenanigans
   Designed by Elmore. Nobody stopped him.
   (On purpose. Please do not "fix" this.) */

@import url("https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&display=swap");

body {
  margin: 0;
  padding: 8px;
  background-color: #008080; /* classic desktop teal, solid so the text is easier to read */
  font-family: "Times New Roman", Times, serif;
  font-size: 15px;
  color: #000;
}

a { color: #0000ee; }
a:visited { color: #551a8b; }
a:hover { color: #ff0000; background: #ffff00; }

.wrap {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border: 6px ridge #808080;
}

/* ---------- the masthead of shame ---------- */
.masthead {
  background: linear-gradient(90deg, #ff0000, #ff9900, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff);
  padding: 10px;
  text-align: center;
  border-bottom: 4px double #000;
}
.masthead table { margin: 0 auto; }
.logo-photo {
  width: 170px;
  height: auto;
  border: 5px outset #ffcc00;
  transform: rotate(-4deg);
  background: #fff;
}
.logo-text {
  font-family: Papyrus, "Comic Sans MS", "Comic Neue", fantasy;
  font-size: 46px;
  line-height: 1;
  font-weight: bold;
  color: #ffff00;
  text-shadow: 3px 3px 0 #ff00ff, 6px 6px 0 #0000ff, -2px -2px 0 #000;
  -webkit-text-stroke: 1px #000;
  margin: 0;
}
.logo-text .industrial {
  display: block;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 34px;
  letter-spacing: 6px;
  color: #00ff00;
  font-style: italic;
}
.logo-text .shenanigans {
  display: block;
  font-family: "Comic Sans MS", "Comic Neue", cursive;
  font-size: 52px;
  color: #ff3300;
  transform: skewX(-12deg);
}
.tagline {
  font-family: "Courier New", monospace;
  background: #000;
  color: #00ff00;
  display: inline-block;
  padding: 2px 8px;
  margin-top: 8px;
}

marquee, .marquee {
  display: block;
  background: #000080;
  color: #ffff00;
  font-family: "Comic Sans MS", "Comic Neue", cursive;
  font-weight: bold;
  padding: 4px 0;
  border-top: 2px solid #ff0000;
  border-bottom: 2px solid #ff0000;
}

/* ---------- craigslist-style columns ---------- */
.cols { width: 100%; border-collapse: collapse; }
.cols td { vertical-align: top; padding: 8px; }
.sidebar {
  width: 190px;
  background: #e8e8ff;
  border-right: 3px dashed #ff00ff;
  font-size: 14px;
}
.sidebar h3 {
  font-family: "Comic Sans MS", "Comic Neue", cursive;
  background: #0000ff;
  color: #fff;
  margin: 10px 0 4px;
  padding: 2px 4px;
  font-size: 15px;
}
.sidebar ul { margin: 0; padding-left: 16px; }
.sidebar li { margin: 2px 0; }

.main h2 {
  font-family: Papyrus, "Comic Sans MS", "Comic Neue", fantasy;
  color: #800000;
  border-bottom: 2px solid #800000;
  font-size: 24px;
  margin: 6px 0 10px;
}
.main h2 small { font-family: "Times New Roman", serif; font-size: 13px; color: #555; }

/* ---------- product listings (classified ads, basically) ---------- */
.listing {
  border: 2px solid #000;
  margin: 0 0 14px;
  padding: 8px 10px;
  background: #ffffcc;
}
.listing:nth-child(even) { background: #ccffff; }
.listing h3 { margin: 0 0 4px; font-size: 19px; font-family: Arial, Helvetica, sans-serif; }
.listing h3 a { text-decoration: underline; }
.listing .meta { font-size: 12px; color: #444; font-family: "Courier New", monospace; }
.listing p { margin: 6px 0; line-height: 1.35; }
.listing .go {
  display: inline-block;
  font-family: Arial, sans-serif;
  font-weight: bold;
  font-size: 13px;
  padding: 3px 10px;
  background: #c0c0c0;
  border: 3px outset #fff;
  color: #000;
  text-decoration: none;
}
.listing .go:active { border-style: inset; }

.new {
  font-family: "Comic Sans MS", "Comic Neue", cursive;
  color: #fff;
  background: #ff0000;
  font-size: 11px;
  padding: 0 4px;
  vertical-align: middle;
}

.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { visibility: hidden; } }

.construction {
  text-align: center;
  margin: 14px 0;
  padding: 8px;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 18px;
  color: #000;
  background: repeating-linear-gradient(45deg, #ffcc00 0 18px, #000 18px 36px);
}
.construction span { background: #ffcc00; padding: 2px 10px; }

/* ---------- guestbook ---------- */
.guestbook { border: 4px groove #ff00ff; padding: 8px; background: #fff0ff; }
.guestbook h2 { margin-top: 0; }
.guestbook input, .guestbook textarea {
  font-family: "Comic Sans MS", "Comic Neue", cursive;
  font-size: 14px;
  width: 95%;
  border: 2px inset #808080;
}
.guestbook button {
  font-family: "Comic Sans MS", "Comic Neue", cursive;
  font-size: 15px;
  font-weight: bold;
  background: #00ff00;
  border: 3px outset #00aa00;
  padding: 4px 12px;
  cursor: pointer;
}
#entries { list-style: none; padding: 0; margin: 10px 0 0; }
#entries li { border-top: 1px dotted #999; padding: 4px 0; font-size: 14px; }
#entries b { color: #008000; }

/* ---------- footer ---------- */
.footer {
  text-align: center;
  font-size: 12px;
  padding: 10px;
  border-top: 4px double #000;
  background: #eee;
}
.counter {
  display: inline-block;
  font-family: "Courier New", monospace;
  font-size: 20px;
  background: #000;
  color: #ff0000;
  letter-spacing: 4px;
  padding: 2px 6px;
  border: 2px inset #888;
}
.badges span {
  display: inline-block;
  margin: 6px 3px 0;
  padding: 2px 6px;
  font-size: 10px;
  font-family: Verdana, sans-serif;
  border: 1px solid #000;
  background: #fff;
}

/* It is 1985 but phones exist now, sadly. */
@media (max-width: 640px) {
  .cols, .cols tbody, .cols tr, .cols td { display: block; width: auto; }
  .sidebar { border-right: none; border-bottom: 3px dashed #ff00ff; }
  .masthead table, .masthead tbody, .masthead tr, .masthead td { display: block; text-align: center; }
  .logo-text { font-size: 32px; }
  .logo-text .industrial { font-size: 22px; letter-spacing: 2px; }
  .logo-text .shenanigans { font-size: 34px; }
  .logo-photo { width: 130px; }
}

@media (prefers-reduced-motion: reduce) {
  .blink { animation: none; }
}

.founder-caption {
  font-family: "Comic Sans MS", "Comic Neue", cursive;
  font-weight: bold;
  color: #ff0000;
  background: #ffff00;
  border: 2px dashed #0000ff;
  display: inline-block;
  padding: 0 6px;
  margin-top: 4px;
  transform: rotate(3deg);
}

.welcome {
  border: 3px dashed #ff0000;
  background: #ffffcc;
  padding: 8px 10px;
  margin: 4px 0 14px;
  font-family: "Comic Sans MS", "Comic Neue", cursive;
  font-size: 16px;
}
.welcome .sig { text-align: right; font-style: italic; color: #800000; }
.elmore-says {
  font-family: "Comic Sans MS", "Comic Neue", cursive;
  font-size: 14px;
  color: #800080;
  margin: 6px 0 2px;
}

/* ---------- Elmore's Life Skills ---------- */
.skills-page { padding: 8px 14px; }
.skill {
  border: 3px ridge #ff9900;
  background: #fffff0;
  margin: 0 0 16px;
  padding: 10px 12px;
  overflow: hidden;
}
.skill:nth-of-type(even) .photo-slot { float: left; margin: 0 12px 8px 0; transform: rotate(3deg); }
.skill h2 {
  font-family: Papyrus, "Comic Sans MS", "Comic Neue", fantasy;
  color: #800000;
  font-size: 21px;
  margin: 0 0 8px;
}
.skill p { line-height: 1.4; margin: 6px 0; }
.skill .lesson {
  font-family: "Comic Sans MS", "Comic Neue", cursive;
  background: #ccffcc;
  border-left: 6px solid #00aa00;
  padding: 4px 8px;
}
img.photo-slot { display: block; object-fit: cover; padding: 0; background: #fff; border: 5px solid #fff; outline: 3px dashed #ff00ff; }
.photo-slot {
  float: right;
  width: 165px;
  height: 222px;
  margin: 0 0 8px 12px;
  border: 4px dashed #ff00ff;
  background: #ffff99;
  color: #ff0000;
  font-family: "Comic Sans MS", "Comic Neue", cursive;
  font-size: 13px;
  font-weight: bold;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(-3deg);
}
.photo-slot i { color: #0000ff; font-weight: normal; }
.skills-link {
  display: block;
  text-align: center;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 22px;
  margin: 0 0 14px;
  padding: 6px;
  background: #ff00ff;
  border: 4px outset #ff99ff;
  color: #ffff00 !important;
  text-decoration: none;
}
@media (max-width: 640px) {
  .photo-slot, .skill:nth-of-type(even) .photo-slot { float: none; margin: 0 auto 10px; }
}

/* ---------- product listings: folded details ---------- */
.listing .teaser { font-size: 16px; margin: 6px 0; }
details.more { margin: 4px 0 8px; }
details.more summary {
  cursor: pointer;
  display: inline-block;
  font-family: "Comic Sans MS", "Comic Neue", cursive;
  font-weight: bold;
  font-size: 13px;
  color: #0000ee;
  text-decoration: underline;
}
details.more summary::-webkit-details-marker { color: #ff0000; }
details.more[open] summary { color: #551a8b; }

/* ---------- basement entrance + page ---------- */
.basement-link {
  display: block;
  text-align: center;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 24px;
  letter-spacing: 2px;
  margin: 0 0 10px;
  padding: 10px 6px;
  background: repeating-linear-gradient(90deg, #5a3a1a 0 22px, #6b4723 22px 44px);
  border: 5px outset #8b5a2b;
  color: #ffcc00 !important;
  text-decoration: none;
  text-shadow: 2px 2px 0 #000;
}
.basement-link small { font-family: "Comic Sans MS", "Comic Neue", cursive; font-size: 14px; letter-spacing: 0; color: #fff; }
body.basement { background: #1a0f05; }
.basement-wrap { background: #2b1a0c; border-color: #5a3a1a; color: #f5e6c8; }
.basement-wrap a { color: #ffcc00; }
.basement-head {
  text-align: center;
  padding: 16px 10px;
  background: repeating-linear-gradient(90deg, #4a2e12 0 30px, #5a3a1a 30px 60px);
  border-bottom: 4px double #ffcc00;
}
.basement-head h1 {
  font-family: Papyrus, "Comic Sans MS", "Comic Neue", fantasy;
  font-size: 40px;
  color: #ff6600;
  text-shadow: 0 0 12px #ff9900, 3px 3px 0 #000;
  margin: 10px 0 4px;
}
.basement-head .logo-photo { width: 120px; filter: sepia(0.6); }
.basement-head .lamp { font-family: "Courier New", monospace; color: #ff66cc; font-size: 13px; margin: 4px 0 0; }
.basement-body { padding: 10px 16px 16px; }
.basement-body .welcome { background: #3d2510; border-color: #ff6600; color: #f5e6c8; }
.basement-body .welcome .sig { color: #ffcc00; }
.ask { margin: 12px 0; }
.ask textarea {
  width: 95%;
  font-family: "Comic Sans MS", "Comic Neue", cursive;
  font-size: 15px;
  background: #fff8e0;
  border: 3px inset #8b5a2b;
}
.ask button {
  margin-top: 6px;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 18px;
  padding: 4px 16px;
  background: #ff6600;
  color: #fff;
  border: 4px outset #ff9944;
  cursor: pointer;
}
.exchange { border: 2px dashed #ffcc00; padding: 6px 10px; margin: 0 0 10px; background: #3d2510; }
.exchange .you { color: #ccc; margin: 2px 0; }
.exchange .him { font-family: "Comic Sans MS", "Comic Neue", cursive; color: #fff; margin: 4px 0; }
.exchange .him b { color: #ff9900; }
.fine-print { font-size: 12px; color: #b8a888; font-style: italic; }
.basement-wrap .footer { background: #1a0f05; color: #b8a888; border-top-color: #ffcc00; }
