body {
    margin: 0;
    padding: 0;
    font-family: 'MS Sans Serif', Arial, sans-serif;
    overflow: hidden;
    background-color: teal;
}

.desktop {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


.desktop-icons {
    padding: 10px;
}

.icon {
    width: 75px;
    height: 75px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
    user-select: none;
      

}

.icon img {
    width: 64px;
    height: 64px;
    user-drag: none;
    -webkit-user-drag: none;
    pointer-events: auto;
    
}

.icon span {
    text-align: center;
    color: white;
    text-shadow: 1px 1px 1px black;
    margin-top: 5px;
    font-size: 12px;
    user-drag: none;
    -webkit-user-drag: none;
    pointer-events: auto;
}

.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 28px;
    background: silver;
    display: flex;
    align-items: center;
    border-top: 2px solid white;
}

.start-button {
    display: flex;
    align-items: center;
    padding: 0 8px;
    height: 22px;
    margin-left: 2px;
    cursor: pointer;
}

.start-button img {
    width: 16px;
    height: 16px;
    margin-right: 4px;
}

.taskbar-programs {
    flex: 1;
    display: flex;
    margin: 0 4px;
}

.taskbar-program-button {
    user-select: none;
  }
  
  .taskbar-program-button span {
    user-select: none;
  }
  

.taskbar-tray {
    display: flex;
    align-items: center;
    padding: 0 10px;
    border-left: 1px solid #7e7e7e;
}

.time {
    font-size: 11px;
    cursor: default;
}

.start-menu {
    position: absolute;
    bottom: 28px;
    left: 0;
    width: 200px;
    background: silver;
    border: 2px solid #c0c0c0;
    border-top: 2px solid white;
    border-left: 2px solid white;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    user-select: none;

    
}

.start-menu-header {
    background: linear-gradient(to right, #0000a8, #1084d0);
    color: white;
    font-weight: bold;
    padding: 5px 10px;
    height: 25px;
    display: flex;
    align-items: center;
}

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

.menu-item {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    cursor: pointer;
}

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

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

.divider {
    height: 1px;
    background-color: #7e7e7e;
    margin: 5px 0;
}

.window {
    position: absolute;
    top: 100px;
    left: 100px;
    min-width: 300px;
    background-color: silver;
    border: 2px solid #c0c0c0;
    border-top: 2px solid white;
    border-left: 2px solid white;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.window.maximized {
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: calc(100vh - 28px) !important; /* Exclude taskbar */
    z-index: 999;
    box-sizing: border-box; /* ← FIXES the overflow */
}


.title-bar {
    background: linear-gradient(to right, #0000a8, #1084d0);
    color: white;
    padding: 3px 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
}

.title-bar-text {
    font-weight: bold;
}

.window-body {
    padding: 10px;
}

.button-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
    gap: 5px;
}

.editor-container {
    border: 1px inset #7e7e7e;
    background-color: white;
    margin-bottom: 10px;
}

#notes-content {
    width: 100%;
    min-height: 250px;
    font-family: 'Arial', sans-serif;
    padding: 5px;
    overflow-y: auto;
    outline: none;
}

.status-bar {
    display: flex;
    justify-content: flex-end;
    height: 20px;
    margin-bottom: 5px;
}

.save-status {
    color: green;
    font-size: 12px;
    font-weight: bold;
}

.taskbar-program-button {
    height: 22px;
    margin: 0 2px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    min-width: 100px;
    cursor: pointer;
}

.taskbar-program-button img {
    width: 16px;
    height: 16px;
    margin-right: 4px;
}

.toolbar-button {
    width: 28px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#mint-nft-app {
    width: 900px;
    height: 600px;
}

#mint-nft-app .window-body {
    padding: 0;
    height: calc(100% - 30px);
}

#mint-nft-app iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.formatting-toolbar {
    display: none;
  }
  

body[data-halt]::before{
    content: attr(data-note);
    position:fixed;
    inset:0;
    background:#000;
    color:#0f0;
    font:900 28px/1.4 "MS Sans Serif",sans-serif;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    z-index:99999;         
    pointer-events:all;    
  }
  
