.window:not(.selectable-inside) * {
    user-select: none !important;
    -moz-user-select: none;
    -webkit-user-select: none;
}

.window-roach, .window-roach-message {
    position: absolute;
}

.window-roach {
    width: 64px;
    bottom: -48px;
    right: -18px;
}

.window-roach-message {
    bottom: 64px;
    right: 26px;
}

.window {
    overflow: auto;

    background-color: var(--w98-gray);
    border: 2px solid #000;
    box-shadow: 4px 4px 0px #fff, -2px -2px 0px #808080;
    display: flex;
    flex-direction: column;
    position: relative;
}

.window-bar {
    height: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1px 3px;
    background: var(--w98-blue-gradient, linear-gradient(to right, #0a246a, #395c9a)); /* Fallback for var */
    color: #fff;
    font-size: 16px;
    position: relative;
}

.window-title {
    flex-grow: 1;
    padding-left: 4px;
}

.window-buttons {
    display: flex;
    gap: 0px;
}

.window-buttons .wbtn {
    width: 16px;
    height: 14px;

    background-color: var(--w98-gray);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset -1px -1px 0px #808080, inset 1px 1px 0px #fff;
    font-size: 10px;
    font-weight: bold;
    line-height: 1;
    color: #000;

    border: 1.5px solid;
    border-color: white black black white;
}

.window-buttons .wbtn:not(.disabled_button):hover {
    background-color: #fff;
}

.window-buttons .wbtn img {
    image-rendering: pixelated !important;
}

.window-buttons .wbtn.disabled_button img {
    opacity: .5;
}

.wbutton-close {
    margin-left: 2px;
}

.window-header span {
    margin-left: 10px;
}

.window-body {
    position: relative;

    padding: 10px;
    flex-grow: 1;
    overflow-y: auto;
    background: var(--w98-gray-gradient);
    border: 2px solid var(--w98-gray);
    box-shadow: inset -1px -1px 0px #808080, inset 1px 1px 0px #fff;
}




/* Mostly for Projects folder */
.category {
    margin-bottom: 20px;
}

.category h2 {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: bold;
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid #808080;
}

.icon {
    display: inline-flex;
    flex-flow: column;
    justify-content: center;

    width: 80px;
    height: 80px;
    text-align: center;
    margin: 8px 0px;
    padding: 0px;
    cursor: pointer;
    box-sizing: border-box;
    border: 1px solid transparent;
    
}

.icon img {
    width: 48px;
    height: 48px;
    display: block;
    margin: 0 auto 4px;

    object-fit: contain;
}

.icon span {
    font-size: 10px;
    color: #000;
    overflow: hidden;
    white-space: pre-line;
}

.icon.selected {
    background-color: #009;
    color: #fff;
}

.icon.selected * {
    color: white;
}

.icon:hover {
    border: 1px solid #000;
    background-color: #e0e0e0;
}

.icon:hover * {
    color: black;
}




/* Responsive Adjustments */
@media (max-width: 900px) {
    .window-body {
        padding-bottom: 164px !important;
    }

    .window {
        margin: 0 8px;
    }
}