@import url('https://fonts.googleapis.com/css2?family=Tahoma:wght@400;700&family=Trebuchet+MS:wght@400;700&family=Verdana&display=swap');

:root {
  /* XP Luna colour palette */
  --xp-blue:       #245EDC;
  --xp-blue-dark:  #0A246A;
  --xp-blue-mid:   #3D6EA4;
  --xp-blue-light: #6BA0E8;
  --xp-blue-sky:   #DCE4F5;

  --xp-teal:       #008080;
  --xp-green:      #3A7733;
  --xp-green-btn:  #46a846;

  --xp-silver:     #ECE9D8; /* XP desktop/window bg */
  --xp-silver-dark:#ACA899;
  --xp-silver-light:#F1EFE2;
  --xp-silver-btn: #D4D0C8;

  --xp-white:      #FFFFFF;
  --xp-black:      #000000;
  --xp-text:       #000000;
  --xp-text-dim:   #444444;
  --xp-link:       #0000CC;
  --xp-link-vis:   #551A8B;

  --xp-titlebar-from: #0054E3;
  --xp-titlebar-to:   #2F9BF0;
  --xp-titlebar-text: #FFFFFF;

  --xp-border-light: #FFFFFF;
  --xp-border-mid:   #ACA899;
  --xp-border-dark:  #716F64;

  /* raised/sunken bevel edges */
  --bevel-raised: inset 1px 1px 0 #fff, inset -1px -1px 0 #716F64, inset 2px 2px 0 #D4D0C8, inset -2px -2px 0 #ACA899;
  --bevel-sunken: inset -1px -1px 0 #fff, inset 1px 1px 0 #716F64, inset -2px -2px 0 #D4D0C8, inset 2px 2px 0 #ACA899;
  --bevel-flat:   1px solid #ACA899;

  --font-ui:   Tahoma, 'Trebuchet MS', Verdana, Arial, sans-serif;
  --font-body: Verdana, Tahoma, Arial, sans-serif;
}

/* ---- reset ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background-color: #008080; /* XP teal desktop */
  background-image: url('../img/bliss.jpg');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--xp-text);
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.5;
  cursor: url('../img/cursor.cur'), default;
}

a { color: var(--xp-link); text-decoration: underline; }
a:hover { color: #CC0000; text-decoration: underline; }
a:visited { color: var(--xp-link-vis); }

/* ============================================
   LAYOUT
   ============================================ */

#wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 980px;
  margin: 8px auto;
  background: var(--xp-silver);
  border: 2px solid var(--xp-blue-dark);
  box-shadow: 3px 3px 8px rgba(0,0,0,0.6);
}

/* ---- title bar (site header as XP window chrome) ---- */
#site-header {
  background: linear-gradient(to bottom, var(--xp-titlebar-from) 0%, var(--xp-titlebar-to) 100%);
  padding: 5px 8px 4px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  border-bottom: 2px solid var(--xp-blue-dark);
  user-select: none;
}

.titlebar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#site-header h1 {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: bold;
  color: var(--xp-titlebar-text);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  letter-spacing: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

#site-header h1::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background: url('../img/site-icon.ico') center/contain no-repeat,
              linear-gradient(135deg, #FFD700, #FF8C00);
  border-radius: 2px;
}

/* fake XP window control buttons */
.xp-controls {
  display: flex;
  gap: 2px;
}

