/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'SF Pro Display', Roboto, sans-serif;
    overflow: hidden;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    user-select: none;
}

/* Desktop Environment */
.desktop {
    width: 100vw;
    height: calc(100vh - 50px);
    position: relative;
    background: linear-gradient(135deg, #1976d2 0%, #42a5f5 100%);
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.05) 0%, transparent 50%);
}

/* Desktop Icons */
.desktop-icons {
    position: absolute;
    top: 20px;
    left: 20px;
    width: calc(100% - 40px);
    height: calc(100% - 100px);
    z-index: 10;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
    width: 140px;
    position: absolute;
    user-select: none;
}

.desktop-icon.dragging {
    z-index: 1000;
    transform: scale(1.1);
    opacity: 0.8;
    cursor: grabbing;
    background: none !important;
}

.desktop-icon:hover {
    background: none;
}

/* Keyboard focus indicator */
.desktop-icon.keyboard-focused {
    background: none;
    border: none;
    transform: none;
    box-shadow: none;
}

.desktop-icon.selected {
    background: none;
    border: none;
}

.desktop-icon:active {
    transform: scale(0.95);
}

.icon-image {
    width: 128px;
    height: 128px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: -15px;
}

.icon-image img {
    width: 96px;
    height: 96px;
    object-fit: contain;
}

.icon-image svg {
    width: 96px;
    height: 96px;
    color: #2c3e50;
}

/* Keep Paint and Connect icons smaller but same container height for alignment */
.desktop-icon[data-window="paint"] .icon-image,
.desktop-icon[data-window="social"] .icon-image {
    width: 128px;
    height: 128px;
    margin-bottom: -15px;
}

.desktop-icon[data-window="paint"] .icon-image img,
.desktop-icon[data-window="paint"] .icon-image svg,
.desktop-icon[data-window="social"] .icon-image img,
.desktop-icon[data-window="social"] .icon-image svg {
    width: 48px;
    height: 48px;
}

