/* General Styles */
html, body {
    background-color: transparent;
    color: #00FF00;
    font-family: Tahoma, sans-serif;
    text-align: center;
    margin: 0;
    min-height: 100%;
    overflow: visible;
}

/* Container for Cursor Trail */
.container {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
}

/* Trail Styles */
.trail-xd, .trail-x3, .trail-Dx, .trail-XO {
    font-size: 20px;
    opacity: 0.8;
    font-weight: bold;
    text-shadow: 1px 1px 2px #000;
    transition: all 0.2s linear;
}

.trail-xd { color: #FF6666; }
.trail-x3 { color: #66FF66; }
.trail-Dx { color: #6666FF; }
.trail-XO { color: #FFFF66; }

/* NAV: era-adjacent, matches your HTML class names exactly */
.win98-nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 36px;
  background: linear-gradient(180deg, #032A6E 0%, #001632 100%);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 2px solid rgba(0,0,0,0.6);
  box-shadow: 0 2px 6px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 13px;
  z-index: 9999;
}

/* left title/icon */
.nav-bar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cfe;
  font-weight: 600;
  text-shadow: 0 1px 0 rgba(0,0,0,0.7);
}

.nav-bar-icon {
  width: 22px;   /* was 18px */
  height: 22px;  /* keep it square */
  image-rendering: pixelated;
  border: 2px ridge #bfbfbf;
  background: linear-gradient(#fff, #ddd);
  padding: 1px;
  box-sizing: border-box;
}

/* links on the right */
.nav-bar-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.win98-link {
  display: inline-block;
  padding: 4px 9px;
  color: #061b2a;
  background: linear-gradient(#e9f4ff, #c6e6ff);
  border: 2px outset #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: inset 0 1px rgba(255,255,255,0.6), 0 1px 0 rgba(0,0,0,0.3);
  line-height: 1;
  user-select: none;
}

/* subtle hover that ties to your neon/green theme without going epilepsy */
.win98-link:hover {
  background: linear-gradient(#d7ffe6, #9ff7d0);
  color: #022;
  border: 2px inset #fff;
  text-shadow: 0 0 6px rgba(0,255,128,0.12);
}

/* little era divider between buttons */
.nav-bar-links a:not(:first-child) {
  position: relative;
}

.nav-bar-links a:not(:first-child)::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: rgba(0,0,0,0.35);
}

/* contact gets a tasteful glow, not a seizure-inducing blink */
.contact-link {
  box-shadow: 0 0 10px rgba(0,255,128,0.12);
  border-color: rgba(0,255,128,0.25);
}

/* keep page content visible below fixed nav (match the nav height if you change it) */
body {
  padding-top: 36px;
}
/* ---- Fix: keep rightmost button on-screen ---- */
.win98-nav-bar {
  box-sizing: border-box; /* make padding count in the width */
  padding-right: calc(12px + env(safe-area-inset-right, 0px)); /* reserve safe space for scrollbars / notches */
}

/* allow the link group to behave nicely when space is tight */
.nav-bar-links {
  display: flex;        /* already was, but restating keeps intent clear */
  align-items: center;
  gap: 6px;
  flex-shrink: 1;       /* allow the whole group to give up some space if needed */
  min-width: 0;         /* critical: lets flex items actually shrink instead of forcing overflow */
  flex-wrap: nowrap;    /* keep single-row by default so it stays era-authentic */
}

/* make each button a flexible flex-item so it won't push the right edge out */
.win98-link {
  flex: 0 1 auto;       /* allow buttons to shrink if viewport gets tight */
  min-width: 0;         /* prevents children from expanding past their container */
  white-space: nowrap;  /* keep text on one line */
}

/* if viewport gets small, be nice: let them wrap and reduce padding/font so Contact never disappears */
@media (max-width: 520px) {
  .nav-bar-links { flex-wrap: wrap; gap: 4px; }
  .win98-link { padding: 3px 6px; font-size: 12px; }
}

/* Extra-compact layout ONLY on portrait mobile */
@media (max-width: 480px) and (orientation: portrait) {
  .win98-nav-bar {
    height: auto;                  
    flex-direction: column;        
    align-items: flex-start;       
    padding: 6px 8px;              
  }

  .nav-bar-title {
    margin-bottom: 4px;
  }

  .nav-bar-links {
    flex-wrap: wrap;
    gap: 4px;
    width: 100%;
  }

  .win98-link {
    flex: 1 1 auto;
    text-align: center;
    padding: 4px 5px;
    font-size: 12px;
  }
}

/* Logo Styling */
#logo {
    display: block;
    margin: 80px auto 20px;
    width: 160px;
    box-shadow: 0 0 10px #808080;
}

/* Content Box with integrated Win98 title bar */
.content-box {
    width: 75%;
    max-width: 750px;
    margin: 20px auto;
    border: 3px dashed #808080;
    background-color: rgba(0, 0, 0, 0.85);
    color: #FFFFFF;
    box-shadow: 5px 5px 15px #808080;
    z-index: 10;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* keeps title bar flush inside border */
}

/* Title bar */
.win98-title-bar {
    background: linear-gradient(#000080, #1084d0); /* deep blue gradient */
    color: #fff;
    padding: 2px 6px;
    font-family: "MS Sans Serif", Tahoma, sans-serif;
    font-size: 13px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #808080;
    box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #000;
}

/* Title text shadow */
.title-text {
    text-shadow: 1px 1px 0 #000;
}

/* Fake close button */
.win98-close-btn {
    background: #c0c0c0;
    border: 2px solid #fff;
    border-right-color: #808080;
    border-bottom-color: #808080;
    width: 16px;
    height: 16px;
    line-height: 12px;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    color: #000;
    cursor: default;
    user-select: none;
}

.win98-close-btn:hover {
    background: #ff0000;
    color: #fff;
}

/* Inner content */
.content-inner {
    padding: 20px;
}

/* Optional flicker animation for h2 if still used inside content-inner */
.content-box h2 {
    font-size: 1.5em;
    color: #00BFFF;
    text-shadow: 0 0 2px #00BFFF, 0 0 4px #00BFFF;
    margin-bottom: 10px;
    animation: slight-flicker 1.5s infinite alternate;
}


/* About Section - Center Text */
.about-section p {
    font-size: 1.1em;
    max-width: 600px;
    margin: 20px auto;
}

/* Marquee Styling */
.marquee-box {
    border: 2px solid #808080;
    background-color: rgba(0, 0, 0, 0.9);
    color: #00FF00;
    padding: 8px;
    margin: 20px auto;
    width: 80%;
    max-width: 750px;
    font-size: 0.9em;
    box-shadow: 5px 5px 10px #808080;
    overflow: hidden;
}

.marquee-box b {
    white-space: nowrap;
    overflow: hidden;
}

/* Right Ad Banner */
.right-banner {
    position: fixed;
    top: 20%;
    right: 0;
    width: 150px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    border: 2px solid #808080;
    box-shadow: 5px 5px 15px #808080;
    z-index: 100;
}

.right-banner img {
    display: block;
    margin: 10px auto;
    width: 100%;
}

/* Left Ad Banner */
.left-banner {
    position: fixed;
    top: 20%;
    left: 0;
    width: 150px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    border: 2px solid #FF00FF;
    box-shadow: 5px 5px 15px #FF00FF;
    z-index: 100;
}

.left-banner img {
    display: block;
    margin: 10px auto;
    width: 100%; /* Ensures the ad fills the banner width */
}

/* Badge Section */
.badge-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 30px auto;
    max-width: 600px;
    padding: 10px;
}

/* Footer */
footer {
    margin-top: 30px;
    font-size: 0.8em;
    color: #FFFFFF;
}

.footer-images img {
    margin: 5px;
    height: 30px;
}

/* Matrix Background */
#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: black;
    z-index: -10;
    overflow: hidden;
}

/* Flicker Animation */
@keyframes slight-flicker {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.9;
    }
}

/* Subtler retro warning marquee */
.warning-marquee {
    background-color: #000; /* black to blend with background */
    color: #00FF66; /* softer neon green */
    padding: 10px 0;
    font-family: 'MS Sans Serif', Tahoma, sans-serif;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    border-top: 1px solid #00FF66;
    border-bottom: 1px solid #00FF66;
    margin: 10px 0;
    box-shadow: 0 0 5px rgba(0, 255, 102, 0.6); /* faint outer glow */
    text-shadow: 0 0 3px rgba(0, 255, 102, 0.8); /* lighter glow for text */
}

.warning-marquee a {
    color: #FFD700; /* classic retro yellow */
    text-decoration: underline;
}

.warning-marquee a:hover {
    color: #FFB000; /* softer orange-yellow for hover */
}

/* Works for Chrome, Edge, Safari */
html::-webkit-scrollbar {
  display: none;
}

/* Works for Firefox */
html {
  scrollbar-width: none;
}

/* Works for old IE (why not, it’s retro) */
body {
  -ms-overflow-style: none;
}

