/* Windows 98 Theme CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "MS Sans Serif", "Microsoft Sans Serif", Arial, sans-serif;
    font-size: 11px;
    background: #008080 !important;
    background-image: none !important;
    overflow: hidden;
    user-select: none;
}

/* Desktop */
.desktop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 40px;
    padding: 10px;
}

.desktop-icon {
    display: inline-block;
    width: 80px;
    text-align: center;
    margin: 5px;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
}

.desktop-icon:hover {
    background: rgba(0, 0, 255, 0.1);
}

.desktop-icon img {
    width: 48px;
    height: 48px;
    display: block;
    margin: 0 auto 5px;
    object-fit: contain;
}

.desktop-icon span {
    font-size: 10px;
    color: white;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
    display: block;
    word-wrap: break-word;
}

/* Taskbar */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: #c0c0c0;
    border-top: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    border-right: 2px solid #808080;
    border-bottom: 2px solid #808080;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    z-index: 1000;
}

.start-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    min-width: 80px;
    height: 30px;
    position: relative;
    overflow: hidden;
}

.start-button:active {
    transform: translateY(1px);
}

.start-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.taskbar-time {
    background: #c0c0c0;
    border: 2px inset #c0c0c0;
    padding: 5px 10px;
    font-size: 10px;
    color: #000;
}

/* Start Menu */
.start-menu {
    position: fixed;
    bottom: 40px;
    left: 0;
    width: 200px;
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    display: none;
    font-size: 11px;
}



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

.start-menu-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    cursor: pointer;
    color: #000;
}

.start-menu-item:hover {
    background: #000080;
    color: white;
}

.start-menu-item img {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

.start-menu-footer {
    border-top: 1px solid #808080;
    padding: 5px 0;
}

.start-menu-item#shutdown-item {
    color: #800000;
    font-weight: bold;
}

.start-menu-item#shutdown-item:hover {
    background: #800000;
    color: white;
}

/* Windows */
.window {
    position: absolute;
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    min-width: 300px;
    min-height: 200px;
    z-index: 100;
}

.title-bar {
    background: #000080;
    color: white;
    padding: 3px 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    font-weight: bold;
    font-size: 11px;
}

.title-bar-text {
    flex: 1;
}

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

.title-bar-control {
    width: 16px;
    height: 16px;
    border: 1px outset #c0c0c0;
    background: #c0c0c0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: #000;
}

.title-bar-control:hover {
    background: #d4d0c8;
}

.title-bar-control:active {
    border: 1px inset #c0c0c0;
}

.title-bar-control.minimize::before {
    content: "_";
}

.title-bar-control.maximize::before {
    content: "□";
}

.title-bar-control.close::before {
    content: "×";
}

.window-body {
    padding: 10px;
    background: #c0c0c0;
}

/* AOL Instant Messenger Specific Styles */
#aim-login-window {
    display: block;
}

.aim-logo {
    text-align: center;
    margin-bottom: 10px;
    padding: 5px;
    background: linear-gradient(to bottom, #ffffff, #f0f0f0);
    border: 1px solid #c0c0c0;
    border-radius: 3px;
    min-height: 100px;
}

.aim-logo img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.aim-subtitle {
    text-align: center;
    margin-bottom: 20px;
    font-size: 12px;
    color: #000080;
    font-weight: bold;
}

.aim-version {
    font-size: 10px;
    color: #666;
    margin-top: 5px;
    font-weight: normal;
}

/* SmarterChild Info Window */
#smarterchild-info-window {
    display: block;
}

/* SmarterChild Info Window Styles */
.info-content {
    padding: 20px;
}

.info-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #c0c0c0;
    padding-bottom: 15px;
}

.info-icon {
    width: 64px;
    height: 64px;
    margin-right: 15px;
    object-fit: contain;
}

.info-title h3 {
    margin: 0 0 5px 0;
    color: #000;
    font-size: 18px;
}

.info-title p {
    margin: 0;
    color: #666;
    font-size: 12px;
}

.info-body h4 {
    margin: 15px 0 8px 0;
    color: #000;
    font-size: 14px;
}

