/* Windows 95 Color Palette */
:root {
  --win95-bg: #008080;
  --win95-gray: #c0c0c0;
  --win95-dark: #808080;
  --win95-darker: #404040;
  --win95-light: #dfdfdf;
  --win95-white: #ffffff;
  --win95-blue: #000080;
  --win95-blue-light: #1084d0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* Windows 95 arrow cursor */
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path d="M0 0 L0 14 L4 10 L6 14 L8 13 L6 9 L11 9 Z" fill="black"/><path d="M1 1 L1 12 L4 9 L6 13 L7 12 L5 8 L9 8 Z" fill="white"/></svg>') 0 0, auto;
}

body {
  font-family: 'MS Sans Serif', 'Segoe UI', Tahoma, sans-serif;
  font-size: 14px;
  overflow: hidden;
  user-select: none;
}

/* Clickable elements get pointer cursor */
a, button, .icon, .folder-item, .start-menu-item, .taskbar-item, .start-button, .window-btn {
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="24"><path d="M4 0 L4 17 L7 14 L10 20 L12 19 L9 13 L13 13 Z" fill="black"/><path d="M5 1 L5 15 L7 13 L10 19 L11 18 L8 12 L11 12 Z" fill="white"/></svg>') 4 0, pointer !important;
}

/* Desktop */
.desktop {
  width: 100vw;
  height: 100vh;
  height: 100dvh; /* Safari address bar fix */
  background: var(--win95-bg);
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Desktop Icons - random scattered placement (handled by JS on desktop) */
.desktop-icons {
  flex: 1;
  padding: 20px;
  position: relative;
}

.icon {
  width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  text-align: center;
}

.icon img {
  width: 56px;
  height: 56px;
  margin-bottom: 4px;
  image-rendering: pixelated;
}

.icon span {
  color: white;
  text-shadow: 1px 1px 1px black;
  font-size: 11px;
  padding: 2px 4px;
}

.icon:hover span,
.icon:focus span {
  background: var(--win95-blue);
}

.icon:active {
  opacity: 0.8;
}

.icon.dragging {
  opacity: 0.7;
  cursor: move !important;
}

/* Windows Container */
.windows-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 28px;
  pointer-events: none;
}

/* Window */
.window {
  position: absolute;
  background: var(--win95-gray);
  border: 2px solid;
  border-color: var(--win95-light) var(--win95-darker) var(--win95-darker) var(--win95-light);
  box-shadow: inset 1px 1px 0 var(--win95-white), inset -1px -1px 0 var(--win95-dark);
  min-width: 300px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
}

/* Window resize handles */
.resize-handle {
  position: absolute;
  background: transparent;
}

.resize-n, .resize-s {
  left: 4px;
  right: 4px;
  height: 4px;
  cursor: ns-resize;
}

.resize-e, .resize-w {
  top: 4px;
  bottom: 4px;
  width: 4px;
  cursor: ew-resize;
}

.resize-n { top: 0; }
.resize-s { bottom: 0; }
.resize-e { right: 0; }
.resize-w { left: 0; }

.resize-ne, .resize-nw, .resize-se, .resize-sw {
  width: 8px;
  height: 8px;
}

.resize-ne { top: 0; right: 0; cursor: nesw-resize; }
.resize-nw { top: 0; left: 0; cursor: nwse-resize; }
.resize-se { bottom: 0; right: 0; cursor: nwse-resize; }
.resize-sw { bottom: 0; left: 0; cursor: nesw-resize; }

.window-header {
  background: linear-gradient(90deg, var(--win95-blue) 0%, var(--win95-blue-light) 100%);
  padding: 3px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: move;
}

.window-title {
  display: flex;
  align-items: center;
  gap: 4px;
  color: white;
  font-weight: bold;
  font-size: 11px;
  overflow: hidden;
  white-space: nowrap;
}

.window-title img {
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
}

.window-controls {
  display: flex;
  gap: 2px;
}

