/***************************************************************************/
/*********            MichaelSoft Binbows 1.0                   ************/
/*********                                                      ************/
/*********                                                      ************/
/***************************************************************************/

/* Import */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
@import url('https://binbows.fun/microsoft-sans-serif-webfont/style.css');

@font-face {
    font-family: 'Microsoft Sans Serif Regular';
    font-style: normal;
    font-weight: normal;
    src: local('Microsoft Sans Serif Regular'), url('../microsoft-sans-serif-webfont/micross.woff') format('woff');
}
    

@font-face {
    font-family: 'Microsoft Sans Serif';
    font-style: normal;
    font-weight: normal;
    src: local('Microsoft Sans Serif'), url('../microsoft-sans-serif-webfont/micross.woff') format('woff');
}

/* Default */
* { 
    margin: 0;
}

html {
    font-family: 'Microsoft Sans Serif';
    height: 100vh;
    overflow: hidden;
    
}

body {
    margin: 0;
}

textarea:focus {
    outline: none;
}

.wrapper {
    width: 100vw;
    background-image: url(../img/binbowsxpBG.jpeg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    transition: .3s all ease;
}

nav {
    height: 7vh;
    
    display: flex;
}

nav h1, 
nav h2 {
    margin: 25px;
    color: #000;
}

nav h1 a, 
nav h2 a {
    text-decoration: none;
    color: #222;
    transition: .1s all ease;
}

nav h1 a:hover, 
nav h2 a:hover {
    color: rgb(0, 72, 255);
}

nav div:nth-child(1) {
    flex: 1;
}

nav div:nth-child(2) {
    flex: 2;
    text-align: right;
}

main {
    height: 100vh;
    position: relative; /* Ensure the main container is positioned */
}

.desktop-icon {
    position: absolute;
    width: auto;
    height: 91px;
    padding: 10px;
    cursor: pointer;
    user-select: none;
    display: inline-block;
}

    /* 1st column of icons */
    .desktop-icon:nth-of-type(1) { top: 20px; left: 20px; }
    .desktop-icon:nth-of-type(2) { top: 140px; left: 20px; }
    .desktop-icon:nth-of-type(3) { top: 260px; left: 20px; }
    .desktop-icon:nth-of-type(4) { top: 380px; left: 20px; }
    .desktop-icon:nth-of-type(12) { top: 480px; left: 20px; }
    .desktop-icon:nth-of-type(13) { top: 580px; left: 20px; }
    .desktop-icon:nth-of-type(14) { top: 680px; left: 20px; }
    .desktop-icon:nth-of-type(15) { top: 780px; left: 20px; }
    
    /* Second column of icons */
    .desktop-icon:nth-of-type(5) { top: 20px; left: 140px; }
    .desktop-icon:nth-of-type(6) { top: 140px; left: 140px; }
    .desktop-icon:nth-of-type(7) { top: 260px; left: 140px; }
    .desktop-icon:nth-of-type(8) { top: 380px; left: 140px; }
    .desktop-icon:nth-of-type(9) { top: 490px; left: 140px; }
    .desktop-icon:nth-of-type(10) { top: 590px; left: 140px; }
    .desktop-icon:nth-of-type(11) { top: 690px; left: 140px; }

    /* Third column of icons */
    .desktop-icon:nth-of-type(16) { top: 20px; left: 240px; }

.selection-box {
    position: absolute;
    border: 1px dashed #0078d7;
    background: rgba(0, 120, 215, 0.2);
    pointer-events: none;
    z-index: 9999;
}

.desktop-icon.highlighted {
    background: white;
    color: black;
}


#dragicon8 {
    bottom: 200px;
    right: 100px;
}

#connectWallet {
    cursor: pointer;
}

main img:hover {
    background-color: #ffffff;
}

main img:focus {
    background-color: aliceblue;
}