.info-body p {
    margin: 0 0 10px 0;
    line-height: 1.4;
    font-size: 12px;
}

.info-body ul, .info-body ol {
    margin: 8px 0;
    padding-left: 20px;
}

.info-body li {
    margin: 3px 0;
    font-size: 12px;
}

.info-footer {
    margin-top: 20px;
    padding: 10px;
    background: #f0f0f0;
    border: 1px solid #c0c0c0;
    font-size: 11px;
}

/* Token Window Styles */
#buy-smarterchild-window {
    display: block;
}

.token-content {
    padding: 15px;
    height: 100%;
    overflow-y: auto;
}

.token-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #c0c0c0;
    padding-bottom: 15px;
}

.token-icon {
    width: 48px;
    height: 48px;
    margin-right: 12px;
    object-fit: contain;
}

.token-title h3 {
    margin: 0 0 5px 0;
    color: #000;
    font-size: 18px;
}

.token-title p {
    margin: 0;
    color: #666;
    font-size: 12px;
}

.token-body h4 {
    margin: 15px 0 8px 0;
    color: #000;
    font-size: 14px;
}

.token-body p {
    margin: 0 0 10px 0;
    line-height: 1.4;
    font-size: 12px;
}

.token-body ul, .token-body ol {
    margin: 8px 0;
    padding-left: 20px;
}

.token-body li {
    margin: 3px 0;
    font-size: 12px;
}

.contract-address-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

#contract-address {
    flex: 1;
    padding: 8px;
    border: 2px inset #c0c0c0;
    background: #fff;
    font-family: "Courier New", monospace;
    font-size: 11px;
    color: #000;
    cursor: text;
}

.copy-button {
    padding: 6px 12px;
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    font-family: "MS Sans Serif", "Microsoft Sans Serif", Arial, sans-serif;
    font-size: 11px;
    cursor: pointer;
    white-space: nowrap;
}

.copy-button:active {
    border: 2px inset #c0c0c0;
    transform: translateY(1px);
}

.token-footer {
    margin-top: 20px;
    padding: 10px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    font-size: 11px;
    color: #856404;
}

.login-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #000;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 5px;
    border: 2px inset #c0c0c0;
    background: #ffffff;
    font-family: "MS Sans Serif", Arial, sans-serif;
    font-size: 11px;
}

.form-group input:focus {
    outline: none;
    border: 2px inset #000080;
}

.form-options {
    margin-bottom: 20px;
}

.form-options label {
    display: flex;
    align-items: center;
    font-size: 10px;
    color: #000;
    cursor: pointer;
}

.form-options input[type="checkbox"] {
    margin-right: 5px;
    width: 13px;
    height: 13px;
}

.form-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn {
    padding: 8px 16px;
    border: 2px outset #c0c0c0;
    background: #c0c0c0;
    font-family: "MS Sans Serif", Arial, sans-serif;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    color: #000;
    min-width: 80px;
}

.btn:hover {
    background: #d4d0c8;
}

.btn:active {
    border: 2px inset #c0c0c0;
}

.btn-primary {
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
}

.btn-secondary {
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
}

.btn-small {
    padding: 4px 8px;
    min-width: 50px;
    font-size: 10px;
}

.status-bar {
    background: #c0c0c0;
    border: 2px inset #c0c0c0;
    padding: 5px;
    font-size: 10px;
    color: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 9px;
}

.volume-slider {
    width: 60px;
    height: 12px;
    background: #ffffff;
    border: 1px inset #c0c0c0;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    background: #c0c0c0;
    border: 1px outset #c0c0c0;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #c0c0c0;
    border: 1px outset #c0c0c0;
    cursor: pointer;
}

.api-status {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 9px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00ff00;
    border: 1px solid #000;
}

.status-dot.connecting {
    background: #ffff00;
    animation: pulse 1s infinite;
}

.status-dot.error {
    background: #ff0000;
}

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