.window-btn {
  width: 16px;
  height: 14px;
  background: var(--win95-gray);
  border: 2px solid;
  border-color: var(--win95-light) var(--win95-darker) var(--win95-darker) var(--win95-light);
  font-size: 9px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.window-btn:active {
  border-color: var(--win95-darker) var(--win95-light) var(--win95-light) var(--win95-darker);
}

.window-content {
  flex: 1;
  overflow: auto;
  background: white;
  border: 2px solid;
  border-color: var(--win95-dark) var(--win95-white) var(--win95-white) var(--win95-dark);
  margin: 2px;
}

/* IE Toolbar */
.ie-toolbar {
  background: var(--win95-gray);
  padding: 2px 4px;
  border-bottom: 1px solid var(--win95-dark);
}

.ie-buttons {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
}

.ie-buttons button {
  background: var(--win95-gray);
  border: 2px solid;
  border-color: var(--win95-light) var(--win95-darker) var(--win95-darker) var(--win95-light);
  padding: 4px 12px;
  font-size: 13px;
  cursor: pointer;
}

.ie-buttons button:active {
  border-color: var(--win95-darker) var(--win95-light) var(--win95-light) var(--win95-darker);
}

.ie-address {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ie-address span {
  font-size: 11px;
}

.ie-address input {
  flex: 1;
  border: 2px solid;
  border-color: var(--win95-dark) var(--win95-white) var(--win95-white) var(--win95-dark);
  padding: 2px 4px;
  font-size: 11px;
  font-family: inherit;
}

/* GeoCities Page Styles */
.geocities-page {
  background: #000033;
  color: #00ff00;
  padding: 20px;
  font-family: 'Comic Sans MS', 'Comic Sans', cursive;
  min-height: 100%;
  background-image: url('data:image/gif;base64,R0lGODlhCAAIAIABAAAAAP///yH5BAEKAAEALAAAAAAIAAgAAAINjI+py+0Po5y02ouz3gUAOw==');
}

.geo-header {
  text-align: center;
  margin-bottom: 20px;
}

.geo-title {
  color: #ffff00;
  font-size: 24px;
  text-shadow: 2px 2px #ff00ff;
}

.geo-title marquee {
  display: block;
}

.construction {
  width: 100px;
  height: auto;
  vertical-align: middle;
}

.geo-visitor {
  text-align: center;
  color: #ff00ff;
  font-size: 14px;
  margin: 10px 0;
}

.counter {
  background: black;
  color: #00ff00;
  font-family: 'Courier New', monospace;
  padding: 2px 8px;
  border: 1px solid #00ff00;
}

.geo-hr {
  border: none;
  height: 3px;
  background: linear-gradient(90deg, red, orange, yellow, green, blue, purple);
  margin: 20px 0;
}

.geo-hr.rainbow {
  height: 5px;
  animation: rainbow 2s linear infinite;
}

@keyframes rainbow {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

.geo-section {
  margin: 20px 0;
  padding: 10px;
  border: 2px dashed #00ffff;
}

.geo-section h2 {
  color: #ff6600;
  font-size: 18px;
  margin-bottom: 10px;
  text-align: center;
}

.geo-section h2 img {
  width: 30px;
  height: 30px;
  vertical-align: middle;
}

.geo-intro {
  line-height: 1.6;
}

.geo-intro img.float-left {
  float: left;
  margin-right: 10px;
  width: 60px;
}

.geo-job {
  margin: 15px 0;
  padding: 10px;
  background: rgba(0, 0, 0, 0.5);
  border-left: 4px solid #ff00ff;
}

.geo-job h3 {
  color: #00ffff;
  font-size: 14px;
  margin-bottom: 5px;
}

.geo-job h3 img {
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

.geo-date {
  color: #808080;
  font-size: 11px;
  margin-bottom: 8px;
}

.geo-date img {
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

.geo-list {
  list-style: none;
  padding-left: 10px;
}

.geo-list li {
  margin: 5px 0;
  color: #00ff00;
}

.geo-list li::before {
  content: "► ";
  color: #ff00ff;
}

.geo-footer {
  text-align: center;
  margin-top: 30px;
  padding: 20px;
  border: 3px double #ffff00;
}

.geo-footer a {
  color: #00ffff;
}

.geo-footer img {
  width: 88px;
  height: 31px;
  margin: 5px;
  image-rendering: pixelated;
}

/* Outlook Express Styles */
.outlook-toolbar {
  background: var(--win95-gray);
  padding: 4px;
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--win95-dark);
}

.outlook-btn {
  background: var(--win95-gray);
  border: 2px solid;
  border-color: var(--win95-light) var(--win95-darker) var(--win95-darker) var(--win95-light);
  padding: 4px 12px;
  font-size: 11px;
  cursor: pointer;
}

.outlook-content {
  display: flex;
  flex-direction: column;
  background: var(--win95-gray);
}

.email-fields {
  padding: 8px;
  background: var(--win95-gray);
}

.email-field {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}

.email-field label {
  width: 60px;
  font-size: 11px;
}

.email-field input {
  flex: 1;
  border: 2px solid;
  border-color: var(--win95-dark) var(--win95-white) var(--win95-white) var(--win95-dark);
  padding: 2px 4px;
  font-size: 11px;
  font-family: inherit;
}

.email-body {
  flex: 1;
  padding: 0 8px 8px 8px;
}

.email-body textarea {
  width: 100%;
  height: 150px;
  border: 2px solid;
  border-color: var(--win95-dark) var(--win95-white) var(--win95-white) var(--win95-dark);
  padding: 4px;
  font-size: 11px;
  font-family: inherit;
  resize: none;
}

.email-note {
  padding: 8px;
  background: #ffffcc;
  border-top: 1px solid var(--win95-dark);
  font-size: 11px;
}

.email-note a {
  color: var(--win95-blue);
}

/* Folder Window Styles */
.folder-content {
  display: flex;
  background: white;
}

.folder-sidebar {
  width: 150px;
  background: linear-gradient(180deg, #6b9cd5 0%, #4a7ab8 100%);
  padding: 10px;
  color: white;
}

.folder-sidebar h4 {
  font-size: 11px;
  margin-bottom: 8px;
  font-weight: bold;
}

.folder-sidebar ul {
  list-style: none;
  font-size: 10px;
}

.folder-sidebar li {
  margin: 4px 0;
  cursor: pointer;
}

.folder-sidebar li:hover {
  text-decoration: underline;
}

.folder-main {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 20px;
}

.folder-item {
  width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  padding: 4px;
}

.folder-item img {
  width: 32px;
  height: 32px;
  margin-bottom: 4px;
  image-rendering: pixelated;
}

.folder-item span {
  font-size: 10px;
  word-break: break-word;
}

.folder-item:hover {
  background: #cce8ff;
}

/* Taskbar */
.taskbar {
  height: 34px;
  background: var(--win95-gray);
  border-top: 2px solid var(--win95-light);
  display: flex;
  align-items: center;
  padding: 2px 4px;
  gap: 4px;
}

.start-button {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--win95-gray);
  border: 2px solid;
  border-color: var(--win95-light) var(--win95-darker) var(--win95-darker) var(--win95-light);
  padding: 2px 6px;
  font-weight: bold;
  font-size: 11px;
  cursor: pointer;
  height: 22px;
}

.start-button img {
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
}

.start-button:active {
  border-color: var(--win95-darker) var(--win95-light) var(--win95-light) var(--win95-darker);
}

.taskbar-items {
  flex: 1;
  display: flex;
  gap: 2px;
  overflow: hidden;
}

.taskbar-item {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--win95-gray);
  border: 2px solid;
  border-color: var(--win95-light) var(--win95-darker) var(--win95-darker) var(--win95-light);
  padding: 2px 8px;
  font-size: 11px;
  cursor: pointer;
  height: 22px;
  min-width: 120px;
  max-width: 200px;
  overflow: hidden;
}

.taskbar-item.active {
  border-color: var(--win95-darker) var(--win95-light) var(--win95-light) var(--win95-darker);
  background: #dfdfdf;
}

.taskbar-item img {
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
}

.taskbar-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.system-tray {
  display: flex;
  align-items: center;
  border: 2px solid;
  border-color: var(--win95-dark) var(--win95-white) var(--win95-white) var(--win95-dark);
  padding: 2px 8px;
  height: 22px;
}

.time {
  font-size: 11px;
}

/* Window positioning defaults */
#window-cv {
  width: 700px;
  height: 500px;
  top: 30px;
  left: 100px;
}

#window-contact {
  width: 500px;
  height: 400px;
  top: 60px;
  left: 150px;
}

#window-social {
  width: 450px;
  height: 300px;
  top: 80px;
  left: 200px;
}