/* Window Icons */
.window-icon {
    position: absolute;
    width: auto;
    height: 91px;
    padding: 10px;
    cursor: pointer;
    user-select: none;
    display: inline-block;
}
.window-icon:hover {
    background-color: #fff;
}

/* Pop-up Window */
.popup {
    position: fixed;
    top: 100px; /* Initial position */
    left: 100px; /* Initial position */
    width: auto;
    height: auto;
    background-color: rgb(209, 209, 209);
    border: 2px solid rgb(48, 98, 226);
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none; /* Hidden by default */
    user-select: none; /* Prevent text selection */
    /* Updated for smooth animation */
    /* transition: .3s width, .3s height, .3s transform ease; */
    transform: translate(0, 0); /* Default position */
}

.popup:hover,
.popup:active {
    z-index: 100000000;
}

/* Buttons */
.close-btn,
.maximize-btn,
.minimize-btn{
    position: absolute;
    top: 10px;
    cursor: pointer;
    font-weight: bold;
    border: 1px solid #fff;
    border-radius: 5px;
    font-family: sans-serif;
    margin: -7px 0px 0px 0px;
    padding: 0 8px 4px;
}

/* Close Button */
.close-btn {
    right: -5px;
    font-size: 20px;
    background: linear-gradient(180deg, #ff9d8a, #ff2a00, #ff2a00);
}

/* Maximize Button */
.maximize-btn {
    right: 28px;
    background: rgb(156,179,224);
    background: linear-gradient(141deg, rgba(156,179,224,1) 0%, rgba(44,99,224,1) 100%);
    font-size: 18px;
}

.minimize-btn {
    right: 64px;
    font-size: 20px;
    background: rgb(156,179,224);
    background: linear-gradient(141deg, rgba(156,179,224,1) 0%, rgba(44,99,224,1) 100%);
    font-size: 19px;
}

.close-btn:hover,
.maximize-btn:hover,
.minimize-btn:hover {
    background: linear-gradient(180deg, #fee1cd, #ff2a00, #ff2a00);
}


.close-btn:hover,
.maximize-btn:hover,
.minimize-btn:hover {
    background: linear-gradient(180deg, #ff2a00, #ff2a00, #ff9d8a);
}

.popup iframe {
    width: 100%;
    height: calc(100% - 40px);
    border: none;
}

/* Calculator Styling *******************************************/
.calculator {
    padding: 20px;
    text-align: center;
}

.calculator input {
    width: 90%;
    margin-bottom: 10px;
    padding: 10px;
    font-size: 18px;
}

.calculator button {
    width: 50px;
    height: 50px;
    margin: 5px;
    font-size: 18px;
}

/* Pop-up Header */
.popup-header {
    height: 15px;
    color: white;
    padding: 10px;
    cursor: move; /* Indicate that the header is draggable */
    user-select: none; /* Prevent text selection */
    background: rgb(255,255,255);
    background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(217,218,219,1) 1%, rgba(127,127,128,1) 6%, rgba(83,83,83,1) 24%, rgba(133,133,133,1) 81%, rgba(119,119,119,1) 100%);
    position: sticky;
    top: 0;
}

.popup:hover > .popup-header {
    background: rgb(255,255,255);
    background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(7,123,236,1) 1%, rgba(9,15,121,1) 6%, rgba(8,62,130,1) 24%, rgba(34,84,223,1) 81%, rgba(0,99,255,1) 100%);

}

.popup-header:hover {
    background: rgb(255,255,255);
    background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(7,123,236,1) 1%, rgba(9,15,121,1) 6%, rgba(8,62,130,1) 24%, rgba(34,84,223,1) 81%, rgba(0,99,255,1) 100%);

}

.popup-header span {
    margin-right: 10px;
}

/* Terminal Styling ***********************************/
.terminal {
    background-color: black;
    color: white;
    font-family: monospace;
    padding: 10px;
    height: 100%;
    min-height: 450px;
    overflow-y: auto;
}