/* Chat Window Styles */
.chat-window {
    width: 500px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.chat-header {
    background: #c0c0c0;
    border-bottom: 2px inset #c0c0c0;
    padding: 10px;
    margin: -10px -10px 10px -10px;
}

.buddy-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.buddy-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.buddy-icon img {
    width: 48px;
    height: 48px;
    border-radius: 3px;
    border: 1px solid #000;
    animation: smarterchild-pulse 2s infinite;
}

@keyframes smarterchild-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.buddy-icon.online {
    background: #00ff00;
}

.buddy-name {
    font-weight: bold;
    font-size: 12px;
    color: #000;
}

.buddy-status {
    font-size: 10px;
    color: #008000;
}

.chat-messages {
    height: 250px;
    background: #ffffff;
    border: 2px inset #c0c0c0;
    padding: 10px;
    overflow-y: auto;
    margin-bottom: 10px;
    font-size: 11px;
    line-height: 1.4;
}

.message {
    margin-bottom: 10px;
    padding: 5px;
    border-radius: 3px;
}

.message.user {
    background: #e6f3ff;
    border-left: 3px solid #000080;
}

.message.buddy {
    background: #f0f0f0;
    border-left: 3px solid #008000;
}

.message .sender {
    font-weight: bold;
    color: #000080;
    margin-bottom: 3px;
}

.message .time {
    font-size: 9px;
    color: #666;
    margin-bottom: 3px;
}

.message .content {
    color: #000;
}

.chat-input-area {
    background: #c0c0c0;
    border-top: 2px inset #c0c0c0;
    padding: 10px;
    margin: 10px -10px -10px -10px;
}

.chat-input-container {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.chat-input-container input {
    flex: 1;
    padding: 5px;
    border: 2px inset #c0c0c0;
    background: #ffffff;
    font-family: "MS Sans Serif", Arial, sans-serif;
    font-size: 11px;
}

.chat-input-container input:focus {
    outline: none;
    border: 2px inset #000080;
}

.chat-options {
    display: flex;
    gap: 5px;
    justify-content: center;
}

/* Typing indicator */
.typing-indicator {
    font-style: italic;
    color: #666;
    font-size: 10px;
    padding: 5px;
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 16px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #c0c0c0;
    border: 1px solid #808080;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #808080;
    border: 1px outset #c0c0c0;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #000080;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Connection status */
.connecting {
    color: #ff6600;
    font-weight: bold;
}

.connected {
    color: #008000;
    font-weight: bold;
}

.disconnected {
    color: #ff0000;
    font-weight: bold;
}

 

/* Window Positioning for Desktop and Mobile */
#aim-login-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    max-width: 90vw;
    max-height: 90vh;
}

#aim-chat-window {
    position: fixed;
    top: 10%;
    left: 10%;
    z-index: 1001;
    max-width: 90vw;
    max-height: 90vh;
}

#smarterchild-info-window {
    position: fixed;
    top: 20%;
    left: 5%;
    z-index: 1002;
    max-width: 90vw;
    max-height: 90vh;
}

