/* Global color variables and button base (previously added) */
@import url('https://fonts.googleapis.com/css2?family=ABeeZee:ital@0;1&display=swap');
:root {
  --azure-bg: azure;
  --azure-hover: #bfefff;
  --button-text: #002b36;
  --button-focus-ring: rgba(0, 120, 215, 0.28);
}

/* Use ABeeZee everywhere by default so headings, lists, buttons, etc. inherit it */
html, body, button, input, textarea, select, a, p, div, span,
h1, h2, h3, h4, h5, h6, .item {
  font-family: 'ABeeZee', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.btn {
  background-color: var(--azure-bg);
  color: var(--button-text);
  border: 1px solid rgba(0,0,0,0.08);
  padding: 0.45rem 0.9rem;
  font-family: inherit;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
.btn:hover {
  background-color: var(--azure-hover);
  transform: translateY(-1px);
}

button:focus,
input[type="button"]:focus,
input[type="submit"]:focus,
input[type="reset"]:focus,
.btn:focus {
  outline: none;
  box-shadow: 0 0 0 4px var(--button-focus-ring);
}

/* Basic page layout */
html, body {
  height: 100%;
}
body {
  margin: 0;
  background-image: url('bricked up.JPG');
  background-size: cover;
  height: 100vh;
  width: 100vw;
  font-family: 'ABeeZee', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Top bar */
.topbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  backdrop-filter: blur(10px);
  background-color: rgba(0, 0, 0, 0.125);
  color: #fff;
  justify-content: space-between;
  gap: 32px;
  align-items: center;
  padding: 8px 12px;
  box-sizing: border-box;
}

#welcomeopen {
  cursor: pointer;
  margin-left: 16px;
  font-weight: 700;
  background-color: rgba(256,256,256,0.125);
  padding: 4px 12px;
  border-radius: 16px;
}

#timebox {
  margin-right: 16px;
  background-color: rgba(256,256,256,0.125);
  padding: 4px 12px;
  border-radius: 16px;
}

/* Window (frosted) - applied to welcome and notes */
#welcome, #notes, #stats, #photo, #contact, #About {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255,255,255,0.18);
  /* default width that fits smaller screens but expands on larger viewports */
  width: min(92vw, 760px);
  padding: 48px 28px 28px 28px;
  background-color: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  color: #000;
  border-radius: 30px;
  overflow: hidden;
  box-sizing: border-box;
  border-image-width: 250px;
  border-image-height: 250px;

}
 
#welcomeheader, #notesheader, #statsheader, #photoheader, #contactheader, #aboutheader {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  cursor: move;
  justify-content: center;
  margin: 0;
  padding: 10px 16px;
  background-color: rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  box-sizing: border-box;
}

#window-controls {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 8px;
}

#window-controls button {
  width: 14px;
  height: 14px;
  padding: 0;
  border-radius: 50%;
  border: none;
  box-shadow: 0 1px 0 rgba(0,0,0,0.15);
  cursor: pointer;
}
#window-controls button[aria-label="Close"] { background: #ff5f57; }
#window-controls button[aria-label="Minimize"] { background: #ffbd2e; }
#window-controls button[aria-label="Maximize"] { background: #28c840; }

.hero-text { text-align: center; }

.profile-pic { width: 200px; height: 200px; margin: auto; display: block; }

/* Welcome panel typography tweaks:
   - add a little extra line-height and paragraph spacing for readability
   - constrain paragraph width for more balanced lines
   - enable modern balanced wrapping + hyphenation for nicer overflow
   - use a softer dark-gray instead of pure black for less contrast */
#welcome .hero-text p {
  color: #000000; /* reset to pure black */
  line-height: 1.6;
  margin-bottom: 0.9rem;
  max-width: 60ch; /* limits measure for better readability */
  margin-left: auto;
  margin-right: auto;
  text-align: left; /* keep paragraphs left-aligned for a cleaner measure */
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  /* Balanced wrapping when supported by the browser */
  text-wrap: balance;
  -webkit-text-wrap: balance;
}

#welcome .hero-text h1 {
  margin-bottom: 0.4rem;
  color: #000000;
}

/* Apply the welcome typography improvements across all main windows */
#welcome .hero-text p,
#notes p,
#stats p,
#contact p,
#About p,
#photo p {
  color: #000000; /* reset to pure black */
  line-height: 1.6;
  margin-bottom: 0.9rem;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  text-wrap: balance;
  -webkit-text-wrap: balance;
}

/* Headings inside windows: slightly darker and spaced */
#welcome h1,
#notes h1,
#stats h1,
#photo h1,
#About h1,
#contact h1 {
  margin-bottom: 0.4rem;
  color: #000000;
  line-height: 1.25;
}