#window-media {
  width: 500px;
  height: 300px;
  top: 100px;
  left: 250px;
}

/* GeoCities Animated Icons */
.construction-icon {
  font-size: 40px;
  display: inline-block;
  animation: shake 0.5s ease-in-out infinite;
}

.blink {
  animation: blink 1s step-start infinite;
}

.new-badge {
  background: #ff0000;
  color: #ffff00;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 3px;
  text-transform: uppercase;
}

.spin {
  display: inline-block;
  animation: spin 2s linear infinite;
}

.bounce {
  display: inline-block;
  animation: bounce 0.6s ease-in-out infinite;
}

.wiggle {
  display: inline-block;
  animation: wiggle 0.3s ease-in-out infinite;
}

.fire {
  display: inline-block;
  animation: fire 0.2s ease-in-out infinite alternate;
}

.float-left {
  float: left;
  margin-right: 15px;
  font-size: 48px;
}

.computer-icon {
  animation: pulse 1s ease-in-out infinite;
}

.flag {
  font-size: 16px;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  margin: 4px;
  font-size: 10px;
  font-family: 'MS Sans Serif', sans-serif;
  border: 2px outset;
}

.badge.netscape {
  background: #006600;
  color: white;
  border-color: #009900 #003300 #003300 #009900;
}

