@font-face {
    font-family: 'Pixelated';
    src: local('Courier New'), monospace;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    background-color: #d35400;
    background-position: 0 0, 10px 10px;
    background-size: 20px 20px;
    font-family: 'Tahoma', 'MS Sans Serif', sans-serif;
    font-size: 11px;
    color: #000;
}

.desktop {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.window {
    background: #f4e8ba;
    border: 2px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    max-width: 800px;
    width: 100%;
}

.title-bar {
    background: #d35400;
    background: linear-gradient(90deg, #d35400, #e67e22);
    color: white;
    padding: 2px 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 12px;
}

.title-bar-text {
    display: flex;
    align-items: center;
    gap: 4px;
}

.title-icon {
    width: 14px;
    height: 14px;
    image-rendering: pixelated;
}

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

.win-btn {
    background: #f4e8ba;
    border: 2px solid;
    border-color: #ffffff #8c7f4e #8c7f4e #ffffff;
    box-shadow: inset 1px 1px 0px #fdfbee, inset -1px -1px 0px #000000;
    font-family: 'Tahoma', 'MS Sans Serif', sans-serif;
    font-size: 11px;
    padding: 2px 6px;
    color: #000;
    cursor: pointer;
}

.win-btn:active {
    border-color: #8c7f4e #ffffff #ffffff #8c7f4e;
    box-shadow: inset 1px 1px 0px #000000, inset -1px -1px 0px #fdfbee;
    padding: 3px 5px 1px 7px;
}

.title-bar-controls .win-btn {
    width: 16px;
    height: 14px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    font-weight: bold;
}

.menu-bar {
    display: flex;
    gap: 12px;
    padding: 4px 8px;
    border-bottom: 1px solid #b5a56b;
    box-shadow: 0 1px 0 #ffffff;
}

.menu-bar span {
    cursor: default;
}

.menu-bar span:hover {
    background: #d35400;
    color: white;
}

.window-body {
    display: flex;
    padding: 8px;
    gap: 8px;
    background: #f4e8ba;
}

.panel-left {
    width: 180px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.panel-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

fieldset {
    border: 2px solid;
    border-color: #ffffff #b5a56b #b5a56b #ffffff;
    padding: 8px;
    margin: 0;
}

legend {
    padding: 0 4px;
}

.retro-title {
    font-size: 16px;
    margin: 0 0 8px 0;
    color: #d35400;
}

.status-content p {
    margin: 4px 0;
}

.action-btn {
    margin-top: 8px;
    width: 100%;
    padding: 4px;
    font-weight: bold;
}

.inset-box {
    background: #ffffff;
    border: 2px solid;
    border-color: #b5a56b #ffffff #ffffff #b5a56b;
}

.module-list {
    height: 100px;
    overflow-y: scroll;
    padding: 2px;
    margin-bottom: 8px;
}

.module-list div {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.wide-btn {
    width: 100%;
    margin-bottom: 4px;
}

.processor-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.text-input {
    flex: 1;
    padding: 3px 4px;
    font-family: 'Tahoma', 'MS Sans Serif', sans-serif;
    font-size: 12px;
    outline: none;
}

.main-processor {
    display: flex;
    gap: 8px;
    flex: 1;
    height: 300px;
}

.terminal-container {
    flex: 1;
    background: #110800;
    color: #ff9d00;
    font-family: 'Courier New', Courier, monospace;
    padding: 6px;
    overflow-y: auto;
    font-size: 13px;
    box-shadow: inset 1px 1px 3px rgba(0,0,0,0.8);
}

.terminal-text {
    white-space: pre-wrap;
    word-wrap: break-word;
}

.terminal-text p {
    margin: 0;
    padding: 0;
}
.terminal-text h3 {
    color: #ffda73;
    margin: 12px 0 4px 0;
    font-size: 14px;
}
.terminal-text ul {
    margin: 4px 0;
    padding-left: 20px;
}
.terminal-text li {
    margin-bottom: 4px;
}

.processor-controls {
    width: 90px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.big-btn {
    height: 40px;
    font-weight: bold;
}

.options-box {
    margin-top: auto;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.status-bar {
    display: flex;
    padding: 2px;
    gap: 2px;
    margin: 2px 4px 4px 4px;
    background: #f4e8ba;
    border-color: #b5a56b #ffffff #ffffff #b5a56b;
}

.status-cell {
    border: 1px solid;
    border-color: #b5a56b #ffffff #ffffff #b5a56b;
    padding: 2px 6px;
}
.status-cell:first-child {
    flex: 1;
}

::-webkit-scrollbar {
    width: 16px;
    height: 16px;
}
::-webkit-scrollbar-track {
    background: #fdfbee;
    border-left: 1px solid #ffffff;
}
::-webkit-scrollbar-thumb {
    background: #f4e8ba;
    border: 2px solid;
    border-color: #ffffff #8c7f4e #8c7f4e #ffffff;
    box-shadow: inset 1px 1px 0px #fdfbee, inset -1px -1px 0px #000000;
}
::-webkit-scrollbar-button {
    background: #f4e8ba;
    border: 2px solid;
    border-color: #ffffff #8c7f4e #8c7f4e #ffffff;
    box-shadow: inset 1px 1px 0px #fdfbee, inset -1px -1px 0px #000000;
    display: block;
    height: 16px;
    width: 16px;
}

@media (max-width: 600px) {
    .window-body {
        flex-direction: column;
    }
    .panel-left {
        width: 100%;
    }
    .main-processor {
        flex-direction: column;
        height: auto;
    }
    .processor-controls {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .terminal-container {
        height: 200px;
    }
    .big-btn {
        width: 100%;
    }
}