*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    background-color: #1e1e1e;
    color: #f8f8f2;
    font-family: "Victor Mono", monospace;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 500;
    margin: 0;
    padding: 20px;
    min-height: 100%;
    overflow-x: hidden;
    position: relative;
}

#terminal {
    font-size: 16px;
}

.input-line {
    display: flex;
    align-items: center;
    justify-content: start;
    margin: 9px 0;
    flex-wrap: wrap;
}

.prefix {
    color: #50fa7b;
    /* Draconian green or similar bright terminal color */
    margin-right: 10px;
    white-space: nowrap;
}

.prefix-symbol {
    color: #50fa7b;
    margin-right: 10px;
    white-space: nowrap;
}

.input-group {
    display: flex;
    align-items: center;
}

input {
    background: transparent;
    border: none;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    width: auto;
    min-width: 50px;
    outline: none;
    padding: 0;
    margin: 0;
    /* Critical for alignment with ghost text */
}

/* Wrapper to hold input and ghost overlay */
.input-wrapper {
    position: relative;
    display: flex;
    /* Ensures input takes full height/width */
}

.ghost-text {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    color: #666;
    font-style: italic;
    white-space: pre;
    /* Preserves spaces */
    z-index: 1;
}

.input-wrapper input {
    z-index: 2;
    /* Input must be above ghost */
    /* Input must be above ghost */
    width: auto;
}

input::placeholder {
    font-style: regular;
    opacity: 0.7;
}

#start-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: #1e1e1e;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    overflow: hidden;
}

#start-overlay span {
    font-size: 1.2rem;
    color: #50fa7b;
    animation: blink 1s step-end infinite;
}

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

@media (max-width: 600px) {
    #terminal {
        font-size: 18px;
    }

    .input-line {
        margin-bottom: 9px;
        display: block;
    }

    .prefix {
        display: block;
        margin-bottom: 5px;
    }
}

#mobile-autocomplete-btn {
    background-color: #50fa7b;
    color: #1e1e1e;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.8rem;
    margin-left: 8px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-align: center;
    white-space: nowrap;
    font-family: "Victor Mono", monospace;
    align-self: center;
    text-transform: lowercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.suggestion-item {
    padding: 2px 8px;
    border-radius: 12px;
    color: #d4d4d4;
    font-size: 0.9em;
    border: 1px solid transparent;
}

.suggestion-info {
    background-color: #333333;
}

.suggestion-helper {
    background-color: transparent;
    border-color: #444444;
    color: #888888;
}