#terminal-popup {
    width: 50%;
    overflow: scroll;
    max-height: 100vh;
}

#terminal-output {
    white-space: pre-wrap;
    word-wrap: break-word;
}

.terminal-input {
    display: flex;
    align-items: center;
}

#terminal-prompt {
    color: limegreen;
    margin-right: 5px;
}

#terminal-input {
    background: none;
    border: none;
    color: white;
    font-family: monospace;
    flex: 1;
    outline: none;
}

.prompt {
    color: limegreen;
}

/* Rug Checker Styling ***************************************/
#rugcheck-popup {
    width: 460px;
    background-color: #1a1a1a;
    color: #ddd;
}

.rugcheck-body {
    padding: 15px;
    font-family: Tahoma, sans-serif;
    font-size: 12px;
}

.rugcheck-input-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.rugcheck-input-row input {
    flex: 1;
    padding: 6px;
    font-family: monospace;
    font-size: 11px;
    border: 1px inset #555;
    background: #0d0d0d;
    color: #0f0;
}

#rugcheck-scan-btn {
    padding: 6px 14px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(180deg, #d9534f, #a83432);
    border: 1px solid #6e1f1d;
    border-radius: 3px;
    cursor: pointer;
}

#rugcheck-scan-btn:hover {
    background: linear-gradient(180deg, #e46864, #b8433f);
}

#rugcheck-scan-btn:disabled {
    background: #555;
    cursor: not-allowed;
}

.rugcheck-gate-notice {
    background: #442222;
    border: 1px solid #a83432;
    color: #ffaaaa;
    padding: 6px;
    font-size: 11px;
    margin-bottom: 10px;
}

.rugcheck-status {
    font-size: 11px;
    color: #999;
    margin-bottom: 10px;
    font-family: monospace;
}

.rugcheck-risk-banner {
    padding: 8px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
    border-radius: 3px;
    font-size: 13px;
}

.rugcheck-risk-banner.risk-low {
    background: #1e4620;
    color: #7fff7f;
    border: 1px solid #2e7d32;
}

.rugcheck-risk-banner.risk-medium {
    background: #4a3b1e;
    color: #ffcc66;
    border: 1px solid #b8860b;
}

.rugcheck-risk-banner.risk-high {
    background: #4a1e1e;
    color: #ff7f7f;
    border: 1px solid #a83432;
}

.rugcheck-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    margin-bottom: 10px;
}

.rugcheck-table td {
    padding: 5px;
    border: 1px solid #333;
}

.rugcheck-table td:first-child {
    font-weight: bold;
    color: #aaa;
    width: 55%;
}

.rugcheck-flags {
    background: #2a1a1a;
    border: 1px solid #663333;
    padding: 8px;
    font-size: 11px;
    color: #ffaaaa;
    margin-bottom: 10px;
}

.rugcheck-flags .flag-item {
    margin-bottom: 4px;
}

.rugcheck-flags .no-flags {
    color: #7fff7f;
}

.rugcheck-disclaimer {
    font-size: 10px;
    color: #777;
    font-style: italic;
    margin-top: 10px;
    border-top: 1px dashed #444;
    padding-top: 8px;
}

/* CD Burner Styling *******************************************/
#cd-burner-popup {
    height: 400px;
    position: absolute;
    top: 100px;
    left: 300px;
    overflow: scroll;
}

#cd-burner-popup .window-body {
    height: 100%;
}

/* Browser Styling *******************************************/
.browser iframe {
    height: 400px;
    border: none;
}

#browser-popup {
    height: 70%;
    overflow: scroll;
}

.browser-controls {
    display: flex;
    gap: 10px;
    padding: 10px;
    background-color: #f0f0f0;
    border-bottom: 1px solid #ccc;
}

.browser-controls button {
    padding: 5px 10px;
    font-size: 14px;
    cursor: pointer;
}

.browser-controls input {
    flex: 1;
    padding: 5px;
    font-size: 14px;
}

