/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body, div, span, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, em, img, ins, kbd, q, s, samp, small, strong, sub, sup,
b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas,
details, embed, figure, figcaption, footer, header, hgroup, menu, nav,
output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* ========================================
   90s WEB DESIGN — Patchwork Coffee
   ======================================== */

html {
  font-family: 'Times New Roman', Times, serif;
  font-size: 100%;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

body {
  min-height: 100vh;
  line-height: 1.4;
  background-color: #e1dac7;
  color: #000;
  font-size: 18px;
  cursor: url('assets/cursor.png'), auto;
}

i {
  font-style: italic;
}

b, strong {
  font-weight: bold;
}

a {
  color: #4f838e;
  text-decoration: underline;
  cursor: pointer;
}

a:visited {
  color: #6f2512;
}

a:hover {
  color: #eba63a;
}

/* Page wrapper */
#page-wrapper {
  background: #e1dac7;
}

/* Title bar */
#title-bar {
  background: #6f2512;
  color: #fff;
  padding: 3px 6px;
  font-size: 16px;
  font-family: 'Arial', sans-serif;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#title-bar .window-buttons {
  display: flex;
  gap: 2px;
}

#title-bar .window-buttons span {
  display: inline-block;
  width: 16px;
  height: 14px;
  background: #e1dac7;
  border: 2px outset #dfdfdf;
  font-size: 11px;
  text-align: center;
  line-height: 10px;
  color: #000;
  cursor: default;
}

/* Address bar */
#address-bar {
  background: #e1dac7;
  border-bottom: 2px groove #808080;
  padding: 4px 8px;
  font-family: 'Arial', sans-serif;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
}

#address-bar .label {
  font-weight: bold;
}

#address-bar .url-field {
  flex: 1;
  background: #f9f8f2;
  border: 2px inset #808080;
  padding: 2px 4px;
  font-family: 'Arial', sans-serif;
  font-size: 15px;
  color: #000;
}

/* Main layout — sidebar + content */
#main-layout {
  display: flex;
  border: 2px solid #000;
}

/* Sidebar */
#sidebar {
  width: 205px;
  min-width: 205px;
  background: #e1dac7;
  border-right: 2px groove #808080;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#sidebar .logo-area {
  text-align: center;
  padding: 0;
  border-bottom: 2px groove #808080;
  background: #e1dac7;
  margin-bottom: 10px;
  overflow: hidden;
  height: 180px;
  position: relative;
}

#sidebar .logo-area img {
  width: 90px;
  height: auto;
  image-rendering: auto;
}

.ascii-logo-frame {
  width: 600px;
  height: 350px;
  border: none;
  overflow: hidden;
  transform: scale(0.5);
  transform-origin: top left;
  margin-bottom: -175px;
  margin-right: -300px;
  margin-left: -10px;
}

#sidebar .nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  font-size: 15px;
  font-family: 'Courier New', monospace;
  text-decoration: none;
  color: #000;
  background: #e1dac7;
  border: 2px outset #cfc8b5;
  margin-bottom: 3px;
}

#sidebar .nav-item:visited {
  color: #000;
}

#sidebar .nav-item:hover {
  background: #d5ceb8;
  color: #000;
}

#sidebar .nav-item .bullet {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.bullet-brown { background: #6f2512; }
.bullet-amber { background: #eba63a; }
.bullet-teal { background: #4f838e; }
.bullet-olive { background: #b5a432; }
.bullet-red { background: #6f2512; }

/* Content area */
#content-area {
  flex: 1;
  background: #f9f8f2;
  min-height: 500px;
  position: relative;
  z-index: 1;
}

/* Welcome banner */
#welcome-banner {
  background: linear-gradient(180deg, #eba63a 0%, #6f2512 100%);
  color: #fff;
  text-align: center;
  padding: 20px 15px;
  border-bottom: 3px ridge #808080;
}

#welcome-banner h1 {
  font-size: 35px;
  font-family: 'Times New Roman', serif;
  font-weight: normal;
  letter-spacing: 2px;
  text-shadow: 2px 2px 0px #000;
}

#welcome-banner .tagline {
  font-size: 18px;
  margin-top: 6px;
  font-style: italic;
  letter-spacing: 1px;
}

/* Marquee */
#marquee-bar {
  background: #000;
  color: #b5a432;
  font-family: 'Courier New', monospace;
  font-size: 16px;
  padding: 4px 0;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 2px groove #808080;
}

#marquee-bar .marquee-inner {
  display: inline-block;
  animation: marquee 35s linear infinite;
}

@keyframes marquee {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Featured boxes row */
#featured-row {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-bottom: 2px groove #808080;
  background: #e1dac7;
}