/* Make preformatted blocks wrap neatly inside windows */
#contact pre,
#notes pre,
#About pre {
  white-space: pre-wrap;
  word-break: break-word;
  hyphens: auto;
  color: #000000;
  background: rgba(255,255,255,0.03);
  padding: 8px 10px;
  border-radius: 8px;
  max-width: 100%;
  overflow-x: auto;
}

/* Small utilities */
.hidden { display: none !important; }

/* Notes app specific layout (two-column list + content) */
#notes .notes-wrap {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

#notes .notes-list {
  width: 160px;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 12px;
  box-sizing: border-box;
}

#notes .notes-list .item {
  padding: 12px;
  margin-bottom: 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  /* inherit the global ABeeZee font */
  font-family: inherit;
}

#notes .notes-content {
  flex: 1;
  max-width: 640px;
}

/* On very wide screens, give the notes window more breathing room */
@media (min-width: 1200px) {
  #notes {
    width: min(80vw, 1100px);
    padding: 64px 48px 48px 48px;
  }
  #notes .notes-list { width: 200px; }
  #notes .notes-content { max-width: 800px; }
}

#notes .note-card {
  background: rgba(255,255,255,0.9);
  color: #000;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  font-family: 'ABeeZee', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Stats tracker card inside the stats window should match the frosted card look.
   Make it translucent and cap the height so it doesn't grow excessively. */
#stats .tracker-box {
  /* frosted translucent card to match other window chrome */
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.14);
  color: #000;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  font-family: inherit;
  width: min(92%, 720px);
  max-width: 720px;
  margin: 0 auto;
  box-sizing: border-box;
  max-height: 40vh; /* keep it shorter */
  overflow-y: auto; /* scroll if content is long */
}

/* Stats header and layout fixes to match the chrome used for other windows */
#statsheader p {
  margin: 0;
  color: black;
  font-weight: 600;
  text-align: center;
}

#stats .tracker-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 8px;
}

#stats .tracker-box h1 {
  margin: 0 0 8px 0;
  font-size: 1.6rem;
  font-weight: 700;
}

@media (min-width: 1200px) {
  #stats { width: min(80vw, 1100px); }
  #stats .tracker-box { padding: 28px; }
}

/* COMPACT STATS OVERRIDE: make the stats window much smaller and centered */
#stats.compact {
  width: 480px !important;
  max-width: 90vw;
  max-height: 50vh !important;
  /* leave room for the absolute header */
  padding: 64px 18px 18px 18px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#stats.compact .tracker-box {
  width: 420px !important;
  max-width: 88%;
  max-height: 40vh;
  padding: 12px !important;
  margin-top: 6px; 
}

#notes .note-card h2 {
  margin-top: 0;
  font-family: inherit;
}

#notes .note-meta {
  font-size: 12px;
  color: #444;
  margin-bottom: 12px;
  font-family: inherit;
}

#notes .note-body {
  line-height: 1.5;
}

#notes iframe {
  width: 100%;
  height: 60vh;
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  display: block;
  background: rgba(255,255,255,0.98);
}

@media (min-width: 1200px) {
  #notes iframe { height: 70vh; }
}
/* Welcome/notes/stats use square cropped images where intended */
#welcome img,
#notes img,
#stats img {
  width: 250px;
  height: 250px;
  max-width: 100%;
  object-fit: cover; /* crop while preserving aspect */
  display: block;
  border-radius: 6px;
}

/* Boot overlay styles */
.boot-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  z-index: 99999;
  transition: opacity 360ms ease, transform 360ms ease;
}
.boot-overlay--hide { opacity: 0; transform: scale(0.995); pointer-events: none; }
.boot-inner { text-align: center; color: #ffffff; padding: 18px; }
.boot-logo { width: 160px; height: 160px; object-fit: contain; display: block; margin: 0 auto 18px auto; filter: drop-shadow(0 8px 24px rgba(0,0,0,0.6)); border-radius: 24px; }
.boot-message { font-size: 1.125rem; color: #e8f6ff; margin: 0; opacity: 0.95; letter-spacing: 0.2px; }

@media (max-width: 520px) {
  .boot-logo { width: 120px; height: 120px; }
  .boot-message { font-size: 1rem; }
}

/* each typed line inside the boot message stacks vertically */
.boot-message .boot-line { display: block; margin-top: 8px; }
.boot-message .boot-line:first-child { margin-top: 0; }

/* Photo images: preserve natural aspect (actual shape) and stack vertically in a scrollable list */
#photo .photo-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center; /* center images horizontally */
  padding: 12px 8px 18px 8px;
  box-sizing: border-box;
  max-height: 55vh; /* make list vertically scrollable inside the window */
  overflow-y: auto;
  width: 100%;
}
#photo .photo-list img {
  width: auto;
  max-width: 92%;
  height: auto; /* preserve natural aspect ratio */
  display: block;
  border-radius: 6px; /* optional, keeps slight rounding without cropping */
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Photo window specific layout */
#photo .photo-box {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 12px;
}