html, body {
    background-color: #121214;
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.terminal-window {
    background-color: rgba(26, 27, 38, 0.95);
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    font-family: Menlo, Monaco, 'Courier New', monospace;
    width: 80vw; /* Adjusted width */
    max-width: 1000px; /* Adjusted max-width */
    height: 80vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    cursor: move; /* Add cursor style for dragging */
}

.resize-handle {
    position: absolute;
    width: 16px;
    height: 16px;
    z-index: 10;
}

.resize-handle.corner {
    right: 16px; /* Inset from the right edge */
    bottom: 16px; /* Inset from the bottom edge */
    cursor: nwse-resize;
    background: transparent;
    opacity: 0.5;
}

.resize-handle.corner::before,
.resize-handle.corner::after {
    content: '';
    position: absolute;
    background: #ffffff;
}

.resize-handle.corner::before {
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
}

.resize-handle.corner::after {
    width: 2px;
    height: 100%;
    right: 0;
    top: 0;
}

.resize-handle.right,
.resize-handle.bottom {
    display: none;
}

.window-header {
    background-color: #1d1e2c;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.window-title {
    color: #f8f8f2;
    font-size: 1rem;
    margin: 0;
    flex-grow: 1;
    float: left;
}

.window-controls {
    display: flex;
    justify-content: flex-end;
    padding: .5rem;
}

.window-controls span {
    width: 12px;
    height: 12px;
    display: inline-block;
    border-radius: 50%;
    margin-right: 6px;
}

.close-btn { background-color: #ff5f56; }
.minimize-btn { background-color: #ffbd2e; }
.maximize-btn { background-color: #27c93f; }

.terminal-content {
    flex-grow: 1;
    overflow-y: auto;
    color: #f8f8f2;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 1rem;
}

.terminal-content::-webkit-scrollbar {
    display: none;
}

.prompt-user { color: #50fa7b; }
.prompt-at { color: #f8f8f2; }
.prompt-host { color: #bd93f9; }
.prompt-path { color: #8be9fd; }
.prompt-symbol { color: #ff79c6; }

.command-input {
    background: transparent;
    border: none;
    color: #f8f8f2;
    font-family: inherit;
    font-size: inherit;
    outline: none;
    padding: 0;
    margin: 0;
    width: calc(100% - 300px);
    display: inline;
    line-height: 1.5;
}

.history-line {
    white-space: pre;
    line-height: 1.5;
}

.ascii-art {
    color: #50fa7b;
    white-space: pre;
    margin-bottom: 1rem;
}

.welcome-text {
    color: #bd93f9;
    margin-bottom: 1rem;
}

.welcome-text.orange {
    color: #ffa500; /* Orange color */
}

.command-line {
    display: flex;
    line-height: 1.5;
}

.prompt {
    white-space: nowrap;
}

#history {
    line-height: 1.5;
}

.no-bootable-device {
    font-family: 'Courier New', Courier, monospace;
    font-size: 24px;
    color: rgb(255, 255, 255);
    text-align: center;
    position: relative;
}

.blinking-cursor::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 24px;
    background-color: rgb(255, 255, 255);
    animation: blink 1s step-end infinite;
    vertical-align: bottom;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@media (max-width: 600px) {
    .terminal-window {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        margin: 0;
        padding: 0;
        top: 0;
        left: 0;
        transform: none;
        cursor: default; /* Disable move cursor */
    }

    .resize-handle {
        display: none; /* Hide resize handle */
    }

    .window-header {
        display: none;
    }

    .terminal-content {
        height: calc(100vh - 20px);
        padding: 10px;
    }

    .ascii-art {
        display: none;
    }

    .terminal-content::before {
        content: "Welcome to Defection Intelligence";
        display: block;
        white-space: nowrap;
        overflow: hidden;
        color: #50fa7b;
        padding-bottom: 1em;
        font-size: 1.2em;
    }
}