/* Force Paint icon and text to be centered */
.desktop-icon[data-window="paint"] {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.desktop-icon[data-window="paint"] .icon-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.desktop-icon[data-window="paint"] .icon-label {
    text-align: center !important;
    width: 100%;
    display: block;
    margin: 0 auto;
    position: relative;
    left: 0;
    transform: translateX(0);
}

.icon-label {
    color: white;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    width: 100%;
    display: block;
}

/* Windows */
.window {
    position: absolute;
    background: #c0c0c0;
    border-top: 2px solid #dfdfdf;
    border-left: 2px solid #dfdfdf;
    border-right: 2px solid #808080;
    border-bottom: 2px solid #808080;
    min-width: 400px;
    min-height: 300px;
    max-width: 800px;
    max-height: 600px;
    display: none;
    z-index: 100;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 11px;
}

.window.active {
    display: block;
}

.window-header {
    background: linear-gradient(90deg, #000080 0%, #000040 100%);
    color: white;
    padding: 3px 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: move;
    font-weight: bold;
    font-size: 11px;
    height: 18px;
    border-bottom: 1px solid #808080;
}

.window-title {
    font-weight: bold;
    color: white;
    font-size: 11px;
    font-family: 'MS Sans Serif', sans-serif;
    order: 1;
}

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

.window-control {
    width: 16px;
    height: 14px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'MS Sans Serif', sans-serif;
    color: white;
    font-weight: bold;
}

.window-control:hover {
    background: transparent;
}

.window-control:active {
    background: transparent;
}

.window-control.close::before {
    content: '×';
    font-size: 10px;
    font-weight: bold;
}

.window-control.minimize::before {
    content: '_';
    font-size: 8px;
    font-weight: bold;
    margin-top: 4px;
}

.window-control.maximize::before {
    content: '□';
    font-size: 8px;
    font-weight: bold;
}
}

.window-control.close {
    background: transparent !important;
}

.window-control.minimize {
    background: transparent !important;
}

.window-control.maximize {
    background: transparent !important;
}

.window-control:hover {
    transform: none;
    background: transparent !important;
}

.window-title {
    font-weight: bold;
    color: white;
    font-size: 11px;
    font-family: 'MS Sans Serif', sans-serif;
}

.window-content {
    padding: 8px;
    height: calc(100% - 25px);
    overflow-y: auto;
    color: #000000;
    background: #c0c0c0;
    border-top: 1px solid #808080;
    border-left: 1px solid #808080;
    border-right: 1px solid #dfdfdf;
    border-bottom: 1px solid #dfdfdf;
    margin: 2px;
}

/* About Window Content */
.profile-section {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-avatar svg {
    width: 40px;
    height: 40px;
    color: white;
}

.profile-info h2 {
    font-size: 24px;
    margin-bottom: 4px;
    color: #2c3e50;
}

.profile-info h3 {
    font-size: 16px;
    color: #667eea;
    margin-bottom: 16px;
    font-weight: 500;
}

.bio-text {
    line-height: 1.6;
    color: #555;
}

/* Speaking Window Content */
.speaking-content {
    padding: 20px;
    background: #f8f9fa;
    overflow-y: auto;
    min-height: 100%;
}

/* No Talks Placeholder */
.no-talks-placeholder {
    text-align: center;
    max-width: 500px;
    margin: 0 auto 40px auto;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.placeholder-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.no-talks-placeholder h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 600;
    border: none;
    padding: 0;
}

.no-talks-placeholder > p {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 30px;
}

/* Contact Buttons */
.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.email-contact {
    padding: 12px 20px;
    background: #f8f9fa;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    text-align: center;
}

.cta-button {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.cta-button.secondary {
    background: #f8f9fa;
    color: #667eea;
    border: 2px solid #667eea;
}

.cta-button.secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
}

/* Past Talks Section */
.past-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.past-section h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
    border: none;
    padding: 0;
}

.past-talks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.past-talk-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.past-talk-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.past-talk-card .talk-date {
    color: #667eea;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.talk-title {
    color: #333;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}

.talk-venue {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.talk-description {
    color: #555;
    font-size: 13px;
    line-height: 1.4;
}

/* Resources Window Content */
.resource-category {
    margin-bottom: 24px;
}

.resource-category h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #2c3e50;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 8px;
}

.resource-item {
    padding: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    margin-bottom: 8px;
}

.resource-item a {
    font-weight: 600;
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
}

.resource-item a:hover {
    text-decoration: underline;
}

.resource-item p {
    font-size: 13px;
    color: #555;
    margin-top: 4px;
    line-height: 1.4;
}

/* Social Window Content */
.social-content h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #2c3e50;
    text-align: center;
}

.contact-info {
    margin-bottom: 24px;
}

.email-contact-main {
    padding: 16px 24px;
    background: #f8f9fa;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    text-align: center;
    margin: 0 auto;
    max-width: 300px;
}

/* Taskbar */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1000;
}

/* Animated Snail */
.snail-container {
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 25px;
    pointer-events: none;
    z-index: 1001;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        transparent 60%, 
        #2d5016 60%, 
        #3a6b1f 80%, 
        #4a7c28 100%);
}