.xp-btn-ctrl {
  width: 21px;
  height: 21px;
  border: none;
  cursor: pointer;
  font-size: 11px;
  font-weight: bold;
  font-family: 'Marlett', 'Webdings', sans-serif;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--bevel-raised);
  background: var(--xp-silver-btn);
  color: var(--xp-text);
}
.xp-btn-ctrl:hover { background: #E5E1D8; cursor: url('../img/help.cur'), help; }
.xp-btn-ctrl.close { background: #CC0000; color: white; }
.xp-btn-ctrl.close:hover { background: #FF3333; }

/* XP toolbar / menubar strip below titlebar */
.xp-menubar {
  background: var(--xp-silver);
  border-bottom: 1px solid var(--xp-border-mid);
  padding: 2px 4px;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.xp-menu-item {
  font-size: 11px;
  padding: 2px 6px;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  color: var(--xp-text);
  text-decoration: none;
  font-family: var(--font-ui);
}
.xp-menu-item:hover {
  background: var(--xp-blue-sky);
  border-color: var(--xp-blue);
  color: var(--xp-text);
  text-decoration: none;
}

/* XP address bar / marquee strip */
.xp-addressbar {
  background: var(--xp-silver);
  border-bottom: 1px solid var(--xp-border-mid);
  padding: 2px 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  overflow: hidden;
}

.xp-addressbar .addr-label {
  color: var(--xp-text-dim);
  white-space: nowrap;
  font-weight: bold;
  font-size: 11px;
}

.xp-addressbar .addr-input {
  flex: 1;
  background: white;
  border: 1px inset var(--xp-border-mid);
  padding: 1px 4px;
  font-size: 11px;
  font-family: var(--font-ui);
  color: var(--xp-link);
  overflow: hidden;
  white-space: nowrap;
}

.marquee-strip {
  display: contents;
}
.marquee-strip marquee {
  font-size: 11px;
  color: var(--xp-text-dim);
}

/* ---- content row ---- */
#content-row {
  display: flex;
  flex: 1;
}

/* ---- sidebar as XP explorer pane ---- */
#sidebar {
  width: 190px;
  min-width: 190px;
  background: var(--xp-blue-sky);
  border-right: 2px solid var(--xp-border-mid);
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-box {
  background: var(--xp-silver-light);
  border: 1px solid var(--xp-border-mid);
  box-shadow: var(--bevel-raised);
}

.sidebar-box h3 {
  font-size: 11px;
  font-weight: bold;
  font-family: var(--font-ui);
  color: var(--xp-titlebar-text);
  background: linear-gradient(to bottom, var(--xp-titlebar-from), var(--xp-titlebar-to));
  padding: 3px 6px;
  margin: 0;
  letter-spacing: 0;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.4);
}

.sidebar-box ul {
  list-style: none;
  padding: 4px 2px;
}

.sidebar-box ul li {
  padding: 1px 0;
}

.sidebar-box ul li::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  vertical-align: middle;
  margin-right: 3px;
  background: linear-gradient(135deg, #6BA0E8, #0054E3);
  border: 1px solid #0A246A;
  border-radius: 1px;
}

.sidebar-box ul li a {
  font-size: 11px;
  vertical-align: middle;
}

/* blinkies */
.blinkies {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 4px;
}
.blinkies img { image-rendering: pixelated; }

/* 88x31 banners */
.banners {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 4px;
}
.banners img { image-rendering: pixelated; width: 88px; height: 31px; }

/* visitor counter */
.counter-box {
  text-align: center;
  padding: 4px;
}
.counter-box .count {
  font-family: 'Courier New', monospace;
  font-size: 18px;
  font-weight: bold;
  color: var(--xp-blue-dark);
  letter-spacing: 4px;
  background: black;
  color: #00FF00;
  padding: 2px 6px;
  display: inline-block;
}

/* now playing widget */
.now-playing {
  font-size: 11px;
}
.now-playing .label {
  font-weight: bold;
  color: var(--xp-blue-dark);
}

/* tag / blinkie text */
.tag {
  display: inline-block;
  background: var(--xp-silver-btn);
  border: 1px solid var(--xp-border-dark);
  padding: 0px 4px;
  font-size: 10px;
  color: var(--xp-text);
  margin: 2px 1px;
  box-shadow: 1px 1px 0 #fff inset, -1px -1px 0 #716F64 inset;
}

/* webring nav */
.webring {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  flex-wrap: wrap;
  padding: 4px;
}

/* ---- main content pane ---- */
#main {
  flex: 1;
  padding: 12px 14px;
  background: var(--xp-white);
}

/* ---- footer ---- */
#site-footer {
  background: var(--xp-silver);
  border-top: 2px solid var(--xp-border-mid);
  padding: 5px 10px;
  font-size: 11px;
  color: var(--xp-text-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
}

#site-footer .statusbar-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 1px 6px;
  border: 1px solid var(--xp-border-mid);
  box-shadow: var(--bevel-sunken);
  background: var(--xp-silver-light);
  font-size: 10px;
}

/* ============================================
   REUSABLE COMPONENTS
   ============================================ */