.badge.ie {
  background: #0066cc;
  color: white;
  border-color: #0099ff #003366 #003366 #0099ff;
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

@keyframes fire {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Starfield background for geocities */
.geocities-page {
  background: #000033 url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><circle cx="10" cy="20" r="1" fill="white"/><circle cx="50" cy="10" r="0.5" fill="white"/><circle cx="80" cy="40" r="1" fill="white"/><circle cx="30" cy="70" r="0.5" fill="white"/><circle cx="90" cy="90" r="1" fill="white"/><circle cx="20" cy="50" r="0.5" fill="white"/><circle cx="70" cy="80" r="1" fill="white"/></svg>');
}

/* AIM Instant Messenger Styles */
.aim-window {
  background: #e8e8e0;
}

.aim-header {
  background: linear-gradient(180deg, #ffd700 0%, #ffa500 50%, #ff8c00 100%);
}

.aim-header .window-title {
  color: #000;
}

.aim-icon {
  font-size: 14px;
}

.aim-toolbar {
  background: linear-gradient(180deg, #f5f5e8 0%, #e8e8d8 100%);
  padding: 6px 10px;
  border-bottom: 1px solid #b8b8a8;
  display: flex;
  align-items: center;
}

.aim-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #333;
}

.aim-status-icon {
  font-size: 10px;
}

.aim-status-icon.online {
  color: #00cc00;
}

.aim-status-icon.away {
  color: #ffcc00;
}

.aim-status-icon.offline {
  color: #cc0000;
}

.aim-content {
  display: flex;
  flex-direction: column;
  background: #f5f5e8;
  padding: 0;
}

.aim-chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 8px;
}

.aim-buddy-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: linear-gradient(180deg, #fff 0%, #f0f0e0 100%);
  border: 1px solid #c8c8b8;
  border-radius: 4px;
  margin-bottom: 10px;
}

.aim-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  border: 2px solid #d4aa00;
}

.aim-buddy-details {
  flex: 1;
}

.aim-screenname {
  font-weight: bold;
  font-size: 14px;
  color: #0066cc;
}

.aim-away-msg {
  font-size: 11px;
  color: #666;
  font-style: italic;
  margin-top: 4px;
}

.aim-messages {
  flex: 1;
  background: #fff;
  border: 2px inset #c8c8b8;
  padding: 8px;
  overflow-y: auto;
  min-height: 100px;
  font-family: 'Arial', sans-serif;
  font-size: 12px;
}

.aim-message {
  margin-bottom: 8px;
  line-height: 1.4;
}

.aim-msg-name {
  font-weight: bold;
}

.aim-message-them .aim-msg-name {
  color: #cc0000;
}

.aim-message-me .aim-msg-name {
  color: #0000cc;
}

.aim-msg-text {
  color: #000;
}

.aim-msg-time {
  font-size: 10px;
  color: #888;
  margin-left: 8px;
}

.aim-input-area {
  padding: 8px;
  background: #e8e8d8;
  border-top: 1px solid #c8c8b8;
}

.aim-input-area textarea {
  width: 100%;
  border: 2px inset #c8c8b8;
  padding: 6px;
  font-size: 12px;
  font-family: 'Arial', sans-serif;
  resize: none;
  margin-bottom: 6px;
}

.aim-input-area textarea:focus {
  outline: none;
  border-color: #0066cc;
}

.aim-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.aim-send-btn {
  background: linear-gradient(180deg, #ffd700 0%, #ffb700 50%, #ffa500 100%);
  border: 1px solid #cc8800;
  padding: 6px 20px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 3px;
  color: #333;
}

.aim-send-btn:hover {
  background: linear-gradient(180deg, #ffe033 0%, #ffc933 50%, #ffb833 100%);
}

.aim-send-btn:active {
  background: linear-gradient(180deg, #ffa500 0%, #ff8c00 50%, #ff7700 100%);
}

.aim-extras {
  display: flex;
  gap: 8px;
  font-size: 16px;
  cursor: pointer;
}

.aim-extras span:hover {
  opacity: 0.7;
}

.aim-footer {
  padding: 6px 10px;
  background: #e0e0d0;
  border-top: 1px solid #c8c8b8;
  font-size: 10px;
  color: #666;
  text-align: center;
}

.aim-warning {
  color: #996600;
}

/* Start Menu Styles */
.start-menu {
  position: absolute;
  bottom: 28px;
  left: 0;
  background: var(--win95-gray);
  border: 2px solid;
  border-color: var(--win95-light) var(--win95-darker) var(--win95-darker) var(--win95-light);
  box-shadow: inset 1px 1px 0 var(--win95-white), inset -1px -1px 0 var(--win95-dark);
  display: flex;
  min-width: 200px;
  z-index: 10000;
}

.start-menu-sidebar {
  background: linear-gradient(180deg, var(--win95-blue) 0%, #000040 100%);
  width: 24px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 8px;
}

.start-menu-sidebar-text {
  color: #c0c0c0;
  font-weight: bold;
  font-size: 18px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 2px;
  text-shadow: 1px 1px 0 #000;
  white-space: nowrap;
}

.start-menu-items {
  flex: 1;
  padding: 4px 0;
}

.start-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 20px 6px 8px;
  cursor: pointer;
  font-size: 11px;
}

.start-menu-item:hover {
  background: var(--win95-blue);
  color: white;
}

.start-menu-item img {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
}

.start-menu-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.start-menu-divider {
  height: 1px;
  background: var(--win95-dark);
  margin: 4px 4px 4px 28px;
  border-bottom: 1px solid var(--win95-white);
}

.start-button.active {
  border-color: var(--win95-darker) var(--win95-light) var(--win95-light) var(--win95-darker);
  background: #dfdfdf;
}

/* Webring Styles */
.webring {
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid #00ffff;
  padding: 10px 15px;
  display: inline-block;
  margin: 10px 0;
}

.webring-title {
  display: block;
  color: #ffff00;
  font-size: 12px;
  margin-bottom: 8px;
  font-weight: bold;
}

.webring-nav {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.webring-nav a {
  color: #00ffff;
  text-decoration: none;
  font-size: 11px;
}

.webring-nav a:hover {
  color: #ff00ff;
  text-decoration: underline;
}

.webring-nav span {
  color: #808080;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  /* Desktop icons - allow random positioning on mobile too */
  .desktop-icons {
    position: relative;
    padding: 10px;
  }

  .icon {
    width: 70px;
  }

  .icon img {
    width: 40px;
    height: 40px;
  }

  .icon span {
    font-size: 10px;
  }

  /* Windows take full width on mobile */
  .window {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: calc(100vh - 28px) !important;
    height: calc(100dvh - 28px) !important; /* Safari address bar fix */
    min-width: unset;
    min-height: unset;
  }

  /* IE toolbar scrollable */
  .ie-toolbar {
    flex-wrap: wrap;
  }

  .ie-buttons {
    flex-wrap: wrap;
    gap: 2px;
  }

  .ie-buttons button {
    font-size: 9px;
    padding: 2px 4px;
  }

  .ie-address input {
    font-size: 9px;
  }

  /* GeoCities page adjustments - improved mobile readability */
  .geocities-page {
    padding: 12px;
    font-size: 14px;
    line-height: 1.5;
  }

  .geo-title {
    font-size: 16px;
  }

  .geo-section h2 {
    font-size: 15px;
  }

  .geo-section p,
  .geo-intro {
    font-size: 14px;
    line-height: 1.6;
  }

  .geo-job h3 {
    font-size: 14px;
    line-height: 1.4;
  }

  .geo-date {
    font-size: 12px;
  }

  .geo-list li {
    font-size: 13px;
    line-height: 1.5;
    margin: 8px 0;
  }

  .geo-visitor {
    font-size: 12px;
  }

  .geo-footer {
    font-size: 13px;
    line-height: 1.5;
  }

  .geo-footer marquee {
    font-size: 12px;
  }

  .construction-icon {
    font-size: 20px;
  }

  .float-left {
    float: none;
    display: block;
    text-align: center;
    margin-bottom: 10px;
    font-size: 32px;
  }

  /* AIM window adjustments */
  .aim-buddy-info {
    padding: 8px;
    gap: 8px;
  }

  .aim-avatar {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .aim-screenname {
    font-size: 12px;
  }

  /* Folder content stacks */
  .folder-content {
    flex-direction: column;
  }

  .folder-sidebar {
    width: 100%;
    padding: 8px;
  }

  .folder-main {
    gap: 15px;
  }

  .folder-item {
    width: 70px;
  }

  .folder-item img {
    width: 28px;
    height: 28px;
  }

  .folder-item span {
    font-size: 9px;
  }

  /* Start menu adjustments */
  .start-menu {
    width: 80%;
    max-width: 250px;
  }

  .start-menu-item img {
    width: 24px;
    height: 24px;
  }

  .start-menu-icon {
    width: 24px;
    height: 24px;
    font-size: 18px;
  }

  .start-menu-sidebar {
    width: 20px;
  }

  .start-menu-sidebar-text {
    font-size: 14px;
  }

  /* Taskbar */
  .taskbar {
    height: 32px;
  }

  .start-button {
    padding: 2px 4px;
  }

  .start-button span {
    display: none;
  }

  .taskbar-item {
    min-width: 60px;
    max-width: 100px;
    font-size: 9px;
  }

  .taskbar-item img {
    width: 14px;
    height: 14px;
  }

  /* Webring */
  .webring {
    padding: 8px 10px;
  }

  .webring-title {
    font-size: 10px;
  }

  .webring-nav {
    gap: 6px;
  }

  .webring-nav a {
    font-size: 9px;
  }
}

/* Solitaire Game Styles */
.solitaire-window {
  min-width: 600px;
  min-height: 500px;
}

.solitaire-header {
  background: linear-gradient(90deg, #000080 0%, #1084d0 100%);
}

.solitaire-menubar {
  background: var(--win95-gray);
  padding: 2px 4px;
  border-bottom: 1px solid var(--win95-dark);
  display: flex;
  gap: 4px;
}

.solitaire-menu-item {
  padding: 2px 8px;
  cursor: pointer;
  font-size: 12px;
}

.solitaire-menu-item:hover {
  background: var(--win95-blue);
  color: white;
}

.solitaire-menu-dropdown {
  position: relative;
  display: inline-block;
}

.solitaire-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--win95-gray);
  border: 2px solid;
  border-color: var(--win95-light) var(--win95-darker) var(--win95-darker) var(--win95-light);
  min-width: 150px;
  z-index: 1000;
}

.solitaire-menu-dropdown:hover .solitaire-dropdown-content {
  display: block;
}

.solitaire-dropdown-content div {
  padding: 4px 20px;
  cursor: pointer;
  font-size: 12px;
}

.solitaire-dropdown-content div:hover {
  background: var(--win95-blue);
  color: white;
}

.solitaire-content {
  background: #008000;
  padding: 10px;
  overflow: hidden;
  position: relative;
}

.solitaire-game {
  min-height: 400px;
  position: relative;
}

.solitaire-top-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.solitaire-stock-waste {
  display: flex;
  gap: 10px;
}

.solitaire-foundations {
  display: flex;
  gap: 10px;
}

.solitaire-tableau {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.solitaire-pile {
  width: 70px;
  min-height: 95px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  position: relative;
}

.solitaire-column {
  min-height: 200px;
}

.solitaire-stock {
  cursor: pointer;
  background: rgba(0, 0, 0, 0.2);
}

.solitaire-stock:hover {
  background: rgba(0, 0, 0, 0.3);
}

.solitaire-foundation {
  background: rgba(0, 0, 0, 0.15);
}

.solitaire-foundation::after {
  content: attr(data-suit);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  opacity: 0.4;
}

.solitaire-card {
  width: 70px;
  height: 95px;
  background: #fff;
  border: 1px solid #333;
  border-radius: 4px;
  position: absolute;
  cursor: pointer;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  user-select: none;
}

.solitaire-card.face-down {
  background: linear-gradient(135deg, #1e3a5f 25%, #2d5a87 25%, #2d5a87 50%, #1e3a5f 50%, #1e3a5f 75%, #2d5a87 75%);
  background-size: 8px 8px;
  cursor: default;
}

.solitaire-card.face-down::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  border: 1px solid #4a7ab0;
  border-radius: 2px;
}

.solitaire-card .red {
  color: #cc0000;
}

.solitaire-card .black {
  color: #000;
}

.card-rank {
  color: inherit;
}

.solitaire-card .card-corner {
  padding: 2px 4px;
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
}

.solitaire-card .card-corner-bottom {
  position: absolute;
  bottom: 2px;
  right: 4px;
  transform: rotate(180deg);
}

.solitaire-card .card-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.solitaire-card.dragging {
  z-index: 1000 !important;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
}

.solitaire-card.highlight {
  box-shadow: 0 0 10px 3px #ffff00;
}

.solitaire-statusbar {
  background: var(--win95-gray);
  padding: 2px 8px;
  font-size: 11px;
  border-top: 1px solid var(--win95-dark);
}

/* Win animation - cascade cards */
.solitaire-card.cascade-card {
  position: absolute;
  pointer-events: none;
}

/* Solitaire mobile - smaller cards and responsive layout */
@media (max-width: 768px) {
  .solitaire-window {
    min-width: unset !important;
    min-height: unset !important;
  }

  .solitaire-content {
    padding: 8px;
    overflow: auto;
  }

  .solitaire-game {
    min-height: unset;
    min-width: 320px;
    padding-top: 4px;
  }

  .solitaire-top-row {
    margin-bottom: 10px;
    gap: 5px;
  }

  .solitaire-stock-waste {
    gap: 5px;
  }

  .solitaire-foundations {
    gap: 5px;
  }

  .solitaire-tableau {
    gap: 5px;
  }

  .solitaire-pile {
    width: 42px;
    min-height: 58px;
    border-radius: 3px;
  }

  .solitaire-column {
    width: 42px;
    min-height: 120px;
  }

  .solitaire-card {
    width: 42px;
    height: 58px;
    border-radius: 3px;
  }

  .solitaire-card .card-corner {
    padding: 1px 2px;
    font-size: 9px;
  }

  .solitaire-card .card-center {
    font-size: 16px;
  }

  .solitaire-card .card-corner-bottom {
    bottom: 1px;
    right: 2px;
  }

  .solitaire-foundation::after {
    font-size: 14px;
  }

  .solitaire-menubar {
    padding: 2px;
  }

  .solitaire-menu-item {
    padding: 2px 6px;
    font-size: 11px;
  }

  .solitaire-statusbar {
    font-size: 10px;
    padding: 2px 4px;
  }
}

/* Setup Wizard Styles */
.setup-window {
  width: 500px;
  height: 420px;
}

.setup-header {
  background: linear-gradient(90deg, #000080 0%, #1084d0 100%);
}

.setup-content {
  background: var(--win95-gray);
  padding: 0;
  display: flex;
  flex-direction: column;
}

.setup-wizard {
  display: flex;
  flex: 1;
  min-height: 300px;
}

.setup-sidebar {
  width: 164px;
  background: linear-gradient(180deg, #000080 0%, #0000a8 50%, #000080 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.setup-wizard-graphic {
  text-align: center;
}

.wizard-hat {
  font-size: 64px;
  filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.5));
}

.setup-main {
  flex: 1;
  padding: 20px;
  background: var(--win95-gray);
  overflow-y: auto;
}

.setup-step h2 {
  margin: 0 0 15px 0;
  font-size: 14px;
  font-weight: bold;
  color: #000;
}

.setup-step p {
  margin: 0 0 12px 0;
  font-size: 11px;
  line-height: 1.5;
  color: #000;
}

.setup-info-box {
  background: #fff;
  border: 1px solid var(--win95-dark);
  padding: 10px;
  margin: 15px 0;
  font-size: 11px;
}

.setup-info-box ul {
  margin: 8px 0 0 20px;
  padding: 0;
}

.setup-info-box li {
  margin: 4px 0;
}

.setup-note {
  color: #666;
  font-style: italic;
}

/* Setup Options (Radio buttons) */
.setup-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.setup-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px;
  background: #fff;
  border: 2px solid var(--win95-dark);
  cursor: pointer;
  transition: background 0.1s;
}

.setup-option:hover {
  background: #e8e8e8;
}

.setup-option input[type="radio"] {
  margin-top: 3px;
}

.setup-option-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
}

.setup-option-content strong {
  font-size: 12px;
}

.setup-option-content span {
  color: #666;
}

.setup-option input[type="radio"]:checked + .setup-option-content strong {
  color: #000080;
}

/* Setup Checkboxes */
.setup-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.setup-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--win95-dark);
  cursor: pointer;
  font-size: 11px;
}

.setup-checkbox:hover {
  background: #f0f0f0;
}

.setup-checkbox input[type="checkbox"] {
  margin-top: 2px;
}

/* Setup Summary */
.setup-summary {
  font-size: 11px;
}

.setup-summary-section {
  margin-bottom: 15px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--win95-dark);
}

.setup-summary-section h3 {
  margin: 0 0 8px 0;
  font-size: 12px;
  color: #000080;
}

.setup-summary-item {
  display: flex;
  margin: 4px 0;
}

.summary-label {
  width: 100px;
  color: #666;
}

.summary-value {
  font-weight: bold;
}

.setup-features,
.setup-issues {
  margin: 0;
  padding-left: 20px;
}

.setup-features li,
.setup-issues li {
  margin: 4px 0;
}

.setup-summary-section.known-issues {
  background: #ffffcc;
  border-color: #cc9900;
}

.setup-summary-section.known-issues h3 {
  color: #996600;
}

/* Setup Complete */
.setup-complete {
  text-align: center;
  padding: 10px 0;
}

.setup-complete-icon {
  font-size: 48px;
  margin-bottom: 10px;
}

.setup-progress-complete {
  width: 100%;
  height: 20px;
  background: #fff;
  border: 2px solid var(--win95-dark);
  margin: 15px 0;
}

.progress-bar-complete {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #000080 0%, #0066cc 50%, #000080 100%);
  animation: progress-shine 2s ease-in-out infinite;
}

@keyframes progress-shine {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.setup-cta {
  margin: 20px 0;
  padding: 15px;
  background: #e8e8ff;
  border: 1px solid #000080;
}

.setup-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.setup-cta-btn {
  background: var(--win95-gray);
  border: 2px solid;
  border-color: var(--win95-light) var(--win95-darker) var(--win95-darker) var(--win95-light);
  padding: 8px 20px;
  font-size: 12px;
  cursor: pointer;
}

.setup-cta-btn:hover {
  background: #d4d4d4;
}

.setup-cta-btn:active {
  border-color: var(--win95-darker) var(--win95-light) var(--win95-light) var(--win95-darker);
}

.setup-restart-hint {
  color: #666;
  font-size: 10px;
  margin-top: 15px;
}

/* Setup Footer */
.setup-footer {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding: 10px;
  background: var(--win95-gray);
  border-top: 1px solid var(--win95-dark);
}

.setup-btn {
  background: var(--win95-gray);
  border: 2px solid;
  border-color: var(--win95-light) var(--win95-darker) var(--win95-darker) var(--win95-light);
  padding: 4px 16px;
  font-size: 11px;
  min-width: 70px;
  cursor: pointer;
}

.setup-btn:hover:not(:disabled) {
  background: #d4d4d4;
}

.setup-btn:active:not(:disabled) {
  border-color: var(--win95-darker) var(--win95-light) var(--win95-light) var(--win95-darker);
}

.setup-btn:disabled {
  color: #808080;
  cursor: default;
}

/* Mobile adjustments for setup wizard */
@media (max-width: 768px) {
  .setup-window {
    width: 100% !important;
    height: calc(100vh - 28px) !important;
    height: calc(100dvh - 28px) !important; /* Safari address bar fix */
  }

  .setup-sidebar {
    display: none;
  }

  .setup-main {
    padding: 15px;
  }

  .setup-option {
    padding: 8px;
  }
}

/* Extra small screens (iPhone SE, etc) */
@media (max-width: 375px) {
  .desktop-icons {
    gap: 15px;
    padding: 10px;
  }

  .icon img {
    width: 32px;
    height: 32px;
  }

  .geo-title {
    font-size: 14px;
  }

  .geo-section {
    padding: 8px;
  }

  .badge {
    display: block;
    margin: 4px auto;
  }
}

/* Desktop Context Menu */
.context-menu {
  position: fixed;
  background: var(--win95-gray);
  border: 2px solid;
  border-color: var(--win95-light) var(--win95-darker) var(--win95-darker) var(--win95-light);
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  min-width: 180px;
  padding: 2px;
  z-index: 99998;
  font-size: 11px;
}

.context-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 20px 4px 8px;
  cursor: pointer;
  white-space: nowrap;
}

.context-menu-item:hover:not(.disabled) {
  background: var(--win95-blue);
  color: white;
}

.context-menu-item.disabled {
  color: #808080;
  cursor: default;
}

.context-menu-item .menu-icon {
  width: 16px;
  text-align: center;
}

.context-menu-divider {
  height: 1px;
  background: var(--win95-dark);
  margin: 3px 2px;
  border-bottom: 1px solid var(--win95-white);
}

.context-menu-item .submenu-arrow {
  margin-left: auto;
  font-size: 8px;
}

/* Recycle Bin Window */
.recycle-content {
  padding: 10px;
}

.recycle-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-bottom: 1px solid #e0e0e0;
  cursor: pointer;
}