/* Create individual grass blades */
.snail-container::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background-image: 
        /* Multiple grass blade shadows */
        linear-gradient(88deg, transparent 0px, transparent 1px, #2d5016 1px, #2d5016 2px, transparent 2px),
        linear-gradient(92deg, transparent 0px, transparent 2px, #3a6b1f 2px, #3a6b1f 3px, transparent 3px),
        linear-gradient(87deg, transparent 0px, transparent 1px, #4a7c28 1px, #4a7c28 2px, transparent 2px),
        linear-gradient(91deg, transparent 0px, transparent 3px, #2d5016 3px, #2d5016 4px, transparent 4px),
        linear-gradient(89deg, transparent 0px, transparent 2px, #3a6b1f 2px, #3a6b1f 3px, transparent 3px);
    background-size: 8px 100%, 12px 100%, 6px 100%, 10px 100%, 14px 100%;
    background-position: 0px 0px, 3px 0px, 6px 0px, 9px 0px, 12px 0px;
    background-repeat: repeat-x;
    animation: grassSway 4s ease-in-out infinite;
}

/* Add more grass texture */
.snail-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 12px;
    background-image: 
        linear-gradient(86deg, transparent 0px, transparent 1px, #4a7c28 1px, #4a7c28 2px, transparent 2px),
        linear-gradient(94deg, transparent 0px, transparent 2px, #2d5016 2px, #2d5016 3px, transparent 3px),
        linear-gradient(88deg, transparent 0px, transparent 1px, #3a6b1f 1px, #3a6b1f 2px, transparent 2px);
    background-size: 7px 100%, 11px 100%, 9px 100%;
    background-position: 2px 0px, 5px 0px, 8px 0px;
    background-repeat: repeat-x;
    animation: grassSway 4.5s ease-in-out infinite reverse;
}

@keyframes grassSway {
    0%, 100% { 
        transform: translateX(0px) skewX(0deg); 
    }
    25% { 
        transform: translateX(0.5px) skewX(0.5deg); 
    }
    50% { 
        transform: translateX(1px) skewX(1deg); 
    }
    75% { 
        transform: translateX(0.5px) skewX(0.5deg); 
    }
}

.snail {
    position: absolute;
    font-size: 24px;
    animation: crawl 60s linear infinite;
    z-index: 1002;
    transition: transform 0.1s ease-out;
}

/* Snail jumping animation - uses margin-top to avoid transform conflicts */
.snail.jumping {
    animation: crawl 60s linear infinite, snailJumpOnly 0.6s ease-out;
}

@keyframes snailJumpOnly {
    0% {
        margin-top: 0px;
    }
    30% {
        margin-top: -40px;
    }
    60% {
        margin-top: -60px;
    }
    100% {
        margin-top: 0px;
    }
}

/* Flowers in the grass */
.flowers {
    position: absolute;
    bottom: 2px;
    width: 100%;
    height: 15px;
    pointer-events: none;
    z-index: 1001; /* Below snail */
}

.flower {
    position: absolute;
    font-size: 12px;
    bottom: 0;
    animation: flowerSway 3s ease-in-out infinite;
    transform-origin: bottom center;
}

.flower:nth-child(1) { animation-delay: 0s; }
.flower:nth-child(2) { animation-delay: 0.5s; }
.flower:nth-child(3) { animation-delay: 1s; }
.flower:nth-child(4) { animation-delay: 1.5s; }
.flower:nth-child(5) { animation-delay: 2s; }

@keyframes flowerSway {
    0%, 100% { 
        transform: rotate(0deg) scale(1); 
    }
    25% { 
        transform: rotate(-2deg) scale(1.05); 
    }
    50% { 
        transform: rotate(2deg) scale(1.1); 
    }
    75% { 
        transform: rotate(-1deg) scale(1.05); 
    }
}

@keyframes crawl {
    0% {
        left: -40px;
        transform: scaleX(1);
    }
    48% {
        transform: scaleX(1);
    }
    50% {
        left: calc(100% - 30px);
        transform: scaleX(-1); /* Flip to face left */
    }
    98% {
        transform: scaleX(-1);
    }
    100% {
        left: -40px;
        transform: scaleX(1); /* Flip back to face right */
    }
}

.start-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
    position: relative;
}

.start-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.start-button.active {
    background: rgba(255, 255, 255, 0.3);
}

.start-button svg {
    width: 16px;
    height: 16px;
}

/* Start Menu */
.start-menu {
    position: absolute;
    bottom: 60px;
    left: 0;
    width: 280px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 2000;
}

.start-menu.show {
    display: block;
    animation: slideUp 0.2s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.start-menu-header {
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px 8px 0 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.user-name {
    font-weight: 600;
    font-size: 16px;
}

.start-menu-items {
    padding: 8px 0;
}

.start-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #333;
}

.start-menu-item:hover {
    background: rgba(102, 126, 234, 0.1);
}

.start-menu-item svg {
    width: 20px;
    height: 20px;
    color: #667eea;
}

.start-menu-item span {
    font-weight: 500;
}

.taskbar-buttons {
    display: flex;
    gap: 4px;
    flex: 1;
    margin: 0 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.taskbar-buttons::-webkit-scrollbar {
    display: none;
}

.taskbar-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
    white-space: nowrap;
    min-width: 120px;
    max-width: 200px;
}

.taskbar-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.taskbar-button.active {
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
}

.taskbar-button.minimized {
    background: rgba(255, 255, 255, 0.05);
    border-style: dashed;
}

.taskbar-button .window-icon {
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    flex-shrink: 0;
}

.taskbar-button .window-title {
    overflow: hidden;
    text-overflow: ellipsis;
}

.taskbar-time {
    color: white;
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
}

/* Solitaire Game Styles */
.solitaire-game {
    width: 100%;
    height: 100%;
    min-height: 500px;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.game-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.game-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.game-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.score {
    font-weight: 600;
    color: #2c3e50;
}

.game-board {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: calc(100% - 80px);
}

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

.foundations {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.tableau {
    display: flex;
    gap: 10px;
    flex: 1;
}

.stock-pile, .waste-pile, .foundation, .tableau-pile {
    width: 80px;
    height: 110px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    position: relative;
    background: rgba(255, 255, 255, 0.5);
}

.foundation {
    background: rgba(102, 126, 234, 0.1);
}

.tableau-pile {
    min-height: 200px;
    height: auto;
}

.playing-card {
    width: 76px;
    height: 106px;
    background: white;
    border: 1px solid #333;
    border-radius: 6px;
    position: absolute;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.playing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.playing-card.red {
    color: #d32f2f;
}

.playing-card.black {
    color: #333;
}

.playing-card.face-down {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    color: white;
}

.playing-card.face-down::before {
    content: '♠♥♦♣';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    opacity: 0.3;
}

.card-rank {
    font-size: 14px;
}

.card-suit {
    font-size: 18px;
    text-align: center;
}

/* Wallpaper Selector Styles */
.wallpaper-selector h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    text-align: center;
}

.wallpaper-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.wallpaper-option {
    text-align: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.wallpaper-option:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.wallpaper-preview {
    width: 120px;
    height: 80px;
    border-radius: 6px;
    margin: 0 auto 8px;
    border: 2px solid #ddd;
    transition: all 0.2s ease;
}

.wallpaper-option:hover .wallpaper-preview {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.wallpaper-option span {
    font-size: 12px;
    color: #555;
    font-weight: 500;
}

/* Wallpaper Previews */
.default-bg {
    background: #1976d2;
}

.purple-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.green-bg {
    background: #11998e;
}

.orange-bg {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.dark-bg {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.matrix-bg {
    background: #d4c68a;
}

.matrix-bg::before {
    display: none;
}

@keyframes matrix-rain {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}
@media (max-width: 768px) {
    /* Mobile: Full-screen windows */
    .window {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        min-width: 100vw !important;
        min-height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        z-index: 1000;
        box-sizing: border-box;
    }
    
    .window-content {
        height: calc(100vh - 25px) !important;
        max-height: calc(100vh - 25px) !important;
        overflow-y: auto;
        padding: 8px;
        box-sizing: border-box;
    }
    
    .desktop-icons {
        grid-template-columns: repeat(2, 80px);
        gap: 20px;
        padding: 20px;
    }
    
    .desktop-icon {
        width: 80px;
        height: 80px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }
    
    .icon-image {
        width: 48px;
        height: 48px;
        margin-bottom: 4px;
    }
    
    .icon-label {
        font-size: 12px;
        text-align: center;
        width: 100%;
        word-wrap: break-word;
    }
    
    .taskbar {
        height: 40px;
    }
    
    .start-button {
        height: 36px;
        font-size: 12px;
        padding: 0 12px;
    }
    
    .taskbar-buttons {
        gap: 4px;
    }
    
    .taskbar-button {
        height: 36px;
        font-size: 11px;
        padding: 0 8px;
        min-width: 80px;
    }
        top: 10px;
        left: 10px;
        gap: 15px;
    }
    
    .window {
        min-width: 90vw;
        min-height: 70vh;
        top: 5vh !important;
        left: 5vw !important;
    }
    
    .profile-section {
        flex-direction: column;
        text-align: center;
    }
    
    .talk-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .talk-date {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .window-content {
        padding: 16px;
    }
    
    .desktop-icons {
        grid-template-columns: repeat(2, 70px);
        gap: 10px;
    }
    
    .desktop-icon {
        width: 70px;
    }
    
    .icon-image {
        width: 40px;
        height: 40px;
    }
    
    .icon-image svg {
        width: 24px;
        height: 24px;
    }
}

/* Social Window Content Styling */
.social-content h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #2c3e50;
    text-align: left;
}

.social-links-window {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

/* Social Window Sizing */
#social-window {
    min-height: 200px;
    max-height: 300px;
}

.social-link-window {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #c0c0c0;
    color: #000000;
    text-decoration: none;
    border-top: 2px solid #dfdfdf;
    border-left: 2px solid #dfdfdf;
    border-right: 2px solid #808080;
    border-bottom: 2px solid #808080;
    font-weight: normal;
    font-size: 11px;
    font-family: 'MS Sans Serif', sans-serif;
    min-width: 120px;
    margin-bottom: 4px;
}

.social-link-window:hover {
    background: #d4d0c8;
}

.social-link-window:active {
    border-top: 2px solid #808080;
    border-left: 2px solid #808080;
    border-right: 2px solid #dfdfdf;
    border-bottom: 2px solid #dfdfdf;
    background: #a0a0a0;
}

.social-link-window svg {
    width: 16px;
    height: 16px;
    color: #000000;
}

/* Paint App Styles */
/* Paint App Styles */
.paint-app {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #c0c0c0;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 11px;
}

.paint-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    background: #c0c0c0;
    border-bottom: 1px solid #808080;
    align-items: center;
}

.tool-group {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 2px;
    background: #c0c0c0;
    border-top: 1px solid #dfdfdf;
    border-left: 1px solid #dfdfdf;
    border-right: 1px solid #808080;
    border-bottom: 1px solid #808080;
    margin: 2px;
}

.tool-btn {
    width: 24px;
    height: 24px;
    background: #c0c0c0;
    border-top: 1px solid #dfdfdf;
    border-left: 1px solid #dfdfdf;
    border-right: 1px solid #808080;
    border-bottom: 1px solid #808080;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1px;
}

.tool-btn:hover {
    background: #d4d0c8;
}

.tool-btn:active,
.tool-btn.active {
    border-top: 1px solid #808080;
    border-left: 1px solid #808080;
    border-right: 1px solid #dfdfdf;
    border-bottom: 1px solid #dfdfdf;
    background: #a0a0a0;
}

.tool-btn svg {
    width: 12px;
    height: 12px;
    color: #000000;
}
}

.brush-size-label {
    font-size: 11px;
    font-weight: normal;
    color: #000000;
    font-family: 'MS Sans Serif', sans-serif;
}

.brush-size-slider {
    width: 60px;
    height: 16px;
    background: #c0c0c0;
    border-top: 1px solid #808080;
    border-left: 1px solid #808080;
    border-right: 1px solid #dfdfdf;
    border-bottom: 1px solid #dfdfdf;
    outline: none;
    cursor: pointer;
}

.brush-size-slider::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 14px;
    background: #c0c0c0;
    border-top: 1px solid #dfdfdf;
    border-left: 1px solid #dfdfdf;
    border-right: 1px solid #808080;
    border-bottom: 1px solid #808080;
    cursor: pointer;
}

.brush-size-slider::-moz-range-thumb {
    width: 12px;
    height: 16px;
    background: #007acc;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

#size-display {
    font-size: 12px;
    font-weight: bold;
    color: #333;
    min-width: 20px;
    text-align: center;
}

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

.color-swatch {
    width: 16px;
    height: 16px;
    cursor: pointer;
    border-top: 1px solid #dfdfdf;
    border-left: 1px solid #dfdfdf;
    border-right: 1px solid #808080;
    border-bottom: 1px solid #808080;
}

.color-swatch:hover {
    border-top: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
}

.color-swatch.active {
    border-top: 1px solid #808080;
    border-left: 1px solid #808080;
    border-right: 1px solid #dfdfdf;
    border-bottom: 1px solid #dfdfdf;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: #333;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: #f0f0f0;
    border-color: #999;
}

.action-btn svg {
    width: 14px;
    height: 14px;
}

.paint-canvas-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: #f8f8f8;
    overflow: auto;
}

#paint-canvas {
    background: white;
    border: 2px solid #ccc;
    border-radius: 4px;
    cursor: crosshair;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#paint-canvas.eraser-cursor {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><rect width="16" height="12" x="2" y="4" fill="none" stroke="black" stroke-width="1" rx="2"/></svg>') 10 10, auto;
}

    /* Mobile Snake Game */
    .snake-game {
        padding: 4px;
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    
    .snake-header {
        flex-direction: column;
        gap: 4px;
        margin-bottom: 4px;
        flex-shrink: 0;
    }
    
    .snake-controls {
        flex-wrap: wrap;
        gap: 4px;
        justify-content: center;
    }
    
    .snake-controls button {
        padding: 6px 10px;
        font-size: 11px;
        min-width: 50px;
        height: 32px;
    }
    
    #snake-canvas {
        width: 100% !important;
        height: auto !important;
        max-width: calc(100vw - 16px);
        max-height: calc(100vh - 140px);
        border: 2px solid #000000;
        display: block;
        margin: 0 auto;
        flex-shrink: 0;
    }
    
    .snake-score {
        font-size: 12px;
        text-align: center;
    }
    
    /* Mobile Paint App */
    .paint-toolbar {
        flex-direction: column;
        gap: 4px;
        padding: 4px;
        max-height: 120px;
        overflow-y: auto;
    }
    
    .tool-group {
        flex-wrap: wrap;
        justify-content: center;
        padding: 2px;
        margin: 1px;
    }
    
    .tool-btn {
        width: 28px;
        height: 28px;
        margin: 1px;
    }
    
    .tool-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .brush-size-slider {
        width: 50px;
        height: 20px;
    }
    
    .color-palette {
        grid-template-columns: repeat(6, 1fr);
        gap: 2px;
    }
    
    .color-swatch {
        width: 20px;
        height: 20px;
    }
    
    #paint-canvas {
        width: 100% !important;
        height: auto !important;
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 160px);
        border: 1px solid #808080;
    }
    
    /* Mobile Books Window */
    .books-content {
        max-height: calc(100vh - 60px);
    }
    
    .book-item {
        padding: 12px;
        margin-bottom: 8px;
    }
    
    .book-item h4 {
        font-size: 14px;
    }
    
    .book-item p {
        font-size: 12px;
    }
}
        align-items: stretch;
        gap: 8px;
    }
    
    .tool-group {
        justify-content: center;
    }
    
    .color-palette {
        grid-template-columns: repeat(4, 1fr);
    }
    
    #paint-canvas {
        width: 100%;
        max-width: 600px;
        height: 300px;
    }
}
body .desktop.wallpaper-default {
    background: linear-gradient(135deg, #ff0000 0%, #00ff00 100%) !important;
    background-image: none !important;
}
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.desktop.wallpaper-green {
    background: #11998e !important;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.05) 0%, transparent 50%) !important;
}

.desktop.wallpaper-orange {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.desktop.wallpaper-dark {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.desktop.wallpaper-matrix {
    background: #d4c68a;
}

.desktop.wallpaper-matrix::before {
    display: none;
}

@keyframes matrix-scroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(100px); }
}
/* Tooltip Styles */
.tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10000;
    pointer-events: none;
    display: none;
}

