/* Windows 95 Color Palette */
:root {
    --win95-gray: #c0c0c0;
    --win95-dark-gray: #808080;
    --win95-light-gray: #dfdfdf;
    --win95-blue: #000080;
    --win95-light-blue: #0000ff;
    --win95-teal: #008080;
    --win95-highlight: #000080;
    --win95-highlight-text: #ffffff;
    --win95-desktop: #008080;
}

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

body {
    font-family: "MS Sans Serif", "Microsoft Sans Serif", sans-serif;
    font-size: 11px;
    background-color: var(--win95-desktop);
    overflow: hidden;
    height: 100vh;
    position: relative;
    touch-action: manipulation;
}

/* Login Screen */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--win95-desktop);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 1;
    transition: opacity 1s ease-out;
}

.login-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.login-container {
    text-align: center;
    color: white;
}

.login-logo {
    margin-bottom: 40px;
}

.windows-logo {
    display: inline-flex;
    gap: 3px;
    margin-bottom: 15px;
}

.logo-flag {
    width: 30px;
    height: 40px;
    transform: skewY(-10deg);
}

.logo-red {
    background-color: #ff0000;
}

.logo-green {
    background-color: #00ff00;
}

.logo-blue {
    background-color: #0000ff;
}

.logo-yellow {
    background-color: #ffff00;
}

.login-title {
    font-size: 36px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.title-95 {
    font-style: italic;
}

.login-prompt {
    margin-bottom: 30px;
    font-size: 14px;
}

.login-user-box {
    background-color: var(--win95-gray);
    border: 2px outset white;
    padding: 20px 40px;
    display: inline-block;
    margin-bottom: 30px;
}

.user-icon {
    margin-bottom: 10px;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border: 3px solid #000080;
    image-rendering: pixelated;
    object-fit: cover;
}

.login-button {
    background-color: var(--win95-gray);
    border: 3px outset white;
    padding: 8px 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    min-width: 150px;
    -webkit-tap-highlight-color: transparent;
}

.login-button:active {
    border-style: inset;
}

.login-button:hover {
    background-color: var(--win95-light-gray);
}

.login-username {
    display: block;
}

.login-footer {
    font-size: 11px;
    color: white;
}

/* Desktop */
.desktop {
    height: calc(100vh - 40px);
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fill, 80px);
    grid-auto-rows: 90px;
    gap: 20px;
    align-content: start;
    opacity: 0;
    transition: opacity 1s ease-in;
}

.desktop.visible {
    opacity: 1;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    color: white;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}

.desktop-icon:active {
    background-color: rgba(0, 0, 128, 0.5);
    border: 1px dotted white;
}

.desktop-icon img {
    width: 48px;
    height: 48px;
    image-rendering: pixelated;
}

.desktop-icon span {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    font-size: 11px;
    max-width: 70px;
    word-wrap: break-word;
}

/* Taskbar */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background-color: var(--win95-gray);
    border-top: 2px solid white;
    display: flex;
    align-items: center;
    padding: 2px;
    gap: 2px;
    z-index: 10000;
}

.start-button {
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    cursor: pointer;
    height: 32px;
    -webkit-tap-highlight-color: transparent;
}

.start-button:active {
    opacity: 0.9;
}

.start-icon {
    height: 28px;
    width: auto;
    image-rendering: pixelated;
}

.taskbar-apps {
    flex: 1;
    display: flex;
    gap: 2px;
    overflow-x: auto;
    overflow-y: hidden;
}

.taskbar-app {
    background-color: var(--win95-gray);
    border: 2px outset white;
    padding: 4px 8px;
    cursor: pointer;
    white-space: nowrap;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-tap-highlight-color: transparent;
}

.taskbar-app.active {
    border-style: inset;
}

.system-tray {
    border: 2px inset var(--win95-gray);
    padding: 4px 8px;
    background-color: var(--win95-gray);
    min-width: 60px;
    text-align: center;
}