/* XP-style section heading (looks like a group box label) */
.section-title {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: bold;
  color: var(--xp-blue-dark);
  border-bottom: 1px solid var(--xp-border-mid);
  margin-bottom: 10px;
  padding-bottom: 3px;
  padding-left: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #6BA0E8 0%, #0054E3 100%);
  border: 1px solid #0A246A;
  border-radius: 2px;
  flex-shrink: 0;
}

/* pixel/hr divider */
.pixel-divider {
  border: none;
  border-top: 1px solid var(--xp-border-mid);
  border-bottom: 1px solid var(--xp-border-light);
  margin: 10px 0;
}

/* content box — XP group box / panel */
.box {
  border: 1px solid var(--xp-border-mid);
  background: var(--xp-silver-light);
  padding: 10px 12px;
  margin-bottom: 10px;
  box-shadow: var(--bevel-raised);
}

.box h2 {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: bold;
  color: var(--xp-blue-dark);
  margin-bottom: 6px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--xp-border-mid);
}

/* XP-style push button */
.xp-button {
  background: linear-gradient(to bottom, #F0EFE6 0%, #D4D0C8 50%, #C8C4BC 51%, #E0DCDA 100%);
  border: 1px solid var(--xp-border-dark);
  box-shadow: var(--bevel-raised);
  padding: 3px 12px;
  font-family: var(--font-ui);
  font-size: 11px;
  cursor: pointer;
  color: var(--xp-text);
  border-radius: 3px;
}
.xp-button:hover {
  background: linear-gradient(to bottom, #DCE4F5 0%, #B8D0EC 50%, #A8C4E8 51%, #D0E0F4 100%);
  border-color: var(--xp-blue);
  
}
.xp-button:active {
  box-shadow: var(--bevel-sunken);
}

/* blink */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
.blink { animation: blink 1s step-start infinite; }

/* under construction — classic XP warning stripe */
.under-con {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFE0;
  border: 1px solid #CCCC00;
  padding: 4px 10px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: bold;
  color: #666600;
  box-shadow: var(--bevel-raised);
}
.under-con::before {
  content: '⚠';
  font-size: 14px;
  color: #CC8800;
}

/* now playing sidebar version */
.sidebar-box .now-playing {
  padding: 4px 6px;
}

/* XP inset text field look */
.xp-field {
  background: white;
  border: 1px solid var(--xp-border-dark);
  box-shadow: var(--bevel-sunken);
  padding: 3px 5px;
  font-family: var(--font-ui);
  font-size: 11px;
  width: 100%;
}

/* guestbook entry style */
.gb-entry {
  border: 1px solid var(--xp-border-mid);
  background: white;
  padding: 6px 8px;
  margin-bottom: 8px;
  box-shadow: var(--bevel-sunken);
}
.gb-entry .gb-meta {
  font-size: 10px;
  color: var(--xp-text-dim);
  margin-bottom: 4px;
  font-weight: bold;
  color: var(--xp-blue-dark);
}

/* gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.gallery-grid .img-placeholder {
  border: 2px solid var(--xp-border-dark);
  box-shadow: var(--bevel-raised);
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--xp-text-dim);
  background: var(--xp-silver-btn);
}

/* XP-style progress bar (decorative) */
.xp-progress {
  height: 16px;
  background: white;
  border: 1px solid var(--xp-border-dark);
  box-shadow: var(--bevel-sunken);
  padding: 2px;
}
.xp-progress-fill {
  height: 100%;
  background: linear-gradient(to bottom, #6BA0E8 0%, #2462C0 50%, #1850A8 51%, #3070D0 100%);
}

/* cursor trail — handled entirely by JS canvas elements in script.js */

/* XP-style tooltip (use title attr, this is just cosmetic) */
[title] { cursor: help; }

/* webring strip */
.webring a {
  font-size: 11px;
}

/* ---- walking dog ---- */
@keyframes walk-across {
  0%   { left: -100px; }
  100% { left: 110%; }
}

#walking-critter {
  position: fixed;
  bottom: 0;
  left: -100px;
  z-index: 99998; /* just below cursor trail */
  width: 80px;    /* adjust to match your GIF's natural size */
  image-rendering: pixelated;
  animation: walk-across 18s linear infinite;
  pointer-events: none;
}