/* Remove the old CSS tooltip styles */
[title] {
    position: relative;
}

.playing-card.dragging {
    opacity: 0.8;
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    cursor: grabbing;
}

.playing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.playing-card.face-down:hover {
    cursor: pointer;
}

/* Matrix Effect */
.matrix-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    pointer-events: none;
}

.matrix-overlay.active {
    display: block;
}

/* Snake Game Styles */
.snake-game {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #1a1a1a;
    color: #00ff00;
    font-family: 'Courier New', monospace;
}

.snake-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #2a2a2a;
    border-bottom: 2px solid #00ff00;
}

.snake-score {
    display: flex;
    gap: 20px;
    font-weight: bold;
    font-size: 14px;
}

.snake-controls {
    display: flex;
    gap: 10px;
}

.snake-btn {
    padding: 8px 16px;
    background: #00ff00;
    color: #000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-family: inherit;
    transition: all 0.2s ease;
}

.snake-btn:hover:not(:disabled) {
    background: #00cc00;
    transform: translateY(-1px);
}

.snake-btn:disabled {
    background: #666;
    color: #999;
    cursor: not-allowed;
}

.snake-game-area {
    flex: 1;
    display: flex;
    padding: 20px;
    gap: 20px;
    align-items: flex-start;
}

#snake-canvas {
    border: 3px solid #00ff00;
    background: #000;
    border-radius: 8px;
    outline: none;
}

