/* =========================
   GLOBAL 90s-STYLE LAYOUT
   ========================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 20px;
  font-family: Tahoma, Verdana, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, #0044aa 0, #000022 55%, #000000 100%);
  color: #000000;
}

/* Main white window */

#page-wrapper {
  max-width: 960px;
  margin: 0 auto;
  background: #ffffff;
  border: 3px solid #000000;
  box-shadow: 0 0 0 4px #00ffff, 0 0 10px #000000;
  padding: 16px 20px 24px;
}

/* =========================
   HEADERS & FOOTER
   ========================= */

.site-header h1 {
  font-size: 1.8rem;
  text-align: center;
  margin: 0;
  padding: 8px;
  background: linear-gradient(to right, #000080, #0044cc);
  color: #ffffff;
  border: 2px outset #c0c0c0;
  text-shadow: 1px 1px 0 #000000;
}

.tagline {
  text-align: center;
  margin: 8px 0 16px;
}

.site-footer {
  text-align: center;
  font-size: 0.8rem;
  margin-top: 16px;
  padding-top: 8px;
  border-top: 2px solid #c0c0c0;
}

/* =========================
   LINKS
   ========================= */

a {
  color: #0000ee;
  text-decoration: underline;
}

a:visited {
  color: #551a8b;
}

a:hover {
  background: #ffff00;
  color: #000000;
}

/* =========================
   TOP NAVIGATION BAR
   ========================= */

.top-nav {
  border: 2px outset #c0c0c0;
  background: #008080;
  margin-bottom: 16px;
}

.top-nav ul {
  list-style: none;
  margin: 0;
  padding: 4px 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.top-nav li {
  margin: 0;
}

.top-nav a {
  display: inline-block;
  padding: 4px 8px;
  background: #f0f0f0;
  border: 1px solid #000000;
  font-size: 0.9rem;
  text-decoration: none;
}

.top-nav a:hover {
  background: #ffff00;
}

/* =========================
   CONTENT SECTIONS
   ========================= */

.content-section {
  margin-bottom: 24px;
  padding: 10px 12px;
  border: 2px inset #c0c0c0;
  background: #fdfdfd;
}

.content-section h2 {
  font-size: 1.3rem;
  margin-top: 0;
  padding: 4px 6px;
  background: #000080;
  color: #ffffff;
  border-bottom: 2px solid #ffd700;
}

.content-section p {
  line-height: 1.5;
  font-size: 0.96rem;
}

/* =========================
   IMAGE + CAPTION BLOCKS
   ========================= */

.media-block {
  width: 100%;
  background: #f5f5f5;               /* classic light gray */
  border: 2px solid #c0c0c0;          /* Windows 95-style border */
  padding: 8px;
  margin: 16px 0;
  box-shadow: 2px 2px 0 #808080;      /* subtle drop shadow */
}

.media-block img {
  width: 100%;
  height: auto;
  border: 2px solid #808080;
  display: block;
  background: #ffffff;
}

.caption {
  font-size: 0.8rem;
  color: #333;
  margin-top: 6px;
  padding-top: 4px;
  border-top: 1px solid #999;
  font-style: italic;
}

/* =========================
   TIMELINE STYLING
   ========================= */

.digital-divide-timeline .timeline {
  border-left: 3px solid #000080;
  margin: 16px 0 8px 8px;
  padding-left: 12px;
}

.digital-divide-timeline .event {
  margin-bottom: 16px;
  position: relative;
}

.digital-divide-timeline .event::before {
  content: "";
  position: absolute;
  left: -11px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffff00;
  border: 2px solid #000000;
}

.digital-divide-timeline .year {
  font-weight: bold;
  color: #000080;
  margin-bottom: 2px;
}

.digital-divide-timeline .content h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

/* =========================
   WORKS CITED
   ========================= */

.works-list {
  padding-left: 20px;
  font-size: 0.95rem;
}

.works-list li {
  margin-bottom: 4px;
}

/* =========================
   MOSAIC FAKE BROWSER
   ========================= */

.mosaic-window-wrapper {
  border: 3px solid #000000;
  box-shadow: 3px 3px 0 #808080;
  background: #c0c0c0;
  margin-top: 12px;
}

/* Title bar */

.mosaic-chrome {
  background: linear-gradient(to right, #000080, #0044aa);
  color: #ffffff;
  padding: 4px 6px;
  border-bottom: 2px solid #808080;
}

.mosaic-title {
  font-weight: bold;
  font-size: 0.95rem;
}

/* Menu bar */

.mosaic-menubar {
  background: #c0c0c0;
  border-top: 2px solid #ffffff;
  border-bottom: 2px solid #808080;
  padding: 2px 4px;
}

.mosaic-menubar ul {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
}

.mosaic-menubar a {
  text-decoration: none;
  color: #000000;
}

/* Toolbar */

.mosaic-toolbar {
  background: #c0c0c0;
  padding: 4px;
  border-top: 2px solid #ffffff;
  border-bottom: 2px solid #808080;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.mosaic-toolbar .btn {
  font-size: 0.8rem;
  padding: 2px 6px;
  border: 2px outset #ffffff;
  background: #e0e0e0;
  cursor: pointer;
}

.mosaic-toolbar .btn:active {
  border: 2px inset #ffffff;
}

.mosaic-toolbar .urlbar {
  flex: 1;
  min-width: 160px;
  font-size: 0.8rem;
  padding: 2px 4px;
  border: 2px inset #ffffff;
}

/* Mosaic main window layout */

.mosaic-window {
  display: flex;
  background: #ffffff;
  min-height: 180px;
}

/* Sidebar */

.mosaic-sidebar {
  width: 30%;
  max-width: 220px;
  border-right: 2px solid #c0c0c0;
  background: #e8e8e8;
  padding: 6px;
}

.mosaic-sidebar .box {
  border: 2px inset #ffffff;
  background: #dcdcdc;
  padding: 4px;
  margin-bottom: 8px;
}

.mosaic-sidebar h3 {
  font-size: 0.85rem;
  margin: 0 0 4px;
}

.mosaic-sidebar ul {
  list-style: square;
  margin: 0;
  padding-left: 16px;
  font-size: 0.8rem;
}

.mosaic-sidebar input[type="text"] {
  width: 100%;
  font-size: 0.8rem;
  margin-bottom: 4px;
  padding: 2px;
  border: 2px inset #ffffff;
}

/* Mosaic content */

.mosaic-content {
  flex: 1;
  padding: 8px 10px;
  font-size: 0.88rem;
}

.mosaic-content h3,
.mosaic-content h4 {
  margin-top: 0;
}

/* Inline figure inside Mosaic */

.inline-figure {
  border: 1px solid #c0c0c0;
  padding: 4px;
  background: #f8f8f8;
  max-width: 260px;
  margin: 8px 0;
}

.inline-figure img {
  max-width: 100%;
  display: block;
}

.inline-figure figcaption {
  font-size: 0.75rem;
}

/* Fake status bar */

.mosaic-status {
  background: #c0c0c0;
  border-top: 2px solid #ffffff;
  padding: 2px 4px;
  font-size: 0.75rem;
  display: flex;
  justify-content: space-between;
}

/* =========================
   BLOCKQUOTES & EXTRAS
   ========================= */

blockquote {
  border-left: 4px solid #000080;
  margin: 8px 0;
  padding-left: 8px;
  font-style: italic;
  background: #f0f4ff;
}

.link-grid a {
  display: inline-block;
  margin-right: 6px;
  margin-bottom: 4px;
  font-size: 0.8rem;
}

/* =========================
   RESPONSIVE TWEAKS
   ========================= */

@media (max-width: 700px) {
  body {
    padding: 10px;
  }

  #page-wrapper {
    padding: 10px 10px 16px;
  }

  .top-nav ul {
    flex-direction: column;
  }

  .mosaic-window {
    flex-direction: column;
  }

  .mosaic-sidebar {
    width: 100%;
    max-width: none;
    border-right: none;
    border-bottom: 2px solid #c0c0c0;
  }
}