.recycle-item:hover {
  background: #e8f4ff;
}

.recycle-item:last-child {
  border-bottom: none;
}

.recycle-item-icon {
  font-size: 24px;
  width: 32px;
  text-align: center;
}

.recycle-item-info {
  flex: 1;
}

.recycle-item-name {
  font-weight: bold;
  font-size: 12px;
  color: #333;
}

.recycle-item-date {
  font-size: 10px;
  color: #808080;
}

.recycle-item-size {
  font-size: 10px;
  color: #808080;
}

/* Screensaver */
.screensaver {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  z-index: 999998;
  cursor: none;
  overflow: hidden;
}

.screensaver-star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
}

.screensaver-toaster {
  position: absolute;
  font-size: 48px;
  animation: toaster-fly 8s linear infinite;
}

@keyframes toaster-fly {
  from {
    transform: translate(100vw, -50px);
  }
  to {
    transform: translate(-100px, 100vh);
  }
}

/* BSOD Screen */
.bsod {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0000aa;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Courier New', monospace;
  color: #fff;
  padding: 20px;
}

.bsod-content {
  max-width: 700px;
  text-align: center;
}

.bsod-title {
  background: #aaa;
  color: #0000aa;
  padding: 2px 8px;
  display: inline-block;
  margin-bottom: 20px;
  font-weight: bold;
}