#browser-iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Chat Styling ***************************************************/
.chat {
    padding: 10px;
}

#chat-popup {
    width: 40%;
    background-image: url(../img/community-chat-bottom.png);
    background-position: bottom;
    background-size: 200%;
}

#chat-messages {
    height: 300px;
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 10px;
    background-image: url(../img/community-chat-bg.png);
    background-attachment: fixed;
    background-repeat: repeat-x;
    background-size: 100% 100%;
}

#chat-messages li {
    list-style-image: url(../img/comminity-chat-list-icon.png);
}

#chatInput {
    width: calc(100% - 40px);
    padding: 10px;
    font-size: 16px;
    display: block;
    margin: auto;
}

#chatInput + button {
    width: 70px;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
    margin: 7px;
}

/* IDE Styling ***************************************************/
#ide-popup {
    width: 40%;
    height: 500px;
    background-color: #ffffff;
}

#ide-popup.ide-theme-dark {
    background-color: #1e1e1e;
    border-color: #444;
}

#ide-popup.ide-theme-dark .popup-header {
    background: linear-gradient(180deg, #3a3a3a 0%, #1e1e1e 100%);
}

#ide-popup.ide-theme-light {
    background-color: #ffffff;
    border-color: rgb(48, 98, 226);
}

#ide-popup.ide-theme-light .popup-header {
    background: rgb(255,255,255);
    background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(217,218,219,1) 1%, rgba(127,127,128,1) 6%, rgba(83,83,83,1) 24%, rgba(133,133,133,1) 81%, rgba(119,119,119,1) 100%);
}

/* Byte Me File Converter Styling ***************************************/
#byteme-popup {
    width: 420px;
    background-color: #ece9d8;
}

.byteme-body {
    padding: 15px;
    font-family: Tahoma, sans-serif;
}

.byteme-dropzone {
    border: 2px dashed #7fa8d9;
    background-color: #ffffff;
    padding: 30px 15px;
    text-align: center;
    cursor: pointer;
    font-size: 12px;
    color: #555;
    margin-bottom: 12px;
    transition: background-color 0.2s ease;
}

.byteme-dropzone:hover {
    background-color: #eef5ff;
}

.byteme-dropzone.dragover {
    background-color: #dceeff;
    border-color: #2f64c9;
}

.byteme-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    margin-bottom: 10px;
}

.byteme-controls select {
    flex: 1;
    padding: 4px;
    font-family: Tahoma, sans-serif;
    font-size: 12px;
}

#byteme-convert-btn {
    padding: 6px 14px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(180deg, #6699fd, #2f64c9);
    border: 1px solid #1a3f8a;
    border-radius: 3px;
    cursor: pointer;
    font-family: Tahoma, sans-serif;
    font-size: 12px;
}

#byteme-convert-btn:hover {
    background: linear-gradient(180deg, #7aa8ff, #3d72d9);
}

#byteme-convert-btn:disabled {
    background: #aaa;
    cursor: not-allowed;
}

.byteme-status {
    font-size: 11px;
    font-family: monospace;
    color: #444;
    min-height: 20px;
}

/* Menu Bar Styling **********************************************/
.menu-bar {
    display: flex;
    gap: 10px;
    height: 30px;
    background-color: #ddd;
}

.menu {
    position: relative;
    cursor: pointer;
}

.menu span {
    margin: 5px 5px 5px 10px;;
    display: block;
}

.menu span:hover {
    color: #0051fe;
}

