html {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}


body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: pink;
    background-image: url("img/wallpaper.gif");
    background-repeat: repeat;
    background-position: top left;
    background-attachment: fixed;
    font-family: 'Courier New', monospace;
    cursor: url("cursors/normal.cur"), auto;
}

.desktop {
    height: 100vh;
    width: 100vw;
    position: relative;
    cursor: url("cursors/normal.cur"), auto;
}

body::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: auto;
    cursor: url("cursors/normal.cur"), auto;
}

/* Custom Cursors */
input,
textarea {
    cursor: url("cursors/text.cur"), text;
}

a {
    cursor: url("cursors/link.cur"), pointer;
}

button,
.browser-btn,
.close-btn,
#startButton {
    font-weight: bold;
    font-family: 'Courier New', monospace;
    cursor: url("cursors/link.cur"), pointer;
}

.title-bar {
  background: linear-gradient(to bottom, #fdfdfd, #d8d8d8);
  border-bottom: 2px solid #b0b0b0;
  padding: 2px 6px;
    font-family: 'Courier New', monospace;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  height: 24px;
  box-shadow: inset -1px -1px 0 #fff, inset 1px 1px 0 #888;
}

.title-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 4px;
    image-rendering: pixelated;
}


.resize-handle.horizontal {
    cursor: url("cursors/horizonta resize.cur"), ew-resize;
}

.resize-handle.vertical {
    cursor: url("cursors/vertical resize.cur"), ns-resize;
}

.resize-handle.upleft {
    cursor: url("cursors/uperleft.cur"), nwse-resize;
}

.resize-handle.upright {
    cursor: url("cursors/upper right.cur"), nesw-resize;
}

.icon-wrapper {
    position: absolute;
    width: 90px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    user-select: none;
    z-index: 1;
}

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

.icon-label {
    font-size: 12px;
    line-height: 1.2;
    color: #222;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    padding: 1px 4px;
    pointer-events: none;
    max-width: 80px;
    word-wrap: break-word;
}

.window {
    position: absolute;
    width: 300px;
    border: 2px solid #222;
    background: #fff0f8;
    box-shadow: 5px 5px 0 #e197c0;
    display: none;
    z-index: 10;
}

.window-buttons {
  display: flex;
  gap: 4px;
  align-items: center;
}

.min-btn, .close-btn {
  background: #f0f0f0;
  border: 2px outset #ccc;
  font-size: 12px;
  padding: 4px 5px;
    font-family: 'Courier New', monospace;
  cursor: pointer;
  line-height: 1;
}

.min-btn:hover,
.close-btn:hover {
  background: #e0e0e0;
}

.window-body {
    padding: 10px;
    font-size: 14px;
    color: #444;
}

textarea {
    width: 100%;
    height: auto;
    box-sizing: border-box;
    resize: vertical;
    font-family: 'Courier New', monospace;
    padding: 5px;
    border: 1px solid #ccc;
    background-color: #fff8fc;
    color: #333;
}

.window-body button {
    margin: 4px;
    background: #f69cd4;
    border: none;
    color: white;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 6px;
}

#startMenu {
  width: 220px;
  background: linear-gradient(to bottom, #ffe6f0, #ffd6e8);
  border: 2px solid #b080b0;
  padding: 6px;
    font-family: 'Courier New', monospace;
  position: absolute;
  bottom: 28px;
  left: 6px;
  display: none;
  z-index: 999;
  box-shadow: 2px 2px 0 #800050;
}

.start-icon {
  width: 20px;
  height: 20px;
  margin-right: 6px;
  vertical-align: middle;
  image-rendering: pixelated;
}

.start-header {
  display: flex;
  align-items: center;
  padding: 6px;
  margin-bottom: 6px;
  border: 2px inset #fff;
  background: #ffeef8;
}

.start-avatar {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border: 2px outset #fff;
  margin-right: 6px;
}

