/* =========================================================
   Y2K / LATE 90s PERSONAL HOMEPAGE FRAMEWORK
   ========================================================= */

:root {
  --blue: #000080;
  --bright-blue: #0000ff;
  --cyan: #00ffff;
  --purple: #800080;
  --pink: #ff00ff;
  --yellow: #ffff00;
  --lime: #00ff00;
  --silver: #c0c0c0;
  --dark-silver: #808080;
  --white: #ffffff;
  --black: #000000;
  --text: #111111;
}

/* ---------------------------------------------------------
   RESET
   --------------------------------------------------------- */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;

  background-color: #008080;

  /*
    Repeating background creates the old tiled-texture feel.
    Replace this with a tiny GIF/PNG for an even more authentic
    GeoCities-style appearance.
  */
  background-image:
    radial-gradient(
      circle,
      rgba(255,255,255,0.15) 1px,
      transparent 1px
    );

  background-size: 4px 4px;

  color: var(--text);

  font-family:
    "Times New Roman",
    Times,
    serif;

  font-size: 16px;
}


/* ---------------------------------------------------------
   SITE CONTAINER
   --------------------------------------------------------- */

.site {
  width: min(900px, calc(100% - 20px));
  margin: 20px auto;

  background: #ffffff;

  border: 4px ridge #d0d0d0;

  box-shadow:
    8px 8px 0 rgba(0, 0, 0, 0.45);
}


/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */

.header {
  padding: 18px 10px;

  text-align: center;

  color: var(--yellow);

  background:
    linear-gradient(
      90deg,
      #000080,
      #0000ff,
      #8000ff,
      #0000ff,
      #000080
    );

  border-bottom: 4px ridge #c0c0c0;
}

.logo {
  font-family:
    Impact,
    "Arial Black",
    sans-serif;

  font-size: clamp(28px, 6vw, 52px);

  letter-spacing: 2px;

  text-shadow:
    3px 3px 0 #000000,
    -1px -1px 0 #ffffff;
}

.sparkle {
  color: #ffffff;
}

.tagline {
  margin-top: 8px;

  color: #ffffff;

  font-weight: bold;

  font-style: italic;
}


/* ---------------------------------------------------------
   NAVIGATION
   --------------------------------------------------------- */

.navbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;

  background: var(--silver);

  border-bottom: 3px ridge #ffffff;
}

.navbar a {
  display: block;

  padding: 7px 14px;

  color: #000000;

  background: #c0c0c0;

  border-right: 2px outset #ffffff;
  border-bottom: 2px outset #ffffff;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 12px;
  font-weight: bold;

  text-decoration: none;

  text-transform: uppercase;
}

.navbar a:hover {
  color: #ffffff;
  background: #000080;
}

.navbar a:active {
  border-style: inset;
}


/* ---------------------------------------------------------
   MAIN LAYOUT
   --------------------------------------------------------- */

.layout {
  display: grid;

  grid-template-columns: 190px 1fr;

  gap: 10px;

  padding: 10px;

  background: #ffffff;
}


/* ---------------------------------------------------------
   SIDEBAR
   --------------------------------------------------------- */

.sidebar {
  min-width: 0;
}


/* ---------------------------------------------------------
   BOX COMPONENT
   --------------------------------------------------------- */

.box {
  margin-bottom: 10px;

  background: #eeeeee;

  border: 3px ridge #c0c0c0;
}

.box h2 {
  margin: 0;
  padding: 5px;

  color: #ffffff;

  background: #000080;

  border-bottom: 2px solid #000000;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 14px;

  text-align: center;
}

.box p,
.box ul {
  margin: 8px;
}


/* ---------------------------------------------------------
   SIDEBAR MENU
   --------------------------------------------------------- */

.menu {
  list-style: none;

  margin: 0 !important;
  padding: 5px !important;
}

.menu li {
  margin-bottom: 2px;
}

.menu a {
  display: block;

  padding: 4px 6px;

  color: #000080;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: bold;

  text-decoration: none;
}

.menu a:hover {
  color: #ffffff;
  background: #0000ff;
}


/* ---------------------------------------------------------
   ONLINE STATUS
   --------------------------------------------------------- */

.status {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
}

.online {
  display: inline-block;

  width: 10px;
  height: 10px;

  margin-right: 4px;

  background: #00ff00;

  border: 1px solid #000000;

  box-shadow:
    0 0 5px #00ff00;
}