.featured-box {
  flex: 1;
  border: 2px outset #dfdfdf;
  background: #f9f8f2;
  padding: 10px;
  text-align: center;
  font-size: 16px;
}

.featured-box .box-title {
  font-weight: bold;
  font-family: 'Arial', sans-serif;
  font-size: 15px;
  color: #6f2512;
  margin-bottom: 6px;
  border-bottom: 1px solid #c0c0c0;
  padding-bottom: 4px;
}

.featured-box p {
  font-size: 15px;
  line-height: 1.5;
}

/* Toolbar buttons */
#toolbar {
  display: flex;
  gap: 0;
  background: #e1dac7;
  padding: 4px 8px;
  border-bottom: 2px groove #808080;
  flex-wrap: wrap;
  justify-content: center;
}

.toolbar-btn {
  display: inline-block;
  padding: 3px 12px;
  border: 2px outset #dfdfdf;
  background: #e1dac7;
  font-family: 'Arial', sans-serif;
  font-size: 14px;
  text-decoration: none;
  color: #000;
  cursor: pointer;
  margin: 1px;
}

.toolbar-btn:visited {
  color: #000;
}

.toolbar-btn:hover {
  background: #d5ceb8;
}

.toolbar-btn:active {
  border-style: inset;
}

/* Main text content */
#main-content {
  padding: 15px 20px;
  font-size: 19px;
  line-height: 1.5;
}

#main-content h2 {
  font-size: 22px;
  font-weight: bold;
  border-bottom: 2px solid #6B2D14;
  padding-bottom: 4px;
  margin-bottom: 12px;
  margin-top: 20px;
}

#main-content h2:first-child {
  margin-top: 0;
}

#main-content p {
  margin-bottom: 12px;
}

#main-content a {
  color: #4f838e;
}

#main-content a:visited {
  color: #6f2512;
}

/* Blink animation for NEW! badges */
.blink {
  animation: blink-animation 1s steps(2, start) infinite;
  color: #eba63a;
  font-weight: bold;
  font-size: 14px;
  font-family: 'Arial', sans-serif;
}

@keyframes blink-animation {
  to { visibility: hidden; }
}

/* HR dividers — classic beveled */
hr.beveled {
  border: none;
  border-top: 1px solid #808080;
  border-bottom: 1px solid #fff;
  margin: 15px 0;
}

/* Info table */
.info-table {
  border-collapse: collapse;
  font-size: 16px;
  margin: 10px 0;
  width: 100%;
  max-width: 400px;
}

.info-table td {
  padding: 3px 10px 3px 0;
  vertical-align: top;
  border-bottom: 1px dotted #c0c0c0;
}

.info-table td:first-child {
  font-weight: bold;
  white-space: nowrap;
  width: 110px;
}

/* Link list with colored bullets */
.link-list {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}

.link-list li {
  padding: 3px 0;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.link-list li .bullet {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Sparkle divider */
.sparkle-divider {
  text-align: center;
  padding: 8px 0;
  letter-spacing: 8px;
  color: #eba63a;
  font-size: 18px;
}

/* Under construction */
.under-construction {
  text-align: center;
  padding: 10px;
  font-family: 'Arial', sans-serif;
  font-size: 15px;
  color: #808080;
  font-style: italic;
}

/* Footer */
#footer {
  background: #e1dac7;
  border-top: 2px groove #808080;
  padding: 10px 15px;
  text-align: center;
  font-size: 14px;
  font-family: 'Arial', sans-serif;
  color: #808080;
  width: 100%;
}

#footer .badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.badge {
  border: 2px outset #8b3a2a;
  background: #6f2512;
  color: #e1dac7;
  font-family: 'Courier New', monospace;
  font-size: 15px;
  padding: 4px 8px;
  text-align: center;
  line-height: 1.3;
  display: inline-block;
}

.badge-gray {
  background: #808080;
  color: #fff;
  font-family: 'Arial', sans-serif;
  font-size: 11px;
  padding: 3px 6px;
  border: 2px outset #dfdfdf;
}

/* Date time display */
#datetime-display {
  font-family: 'Courier New', monospace;
  font-size: 15px;
  background: #6f2512;
  color: #e1dac7;
  padding: 4px 8px;
  border: 2px outset #8b3a2a;
  display: inline-block;
  margin: 8px 0;
}

/* Photo Gallery */
#photo-gallery {
  margin: 10px 0;
}

#gallery-viewport {
  border: 2px inset #808080;
  background: #f9f8f2;
  padding: 8px;
  min-height: 60px;
}

#gallery-track {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery-img {
  height: 200px;
  width: auto;
  object-fit: contain;
  border: 1px solid #808080;
  cursor: pointer;
}

#gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
  font-family: 'Arial', sans-serif;
  font-size: 15px;
}

.gallery-btn {
  padding: 3px 14px;
  border: 2px outset #dfdfdf;
  background: #e1dac7;
  font-family: 'Arial', sans-serif;
  font-size: 15px;
  cursor: pointer;
}

.gallery-btn:active {
  border-style: inset;
}

.gallery-btn:disabled {
  color: #999;
  cursor: default;
}

#gallery-empty {
  text-align: center;
  padding: 15px;
  color: #808080;
  font-size: 16px;
}

#gallery-counter {
  font-family: 'Courier New', monospace;
  font-size: 15px;
}

/* Lightbox */
#lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

#lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
}

#lightbox-img {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  z-index: 1001;
  border: 3px solid #e1dac7;
}

#lightbox-close {
  position: absolute;
  top: 15px;
  right: 20px;
  z-index: 1002;
  background: none;
  border: none;
  color: #e1dac7;
  font-size: 45px;
  cursor: pointer;
  font-family: 'Arial', sans-serif;
}

#lightbox-close:hover {
  color: #eba63a;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1002;
  background: rgba(225, 218, 199, 0.2);
  border: 2px outset #808080;
  color: #e1dac7;
  font-size: 40px;
  padding: 12px 16px;
  cursor: pointer;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  image-rendering: pixelated;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: unset;
  text-rendering: geometricPrecision;
}

.lightbox-nav:hover {
  background: rgba(225, 218, 199, 0.4);
}

#lightbox-prev {
  left: 15px;
}

#lightbox-next {
  right: 15px;
}

/* Webring */
#webring {
  text-align: center;
  padding: 8px;
  border-top: 2px groove #808080;
  font-size: 14px;
  font-family: 'Arial', sans-serif;
  background: #e1dac7;
}

#webring a {
  color: #4f838e;
  font-size: 14px;
}

/* Status bar */
#status-bar {
  background: #e1dac7;
  border-top: 2px groove #808080;
  padding: 2px 6px;
  font-family: 'Arial', sans-serif;
  font-size: 14px;
  color: #000;
  display: flex;
  justify-content: space-between;
}

#status-bar .status-section {
  border: 1px inset #808080;
  padding: 1px 6px;
}

/* ========================================
   MENU PAGE
   ======================================== */

.menu-content {
  max-width: 100%;
}

.menu-section {
  margin-bottom: 20px;
}

.section-header {
  font-size: 20px;
  font-weight: bold;
  color: #6f2512;
  border-bottom: 1px solid #eba63a;
  padding-bottom: 4px;
  margin-bottom: 10px;
}

.section-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 15px;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px dotted #c0c0c0;
  padding-bottom: 4px;
}

.item-title {
  font-size: inherit;
  font-weight: normal;
}

.item-content {
  line-height: 1.5;
  font-size: 16px;
  color: #666;
  font-style: italic;
}

.back-link {
  display: inline-block;
  margin-bottom: 15px;
}

/* ========================================
   RESPONSIVE — stack on mobile
   ======================================== */

@media only screen and (max-width: 600px) {
  #page-wrapper {
    margin: 0;
    border: none;
  }

  #main-layout {
    flex-direction: column;
    border: none;
  }

  #sidebar {
    width: 100%;
    min-width: unset;
    border-right: none;
    border-bottom: 2px groove #808080;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 8px;
  }

  #sidebar .logo-area {
    width: 100%;
    border-bottom: 2px groove #808080;
    padding: 8px 0;
    margin-bottom: 4px;
    height: 140px;
  }

  .ascii-logo-frame {
    transform: scale(0.38);
    margin-bottom: -210px;
    margin-right: -370px;
    margin-left: 0;
  }

  #sidebar .nav-item {
    font-size: 14px;
    padding: 4px 8px;
    flex: 1;
    justify-content: center;
  }

  #featured-row {
    flex-direction: column;
  }

  #welcome-banner h1 {
    font-size: 24px;
  }

  #welcome-banner .tagline {
    font-size: 14px;
  }

  #toolbar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .toolbar-btn {
    font-size: 13px;
    padding: 4px 10px;
  }

  #main-content {
    padding: 12px 15px;
    font-size: 16px;
  }

  #main-content h2 {
    font-size: 19px;
  }

  .gallery-img {
    height: 120px;
  }

  .lightbox-nav {
    font-size: 24px;
    padding: 8px 12px;
  }

  #lightbox-close {
    font-size: 36px;
  }

  #lightbox-img {
    max-width: 95vw;
    max-height: 80vh;
  }
}