#snake-canvas:focus {
    border-color: #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.snake-instructions {
    flex: 1;
    background: #2a2a2a;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #00ff00;
}

.snake-instructions p {
    margin: 10px 0;
    line-height: 1.6;
}

.snake-instructions strong {
    color: #00ff00;
    font-size: 16px;
}

#matrix-canvas {
    width: 100%;
    height: 100%;
}
/* Speaking Engagements - More Info Links */
.talk-link {
    margin-top: 8px;
}

.talk-link a {
    color: #0000EE;
    text-decoration: underline;
    font-size: 11px;
    font-family: 'MS Sans Serif', sans-serif;
}

.talk-link a:hover {
    color: #FF0000;
    background-color: #C0C0C0;
}

.talk-link a:visited {
    color: #800080;
}

/* Books Window Scrolling */
#resources-window .window-content {
    max-height: 400px;
    overflow-y: scroll;
}

#resources-window .window-content::-webkit-scrollbar {
    width: 16px;
    background: #c0c0c0;
}

#resources-window .window-content::-webkit-scrollbar-track {
    background: #c0c0c0;
    border: 1px inset #c0c0c0;
}

#resources-window .window-content::-webkit-scrollbar-thumb {
    background: #808080;
    border: 1px outset #808080;
}

/* Books Window Content */
.books-content {
    padding: 8px;
}

.books-content h3 {
    color: #000000;
    margin-bottom: 16px;
    font-size: 14px;
}

.book-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.book-item {
    padding: 8px;
    border: 1px solid #808080;
    background: #ffffff;
}

.book-item h4 {
    margin: 0 0 4px 0;
    color: #000080;
    font-size: 12px;
}

.book-item p {
    margin: 2px 0;
    font-size: 11px;
    color: #000000;
}