/* ---------------------------------------------------------
   VISITOR COUNTER
   --------------------------------------------------------- */

.counter-box {
  text-align: center;
}

.counter {
  display: inline-block;

  margin: 8px;
  padding: 4px 8px;

  color: #00ff00;

  background: #000000;

  border: 2px inset #808080;

  font-family:
    "Courier New",
    monospace;

  font-size: 20px;

  letter-spacing: 3px;
}


/* ---------------------------------------------------------
   CONTENT
   --------------------------------------------------------- */

.content {
  min-width: 0;

  padding: 5px 10px;

  line-height: 1.45;
}

.content h1 {
  margin-top: 0;

  color: #ff0000;

  font-family:
    Impact,
    "Arial Black",
    sans-serif;

  font-size: 34px;

  letter-spacing: 1px;

  text-shadow: 2px 2px #ffff00;
}

.section-title {
  padding: 4px 8px;

  color: #ffffff;

  background: #800080;

  border: 2px outset #c0c0c0;

  font-family: Arial, Helvetica, sans-serif;

  font-size: 18px;
}


/* ---------------------------------------------------------
   WELCOME NOTICE
   --------------------------------------------------------- */

.notice {
  margin: 15px 0;

  padding: 10px;

  color: #000000;

  background: #ffff00;

  border: 3px dashed #ff0000;

  text-align: center;

  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
}


/* ---------------------------------------------------------
   LINKS
   --------------------------------------------------------- */

a {
  color: #0000ee;
}

a:visited {
  color: #800080;
}

a:hover {
  color: #ff0000;
  background: #ffff00;
}

.links a {
  font-weight: bold;
}


/* ---------------------------------------------------------
   TWO-COLUMN CONTENT
   --------------------------------------------------------- */

.two-column {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 10px;

  margin-top: 15px;
}

.two-column .box {
  margin-bottom: 0;
}

.two-column ul {
  padding-left: 25px;
}


/* ---------------------------------------------------------
   HORIZONTAL RULE
   --------------------------------------------------------- */

hr {
  height: 5px;

  margin: 15px 0;

  border: 0;

  background:
    repeating-linear-gradient(
      90deg,
      #000080 0 10px,
      #00ffff 10px 20px,
      #ff00ff 20px 30px,
      #ffff00 30px 40px
    );
}


/* ---------------------------------------------------------
   UNDER CONSTRUCTION
   --------------------------------------------------------- */

.construction {
  margin: 20px auto;

  padding: 8px;

  max-width: 350px;

  color: #000000;

  background:
    repeating-linear-gradient(
      -45deg,
      #ffff00 0 12px,
      #000000 12px 24px
    );

  border: 3px ridge #808080;

  text-align: center;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-weight: bold;

  text-shadow: 1px 1px #ffffff;
}


/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */

.footer {
  padding: 15px 10px;

  color: #ffffff;

  background: #000080;

  border-top: 4px ridge #c0c0c0;

  text-align: center;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 12px;
}

.badges {
  display: flex;

  justify-content: center;
  flex-wrap: wrap;

  gap: 6px;

  margin: 12px 0;
}

.badge {
  display: inline-flex;

  min-height: 35px;

  align-items: center;
  justify-content: center;

  padding: 4px 8px;

  color: #000000;

  background: #c0c0c0;

  border: 2px outset #ffffff;

  font-family:
    "Courier New",
    monospace;

  font-size: 9px;

  font-weight: bold;

  line-height: 1.1;
}

.webring {
  color: #00ffff;

  font-weight: bold;
}


/* ---------------------------------------------------------
   RESPONSIVE BEHAVIOR
   --------------------------------------------------------- */

@media (max-width: 650px) {

  .site {
    width: calc(100% - 8px);
    margin: 4px auto;

    box-shadow: none;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 5px;
  }

  .sidebar .box {
    margin-bottom: 0;
  }

  .two-column {
    grid-template-columns: 1fr;
  }

  .navbar a {
    flex: 1 1 33%;

    text-align: center;
  }
}


@media (max-width: 450px) {

  body {
    font-size: 14px;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  .navbar a {
    flex: 1 1 50%;
  }

  .logo {
    font-size: 28px;
  }
}
