@font-face {
    font-family: 'LDFComicSansBold';
    src: url('LDFComicSansBold.woff2') format('woff2'),
         url('LDFComicSansBold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

body {
    font-family: 'LDFComicSansBold', sans-serif;
    background: #008080;
    margin: 0;
    overflow: hidden;
}

/* Desktop Icon */
.icon {
    width: 80px;
    text-align: center;
    cursor: pointer;
    color: white;
    font-size: 12px;
    margin: 20px;
    user-select: none;
}
.icon img {
    width: 48px;
    height: 48px;
    display: block;
    margin: 0 auto;
}

/* Base window */
.window {
    position: absolute;
    background: #ffffff;
    border: 2px solid black;
    box-shadow: 3px 3px 0 #000;
    display: none;
    overflow: hidden;
    z-index: 1;
}

/* Popup windows always above everything */
.popup {
    width: 300px;
    top: 200px;
    left: 200px;
    z-index: 9999 !important;
}

/* Titlebar */
.titlebar {
    background: linear-gradient(to right, navy, #000080);
    color: white;
    padding: 4px 6px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: grab;
    user-select: none;
}

/* Titlebar icon */
.title-icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: middle;
}

/* Titlebar Buttons */
.win-buttons {
    display: flex;
    gap: 4px;
}
.win-buttons button {
    width: 22px;
    height: 20px;
    background: #c0c0c0;
    border: 2px solid #808080;
    cursor: pointer;
    font-weight: bold;
    padding: 0;
}

/* Menubar */
.menubar {
    background: #dcdcdc;
    padding: 3px 6px;
    border-bottom: 2px solid #808080;
    display: flex;
    gap: 12px;
    font-size: 13px;
}
.menubar span {
    cursor: pointer;
}

/* Folder Window */
.folder-window {
    width: 400px;
    height: 300px;
    top: 80px;
    left: 80px;
    padding: 10px;
}

.folder-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 10px;
}

.folder-item img {
    width: 32px;
    height: 32px;
}

/* Text File Window */
.txtfile {
    width: 600px;
    height: 500px;
    top: 120px;
    left: 120px;
}

/* Scroll area (normal window) */
.scroll {
    height: 430px;
    overflow-y: auto;
    padding: 10px;
    font-family: monospace;
    white-space: pre-wrap;
}

/* Scroll area (maximized window) */
.maximized .scroll {
    height: calc(100vh - 70px);
}

/* Scrollbar styling */
.scroll::-webkit-scrollbar {
    width: 14px;
}
.scroll::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-left: 2px solid #808080;
}
.scroll::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border: 2px solid #808080;
}

/* Popup content */
.popup-content {
    padding: 20px;
    font-family: monospace;
    text-align: center;
}
.popup-content button {
    margin-top: 10px;
    background: #c0c0c0;
    border: 2px solid #808080;
    padding: 4px 12px;
    cursor: pointer;
}

/* ===========================
   TASKBAR
   =========================== */

.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 32px;
    background: #c0c0c0;
    border-top: 2px solid #808080;
    display: flex;
    align-items: center;
    padding: 2px;
    gap: 4px;
    z-index: 5000;
}

.taskbar-button {
    background: #e0e0e0;
    border: 2px solid #808080;
    padding: 4px 10px;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}

.taskbar-button.active {
    background: #ffffff;
    border: 2px solid #000000;
}