.start-profile-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.start-username {
  font-weight: bold;
  font-size: 13px;
  color: #800050;
}

.start-tagline {
  font-size: 11px;
  color: #a06080;
}

.start-menu-items {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 13px;
    color: #400030;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.start-item {

  background: #ffeef8;
  padding: 4px 6px;
  border: 2px outset #fff;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 13px;

  color: #400030;
  cursor: pointer;
}

.start-item:hover {
  background: #ffc4e2;
  border: 2px inset #aa77a0;
}

.start-folder {
font-family: 'Courier New', monospace;
font-weight: bold;
font-size: 13px;
color: #400030;
  position: relative;
  padding: 4px 6px;
  background: #ffeef8;
  border: 2px outset #fff;
  cursor: pointer;
}

.start-folder:hover {
  background: #ffc4e2;
  border: 2px inset #aa77a0;
}

.folder-label {
  font-weight: bold;
  font-size: 13px;
  color: #600040;
}

.start-submenu {
  display: none;
  position: absolute;
  bottom: 0;
  left: 100%;
  background: #ffeef8;
  border: 2px solid #b080b0;
  padding: 4px;
  z-index: 1000;
  min-width: 180px;
}

.start-folder:hover .start-submenu {
  display: block;
}



#taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 32px;
    background: linear-gradient(to bottom, #ffd9ec, #ffc3e6);
    border-top: 2px solid #e197c0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
    box-sizing: border-box;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #82275f;
    box-shadow:
        inset 0 2px #fff,
        0 -1px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    backdrop-filter: blur(3px);
}

#taskbar-left {
    font-weight: bold;
}

#taskbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.taskbar-buttons {
  display: flex;
  gap: 4px;
  flex-grow: 1;
  justify-content: flex-start;
  padding-left: 8px;
}

.taskbar-btn {
  background: #f0f0f0;
  border: 2px outset #ccc;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: bold;
  font-family: 'Courier New', monospace;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}

.taskbar-btn.active {
  border: 2px inset #999;
  background: #d0d0d0;
}

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



.notification {
    position: fixed;
    bottom: 40px;
    right: 10px;
    background: #fff8fc;
    border: 2px solid #e197c0;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    color: #222;
    z-index: 999;
    animation: fadeInOut 6s ease-in-out forwards;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

#selfieWindow {
    z-index: 20;
}

.blinky-frame {
    display: inline-block;
    padding: 4px;
    border: 4px dashed hotpink;
    animation: blink 0.5s infinite alternate;
    background-color: #fff0f8;
    box-shadow:
        0 0 10px #ff8dd4,
        0 0 20px #ff8dd4;
    border-radius: 12px;
}

@keyframes blink {
    0% {
        border-color: hotpink;
        box-shadow: 0 0 10px #ff8dd4;
    }
    100% {
        border-color: deeppink;
        box-shadow: 0 0 20px #ff33a6;
    }
}

.mail-table {
    width: 100%;
    font-family: 'Courier New', monospace;
    border-collapse: collapse;
    font-size: 13px;
}

.mail-table th,
.mail-table td {
    border-bottom: 1px solid #ddd;
    padding: 4px;
    text-align: left;
}

.mail-table tr:hover {
    background-color: #ffe6f2;
    cursor: url("cursors/link.cur"), pointer;
}

.mail-thread {
    background: #fff0f8;
    padding: 8px;
    border: 1px dashed #f69cd4;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    height: 160px;
    overflow-y: auto;
    margin: 8px 0;
}

.mail-message {
    margin-bottom: 8px;
    white-space: pre-wrap;
}

.mail-message.you {
    color: #444;
}

.mail-message.them {
    color: #82275f;
    font-style: italic;
}

#replyInput {
    width: 100%;
    font-family: 'Courier New', monospace;
    border: 1px solid #ddd;
    padding: 5px;
    background: #fff;
    box-sizing: border-box;
}