.menu-content {
    display: none;
    position: absolute;
    background-color: #444;
    min-width: 120px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.menu-content button {
    width: 100%;
    padding: 10px;
    text-align: left;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.menu-content button:hover {
    background-color: #555;
}

.menu:hover .menu-content {
    display: block;
}

.game-popup {
    display: block;
    position: absolute;
    top: 200px;
    left: 200px;
    width: 900px;
    height: 90%;
    overflow: hidden;
    background-color: #000;
    color: #fff;
}

/* Control Panel Styling *********************************************/
.roadmap-header {
    border-bottom: 2px dashed #444;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.roadmap-header h3 {
    margin: 0 0 5px 0;
    color: #00ffcc;
    font-family: monospace;
}

.roadmap-header p {
    margin: 0;
    font-size: 12px;
    color: #888;
}

.roadmap-timeline {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.timeline-group h4 {
    margin: 0 0 15px 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #aaa;
    border-left: 3px solid #666;
    padding-left: 8px;
}

.timeline-item {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid #333;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    position: relative;
}

.timeline-item.stable {
    border-left: 4px solid #00ff66;
}

.timeline-item.pending {
    border-left: 4px solid #ffcc00;
    opacity: 0.85;
}

.timeline-item h5 {
    margin: 10px 0 8px 0;
    font-size: 15px;
    color: #fff;
}

.timeline-item ul {
    margin: 0;
    padding-left: 20px;
    font-size: 12px;
    color: #ccc;
    line-height: 1.6;
}

.timeline-item ul li {
    margin-bottom: 4px;
}

/* Timeline Badges */
.timeline-item .badge {
    font-size: 11px;
    font-family: monospace;
    font-weight: bold;
    padding: 2px 6px;
    background: #00ff66;
    color: #000;
    border-radius: 3px;
}

.timeline-item .badge.pending {
    background: #ffcc00;
}

.timeline-item .date {
    float: right;
    font-size: 11px;
    color: #666;
    font-family: monospace;
}

/* BendOver Pro Styling **********************************************/

#bend-over-pro-popup {
    width: 90%;
}

/* Control Panel Styling */
#control-panel-popup {
    width: 50%;
}

.control-panel-flex {
    display: flex;
}

.start-menu-top {
    height: 40px;
    position: fixed;
    bottom: 0;
    width: 100vw;
}

.start-menu-top:hover ~ .start-menu {
    height: 40px;
}

.start-menu {
    width: 100vw;
    position: fixed;
    bottom: 0;
    height: .5px;
    background: linear-gradient(360deg, rgb(27, 66, 207),rgb(27, 66, 207),rgb(27, 66, 207),rgb(27, 66, 207) , #89b0ff);
    transition: .3s all ease;
    display: flex;
    gap: 10px;
    font-family: Arial, Helvetica, sans-serif;
    animation-name: show-start;
    animation-iteration-count: 1;
    animation-timing-function: ease-in-out;
    animation-duration: 2s;
}

.start-menu-toggle {
    height: 40px;
}

#walletDisplay {
    font-size: 10px;
}

#explorer-popup {
    width: 40%;
    height: 500px;
}

/* Chatbot Styling - XP Messenger Theme ***************************************/
#chatbot-popup {
    width: 380px;
    height: 480px;
    display: none;
    flex-direction: column;
}

.chatbot {
    display: flex;
    flex-direction: column;
    height: calc(100% - 35px);
    background-color: #ece9d8; /* classic XP grey-beige */
    font-family: Tahoma, 'Microsoft Sans Serif', sans-serif;
}

.chatbot-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: linear-gradient(180deg, #fefefe 0%, #ece9d8 100%);
    border-bottom: 1px solid #aca899;
}