.email-notification {
    position: fixed;
    bottom: 32px;
    right: 20px;
    background: #000080;
    color: white;
    font-size: 12px;
    padding: 8px 14px;
    border: 2px outset #fff;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-family: 'MS Sans Serif', sans-serif;
}

#email-app .window-body {
    /* FIX: Allows vertical scrolling for the whole window body if content exceeds app height */
    overflow-y: auto; 
}

/* FIX: New generic class for all expanded email content blocks */
.email-content-body {
    /* Presentation styles moved from inline HTML */
    margin-top: 10px; 
    background: white;
    padding: 10px;
    border: 1px inset #999;

    /* FIX: Constrain width to the parent element */
    width: 100%; 
    /* FIX: Ensure padding is included in the 100% width, preventing horizontal expansion */
    box-sizing: border-box; 
    /* FIX: Force long words/URLs to wrap to prevent horizontal overflow and scrollbar issues */
    word-wrap: break-word; 
    overflow-wrap: break-word; 

    /* Max height and scrolling for the message content (kept from last step) */
    max-height: 300px; /* Adjust this value (in pixels) to control the size of the expanded email box */
    overflow-y: auto;  /* Enables the scrollbar when content is too tall */
}

#email-app img {
    max-width: 100%;
    height: auto;
}

.email {
    width: 100%;
    box-sizing: border-box;
}



#meme-viewer-app {
    width: 400px;       /* Fixed window width */
    height: 450px;      /* Fixed window height */
}

#meme-viewer-app .window-body {
    height: calc(100% - 30px); /* accounts for title-bar height */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Button fixed at bottom */
    align-items: center;
    overflow: hidden;
    padding: 10px;
    box-sizing: border-box;
}

#meme-img {
    max-width: 100%;
    max-height: calc(100% - 50px); /* leaves room for button */
    object-fit: contain;
}

#meme-viewer-app .button-row {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 5px;
}


#graph-app {
    width: 610px;
    height: 640px;
}


#graph-app .window-body {
    padding: 0;
    margin: 0;
    height: calc(100% - 30px); /* leave room for title bar */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: black;
}

#graph-video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    background-color: black;
}

.tray-icon {
    width: 16px;
    height: 16px;
    margin: 0 4px;
    cursor: pointer;
}

.tray-divider {
    height: 16px;
    border-left: 1px solid #7e7e7e;
    margin: 0 6px;
}

#image-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    justify-content: flex-start;
    max-width: 100%;
  }
  
  .color-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 4px 8px;
    border: 1px solid #aaa;
    background: white;
    font-size: 13px;
    width: fit-content;
  }
  
  .color-option:hover {
    background: #e0e0e0;
  }
  
  .color-box {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 1px solid #555;
  }
  

  #toadMap-app {
    width: 620px;
    height: 480px;
  }
  
  #toadMap-app .window-body {
    height: calc(100% - 30px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
    box-sizing: border-box;
  }
  
  #toad-map-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
  }
  

  .earth-iframe {
    width: 100%;
    height: 100%;
    display: block;
  }
  
  .dash-iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
  }
  
  #reply-gif { background: transparent; }



  /* Add this new block to styles.css */
#NFT-viewer-app {
    width: 400px;       /* Fixed window width, can be adjusted */
    height: 450px;      /* Fixed window height, can be adjusted */
}

#NFT-viewer-app .window-body {
    height: calc(100% - 30px); /* accounts for title-bar height */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Button fixed at bottom */
    align-items: center;
    overflow: hidden;
    padding: 10px;
    box-sizing: border-box;
}

#NFT-img {
    max-width: 100%;
    max-height: calc(100% - 50px); /* leaves room for button */
    object-fit: contain;
}

#NFT-viewer-app .button-row {
    width: 100%;
    display: flex;
    justify-content: center; /* This centers the button */
    padding-top: 5px;
}