.browser-window {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.browser-header {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background-color: #ffecf7;
    border: 1px solid #e197c0;
    border-radius: 6px;
}

.browser-btn {
    background: #f69cd4;
    color: white;
    font-weight: bold;
    border: none;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 14px;
}

.browser-address {
    flex: 1;
    padding: 4px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    background: white;
    font-size: 13px;
}

.browser-tabs {
    display: flex;
    gap: 4px;
    padding: 0 4px;
}

.tab {
    background: #ffd9ec;
    padding: 4px 8px;
    border: 1px solid #e197c0;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    color: #82275f;
}

.active-tab {
    background: #fff0f8;
    color: #000;
}

.browser-content {
    padding: 8px;
    background: #fff0f8;
    border: 1px solid #e197c0;
    border-radius: 0 0 6px 6px;
    font-size: 14px;
    color: #333;
}

.browser-content h3 {
    margin-top: 0;
    color: #c22882;
}

.browser-links {
    list-style-type: none;
    padding-left: 0;
}

.browser-links li {
    margin: 4px 0;
}

.browser-links a {
    color: #c22882;
    text-decoration: none;
}

.browser-links a:hover {
    text-decoration: underline;
}

#mailApp {
    resize: both;
    overflow: auto;
    min-width: 300px;
    min-height: 200px;
}

/* Bloopchat IM-style */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 6px;
    font-size: 13px;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    background: #ffe6f2;
    border: 1px solid #e197c0;
    border-radius: 6px;
    font-weight: bold;
    position: relative;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.online {
    background: #4ade80;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.7);
}

.chat-title {
    flex: 1;
}

.small-btn {
    background: none;
    border: none;
    font-size: 12px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    background: #f69cd4;
    color: white;
}

.messages {
    flex: 1;
    overflow-y: auto;
    padding: 6px;
    background: #fff0f8;
    border: 1px dashed #f69cd4;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 220px;
}

.message-bubble {
    display: inline-block;
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 18px;
    line-height: 1.3;
    word-wrap: break-word;
    font-size: 13px;
    position: relative;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.message-bubble.you {
    align-self: flex-end;
    background: #daf1ff;
    border: 1px solid #a1d1f0;
    margin-left: auto;
}

.message-bubble.them {
    align-self: flex-start;
    background: #ffe6f2;
    border: 1px solid #e197c0;
    margin-right: auto;
}

.message-bubble .sender-name {
    font-weight: bold;
    font-size: 11px;
    color: #444;
    margin-bottom: 2px;
}

.message-meta {
    font-size: 9px;
    color: #777;
    text-align: right;
    margin-top: 4px;
}

.chat-input-wrapper {
    display: flex;
    gap: 4px;
    margin-top: 4px;
}

#bloopchatInput {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #e197c0;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    background: white;
}

#sendBloop {
    background: #f69cd4;
    border: none;
    border-radius: 8px;
    padding: 0 12px;
    font-weight: bold;
    cursor: pointer;
    color: white;
}

.subtle-hint {
    font-size: 10px;
    color: #555;
    margin-top: 4px;
    text-align: center;
}

.sparkle-canvas {
  position: absolute;
  pointer-events: none;
  z-index: 9999;
}

.explorer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 10px;
    position: relative;
    z-index: 2; /* makes sure it's above anything weird */
}

.explorer-icon {
    width: 64px;
    text-align: center;
    font-size: 12px;
    cursor: default;
    z-index: 2;
}

.explorer-icon img {
    width: 48px;
    height: 48px;
    image-rendering: pixelated;
    pointer-events: none;
}

.icon-label {
    margin-top: 4px;
    color: black;
}

.text-viewer {
    white-space: pre-wrap;
    background: #fff;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    padding: 8px;
    border: 2px inset #c0c0c0;
    max-height: 300px;
    overflow-y: auto;
    color: #000;
    line-height: 1.4;
}