.chatbot-avatar {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.chatbot-status {
    font-size: 11px;
    color: #2c8a2c;
    font-weight: bold;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background-color: #ffffff;
    background-image: 
        linear-gradient(#f5f5f5 1px, transparent 1px);
    background-size: 100% 24px;
    border-left: 1px inset #aca899;
    border-right: 1px inset #aca899;
}

.chatbot-msg {
    display: flex;
    margin-bottom: 8px;
}

.chatbot-msg.bot {
    justify-content: flex-start;
}

.chatbot-msg.user {
    justify-content: flex-end;
}

.bubble {
    max-width: 75%;
    padding: 8px 12px;
    font-size: 12px;
    line-height: 1.4;
    border-radius: 10px;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    word-wrap: break-word;
}

.chatbot-msg.bot .bubble {
    background: linear-gradient(180deg, #ffffff, #dceeff);
    border: 1px solid #7fa8d9;
    color: #000;
    border-bottom-left-radius: 2px;
}

.chatbot-msg.user .bubble {
    background: linear-gradient(180deg, #eaffd0, #c9f2a3);
    border: 1px solid #7bbf5e;
    color: #000;
    border-bottom-right-radius: 2px;
}

.chatbot-input-row {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    padding: 8px;
    background: linear-gradient(180deg, #ece9d8, #d9d6c3);
    border-top: 1px solid #aca899;
}

#chatbot-input {
    flex: 1;
    resize: none;
    font-family: Tahoma, sans-serif;
    font-size: 12px;
    padding: 6px;
    border: 1px inset #838383;
    outline: none;
}

#chatbot-send-btn {
    padding: 6px 14px;
    font-family: Tahoma, sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(180deg, #6699fd, #2f64c9);
    border: 1px solid #1a3f8a;
    border-radius: 3px;
    cursor: pointer;
}

#chatbot-send-btn:hover {
    background: linear-gradient(180deg, #7aa8ff, #3d72d9);
}

#chatbot-send-btn:active {
    background: linear-gradient(180deg, #2f64c9, #6699fd);
}

/* Scrollbar - retro XP look */
.chatbot-messages::-webkit-scrollbar {
    width: 16px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: #ece9d8;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #f5f5f5, #c9c6b8);
    border: 1px solid #aca899;
}

/* My Documents style ****************************************************/
#my-documents-popup {
    width: 40%;
    height: 400px;
}

.my-documents {
    background-color: #fff;
}

@keyframes show-start {
    0% {
        height: 0.5px;
    }

    10% {
        height: 40px;
    }

    50% {
       
    }

    90% {
        height: 40px;
    }

    100% {
        height: 0.5px;
    }
}

.start-menu-popup li {
    list-style-type: none;
    height: 60px;
    font-size: 1.1em;
    font-weight: 900;
}

.start-menu-popup li:hover {
    background-color: #ffffff4a;
}

.start-menu:hover {
    height: 40px;
}

.start {
    background: linear-gradient(180deg, #88ff00, #00ff33);
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
    flex: .5;
    font-size: 1.5em;
    color: #fff;
    text-shadow: 2px 2px 2px #222;
    padding: 5px;
    cursor: pointer;
    box-shadow: 0px 0px 10px #333 inset;
}

.start:active {
    background: linear-gradient(180deg, #6dcd00, #008e1d);
}

.start-menu-popup {
    position: fixed;
    left: 0;
    bottom: 0;
    height: 0px;
    background-color: #dedede;
    width: 400px;
    transition: .2s all ease;
    border-top-right-radius: 10px;
    font-family: sans-serif;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 90px auto auto 70px;
}

.start-menu-popup li {
    padding-top: 5px;
}

.start-menu-popup li img {
    height: 39px;
    width: auto;
    margin: 5px;
    float: left;
}

.start-menu-popup div:nth-child(1){
    grid-column: span 2;
    background: linear-gradient(360deg, #6699fd,#2f64c9,#2f64c9);
    border-top: 2px solid rgb(137, 177, 230);
    border-bottom: 2px solid rgb(255, 192, 45);
    border-top-right-radius: 10px;
    color: #fff;
    text-shadow: 2px 2px 6px #222;
}

.start-menu-popup div:nth-child(1) img {
    height: 90%;
    margin: 3px;
    float: left;
    box-shadow: 2px 2px 6px #222;
    border-radius: 4px;
}

.start-menu-popup div:nth-child(1) h1 {
    padding: 25px 0 0 100px;
}

.start-menu-popup div:nth-child(6) {
    background: linear-gradient(360deg,#2f64c9,#2f64c9,#6699fd);
    grid-column: span 2;
}

.start-menu-popup div:nth-child(3),
.start-menu-popup div:nth-child(5) {
    background-color: rgb(215, 228, 249);
    border-left: 1px solid #0077ff;
}

.start img {
    height: 20px;
    width: auto;
}

.search {
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.647);
    flex: 1;
    margin: 3px;
}

.search input {
    border: none;
    outline: none;
    background-color: rgba(255, 255, 255, 0);
    font-size: 1.3em;
    width: 90%;
    margin: 5px;
}

.programs {
    flex: 1;
    display: flex;
}

[src="img/winamplogo.png"]{
    cursor: pointer;
}

.programs img {
    height: 30px;
    margin: 5px;
    display: block
}

.programs img:hover {
    background-color: #ffffff8f;
}

.programs img:active {
    background-color: #e6e6e6;
}

.status {
    flex: 4;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px;
    min-width: 150px;
}

.taskbar-button {
    background: linear-gradient(180deg, #8bc1ff, rgb(76, 126, 235),rgb(76, 126, 235),rgb(76, 126, 235));
    padding: 5px 10px;
    border: 1px solid black;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
    font-size: 14px;
    height: 100%;
    width: 20%;
}

.taskbar-button:hover {
    background: linear-gradient(180deg, #ff7b00, #ff7b00, #ff7b00,#ff7b00);;  
}

.time {
    color: #fff;
    padding: 10px;
    border-left: 1px solid #999;
    background: linear-gradient(360deg, rgb(43, 102, 199), rgb(43, 102, 199), rgb(43, 102, 199), rgb(43, 102, 199), #8fbcff);
}

/* Resize handles for popups */
.popup {
    min-width: 200px;
    min-height: 150px;
}

.resize-handle {
    position: absolute;
    z-index: 10;
}

.resize-handle.n  { top: -3px; left: 6px; right: 6px; height: 6px; cursor: ns-resize; }
.resize-handle.s  { bottom: -3px; left: 6px; right: 6px; height: 6px; cursor: ns-resize; }
.resize-handle.e  { top: 6px; right: -3px; bottom: 6px; width: 6px; cursor: ew-resize; }
.resize-handle.w  { top: 6px; left: -3px; bottom: 6px; width: 6px; cursor: ew-resize; }
.resize-handle.ne { top: -3px; right: -3px; width: 10px; height: 10px; cursor: nesw-resize; }
.resize-handle.nw { top: -3px; left: -3px; width: 10px; height: 10px; cursor: nwse-resize; }
.resize-handle.se { bottom: -3px; right: -3px; width: 10px; height: 10px; cursor: nwse-resize; }
.resize-handle.sw { bottom: -3px; left: -3px; width: 10px; height: 10px; cursor: nesw-resize; }

/***************************************************************************/
/*********               Windows Mobile Responsive Theme            **********/
/***************************************************************************/

@media screen and (max-width: 768px) {
    html, body {
        overflow-y: auto; /* Let the user scroll on mobile */
        height: auto;
        background-color: #000;
    }

    /* Wrap all icons nicely into a clean grid */
    main {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: minmax(100px, auto); /* Allows squares to size dynamically */
        gap: 8px;
        padding: 10px;
        box-sizing: border-box;
        height: 60vh;
    }

    main img {
        display: block;
        width: 45px;      /* Restrict giant icon sizing */
        height: 45px;
        margin: 10px auto 5px auto;
        object-fit: contain;
    }

    .wrapper {
        background-image: url(../img/windowsMobileBG.jpeg); 
        background-size: cover;
        width: 100%;
        background-color: #000;
        min-height: 100vh;
    }

    nav h1, 
    nav h2 {
        margin: 25px;
        color: #b100ff;
}

    .start-menu-popup {
        position: fixed;
        left: 0;
        bottom: 0;
        height: 0px;
        background-color: #000;
        width: 100%;
        transition: .2s all ease;
        border-top-right-radius: 0px;
        font-family: sans-serif;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 90px auto auto 70px;
        color: #fff;
    }

    .start-menu-popup li {
        padding-top: 5px;
}

    .start-menu-popup li img {
        height: 39px;
        width: auto;
        margin: 5px;
        float: left;
    }
    
    .start-menu-popup div:nth-child(1){
        grid-column: span 2;
        background: linear-gradient(360deg, #000000,#000000,#2f64c9);
        border-top: 1px solid rgb(137, 177, 230);
        border-bottom: 1px solid rgb(56 56 56);
        border-top-right-radius: 0px;
        color: #fff;
        text-shadow: 2px 2px 6px #222;
    }
    
    .start-menu-popup div:nth-child(1) img {
        height: 90%;
        margin: 3px;
        float: left;
        box-shadow: 2px 2px 6px #222;
        border-radius: 4px;
    }
    
    .start-menu-popup div:nth-child(1) h1 {
        padding: 25px 0 0 100px;
    }
    
    .start-menu-popup div:nth-child(6) {
        background: linear-gradient(360deg,#000000,#000000,#000000);
        grid-column: span 2;
    }
    
    .start-menu-popup div:nth-child(3),
    .start-menu-popup div:nth-child(5) {
        background-color: rgb(0 0 0);
        border-left: 1px solid #000000;
    }
    
    .start img {
        height: 20px;
        width: auto;
    }

    /* Standardize the icon tiles */
    .desktop-icon, .window-icon {
        position: relative !important; /* Overrides absolute positioning cleanly */
        top: auto !important;
        left: auto !important;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 100% !important;        /* Let grid control width */
        height: 100%;
        margin: 0 !important;          /* Clear desktop absolute margins */
        box-sizing: border-box;
        padding: 8px;
        text-align: center;
        color: #fff;
        font-family: 'Segoe UI', sans-serif;
        font-size: 11px;
        font-weight: 500;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
        
        /* Subtle bevel border accentuating classic mobile OS tiles */
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    /* Custom Color Cycle for Tiles (Nostalgic WP/WM Accent Colors) */
    .desktop-icon:nth-child(7n+1), .window-icon:nth-child(7n+1) {background-color: #1ba1e2;} /* Blue */
    .desktop-icon:nth-child(7n+2), .window-icon:nth-child(7n+2) { background-color: #d80073; } /* Magenta/Pink */
    .desktop-icon:nth-child(7n+3), .window-icon:nth-child(7n+3) { background-color: #a200ff; } /* Purple */
    .desktop-icon:nth-child(7n+4), .window-icon:nth-child(7n+4) { background-color: #339933; } /* Green */
    .desktop-icon:nth-child(7n+5), .window-icon:nth-child(7n+5) { background-color: #a2c139; } /* Lime */
    .desktop-icon:nth-child(7n+6), .window-icon:nth-child(7n+6) { background-color: #00aba9; } /* Teal */
    .desktop-icon:nth-child(7n+7), .window-icon:nth-child(7n+7) { background-color: #f09609; } /* Mango/Orange */

    /* Handle Popups: Don't let them float randomly off-screen */
    .popup {
        position: fixed !important;
        top: 5% !important;
        left: 5% !important;
        width: 90% !important;
        height: 85% !important;
        transform: none !important;
        z-index: 1000000;
    }

    /* Kill or alter the desktop taskbar on mobile */
    .start-menu, .start-menu-top {
        height: 40px;
        background: linear-gradient(0deg, #000, #000);
        border-top: .5px solid #444;
    }

    .time {
        background: linear-gradient(0deg, #000, #000);
        font-size: 9px;
    }

    .start {
        background: linear-gradient(0deg, #000, #000);
        font-size: 8px;
    }

    .search {
        display: none;
    }

    /* Specific Window Position Resets */
    #dragicon8 {
        bottom: auto;
        right: auto;
    }
}