@font-face {
  font-family: 'Facade Est';
  src: url('fonts/Facade-Est.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Facade Ouest';
  src: url('fonts/Facade-Ouest.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Facade Sud';
  src: url('fonts/Facade-Sud.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Facade Sud-Ouest';
  src: url('fonts/Facade-Sud-Ouest.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Format 1452';
  src: url('fonts/Format_1452.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Terminal Grotesque';
  src: url('fonts/terminal-grotesque-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background: url('bg.jpg') repeat;
  background-size: 400px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow: hidden;
  position: relative;
}

body::after {
  content: "hi";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Terminal Grotesque', 'Segoe UI', sans-serif;
  font-size: 84px;
  color: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 19;
  white-space: nowrap;
}

/* === MNIST BORDER === */

.mnist-border {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.mnist-border img {
  position: absolute;
  width: 28px;
  height: 28px;
  image-rendering: pixelated;
}

/* ========================================
   WINDOWS VISTA AERO WINDOW — faithful
   ======================================== */

.vista-window {
  position: absolute;
  top: 200px;
  left: 50%;
  transform: translateX(-50%);
  width: 480px;
  z-index: 20;
}

.vista-controls {
  pointer-events: auto;
}

.vista-btn-close,
.vista-btn-max {
  cursor: pointer;
}

/* The outer glass frame */
.vista-frame {
  border-radius: 8px 8px 4px 4px;
  overflow: hidden;
  /* outer dark border */
  border: 1px solid #1a3a5c;
  /* vista shadow: soft large + harder small */
  box-shadow:
    0 0 1px 0 rgba(0,0,0,0.6),
    0 8px 32px rgba(0,0,0,0.45);
}

/* --- TITLEBAR --- */

.vista-titlebar {
  height: 30px;
  display: flex;
  align-items: center;
  padding: 0 6px 0 8px;
  /* Vista Aero titlebar: blue glass with reflection */
  background:
    /* top gloss */
    linear-gradient(
      180deg,
      rgba(180, 215, 255, 0.55) 0%,
      rgba(130, 180, 235, 0.40) 45%,
      /* the sharp reflection break */
      rgba(60, 110, 175, 0.30) 49%,
      rgba(80, 130, 190, 0.25) 51%,
      rgba(100, 160, 220, 0.35) 70%,
      rgba(130, 185, 240, 0.45) 100%
    ),
    /* base color underneath */
    #3b6ea5;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  cursor: grab;
  user-select: none;
}

.vista-titlebar:active {
  cursor: grabbing;
}

.vista-icon {
  display: none;
}

.vista-pfp {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
  line-height: 1;
}

.vista-title {
  flex: 1;
  font-family: 'Terminal Grotesque', 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: normal;
  color: #fff;
  text-shadow:
    0 0 8px rgba(0, 0, 0, 0.5),
    0 1px 1px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- WINDOW CONTROL BUTTONS --- */

.vista-controls {
  display: flex;
  gap: 0;
  margin-left: auto;
  flex-shrink: 0;
  height: 20px;
}

.vista-btn {
  width: 29px;
  height: 20px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  /* default transparent-ish */
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.22) 0%,
    rgba(255,255,255,0.08) 48%,
    rgba(255,255,255,0.02) 52%,
    rgba(255,255,255,0.10) 100%
  );
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-right: none;
}

.vista-btn:first-child {
  border-radius: 0 0 0 3px;
}

.vista-btn:last-child {
  border-right: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0 0 3px 0;
}

/* minimize: horizontal line */
.vista-btn-min span {
  display: block;
  width: 10px;
  height: 2px;
  background: #fff;
  box-shadow: 0 1px 1px rgba(0,0,0,0.4);
}

/* maximize: square outline */
.vista-btn-max span {
  display: block;
  width: 10px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 1px;
  box-shadow: 0 1px 1px rgba(0,0,0,0.4);
}

/* close: red bg with X */
.vista-btn-close {
  background: linear-gradient(
    180deg,
    #e5837d 0%,
    #c34f47 48%,
    #b33a32 52%,
    #d15c55 100%
  );
  border: 1px solid #8b2820;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}

.vista-btn-close span {
  display: block;
  width: 12px;
  height: 12px;
  position: relative;
}

.vista-btn-close span::before,
.vista-btn-close span::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 0;
  width: 12px;
  height: 2px;
  background: #fff;
  box-shadow: 0 1px 1px rgba(0,0,0,0.3);
}

.vista-btn-close span::before { transform: rotate(45deg); }
.vista-btn-close span::after  { transform: rotate(-45deg); }

/* --- TOOLBAR (navigation pane) --- */

.vista-toolbar {
  background: linear-gradient(180deg, #f7f7f7 0%, #eee 100%);
  border-bottom: 1px solid #b0b0b0;
  padding: 6px 8px;
}

.vista-toolbar-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vista-toolbar-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  font-size: 11px;
  color: #1e3c5a;
  text-decoration: none;
  border: 1px solid #b0c4d8;
  border-radius: 3px;
  background: linear-gradient(
    180deg,
    rgba(235, 245, 255, 0.8) 0%,
    rgba(215, 230, 250, 0.6) 48%,
    rgba(200, 220, 245, 0.5) 52%,
    rgba(215, 230, 250, 0.6) 100%
  );
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 1px 1px rgba(0,0,0,0.04);
}

.vista-toolbar-btn::before {
  content: '\25B8';
  font-size: 8px;
  color: #6b8aab;
}

.vista-toolbar-btn:hover {
  background: linear-gradient(
    180deg,
    rgba(200, 225, 255, 0.9) 0%,
    rgba(170, 205, 250, 0.8) 48%,
    rgba(150, 190, 245, 0.7) 52%,
    rgba(170, 205, 250, 0.8) 100%
  );
  border-color: #7aa8d0;
  color: #0a246a;
}

.vista-toolbar-btn:hover::before {
  color: #0a246a;
}

/* --- CLIENT AREA --- */

.vista-client {
  min-height: 280px;
  max-height: 280px;
  overflow-y: auto;
  background: #fff;
  border-top: 1px solid #fff;
  padding: 12px;
  font-size: 12px;
  color: #1e1e1e;
}

/* --- WIN95 SCROLLBAR --- */

.vista-client::-webkit-scrollbar {
  width: 16px;
}

.vista-client::-webkit-scrollbar-track {
  background: #c0c0c0;
  background-image: url("data:image/svg+xml,%3Csvg width='2' height='2' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='0' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='1' y='1' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='1' y='0' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='0' y='1' width='1' height='1' fill='%23ffffff'/%3E%3C/svg%3E");
  background-size: 2px 2px;
}

.vista-client::-webkit-scrollbar-thumb {
  background: #c0c0c0;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  outline: 1px solid #808080;
}

.vista-client::-webkit-scrollbar-thumb:hover {
  background: #d0d0d0;
}

.vista-client::-webkit-scrollbar-button:single-button {
  background: #c0c0c0;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  height: 16px;
  display: block;
}

.vista-client::-webkit-scrollbar-button:single-button:active {
  border-top: 2px solid #404040;
  border-left: 2px solid #404040;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
}

.vista-client::-webkit-scrollbar-button:single-button:vertical:decrement {
  background-image: url("data:image/svg+xml,%3Csvg width='6' height='4' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='3,0 0,4 6,4' fill='%23000000'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 6px 4px;
}

.vista-client::-webkit-scrollbar-button:single-button:vertical:increment {
  background-image: url("data:image/svg+xml,%3Csvg width='6' height='4' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='0,0 6,0 3,4' fill='%23000000'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 6px 4px;
}

/* Firefox fallback */
.vista-client {
  scrollbar-width: auto;
  scrollbar-color: #c0c0c0 #dfdfdf;
}

/* --- STATUS BAR --- */

.vista-status {
  height: 23px;
  background: linear-gradient(180deg, #efefef 0%, #e0e0e0 50%, #d6d6d6 51%, #dfdfdf 100%);
  border-top: 1px solid #b5b5b5;
  display: flex;
  align-items: center;
  padding: 0 4px;
  font-size: 11px;
  color: #444;
}

.vista-status-text {
  flex: 1;
}

/* resize grip — diagonal dots */
.vista-status-grip {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-image: radial-gradient(circle, #aaa 1px, transparent 1px);
  background-size: 4px 4px;
  background-position: 4px 4px;
  /* clip to triangle shape */
  clip-path: polygon(100% 0%, 100% 100%, 0% 100%);
}

/* === SHARED CONTENT STYLES === */

.link-list {
  list-style: none;
}

.link-list li {
  padding: 3px 0;
  border-bottom: 1px solid #eee;
}

.link-list li:last-child {
  border-bottom: none;
}

.link-list a {
  color: #0066cc;
  text-decoration: none;
  font-family: 'Format 1452', 'Segoe UI', sans-serif;
  font-size: 16px;
}

.link-list a:hover {
  text-decoration: underline;
}

.text-entry {
  margin-bottom: 12px;
  line-height: 1.55;
  font-family: 'Format 1452', 'Segoe UI', sans-serif;
  font-size: 18px;
}

.text-entry p {
  margin: 0;
}

/* === IMAGE WINDOW VARIANT === */

.vista-window--img {
  width: 220px;
}

.vista-client--img {
  padding: 2px;
  background: #1e1e1e;
  min-height: 0;
}

.vista-client--img img {
  width: 100%;
  height: auto;
  display: block;
}

.vista-window--browse {
  width: 640px;
  z-index: 30;
}

.vista-window--browse .vista-client {
  padding: 0;
  min-height: 400px;
}

.vista-window--browse iframe {
  width: 100%;
  height: 400px;
  display: block;
  border: none;
}

.vista-client--embed {
  padding: 10px;
  overflow: hidden;
  background: #fff;
}

.vista-client--embed iframe,
.vista-client--embed canvas {
  display: block;
}
