/* ===========================
   TWO BIT CONSULTING - STYLESHEET
   =========================== */

/* Import Pixel Font */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Silkscreen&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Pixelify+Sans&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DotGothic16&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    background-color: #999999; /* fallback */
    background-image: repeating-conic-gradient(#E4E4ED 0% 25%, #999999 0% 50%);
    background-size: 10px 10px;
}

body {
    height: 100%;
    font-family: 'Pixelify Sans', sans-serif;
    background: transparent;
    padding: 10px;
    color: #333333;
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1500px;
    margin: 0 auto;
    background-color: #f0f0f0;
    border: 3px solid #999;
    box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #666666;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 20px);
}

/* Header Styles */
.header {
    background-color: #000000;
    flex-shrink: 0;
    border: 3px solid;
    border-color: #ffffff #333333 #333333 #ffffff;
    box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #000000;
}

.header-border-top {
    height: 4px;
    background: linear-gradient(to bottom, #cccccc, #999999);
    border-bottom: 1px solid #666666;
}

.header-border-bottom {
    height: 4px;
    background: linear-gradient(to top, #cccccc, #999999);
    border-top: 1px solid #333333;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px;
    gap: 8px;
    height: auto;
}

.color-blocks-left,
.color-blocks-right {
    display: grid;
    grid-template-columns: repeat(4, 20px);
    grid-template-rows: repeat(6, 20px);
    gap: 2px;
    padding: 4px;
    background-color: #999999;
    border: 2px solid;
    border-color: #ffffff #333333 #333333 #ffffff;
    flex-shrink: 0;
}

.color-blocks-left span,
.color-blocks-right span {
    width: 20px;
    height: 20px;
    display: block;
    border: 1px solid #666666;
}

.header-content {
    flex: 1;
    text-align: center;
    background-color: #000000;
    padding: 8px;
}

.header h1 {
  font-family: 'Press Start 2P', cursive;
  font-size: 2.5em;
  font-weight: 400;
  color: #ff6600;
  margin: 0;
  line-height: 1;
  animation: neon-flicker 3s ease-in-out infinite;
}

@keyframes neon-flicker {
  0%, 100% {
    text-shadow:
      0 0 5px #ff6600,
      0 0 10px #ff6600,
      0 0 20px #ff6600,
      0 0 40px #ff4400,
      0 0 80px #ff4400;
  }
  45% {
    text-shadow:
      0 0 4px #ff6600,
      0 0 8px #ff6600,
      0 0 16px #ff6600,
      0 0 32px #ff4400,
      0 0 64px #ff4400;
  }
  50% {
    text-shadow: none;
  }
  55% {
    text-shadow:
      0 0 4px #ff6600,
      0 0 8px #ff6600,
      0 0 16px #ff6600,
      0 0 32px #ff4400,
      0 0 64px #ff4400;
  }
  85% {
    text-shadow:
      0 0 5px #ff6600,
      0 0 10px #ff6600,
      0 0 20px #ff6600,
      0 0 40px #ff4400,
      0 0 80px #ff4400;
  }
  87% {
    text-shadow: none;
  }
  89% {
    text-shadow:
      0 0 5px #ff6600,
      0 0 10px #ff6600,
      0 0 20px #ff6600,
      0 0 40px #ff4400,
      0 0 80px #ff4400;
  }
}

/* Main Wrapper */
.main-wrapper {
    display: flex;
    flex: 1;
    gap: 10px;
    padding: 10px;
    overflow: hidden;
}

  /* ═══════════════════════════════════════════════════════
     MAC SYSTEM 9 HORIZONTAL MENU BAR
     Classic Mac OS 9 menubar: thin raised bar at top,
     menu titles that drop down chiclet panels on hover.
  ═══════════════════════════════════════════════════════ */

  /* ── Menu Bar ────────────────────────────────────────── */
  .sys9-menubar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: stretch;
    height: 32px;
    background: linear-gradient(
      to bottom,
      #d8d8d8 0%,
      #c4c4c4 40%,
      #b0b0b0 41%,
      #bcbcbc 100%
    );
    border-bottom: 1.5px solid #555;
    box-shadow:
      inset 0 1px 0 #f0f0f0,
      0 2px 4px rgba(0,0,0,0.6);
    user-select: none;
    font-family: 'Chicago', 'Share Tech Mono', system-ui, sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: #000;
    /* Subtle CRT scanline texture on the bar */
    background-image:
      repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 1px,
        rgba(0,0,0,0.04) 1px,
        rgba(0,0,0,0.04) 2px
      ),
      linear-gradient(to bottom, #d8d8d8 0%, #c4c4c4 40%, #b0b0b0 41%, #bcbcbc 100%);
  }

  /* Apple logo far-left ─ classic ⌘ placeholder */
  .sys9-apple {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    font-size: 14px;
    border-right: 1px solid #999;
    cursor: default;
    color: #222;
    letter-spacing: -1px;
  }
  .sys9-apple:hover { background: #000; color: #fff; }
  
  .sys9-apple-menu {
    display: flex;
    /* other styles... */
  }
  
  .sys9-apple-btn {
  align-self: center;
  }

  /* ── Each menu item wrapper ───────────────────────────── */
  .sys9-menu {
    position: relative;
    display: flex;
    align-items: center;
  }

  /* ── Menu title / clickable label ────────────────────── */
  .sys9-menu-title {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 0 10px;
    height: 22px;
    cursor: default;
    white-space: nowrap;
    border-right: 1px solid #aaa;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 15px;
    color: #111;
    transition: none;
  }

  .sys9-menu-title .material-icons {
    font-size: 18px;
    line-height: 1;
  }

  /* Hover/active state – classic Mac inverted highlight */
  .sys9-menu:hover .sys9-menu-title,
  .sys9-menu:focus-within .sys9-menu-title {
    background: #1A8FE5;
    color: #fff;
    /* The classic Mac OS 9 selected-menu look */
    box-shadow: inset 1px 0 0 #444, inset -1px 0 0 #444;
  }

  /* ── Drop-down panel ──────────────────────────────────── */
  .sys9-dropdown {
    display: none;
    position: absolute;
    top: 22px;        /* flush with bar bottom */
    left: 0;
    min-width: 180px;
    background: linear-gradient(to bottom, #d0d0d0 0%, #c8c8c8 100%);
    border: 1.5px solid #444;
    border-top: none;
    box-shadow:
      3px 3px 0 #000,           /* hard Mac OS 9 drop shadow */
      inset 1px 0 0 #e8e8e8,
      inset 0 1px 0 #e8e8e8;
    z-index: 999;
  }

  /* Show on hover / focus */
  .sys9-menu:hover .sys9-dropdown,
  .sys9-menu:focus-within .sys9-dropdown {
    display: block;
  }

  /* ── Dropdown items ───────────────────────────────────── */
  .sys9-dropdown a {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 2px 16px 2px 10px;
    color: #111;
    text-decoration: none;
    font-size: 14px;
    font-family: 'Chicago', 'Share Tech Mono', system-ui, sans-serif;
    font-weight: bold;
    white-space: nowrap;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border-bottom: 1px solid transparent;
  }

  .sys9-dropdown a .material-icons {
    font-size: 14px;
    color: #333;
    min-width: 16px;
  }

  .sys9-dropdown a:hover {
    background: #1A8FE5;
    color: #fff;
  }
  .sys9-dropdown a:hover .material-icons {
    color: #fff;
  }

  /* Divider line */
  .sys9-divider {
    height: 1px;
    background: linear-gradient(to right, #888, #bbb, #888);
    margin: 2px 4px;
    border: none;
  }

  /* Sub-indent for nested items */
  .sys9-dropdown a.sub-item {
    padding-left: 28px;
    font-weight: normal;
    font-size: 14px;
    color: #333;
  }
  .sys9-dropdown a.sub-item:hover {
    background: #1A8FE5;
    color: #fff;
  }

  /* Clock / right-side label */
  .sys9-clock {
    margin-left: auto;
    display: flex;
    align-items: center;
    padding: 0 10px;
    font-size: 15px;
    color: #222;
    font-family: 'Share Tech Mono', monospace;
    border-left: 1px solid #aaa;
    letter-spacing: 0.05em;
  }
  
  @media (max-width: 768px) {
      nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0;
      }
  
      nav ul li {
        width: 100%;
        text-align: center;
      }
      body {
        padding: 0;
      }
      
      .container {
        min-height: 100vh;
        min-height: 100svh;
        min-height: -webkit-fill-available;
        border: none;
        box-shadow: none;
  }
  
    .sys9-menubar {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
      height: auto;
      min-height: 32px;
    }
  
    .sys9-menu-title {
      font-size: 12px;   /* shrink text a bit */
      padding: 0 6px;
    }
  
    .sys9-clock {
      font-size: 12px;
      padding: 0 6px;
    }
    
    .sys9-dropdown {
      position: fixed;
      top: 32px;      /* height of the menubar */
      left: 0;
      right: 0;
      width: 100%;
      z-index: 9999;
      border-top: 1.5px solid #555;
    }
  }
  
/* Content Area */
.content {
    flex: 1;
    background-color: #ffffff;
    border: 3px solid;
    border-color: #ffffff #666666 #666666 #ffffff;
    box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #333333;
    overflow-y: auto;
    padding: 15px;
}

.content-header {
    background: linear-gradient(to bottom, #0099ff, #0066cc);
    color: white;
    padding: 12px 15px;
    font-weight: bold;
    font-size: 16px;
    letter-spacing: 2px;
    margin: -15px -15px 15px -15px;
    border-bottom: 2px solid #333;
}

.content-box {
    padding: 10px;
}

.content-box h2 {
    color: #0099ff;
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 10px;
    border-bottom: 2px solid #0099ff;
    padding-bottom: 5px;
}

.content-box h3 {
    color: #ff9900;
    font-size: 18px;
    margin-top: 15px;
    margin-bottom: 8px;
}

.content-box h4 {
 color:  #ff6600;
 font-size: 14px;
 margin-top: 15px;
 margin-bottom: 8px;
   
}

.content-box p {
    color: #333;
    margin-bottom: 12px;
    text-align: justify;
}

.content-box ul {
    margin-left: 30px;
    margin-bottom: 15px;
    color: #333;
}

.content-box li {
    margin-bottom: 8px;
    list-style-type: square;
}

.content-box a {
   color: #ff9900;
}
.content-box a:hover {
   color:  #ff6600;
}


/* Pixel-Portrait Items */
.pixel-images {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 10px;
  text-align: center;
  align-items: end; /* lines up captions at the bottom */
}

.pixel-portrait-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

 .caption {
  text-align: center;
}

.pixel-portrait {
  height: 150px;
  width: auto; /* keeps aspect ratio */
  display: block;
  margin: 0 auto;
}
}

/* Footer */
.footer {
    background: linear-gradient(to bottom, #c0c0c0, #808080);
    color: #333;
    text-align: right;
    padding: 15px;
    border-top: 3px solid;
    border-color: #ffffff #666666 #666666 #ffffff;
    font-size: 12px;
    flex-shrink: 0;
}

.footer p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-wrapper {
        flex-direction: column;
    }
    
    .menu-sidebar {
        width: 100%;
    }
    
    .header h1 {
        font-size: 14px;
    }
    
    .color-blocks-left,
    .color-blocks-right {
        display: none;
    }
}

/* Print Styles */
@media print {
    .menu-sidebar {
        display: none;
    }
    
    .container {
        border: none;
        box-shadow: none;
        max-width: 100%;
    }
}