.bsod-text {
  text-align: left;
  line-height: 1.8;
  font-size: 16px;
}

.bsod-continue {
  margin-top: 30px;
  animation: blink 1s step-start infinite;
}

/* Properties Dialog */
.properties-dialog {
  background: var(--win95-gray);
  border: 2px solid;
  border-color: var(--win95-light) var(--win95-darker) var(--win95-darker) var(--win95-light);
  padding: 2px;
  font-family: 'MS Sans Serif', sans-serif;
  font-size: 11px;
  width: 380px;
}

.properties-content {
  padding: 15px;
  background: var(--win95-gray);
}

.properties-section {
  margin-bottom: 15px;
}

.properties-section h4 {
  margin: 0 0 8px 0;
  font-size: 11px;
  color: #000080;
}

.properties-row {
  display: flex;
  margin: 4px 0;
}

.properties-label {
  width: 120px;
  color: #333;
}

.properties-value {
  color: #000;
}

/* MS Paint Styles */
.paint-window {
  min-width: 500px;
  min-height: 400px;
}

.paint-header {
  background: linear-gradient(90deg, #000080 0%, #1084d0 100%);
}

.paint-menubar {
  background: var(--win95-gray);
  padding: 2px 4px;
  border-bottom: 1px solid var(--win95-dark);
  display: flex;
  gap: 4px;
}

.paint-menu-item {
  padding: 2px 8px;
  cursor: pointer;
  font-size: 12px;
}

.paint-menu-item:hover {
  background: var(--win95-blue);
  color: white;
}

.paint-menu-dropdown {
  position: relative;
  display: inline-block;
}

.paint-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--win95-gray);
  border: 2px solid;
  border-color: var(--win95-light) var(--win95-darker) var(--win95-darker) var(--win95-light);
  min-width: 120px;
  z-index: 1000;
}