/* Start Menu */
.start-menu {
    position: fixed;
    bottom: 42px;
    left: 2px;
    width: min(280px, calc(100vw - 20px));
    background-color: var(--win95-gray);
    border: 2px outset white;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
}

.start-menu-sidebar {
    background: linear-gradient(to right, #000080, #1084d0);
    color: white;
    padding: 8px;
    font-size: 24px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    float: left;
    height: 100%;
}

.start-menu-items {
    margin-left: 40px;
    padding: 4px;
}

.menu-item {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.menu-item:hover {
    background-color: var(--win95-highlight);
    color: var(--win95-highlight-text);
}

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

.menu-separator {
    height: 1px;
    background-color: var(--win95-dark-gray);
    margin: 4px 0;
}

/* Window Styling */
.window {
    position: fixed;
    background-color: var(--win95-gray);
    border: 2px outset white;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
    min-width: 300px;
    max-width: calc(100vw - 20px);
    max-height: calc(100vh - 60px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.window.maximized {
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: calc(100vh - 40px) !important;
    max-width: 100vw !important;
    max-height: calc(100vh - 40px) !important;
}

.title-bar {
    background: linear-gradient(to right, #000080, #1084d0);
    color: white;
    padding: 3px 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    font-weight: bold;
    -webkit-tap-highlight-color: transparent;
}

.title-bar-text {
    flex: 1;
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.title-bar-controls button {
    width: 20px;
    height: 18px;
    background-color: var(--win95-gray);
    border: 2px outset white;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.title-bar-controls button:active {
    border-style: inset;
}

.menu-bar {
    background-color: var(--win95-gray);
    border-bottom: 1px solid var(--win95-dark-gray);
    padding: 4px 8px;
    display: flex;
    gap: 15px;
    font-size: 11px;
}

.toolbar {
    background-color: var(--win95-gray);
    border-bottom: 2px groove white;
    padding: 4px;
    display: flex;
    gap: 4px;
}

.toolbar button {
    background-color: var(--win95-gray);
    border: 2px outset white;
    padding: 4px 12px;
    cursor: pointer;
    font-size: 11px;
    -webkit-tap-highlight-color: transparent;
}

.toolbar button:active {
    border-style: inset;
}

.window-body {
    flex: 1;
    padding: 10px;
    overflow: auto;
    background-color: white;
}

.status-bar {
    background-color: var(--win95-gray);
    border-top: 2px groove white;
    padding: 4px 8px;
    font-size: 11px;
}

/* Email Client */
.email-client {
    height: 100%;
}

.inbox-list {
    border: 2px inset var(--win95-gray);
    background-color: white;
    min-height: 300px;
}

.email-item {
    padding: 8px 12px;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: start;
    -webkit-tap-highlight-color: transparent;
}

.email-item:hover {
    background-color: var(--win95-highlight);
    color: var(--win95-highlight-text);
}

.email-item.unread {
    font-weight: bold;
}

.email-icon {
    width: 16px;
    height: 16px;
    margin-top: 2px;
}

.email-info {
    min-width: 0;
}

.email-subject {
    font-size: 12px;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.email-preview {
    font-size: 10px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.email-item:hover .email-preview {
    color: #ccc;
}

/* Email Detail */
.email-detail {
    padding: 10px;
}

.email-header {
    border-bottom: 2px solid var(--win95-gray);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.email-header-row {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
    font-size: 11px;
}

.email-header-label {
    font-weight: bold;
    min-width: 60px;
}

.email-content {
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.email-image {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
    border: 2px inset var(--win95-gray);
}

/* QuickTime-style Video Player */
.email-video-player {
    margin: 15px 0;
    max-width: 100%;
}

.video-player-container {
    background-color: #000;
    border: 2px outset var(--win95-gray);
    padding: 4px;
    display: inline-block;
    max-width: 100%;
}

.video-player-screen {
    background-color: #000;
    border: 2px inset #333;
    position: relative;
    max-width: 100%;
}

.video-player-screen video {
    display: block;
    width: 100%;
    max-width: 640px;
    height: auto;
    background-color: #000;
}

.video-controls {
    background: linear-gradient(to bottom, #e0e0e0, #c0c0c0);
    border-top: 2px solid #fff;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-control-btn {
    background-color: var(--win95-gray);
    border: 2px outset white;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    -webkit-tap-highlight-color: transparent;
}

.video-control-btn:active {
    border-style: inset;
}

.video-control-btn:disabled {
    color: var(--win95-dark-gray);
    cursor: not-allowed;
}

.video-timeline {
    flex: 1;
    height: 20px;
    background-color: var(--win95-gray);
    border: 2px inset white;
    position: relative;
    cursor: pointer;
}

.video-progress {
    height: 100%;
    background: linear-gradient(to bottom, #000080, #0000ff);
    width: 0%;
    transition: width 0.1s;
}

.video-time {
    font-size: 10px;
    font-family: 'Courier New', monospace;
    min-width: 80px;
    text-align: center;
    background-color: #000;
    color: #00ff00;
    border: 1px inset #333;
    padding: 2px 4px;
}

.video-volume-control {
    display: flex;
    align-items: center;
    gap: 4px;
}

.video-volume-slider {
    width: 60px;
    height: 20px;
    background-color: var(--win95-gray);
    border: 2px inset white;
    cursor: pointer;
    position: relative;
}

.video-volume-level {
    height: 100%;
    background: linear-gradient(to right, #008000, #00ff00);
    width: 100%;
    transition: width 0.1s;
}

/* About Window */
.about-window {
    width: 320px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.about-content {
    text-align: center;
    padding: 20px;
}

.about-content h2 {
    color: var(--win95-blue);
    margin-bottom: 15px;
}

.about-content p {
    margin-bottom: 10px;
    line-height: 1.4;
}

.about-content button {
    background-color: var(--win95-gray);
    border: 2px outset white;
    padding: 6px 24px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
    min-width: 75px;
    -webkit-tap-highlight-color: transparent;
}

.about-content button:active {
    border-style: inset;
}

/* Clippy Assistant */
.clippy {
    position: fixed;
    bottom: 60px;
    right: 20px;
    z-index: 9998;
    animation: clippy-enter 0.5s ease-out;
}

@keyframes clippy-enter {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.clippy.hidden {
    display: none;
}

.clippy-character {
    width: 120px;
    height: 120px;
    animation: clippy-bounce 2s ease-in-out infinite;
}

.clippy-character img {
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
    object-fit: contain;
}

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

.clippy-bubble {
    position: absolute;
    right: 130px;
    bottom: 40px;
    background-color: #ffffcc;
    border: 2px solid black;
    padding: 10px 15px;
    border-radius: 10px;
    max-width: 200px;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
}

.clippy-bubble::after {
    content: "";
    position: absolute;
    right: -15px;
    bottom: 20px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 15px;
    border-color: transparent transparent transparent #ffffcc;
}

.clippy-bubble::before {
    content: "";
    position: absolute;
    right: -18px;
    bottom: 19px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 11px 0 11px 16px;
    border-color: transparent transparent transparent black;
}

.clippy-message {
    font-size: 11px;
    line-height: 1.4;
}

.clippy-close {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background-color: var(--win95-gray);
    border: 2px outset white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.clippy-close:active {
    border-style: inset;
}

/* Artsweeper Game Styles */
.artsweeper-game {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 300px;
    background-color: var(--win95-gray);
    border: 3px inset white;
    padding: 8px 12px;
    margin-bottom: 10px;
}

.game-counter {
    background-color: #000;
    color: #ff0000;
    font-family: 'Courier New', monospace;
    font-size: 24px;
    font-weight: bold;
    padding: 4px 8px;
    border: 2px inset var(--win95-gray);
    min-width: 60px;
    text-align: center;
}

.game-face {
    width: 40px;
    height: 40px;
    background-color: var(--win95-gray);
    border: 3px outset white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.game-face:active {
    border-style: inset;
}

.game-board {
    display: grid;
    grid-template-columns: repeat(8, 32px);
    gap: 0;
    border: 3px inset white;
    background-color: var(--win95-gray);
}

.game-cell {
    width: 32px;
    height: 32px;
    background-color: var(--win95-gray);
    border: 2px outset white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    -webkit-tap-highlight-color: transparent;
}

.game-cell:active {
    border-style: inset;
}

.game-cell.revealed {
    border: 1px solid var(--win95-dark-gray);
    background-color: #bdbdbd;
    cursor: default;
}

.game-cell.flagged::after {
    content: "🚩";
    font-size: 16px;
}

.game-cell.heart::after {
    content: "💖";
    font-size: 18px;
}

.game-cell.number-1 { color: #0000ff; }
.game-cell.number-2 { color: #008000; }
.game-cell.number-3 { color: #ff0000; }
.game-cell.number-4 { color: #000080; }
.game-cell.number-5 { color: #800000; }
.game-cell.number-6 { color: #008080; }
.game-cell.number-7 { color: #000000; }
.game-cell.number-8 { color: #808080; }

/* Memories Gallery Styles */
.memories-gallery {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 400px;
}

.gallery-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background-color: var(--win95-gray);
    border-bottom: 2px groove white;
    gap: 10px;
}

.gallery-toolbar button {
    background-color: var(--win95-gray);
    border: 2px outset white;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 11px;
    -webkit-tap-highlight-color: transparent;
}

.gallery-toolbar button:active {
    border-style: inset;
}

.gallery-toolbar button:disabled {
    color: var(--win95-dark-gray);
    cursor: not-allowed;
}

.gallery-canvas {
    flex: 1;
    background-color: white;
    border: 2px inset var(--win95-gray);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    max-height: 500px;
}

.gallery-display {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.gallery-display img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border: 1px solid #ccc;
}

.gallery-caption {
    background-color: var(--win95-gray);
    border-top: 2px groove white;
    padding: 10px 12px;
    font-size: 11px;
    min-height: 40px;
    text-align: center;
    font-style: italic;
    color: #000;
}

/* Compose Email Form */
.compose-form {
    padding: 10px;
}

.compose-field {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.compose-field label {
    font-weight: bold;
    min-width: 60px;
}

.compose-field input,
.compose-field textarea {
    flex: 1;
    padding: 4px;
    border: 2px inset var(--win95-gray);
    font-family: "MS Sans Serif", sans-serif;
    font-size: 11px;
}

.compose-field input[readonly] {
    background-color: #e0e0e0;
}

.compose-message {
    align-items: flex-start;
}

.compose-message textarea {
    resize: vertical;
    min-height: 150px;
}

.compose-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 15px;
}

.compose-buttons button {
    background-color: var(--win95-gray);
    border: 2px outset white;
    padding: 6px 20px;
    cursor: pointer;
    font-weight: bold;
    -webkit-tap-highlight-color: transparent;
}

.compose-buttons button:active {
    border-style: inset;
}

.compose-send {
    background-color: var(--win95-light-gray);
}

/* MS Paint Styles */
.paint-window-body {
    display: flex;
    gap: 0;
    padding: 0;
    background-color: var(--win95-gray);
}

.paint-tools {
    background-color: var(--win95-gray);
    border-right: 2px groove white;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 80px;
}

.tool-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.tool-btn {
    background-color: var(--win95-gray);
    border: 2px outset white;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.tool-btn:active,
.tool-btn.active {
    border-style: inset;
}

.color-palette {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
}

.color-swatch {
    width: 28px;
    height: 20px;
    border: 2px outset white;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.color-swatch:active,
.color-swatch.active {
    border: 2px inset white;
}

.paint-canvas-container {
    flex: 1;
    background-color: white;
    padding: 10px;
    overflow: auto;
}

#paintCanvas {
    border: 1px solid #000;
    cursor: crosshair;
    background-color: white;
}

/* Kirtdle 2 Styles */
.kirtdle-game {
    padding: 20px;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.kirtdle-header h2 {
    font-size: 24px;
    color: var(--win95-blue);
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.kirtdle-subtitle {
    font-size: 11px;
    margin-bottom: 20px;
    color: #666;
}

.kirtdle-board {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 20px;
}

.kirtdle-row {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.kirtdle-tile {
    width: 50px;
    height: 50px;
    border: 3px outset white;
    background-color: var(--win95-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
}

.kirtdle-tile.filled {
    border-style: inset;
}

.kirtdle-tile.correct {
    background-color: #00ff00;
    border: 3px inset #008000;
    color: #000;
}

.kirtdle-tile.present {
    background-color: #ffff00;
    border: 3px inset #808000;
    color: #000;
}

.kirtdle-tile.absent {
    background-color: #808080;
    border: 3px inset #404040;
    color: #fff;
}

.kirtdle-keyboard {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 15px;
}

.kirtdle-keyboard-row {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.kirtdle-key {
    min-width: 30px;
    height: 40px;
    padding: 0 8px;
    background-color: var(--win95-gray);
    border: 2px outset white;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.kirtdle-key:active {
    border-style: inset;
}

.kirtdle-key.wide {
    min-width: 60px;
}

.kirtdle-key.correct {
    background-color: #00ff00;
}

.kirtdle-key.present {
    background-color: #ffff00;
}

.kirtdle-key.absent {
    background-color: #808080;
    color: #fff;
}

.kirtdle-message {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--win95-blue);
    margin-bottom: 10px;
}

.kirtdle-new-game {
    background-color: var(--win95-gray);
    border: 2px outset white;
    padding: 8px 20px;
    cursor: pointer;
    font-weight: bold;
    -webkit-tap-highlight-color: transparent;
}

.kirtdle-new-game:active {
    border-style: inset;
}

/* Tichu Error Dialog */
.error-dialog {
    width: 380px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.error-content {
    display: flex;
    gap: 15px;
    padding: 20px;
    align-items: start;
}

.error-icon {
    flex-shrink: 0;
}

.error-message {
    flex: 1;
}

.error-message p {
    margin: 0 0 10px 0;
    font-size: 11px;
}

.error-buttons {
    padding: 0 20px 20px 20px;
    display: flex;
    justify-content: center;
}

.error-buttons button {
    background-color: var(--win95-gray);
    border: 2px outset white;
    padding: 6px 24px;
    cursor: pointer;
    font-weight: bold;
    min-width: 75px;
    -webkit-tap-highlight-color: transparent;
}

.error-buttons button:active {
    border-style: inset;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .window {
        width: calc(100vw - 20px) !important;
        left: 10px !important;
        top: 10px !important;
    }

    .email-detail-window {
        height: calc(100vh - 60px) !important;
    }

    .error-dialog {
        width: calc(100vw - 40px) !important;
        max-width: 380px;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
    }

    .clippy {
        bottom: 50px;
        right: 10px;
        transform: scale(0.8);
        transform-origin: bottom right;
    }

    .clippy-bubble {
        right: 70px;
        max-width: 150px;
        font-size: 10px;
    }

    .desktop {
        grid-template-columns: repeat(auto-fill, 70px);
        grid-auto-rows: 80px;
        gap: 15px;
    }

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

    .taskbar-app {
        max-width: 100px;
        font-size: 10px;
    }

    .login-title {
        font-size: 28px;
    }

    .logo-flag {
        width: 24px;
        height: 32px;
    }

    .login-user-box {
        padding: 15px 25px;
    }

    .login-button {
        font-size: 12px;
        min-width: 120px;
    }
}

/* Prevent text selection and improve touch */
.title-bar, .taskbar, .start-button, .menu-item, .desktop-icon {
    -webkit-user-select: none;
    user-select: none;
}

/* Scrollbar styling for authenticity */
::-webkit-scrollbar {
    width: 16px;
    height: 16px;
}

::-webkit-scrollbar-track {
    background-color: white;
}

::-webkit-scrollbar-thumb {
    background-color: var(--win95-gray);
    border: 2px outset white;
}

::-webkit-scrollbar-button {
    background-color: var(--win95-gray);
    border: 2px outset white;
}