#buy-smarterchild-window {
    position: fixed;
    top: 30%;
    right: 5%;
    z-index: 1003;
    max-width: 90vw;
    max-height: 90vh;
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
    /* Mobile: Stack windows vertically with proper spacing */
    #aim-login-window {
        top: 8%;
        left: 5%;
        right: 5%;
        transform: none;
        width: 90vw;
        height: auto;
        max-height: 70vh;
        bottom: 50px; /* Ensure it doesn't overlap with taskbar */
    }
    
            #aim-chat-window {
            top: 8%;
            left: 40%;
            right: 40%;
            width: 20vw;
            height: auto;
            max-height: 70vh;
            bottom: 50px; /* Ensure it doesn't overlap with taskbar */
        }
    
    #smarterchild-info-window {
        top: 5%;
        left: 5%;
        right: 5%;
        width: 90vw;
        height: 80vh;
        bottom: 50px; /* Ensure it doesn't overlap with taskbar */
        overflow-y: auto; /* Enable scrolling */
    }
    
    #buy-smarterchild-window {
        top: 10%;
        left: 5%;
        right: 5%;
        width: 90vw;
        height: auto;
        max-height: 70vh;
        bottom: 50px; /* Ensure it doesn't overlap with taskbar */
        overflow-y: auto; /* Enable scrolling */
    }
    
    /* Mobile: Adjust window content for smaller screens */
    .window-body {
        padding: 10px;
        overflow-y: auto;
        max-height: calc(100% - 30px); /* Account for title bar */
    }
    
    .info-content, .token-content {
        padding: 10px;
        overflow-y: auto;
        max-height: calc(100% - 60px); /* Account for header and padding */
    }
    
    .info-header, .token-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        position: sticky;
        top: 0;
        background: #c0c0c0;
        z-index: 10;
        padding: 10px;
        margin: -10px -10px 10px -10px;
        border-bottom: 1px solid #808080;
    }
    
    .info-icon, .token-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    /* Mobile: Make text more readable */
    .info-body h4, .token-body h4 {
        font-size: 13px;
        margin: 12px 0 6px 0;
    }
    
    .info-body p, .token-body p {
        font-size: 11px;
        line-height: 1.3;
        margin-bottom: 8px;
    }
    
    .info-body li, .token-body li {
        font-size: 11px;
        margin: 4px 0;
        line-height: 1.3;
    }
    
    /* Mobile: Ensure proper scrolling for info windows */
    .info-body, .token-body {
        overflow-y: auto;
        padding-right: 5px;
    }
    
    /* Mobile: Adjust chat window for mobile */
    .chat-window {
        width: 90vw !important;
        height: 70vh !important;
        top: 8% !important;
        left: 5% !important;
        right: 5% !important;
        transform: none !important;
        max-width: none !important;
        max-height: 70vh !important;
    }
    
    /* Mobile: Adjust AIM chat for mobile */
    .chat-messages {
        height: 200px;
    }
    
    .chat-input-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .chat-input-container input {
        width: 100%;
    }
    
    .chat-input-container button {
        width: 100%;
    }
    
    /* Mobile: Adjust desktop icons for better touch interaction */
    .desktop-icon {
        width: 70px;
        margin: 8px;
        padding: 5px;
    }
    
    .desktop-icon img {
        width: 40px;
        height: 40px;
    }
    
    .desktop-icon span {
        font-size: 10px;
        max-width: 70px;
        line-height: 1.2;
    }
    
    /* Mobile: Adjust taskbar for better usability */
    .taskbar {
        height: 40px;
        padding: 0 10px;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: #c0c0c0;
        border-top: 2px solid #ffffff;
        box-shadow: 0 -2px 4px rgba(0,0,0,0.2);
    }
    
    .start-button {
        min-width: 80px;
        max-width: 80px;
        width: 80px;
        height: 35px;
        flex-shrink: 0;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .start-button img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    .taskbar-time {
        font-size: 10px;
        padding: 5px 8px;
    }
    
    /* Mobile: Adjust start menu for better touch interaction */
    .start-menu {
        width: 280px;
        max-height: 80vh;
        overflow-y: auto;
        position: fixed;
        bottom: 40px;
        left: 0;
        z-index: 2000;
        background: #c0c0c0;
        border: 2px outset #c0c0c0;
        box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    }
    
    .start-menu-item {
        padding: 18px 20px;
        font-size: 14px;
        min-height: 50px;
        display: flex;
        align-items: center;
        cursor: pointer;
    }
    
    .start-menu-item img {
        width: 24px;
        height: 24px;
        margin-right: 15px;
        flex-shrink: 0;
    }
    
    .start-menu-item:hover {
        background-color: #000080;
        color: white;
    }
    
    .start-menu-item:active {
        background-color: #0000ff;
        color: white;
    }
}

/* Desktop: Ensure windows don't overlap too much */
@media (min-width: 769px) {
    #aim-login-window {
        width: 500px;
        height: auto;
    }
    
    #aim-chat-window {
        width: 600px;
        height: 500px;
    }
    
    #smarterchild-info-window {
        width: 550px;
        height: auto;
        max-height: 70vh;
    }
    
    #buy-smarterchild-window {
        width: 400px;
        height: 350px;
    }
} 