.paint-menu-dropdown:hover .paint-dropdown-content {
  display: block;
}

.paint-dropdown-content div {
  padding: 4px 20px;
  cursor: pointer;
  font-size: 12px;
}

.paint-dropdown-content div:hover {
  background: var(--win95-blue);
  color: white;
}

.paint-content {
  display: flex;
  flex-direction: column;
  background: var(--win95-gray);
  padding: 0;
}

.paint-toolbar {
  display: flex;
  gap: 8px;
  padding: 4px;
  background: var(--win95-gray);
  border-bottom: 1px solid var(--win95-dark);
  flex-wrap: wrap;
}

.paint-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 2px;
  background: var(--win95-gray);
  border: 2px solid;
  border-color: var(--win95-dark) var(--win95-white) var(--win95-white) var(--win95-dark);
}

.paint-tool {
  width: 26px;
  height: 26px;
  background: var(--win95-gray);
  border: 2px solid;
  border-color: var(--win95-light) var(--win95-darker) var(--win95-darker) var(--win95-light);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.paint-tool:hover {
  background: #d4d4d4;
}

.paint-tool.active {
  border-color: var(--win95-darker) var(--win95-light) var(--win95-light) var(--win95-darker);
  background: #d4d4d4;
}

.paint-sizes {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 2px;
  background: var(--win95-gray);
  border: 2px solid;
  border-color: var(--win95-dark) var(--win95-white) var(--win95-white) var(--win95-dark);
}

.paint-size {
  width: 20px;
  height: 16px;
  background: var(--win95-gray);
  border: 1px solid var(--win95-dark);
  cursor: pointer;
  font-size: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.paint-size.active {
  background: #d4d4d4;
  border: 2px solid var(--win95-blue);
}

.paint-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 4px;
  background: #808080;
  overflow: auto;
}

#paint-canvas {
  background: #ffffff;
  cursor: crosshair;
  box-shadow: inset 1px 1px 0 var(--win95-dark), inset -1px -1px 0 var(--win95-white);
}

