body {
    font-family: 'Courier New', monospace;
    background: #121212;
    color: #e0e0e0;
    margin: 0;
    padding: 20px;

    font-weight: 400;
    font-style: normal;
    text-decoration: none;
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.15;
}

textarea {
  tab-size: 2;
  -moz-tab-size: 2;
}

.exemples_dropdown {
    position: absolute;
    overflow-y: hidden;
    right: 10px;
    top: 10px;
    background-color: #1e1e1e;
    border-radius: 5px;
    border-color: #444;
    border-width: 1px;
    border-style: solid;
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    padding: 8px;
    align-items: end;
    gap: 10px;
    z-index: 9999;
    transition: scale(1);
    max-width: 250px;

    .exemples_cross {
        width: 35px;
        height: 35px;
        font-size: 39px;
        cursor: pointer;
        margin-bottom: 10px;
    }

    .title {
        width: 100%;
        border-bottom: 5px double;
    }

    p {
        span {
            color: #bb86fc;
        }
    }
}

a {
    color: #bb86fc;
}

.terminal {
	background-color: #373737;
	padding: 8px;

    input {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
        opacity: 0;
    }
}

.emulator-container {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.control-panel {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #444;
}

.binary-switches {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.switch {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.switch input {
    margin-top: 5px;
    transform: scale(1.5);
}

.output-display {
    display: flex;
    gap: 20px;
    align-items: center;
}

.output-display span {
    font-weight: bold;
}

.btn {
    background: #6200ea;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn:hover {
    background: #7c4dff;
}

.registers-panel {
    display: flex;
    gap: 20px;
    background: #1e1e1e;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #444;
}

.register {
    display: flex;
    gap: 5px;
    align-items: center;
}

.register p {
    color: #bb86fc;
    margin: 0;
}

.code-editor-container {
    position: relative;
    border-radius: 8px;
    background: #1e1e1e;
    width: 100%;
    display: flex;
    border: 1px solid #444;
    overflow: hidden;
    flex-direction: column;
}

.line-numbers {
    overflow: hidden;
    flex-shrink: 0;
    /* position: absolute; */
    height: 100%;
    left: 0;
    top: 0;
    width: 40px;
    padding: 10px 0;
    text-align: center;
    background: #2d2d2d;
    color: #888;
    line-height: 1.5;
    font-size: 14px;
    user-select: none;
}

.code-editor-div {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.editor-wrapper {
    position: relative;
    width: 50%;
    height: 400px;
    background: #1e1e1e;
}

.code-editor, .code-highlight {
    tab-size: 2;
    -moz-tab-size: 2;
    width: 100%;
    height: 100%;
    padding: 10px 0 10px 10px;
    margin: 0;
    border: none;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;
    white-space: pre;
    overflow: auto;
}

.code-editor {
    position: absolute;
    top: 0;
    left: 0;
    background: transparent;
    color: transparent;
    caret-color: #e0e0e0;
    z-index: 1;
    resize: none;
    outline: none;
}

.code-highlight {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
    color: #e0e0e0;
}

.pc-display {
    padding: 10px;
    background: #2d2d2d;
    text-align: center;
    font-weight: bold;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    background: #2d2d2d;

    label {
        align-items: center;
        display: flex;
    }
}

.error_view {
    width: -webkit-fill-available;
    padding: 20px;
    background-color: black;
}

.highlight-line {
    background: rgba(98, 0, 234, 0.2);
    border-left: 3px solid #6200ea;
}