.paint-palette {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  background: var(--win95-gray);
  border-top: 1px solid var(--win95-white);
}

.paint-color-preview {
  position: relative;
  width: 32px;
  height: 32px;
}

.paint-fg-color {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background: #000000;
  border: 2px solid;
  border-color: var(--win95-dark) var(--win95-white) var(--win95-white) var(--win95-dark);
  z-index: 2;
}

.paint-bg-color {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border: 2px solid;
  border-color: var(--win95-dark) var(--win95-white) var(--win95-white) var(--win95-dark);
  z-index: 1;
}

.paint-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  padding: 2px;
  background: var(--win95-gray);
  border: 2px solid;
  border-color: var(--win95-dark) var(--win95-white) var(--win95-white) var(--win95-dark);
}

.paint-color {
  width: 16px;
  height: 16px;
  cursor: pointer;
  border: 1px solid #000;
}

.paint-color:hover {
  border: 2px solid #fff;
}

.paint-statusbar {
  background: var(--win95-gray);
  padding: 2px 8px;
  font-size: 11px;
  border-top: 1px solid var(--win95-dark);
}

/* Paint mobile adjustments */
@media (max-width: 768px) {
  .paint-window {
    min-width: unset !important;
    min-height: unset !important;
  }

  .paint-toolbar {
    padding: 2px;
    gap: 4px;
  }

  .paint-tool {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .paint-size {
    width: 24px;
    height: 20px;
  }

  .paint-main {
    padding: 2px;
  }

  #paint-canvas {
    max-width: 100%;
    height: auto;
  }

  .paint-palette {
    padding: 2px;
    gap: 4px;
  }

  .paint-color {
    width: 20px;
    height: 20px;
  }

  .paint-colors {
    max-width: calc(100% - 50px);
  }
}
